Red Game 2D Engine tech demo

Here’s the new log.


Sris-iMac:Downloads harsha$ java -jar tech\ demo.jar
[LAUNCHER] file 'META-INF/MANIFEST.MF'
[LAUNCHER] file 'rg/launcher/Creator$1.class'
[LAUNCHER] file 'rg/launcher/Creator$2$1.class'
[LAUNCHER] file 'rg/launcher/Creator$2.class'
[LAUNCHER] file 'rg/launcher/Creator$3.class'
[LAUNCHER] file 'rg/launcher/Creator$4.class'
[LAUNCHER] file 'rg/launcher/Creator$5.class'
[LAUNCHER] file 'rg/launcher/Creator$6.class'
[LAUNCHER] file 'rg/launcher/Creator$7.class'
[LAUNCHER] file 'rg/launcher/Creator.class'
[LAUNCHER] file 'rg/launcher/Launcher$1.class'
[LAUNCHER] file 'rg/launcher/Launcher.class'
[LAUNCHER] file 'lib/jars/CodecIBXM.jar' (EXTRACTING)
[LAUNCHER] file 'lib/jars/CodecJOgg.jar' (EXTRACTING)
[LAUNCHER] file 'lib/jars/CodecWav.jar' (EXTRACTING)
[LAUNCHER] file 'lib/jars/LibraryJavaSound.jar' (EXTRACTING)
[LAUNCHER] file 'lib/jars/LibraryLWJGLOpenAL.jar' (EXTRACTING)
[LAUNCHER] file 'lib/jars/SoundSystem.jar' (EXTRACTING)
[LAUNCHER] file 'lib/jars/jbox2d.jar' (EXTRACTING)
[LAUNCHER] file 'lib/jars/jinput.jar' (EXTRACTING)
[LAUNCHER] file 'lib/jars/lwjgl.jar' (EXTRACTING)
[LAUNCHER] file 'lib/jars/rg.jar' (EXTRACTING)
[LAUNCHER] file 'lib/natives/OpenAL32.dll' (EXTRACTING)
[LAUNCHER] file 'lib/natives/OpenAL64.dll' (EXTRACTING)
[LAUNCHER] file 'lib/natives/jinput-dx8.dll' (EXTRACTING)
[LAUNCHER] file 'lib/natives/jinput-dx8_64.dll' (EXTRACTING)
[LAUNCHER] file 'lib/natives/jinput-raw.dll' (EXTRACTING)
[LAUNCHER] file 'lib/natives/jinput-raw_64.dll' (EXTRACTING)
[LAUNCHER] file 'lib/natives/libjinput-linux.so' (EXTRACTING)
[LAUNCHER] file 'lib/natives/libjinput-linux64.so' (EXTRACTING)
[LAUNCHER] file 'lib/natives/libjinput-osx.jnilib' (EXTRACTING)
[LAUNCHER] file 'lib/natives/liblwjgl.jnilib' (EXTRACTING)
[LAUNCHER] file 'lib/natives/liblwjgl.so' (EXTRACTING)
[LAUNCHER] file 'lib/natives/liblwjgl64.so' (EXTRACTING)
[LAUNCHER] file 'lib/natives/libopenal.so' (EXTRACTING)
[LAUNCHER] file 'lib/natives/libopenal64.so' (EXTRACTING)
[LAUNCHER] file 'lib/natives/lwjgl.dll' (EXTRACTING)
[LAUNCHER] file 'lib/natives/lwjgl64.dll' (EXTRACTING)
[LAUNCHER] file 'lib/natives/openal.dylib' (EXTRACTING)
[LAUNCHER] file 'img/background.png'
[LAUNCHER] file 'img/laser.png'
[LAUNCHER] file 'img/player/blue.png'
[LAUNCHER] file 'img/player/red.png'
[LAUNCHER] file 'img/player/flame.png'
[LAUNCHER] file 'img/icon/icon.png'
[LAUNCHER] file 'img/icon/icon-large.png'
[LAUNCHER] file 'img/enemy.png'
[LAUNCHER] file 'poly/player.poly'
[LAUNCHER] file 'sounds/laser.wav'
[LAUNCHER] file 'Background.class'
[LAUNCHER] file 'Enemy.class'
[LAUNCHER] file 'Flame.class'
[LAUNCHER] file 'Fps.class'
[LAUNCHER] file 'Laser.class'
[LAUNCHER] file 'Main.class'
[LAUNCHER] file 'Player.class'
[LAUNCHER] file 'font.ttf'

