Post Mortem (A.K.A. I Hate Java)

Posted by (twitter: @ChronusZ)
December 15th, 2013 9:46 pm

My game, Obscured Nonphysical Expanse, was a complete success in every way I would’ve thought possible. It’s a 3D ambient-horror puzzle game where you need to find your way out of a network of hallways that defy basic geometry, made in LWJGL and Java. I would’ve liked to have made the map a little bit bigger, but I’m still fairly proud of how much I got done.

Now, on to how everything died.

I finished the game about ten minutes before the competition ended, and then realized I had no idea how to pack my code and assets into a runnable game. Worked that out *relatively* quick, packed it into a .jar. At this point I had pretty much given up on web support until I had more time to port the game, tomorrow. So, I now had a lovely little .jar, spliced together using jarsplice and contained in a single file. Except it didn’t run, because the format doesn’t pack the resource files (images, sounds, models) in. So I spent a solid two hours trying to shift things around in my code and on my drive to make things work properly.



So, I’ve now given up. I posted the source code on my game page, but I can think of literally no other way in which this might work. I’m tired, sore, angry, and slightly hallucinating from over-exposure to the colour white, so I bit you all adieu and am now going to go eat curry and pass out. Maybe I’ll just ditch the whole effort of making this work for LD and turn it into a full game so that I can procrastinate learning how to pack files even longer and get even more frustrated when I can’t distribute my game…


4 Responses to “Post Mortem (A.K.A. I Hate Java)”

  1. laaph says:

    Try again tomorrow! Submit it to the jam! If nothing else, submit it as source, with no executable, and I’ll download it and see if I can get it to run. It’s not the first time I’ve downloaded games from source and rated them!

    • ChronusZ says:

      The source is up there, if you want to try it out. If I can’t think of anything else, I might just remake the whole thing in XNA, which I know far better and could certainly make a (download only) runnable version.

  2. Nelios says:

    I think I fixed it, there were a few problems.
    1 – In the Main class, FileReader method does not work when exporting (can’t find the file), you have to use InputStreamReader() to read it.
    2 – You need to put the res folder in another folder to pack it in the jar file, I did “resources/res”. Then set the “resources” folder as a Source (in Java Build Path if you use Eclipse, no idea for other IDE).

    Once you’ve done that, jarsplice should pack it right.

    Here is the fixed source (check Main class): (res files removed to lower the size, just place them in the appropriate folders).
    And a working executable jar:

    Hope that fixed it for you too :)

Leave a Reply

You must be logged in to post a comment.

[cache: storing page]