Author Topic: JAVA on Dingux (updated on 25th, Nov.), ported by rookie1  (Read 12465 times)

difuno (OP)

  • Posts: 104
JAVA on Dingux (updated on 25th, Nov.), ported by rookie1
« on: November 23, 2009, 04:08:53 am »
Here comes the 25th Nov. update.

As stated by the original author, compatibility has been improved in this release.

Grab it here:

http://www.filefront.com/15001305/midpath091125.zip

Original post here:
http://www.a320home.cn/bbs/read.php?tid-4583-fpage-0-page-1.html

Grab it from the link in the original post (provided you have no problem with the Chinese language) or here:

http://www.filefront.com/14978321/midpath091121.zip

Translation of the original post here.

 This is the SUN PHONEME CDC + MIDPATH that I ported to Dingux. Extract it to LOCAL folder. The compatibility of English games seems to be better than Chinese. It is suggested to download and play JAVA games of NokiaE 6X or E7 or above, due to the 320 X 240 screen resolution of A320.

It you want to get it on DMENU, edit menu_game.cfg and add in:

MenuItem MIDPATH
{
Icon = "res/games/arkanoid.png"
Name = " MIDPATH"
Executable = "./suite-manager.sh"
WorkDir = "/usr/local/midpath/bin"
}
Note: I used the icon of arkanoid here, you may change it to whatever favorite icon of yours.

Copy your JAVA games to LOCAL/MIDPATH/MIDLETS/, all JAR and JAD files will be listed in MIDPATH, you will need to use "Install MIDlet..." option to generate JAD files for games do not come with a JAR file.

Key mapping (A320 VS Cellphone):

A = SELECT
Y = LEFT
X = RIGHT
B = 5
SELECT = #

You can modify the key mapping in local/midpath/configuration/com/sun/midp/configuration/configuration.cfg (scroll down to the bottom of the configuration file and you will find it).

Some remarks:

1. In this version, you will need to exit the games by using the exit menu of their own (exiting games from program menu is not yet there). In case the system freezes, use START + SELECT + POWER (reset shortcut of Dingux) to reset your device.

2. No sound support yet. (if you are asked to enable sound at game start, please choose no)

3. It is suggested to play games of 320 x 240 resolutions (vertical screens).
  You can find configuration.cfg file under local/midpath/configuration/com/sun/midp/configuration, this is the configuration file for MIDPATH. You may choose to rename configuration.cfg.240x320 (vertical) or configuration.cfg.320x240 (horizontal) in the same folder to configuration.cfg to replace the original configuration file.

Key mapping for vertical screen (A320 VS Cellphone)
A = SELECT,X = LEFT,B = RIGHT,Y = 5,SELECT = #

PORTED BY rookie1 at www.a320home.cn
« Last Edit: November 26, 2009, 01:42:01 pm by difuno »

zear

  • * Moderator
  • Posts: 2381
Re: JAVA on Dingux (trial version), ported by rookie1
« Reply #1 on: November 23, 2009, 08:43:25 am »
It's a good start, however so far it isn't very stable.
From all the games I tested only one was working. The rest were either freezing on the menu, or the application had trouble installing them.

All that games I tested had no problem working on the GP2X version of phoneme.
It's a version that uses SDL and has some interesting features, like a config file for each game where you can configure the button mappings and screen rotation.
Here's the only code I found of this version: http://www.2shared.com/file/9372648/4ef72d45/phoneME-GP2X-SDL-100.html
It looks like a patch for the original phoneme to enable SDL rendering.
It contains some binary data though, so I don't know if it's gonna be useful.
« Last Edit: November 23, 2009, 09:01:41 am by zear »

batman52

  • Posts: 111
Re: JAVA on Dingux (trial version), ported by rookie1
« Reply #2 on: November 23, 2009, 08:50:46 am »
@zear: could you post a link to the working game? (Or at least report the name, version, etc...)

zear

  • * Moderator
  • Posts: 2381
Re: JAVA on Dingux (trial version), ported by rookie1
« Reply #3 on: November 23, 2009, 08:58:05 am »
The game is called "300". That are the details:
Code: [Select]
Manifest-Version:1.0
MicroEdition-Configuration:CLDC-1.0
MIDlet-Name:300
Created-By:Universomo, Ltd.
MIDlet-Icon:/icon.png
MIDlet-Info-URL:www.wbmobile.com/support
MIDlet-Vendor:Warner Bros.
MIDlet-1:300,/icon.png,Main
MIDlet-Version:1.4.0
MicroEdition-Profile:MIDP-1.0
MIDlet-Jar-URL:300.jar
MIDlet-Jar-Size:134098
I can't post a link as that would be illegal. But why don't you talk to me on irc ;)
« Last Edit: November 23, 2009, 09:00:01 am by zear »

batman52

  • Posts: 111
Re: JAVA on Dingux (trial version), ported by rookie1
« Reply #4 on: November 23, 2009, 12:06:50 pm »
oops, sorry.. maybe a deserve a ban (ouch!)

anyway, i meant that it interesting understand WHY it works to wonder which modifications are needed to the java port...
or what other games could work.

ruffnutts

  • Posts: 2653
Re: JAVA on Dingux (trial version), ported by rookie1
« Reply #5 on: November 24, 2009, 07:07:08 am »
Can someone make a nice java Icon for hellsing theme  ;)