[LAUNCHER] extracting lib/jars/CodecIBXM.jar
[LAUNCHER] extracting lib/jars/CodecJOgg.jar
[LAUNCHER] extracting lib/jars/CodecWav.jar
[LAUNCHER] extracting lib/jars/LibraryJavaSound.jar
[LAUNCHER] extracting lib/jars/LibraryLWJGLOpenAL.jar
[LAUNCHER] extracting lib/jars/SoundSystem.jar
[LAUNCHER] extracting lib/jars/jbox2d.jar
[LAUNCHER] extracting lib/jars/jinput.jar
[LAUNCHER] extracting lib/jars/lwjgl.jar
[LAUNCHER] extracting lib/jars/rg.jar
[LAUNCHER] extracting lib/natives/OpenAL32.dll
[LAUNCHER] extracting lib/natives/OpenAL64.dll
[LAUNCHER] extracting lib/natives/jinput-dx8.dll
[LAUNCHER] extracting lib/natives/jinput-dx8_64.dll
[LAUNCHER] extracting lib/natives/jinput-raw.dll
[LAUNCHER] extracting lib/natives/jinput-raw_64.dll
[LAUNCHER] extracting lib/natives/libjinput-linux.so
[LAUNCHER] extracting lib/natives/libjinput-linux64.so
[LAUNCHER] extracting lib/natives/libjinput-osx.jnilib
[LAUNCHER] extracting lib/natives/liblwjgl.jnilib
[LAUNCHER] extracting lib/natives/liblwjgl.so
[LAUNCHER] extracting lib/natives/liblwjgl64.so
[LAUNCHER] extracting lib/natives/libopenal.so
[LAUNCHER] extracting lib/natives/libopenal64.so
[LAUNCHER] extracting lib/natives/lwjgl.dll
[LAUNCHER] extracting lib/natives/lwjgl64.dll
[LAUNCHER] extracting lib/natives/openal.dylib

[LAUNCHER] command: /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/bin/java, -cp, .rg-data/lib/jars/*;/Users/harsha/Downloads/tech demo.jar, -Djava.library.path=.rg-data/lib/natives, Main, Error: Could not find or load main class Main
Sris-iMac:Downloads harsha$ 

Sry, completely stumped there…
It is doing everything it is supposed to do, your Mac just can’t seem to find the Main class…

But thx anyway for the help…

Why is there a comma after [icode]-cp[/icode] in the launcher command?

Linux Ubuntu 14.04 also can’t find Main class :frowning:

There is commas between each part because the command is an array of strings (for process builder) so for the debug info I just print out the hole array with commas inbetween.

EDIT: I think it may not work because it extracts everything into a hidden folder… I don’t really know… I’ll have a mess around with it this afternoon…

I have made a JarSplice version… can u check if that works on Linux or Mac? Meanwhile, I’ll be working on the non-JarSplice version to try and get it compatible… (cause I didn’t really like JarSplice…)

The Jar-Splice version works perfectly. Why not use it?

Three main reasons:

  1. You can only add jars, not classes… So I have pack the game before creating the FatJar…
  2. My version is specifically designed for my game engine so all the natives and library jars are already included…
  3. I don’t like the look of it…

I think this might help you: My SilenceEngine NativesLoader

But I would atleast want to know why mine isn’t working… I even looked at the JarSplice source code and it is very similar… (I actually got help from the JarSplice source code)

Also, I just remembered another reason why I didn’t like JarSplice: The FatJar launcher doesn’t have a progress bar (I like progress bars ;D)

Do you like the tech demo?

Also, can someone have a look at my Launcher code (here under the ‘launcher creator’ folder) and see why it is not working for Mac and Linux?

EDIT: the github repository is a bit out of date but there isn’t really anything new which would effect anything…

I THINK I JUST FIGURED OUT WHY IT IS NOT WORKING ON MAC AND LINUX!!!

Two paths are seperated by ‘;’ but I’m pretty sure ‘;’ only works on windows… I’ll try to fix this now…

Download link updated… Can someone with Linux or Mac please try the non-JarSplice version?

Yup, use colon ‘:’ for separating paths on Linux, Mac, and other Unix(-like) OS’s.

Ik… or just use File.pathSeperator…
But I was messing around with the Launcher and instead the jars are just extracted into the launcher and don’t need to be extracted when launched… So know I only have one classpath jar so there shouldn’t be any problems…

Can any1 tell me if the non-JarSplice version works for Mac and Linux?

Confirming that it works on mac.

Good… I’ll remove the jarsplice version right now…

It works on Linux

Ok… So now it works everywhere… Do u like it?
As a note: this was me just messing around with the features and not an actual game with a goal or anything… I just looked at it one time and I thought I might release because someone asked for a tech demo…