Attempted and failed to embed the game


So i spent the day working on this game, because I noticed that itch has the option to embed java games, and I thought it could be super nice to not force players to get a JRE on their devices.

Thing is the old broken open source framework I used (RpgBoss) outputs a jar that launches the editor, it only launches the game when passed certain flags.

So I spent hours reverse engineering the jar, decompiling and recompiling it, to force the flags to be passed by tweaking directly the java assembly language (apparently its called ByteCode?).

Anyway it worked I have a jar that executes the right thing, but then I noticed two dealbreakers that make this whole thing pointless:

- even with this self contained jar, itch expects a different jar format and cant embed it (it probably wants some sort of applet)

- rpgboss reads files from disk, not from the jar, and even though the files can be put in the jar quite easily, reading files within a jar is very different than on disk, so I would have to rewrite the whole of rpgboss to have it read from jar and not disk.

soyeah, no change here. The lesson is: dont use java I guess xDD

Get You Doesn't Exist

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.