BTW: Can someone try resident evil the missions - it is a free game  ;)
Well I think it is lol
« Last Edit: November 24, 2009, 09:19:57 am by ruffnutts »

ruffnutts

  • Posts: 2653
Re: JAVA on Dingux (trial version), ported by rookie1
« Reply #6 on: November 25, 2009, 12:54:34 pm »
Here`s a video of it running I found on youtube ;)

http://www.youtube.com/watch?v=oLg4j7ZD8Ys

ruffnutts.....

amadorei

  • Guest
Re: JAVA on Dingux (updated on 25th, Nov.), ported by rookie1
« Reply #7 on: November 27, 2009, 03:53:49 pm »
java 34 games - Link removed - Sorry, posting links to copyrighted games is forbidden here. /Zear
« Last Edit: November 27, 2009, 05:21:46 pm by zear »

fartzilla

  • Guest
Re: JAVA on Dingux (updated on 25th, Nov.), ported by rookie1
« Reply #8 on: November 29, 2009, 11:23:24 am »
Here is a list of games I have tested that work. These are mostly commercial games that I have purchased and have backed up off my phone. (backed up for firmware upgrade)

Air Strike 1944.By Gameloft  90% working: graphics error, key map issuse
SpongeBob Bowling by THQ Wireless  90% working: graphics error
Box It! by Digiment  99% working: key map issuse
Flexis Extreme by VisualMedia  100% working:
Micro Frozen Bubble 2 by Glenn Sanson  100% working:
Worms 2007 by THQ  99% working: key map issue
Rollercoaster Rush by Dchoc  99% working: message scale issue
Ricochet Bricks by I-play  95% working: graphics error
Super Yum Yum by AirPlay  95% working: Screen position error
The Simpsons: Minutes to Meltdown by Electronic Arts  100% working:
UNO Challenge by Summus, Inc  100% working: key map issuse
CopMan3D by Microways  100% working:
Fast and the Furious: Fugitive by I-play 100% working:
Fatal Force: Earth Assault by Macrospace Ltd  95% working: message scale issue
Red Faction II by THQ Wireless  100% working:


Hope this info is helpful.

fartzilla

  • Guest
Re: JAVA on Dingux (updated on 25th, Nov.), ported by rookie1
« Reply #9 on: November 29, 2009, 11:42:04 am »
@ruffnutts:

Made a basic icon using the java logo.

http://img341.imageshack.us/img341/8970/java.png

mauromartins

  • Posts: 26
Re: JAVA on Dingux (updated on 25th, Nov.), ported by rookie1
« Reply #10 on: November 29, 2009, 11:54:54 am »
I played a little with configuration file, and put the soft left and soft right at shoulders buttons. So now it really act like an L and R mobile buttons (green and red) thus enabling two more buttons on Dingoo, to use for other functions.

ruffnutts

  • Posts: 2653
Re: JAVA on Dingux (updated on 25th, Nov.), ported by rookie1
« Reply #11 on: November 30, 2009, 04:46:20 pm »
@ fartzilla thanks looks cool  ;D

BTW : great name haha

athlon4011

  • Guest
Re: JAVA on Dingux (updated on 25th, Nov.), ported by rookie1
« Reply #12 on: February 01, 2010, 09:28:33 pm »
I have been trying to get this to work, any luck on it? using gmenu

difuno (OP)

  • Posts: 104
Re: JAVA on Dingux (updated on 25th, Nov.), ported by rookie1
« Reply #13 on: February 02, 2010, 02:21:19 am »
I have been trying to get this to work, any luck on it? using gmenu

Rookie1, the author has shown up in this forum and posted his update. I think you might leave him a private message and see if he can offer any help.

slbstmrd

  • Posts: 20
Re: JAVA on Dingux (updated on 25th, Nov.), ported by rookie1
« Reply #14 on: December 29, 2011, 02:09:54 pm »
So Notch coded and released "Minicraft" in 48 hours for the Ludlum Dare 22. I've already tried running it in MIDPath (clearly to no avail) and am wondering if it is possible to get this running by tweaking/reassembling etc?

http://www.joystiq.com/2011/12/19/notch-creates-minicraft-in-less-than-48-hours-you-can-play-it/

Camaro8000

  • Posts: 17
Re: JAVA on Dingux (updated on 25th, Nov.), ported by rookie1
« Reply #15 on: December 30, 2011, 03:24:40 pm »
Hm, would be cool... Sourcecode is available here:
https://s3.amazonaws.com/ld48/ld22/minicraft_source.zip
Maybe someone can modify the game for the dingoo :)

slbstmrd

  • Posts: 20
Re: JAVA on Dingux (updated on 25th, Nov.), ported by rookie1
« Reply #16 on: January 09, 2012, 03:12:41 am »
Snagged the source and tried converting and compiling it as a MIDlet and ran into some issues...

I'm only getting a few (4) errors when building, all are "Error preverifying class [insert class here]" which makes me think these particular classes call for J2SE functionality. Although there should be some J2ME equivalent for most of it, I'm not entirely sure this is doable.

Although to be honest, I have no idea whatsoever what this particular error entails, and Google can't seem to find anything either. Surely I must not be the first one in the world to run into this problem, right?

If anyone familiar with java (and J2ME in particular) could chime in and help out, that'd be much appreciated.

Also, I'm trying to figure out a virtual key equivalent in J2ME, but seems like the information regarding this kind of stuff is scarce at best.

I don't really feel like skulking some coder forum since that doesn't really seem to lead anywhere in my experience...