Controller controls are “iffy”. As soon as I load the game, I blast off into some unknown direction then whenever I try to shoot, the game crashes. This may be because I am using a PS3 controller bu I don’t know.
[EDIT]
Also, start does not close out of the game but right trigger does so it may be a mapping error or something
I made it using an Xbox controller and I don’t have a PS controller to test that… Sry for that…
Just unplug the controller and it should work using the keyboard…
This happens on my mac:
Sris-iMac:Downloads harsha$ java -jar better.jar
Error: Could not find or load main class Main
Sris-iMac:Downloads harsha$
A window opens with a button “Done” and closes immediately though.
Wow… This program just seems to be problem after problem…
SHC, it seems like the launcher isn’t extracting the files so instead it is just skipping that step and is just launching the game…
I have an idea which may fix that… But I don’t have a Mac to test it…
Is anybody actually getting this thing to work?
I have updated it with more info in the command prompt about what files there are and which ones are being extracted…
Can someone with a problem on mac launch this game in terminal and give me the result?
EDIT: I have removed the better version because it just took to long to create both jars and upload them both every time I fix something… anyways, there wasn’t any noticeable differences…
Here’s the new output. Didn’t work this time too.
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'
Error: Could not find or load main class Main
Sris-iMac:Downloads harsha$
Still can’t figure it out…
I have added more debug info and I have updated the download…
Can you give me yet another log of the terminal?
Thx in advance…
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
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:
- You can only add jars, not classes… So I have pack the game before creating the FatJar…
- My version is specifically designed for my game engine so all the natives and library jars are already included…
- I don’t like the look of it…
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?