freej2me
freej2me copied to clipboard
Cant load Wizardry using Freej2me
[Deleted]
The game crashes because com.siemens.mp.color_game is not implemented and it's trying to load com.siemens.mp.color_game.Layer
Please do not post direct links to jar files.
Wizardry now loads, but doesn't respond to input. It expects an unusual 104x80 display, but there doesn't seem to be anything preventing it from running on higher resolutions.
This is all I think I'm willing to do. Java does not seem to like many of the PNG images in the wizardry jar that I have. (The title screen, unfortunately, is one of the bad ones.) I can load them in various paint programs, but Java refuses to load them. Some of them do work:
Controls may need updated, though some things work if you turn on Nokia mode in settings. If someone can find the javadocs for siemens.mp.* I can implement them properly, but I have no idea what the constants should be. I know four values, from the decompiled wizardry source, but don't know to which controls those constants relate.
If anyone has a different copy of wizardry than I have, let me know and I'll give it another try.
@recompileorg, siemens apps use backslashes in paths - perhaps because of this, images do not load
@woesss That's good to know! Unfortunately, that isn't the the issue this time...
I found another reason. The game code expects read(byte[], int, int)
method to return 0
when the data has ended, but in a normal implementation it returns -1
. Because of this, reading resources fails.
@woesss That can be fixed in instrumentation. It would require an additional option to enable it, given that this is the only game we know about that seems to have been designed around that unusual implementation.
I guess I wonder if it's worth adding that option just for this one game?
@woesss That can be fixed in instrumentation. It would require an additional option to enable it, given that this is the only game we know about that seems to have been designed around that unusual implementation.
I guess I wonder if it's worth adding that option just for this one game?
Its definitely worth it because there is a site with games like these one. I doubt every of these games requires such things, but who knows
@woesss I figured that we could detect the need for the Siemens special inputstream by the weird "resource:" prefix it prepends to resource paths. I'm sure it helped, but it wasn't enough to get the title to show.
The game might still be somewhat playable if someone can find out what constants to use for various key inputs old Siemens games expect. So far, I only know that -4 seems to be the right soft key and -1 seems to be the left soft key. -59 is up, -60 is down, -61 and -62 appear to be left and right, but can't check this yet.
Nevermind, the game starts but everything is invisible. You can move, and talk to the guard, but you can't see yourself or anyone else.
If anyone finds something new, I'll try it out. It looks like things will work once we figure out why some images aren't loading.
What a strangely productive night. Images now work. There are some problems with sprites and layers, but that should be fixable. If anyone wants to give it a go, I'd be thankful, as there are other things I'd like to work on.
The game might still be somewhat playable if someone can find out what constants to use for various key inputs old Siemens games expect. So far, I only know that -4 seems to be the right soft key and -1 seems to be the left soft key. -59 is up, -60 is down, -61 and -62 appear to be left and right, but can't check this yet.
Also -26 is the value of the fire/center key for Siemens phones (you could just get that from kemulator 😆)
@piratesephiroth thanks for that. How would one get that from kemulator? I don't really use it.
Also, Graphics in Wizardry are working well. You can now navigate the town and everything seems to look okay. left/right don't seem to work, but you can turn with 4 and 6.
@piratesephiroth thanks for that. How would one get that from kemulator? I don't really use it.
View -> Options
Found the Siemens API reference from one of their old SDKs: ~~https://openload.cc/B7L904B2n0/Siemens-SDK-docs_zip~~ EDIT: just noticed GitHub let's you upload ZIPs Siemens-SDK-docs.zip