View Full Version : Java "Build" your own fullscreen, touch-enabled java games...



dragunov
21st February 2009, 11:24
OK, here is a short and simple tutorial of how to make touchscreen java games fit to your nokia 5800 360X640 screen...

First of all, you need to find a java game with touch capabilities. Note that java games from HTC threads, or SE G900 UIQ3 threads work just fine, but display on the screen is very small. A good start to search for such games is:

[Only registered and activated users can see links]

After you download the .jar file, left click on it, and open it with a decompression tool (winrar, winzip, etc). Inside the file, go to the META-INF folder, and open the MANIFEST.MF file with notepad.

Below the last line inside the MANIFEST.MF file (REMEMBER NOT TO LEAVE ANY LINE BLANK), just copy and paste the following lines:

A. For completely fullscreen stretched game size:
-------------------------------------------
Nokia-MIDlet-Original-Display-Size: 240,320
Nokia-MIDlet-Target-Display-Size: 360,640
-------------------------------------------

B. For max game size, without the graphics beeing distorted:
-------------------------------------------
Nokia-MIDlet-Original-Display-Size: 240,320
Nokia-MIDlet-Target-Display-Size: 360,480
-------------------------------------------

Optionally, if you dont want the virtual keypad to display on the screen when running the game, just add this line:
-------------------------------------------
Nokia-MIDlet-On-Screen-Keypad: no
-------------------------------------------

Save the file MANIFEST.MF after editing, and exit the decompression tool.

Your Fullscreen touch-enabled game is ready for installation!

NOTE:
This method applies for JAVA games intended for devices with original screen resolution 240X320. If you find a JAVA game from a device with different resolution, just change the values respectively in ways A. and B.

amb1402
21st February 2009, 20:25
thx a lot going to try it soon

pavan007
21st February 2009, 21:04
thnx a lot converted rolland garros tennis very good

krihoum
21st February 2009, 23:14
just tried rolland garros tennis game and it says invalid jar file

not working for me so far

dragunov
21st February 2009, 23:45
@ krihoum

My friend, please note that if you leave a blank line in the MF file, the phone will not recognize the jar file!

Make sure that there are NO BLANK LINES in the MANIFEST.MF file.

krihoum
22nd February 2009, 00:06
@ krihoum

My friend, please note that if you leave a blank line in the MF file, the phone will not recognize the jar file!

Make sure that there are NO BLANK LINES in the MANIFEST.MF file.

yes i made sure of this, no blank line

but i wasnt sure about the dashes,,,,, i added those 4 lines at the bottom of the file:

-------------------------------------------
Nokia-MIDlet-Original-Display-Size: 240,320
Nokia-MIDlet-Target-Display-Size: 360,640
-------------------------------------------

maybe i should add these instead?

Nokia-MIDlet-Original-Display-Size: 240,320
Nokia-MIDlet-Target-Display-Size: 360,640

thanks

dragunov
22nd February 2009, 00:32
Yeap! No dashes...

Just the two lines. :good2:

krihoum
22nd February 2009, 00:39
tried all scenarios, always INVALID JAR coming when i try to install:sorry:

pavan007
22nd February 2009, 09:58
worked for me im using winzip 11
see that you dont make an extra copy of the file
only edit the present file

pavan007
22nd February 2009, 10:03
try this file...

talhamid
22nd February 2009, 11:13
@pavan: Beautiful. Thanks man.

dragunov
22nd February 2009, 14:53
If you want to edit the file by unziping it, note that when zipping all containing files again, you should create a new "zip" file (NOT rar, ace, arj etc), with NORMAL compression rate. Both are important! After that, rename the .zip file to .jar, and you are ready!

Ohhh and guys! Any jar created can be posted here in this thead. When I find time, I will convert and post!

If you have any question, I will be here! :egdance:

dragunov
22nd February 2009, 18:08
I converted some games, but dont have time for screenshots...

I will add screenshots later, when I have the time, sorry guys...

Bubble Bash:
[Only registered and activated users can see links] ([Only registered and activated users can see links])
[Only registered and activated users can see links] ([Only registered and activated users can see links])

Paris Hilton Diamond Quest:
[Only registered and activated users can see links] ([Only registered and activated users can see links])

Diamond Twister:
[Only registered and activated users can see links] ([Only registered and activated users can see links])
[Only registered and activated users can see links] ([Only registered and activated users can see links])

Wonder Blox:
[Only registered and activated users can see links] ([Only registered and activated users can see links])
[Only registered and activated users can see links] ([Only registered and activated users can see links])

SimCity:
[Only registered and activated users can see links] ([Only registered and activated users can see links])
[Only registered and activated users can see links] ([Only registered and activated users can see links])

Roromix
23rd February 2009, 00:36
Winrar -> Invalid JAR
Winzip -> OK

myakove
23rd February 2009, 01:11
I converted some games, but dont have time for screenshots...

I will add screenshots later, when I have the time, sorry guys...


Thanks for this

H0CKEY69
23rd February 2009, 05:57
you also take the time to make a proper size icon ;)

dragunov
23rd February 2009, 11:15
@HOCKEY69

Proper size icon? Do you mean that after installation, the icon that appears in the Programs shortcut folder is small?

In my phone the icon is huge, maybe you mean something else... :ashamed:

pavan007
23rd February 2009, 12:18
i think the topic name should be changed to java resized files

dragunov
23rd February 2009, 15:06
Loco Roco fullscreen...

plummy69
2nd September 2009, 17:28
thank you, really appreciated. i do have 2 questions i would like you to try and answer plz.

If i resize a LG Viewty or Cookie game i get a white bar at the bottom with nothing in it. Is it possible to resize to get rid of that. If i select the origanal resolution at 400 rather than 320 the blank bit gets even bigger. so not sure what to do.

Is there an aditional line or two that i can insert that will allow me to play the game in land scape with the N97 open so i got the option to use the keys if the touch isnt as responsive as it should be.

Ultraman666
2nd September 2009, 17:56
Is there a way to modify a swf file and do this as well??