zesterer
|
|
Posted on: January 18, 2013, 04:59:20 pm |
|
|
Location: Mars Joined: Jan 2013
Posts: 16
|
I use linux Ubuntu 12.10. When I try to install ENIGMA, I install it to a location in my documents. I have to download the lgm16b4.jar into the directory, as install.py seemingly does very little, if anything. I then run it, and LateralGM works. But there is no run/compile menu/button etc. Its like it cant find the ENIGMA plugin. How can I fix this? I am good with computers, but please simple terms because I have been using Ubuntu for less than 4 months, and I am 100% new to ENIGMA. Thanks to anybody who answers , Barry Smith Software Dev
|
|
|
Logged
|
|
|
|
Josh @ Dreamland
|
|
Reply #1 Posted on: January 18, 2013, 10:33:54 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
Are you certain it is finding the ENIGMA plugin? It's quite possible it isn't. Or, it's not finding JNA. Both are necessary. The output from the terminal might help; open the ENIGMA directory in your terminal and run LGM manually with [snip]java -jar lgm16b4.jar[/snip]. Just copy the contents here on the forum or to pastebin so we can see what's going on. If plugins/shared/jna.jar is missing, there's your problem. Also, if it failed to build compileEGMf.so, there's your problem. The latter shouldn't be your problem, though, since the menus would still appear in LGM. If you are running the jar by double clicking it, it is quite possible LGM is being run from the wrong path, in which case running it from the console will fix your issue. That's a bug with your file manager's Java launcher; I'm not sure how to fix it.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
zesterer
|
|
Reply #3 Posted on: January 19, 2013, 02:59:20 pm |
|
|
Location: Mars Joined: Jan 2013
Posts: 16
|
Well doing:
make returns loads of errors in the console (although I did all of the commands correctly). If it matters, I am using Ubuntu 12.10, and I have heard that it behaves a little weirdly on Ubuntu...
I then ran LateralGM with the Java command, tried opening and running a .gm81, and go this:
# # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f400a7e7e3a, pid=19864, tid=139913046079232 # # JRE version: 7.0_09-b30 # Java VM: OpenJDK 64-Bit Server VM (23.2-b09 mixed mode linux-amd64 compressed oops) # Problematic frame: # C [libcompileEGMf.so+0xf9e3a] lang_CPP::compile_writeRoomData(EnigmaStruct*, parsed_object*)+0x1b7a # # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # An error report file with more information is saved as: # /home/joshua/Enigma/enigma-dev/hs_err_pid19864.log # # If you would like to submit a bug report, please include # instructions on how to reproduce the bug and visit: # https://bugs.launchpad.net/ubuntu/+source/openjdk-7/ # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # Aborted
Any ideas? :S
I tried running a different .gm81, and it worked. However, when I tried compiling to something else such as Android Simulator, I get:
Universal_System/Extensions/DataStructures/data_structures.cpp:1907:33: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] make[1]: *** No rule to make target `Audio_Systems/AndroidAudio/Makefile'. Stop. make[1]: Leaving directory `/home/joshua/Enigma/enigma-dev/ENIGMAsystem/SHELL' make: *** [Game] Error 2 Thanks,
Barry Smith
|
|
« Last Edit: January 19, 2013, 03:05:46 pm by zesterer »
|
Logged
|
|
|
|
Josh @ Dreamland
|
|
Reply #4 Posted on: January 19, 2013, 04:32:04 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
If it only does that for one particular game file, it's probably a problem parsing or building that particular file. It would be useful if you could try to narrow a test case down for us to fix. Otherwise, just post the game that breaks it and we'll have a look.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
zesterer
|
|
Reply #5 Posted on: January 19, 2013, 05:33:06 pm |
|
|
Location: Mars Joined: Jan 2013
Posts: 16
|
Its literally just a test game. One sprite, one object, one room. The sprite is 64x64, and the objects has: Creation Event angle=0 Step event x=room_width/2+lengthdir_x(64,angle) y=room_height/2+lengthdir_y(64,angle) angle+=1 As you can see, nothing complex. Just a picture that spins to test framerate, graphics rendering, and maths functions such as trig. And yet it fails to compile... I am using LateralGM and ENIGMA because its the only linux alternative, and compiling to C++ is kinda useful, but its not working too well for me atm... is it possible just to build a single install script that will install everything, plus dependencies, so that it just works? I'm not exactly a techno-phobic, I use computers a lot and understand them quite well, but getting this thing running can be confusing. However, from what has been working so far, it looks like a good project. There are just a *few* things that need to be ironed out I think... Thanks, Barry Smith
|
|
|
Logged
|
|
|
|
|
|
|
forthevin
|
|
Reply #9 Posted on: January 20, 2013, 03:33:40 am |
|
|
Joined: Jun 2012
Posts: 167
|
I tried to compile your example code, and it worked when compiling for the target "GNU GCC G++", but when compiling for the target "Android Simulator", I got the same error as you got. Compilation for Android is currently experimental. Can you confirm that it works when compiling for "GNU GCC G++"? If so, I believe you have everything set up correctly.
The JRE crash that you got before that with the first .gm81, were you compiling for the target "GNU GCC G++"? If yes, it sounds like the issue is caused by the specific file you loaded into LateralGM, possibly something to do with rooms based off the error text from the JRE.
|
|
« Last Edit: January 20, 2013, 03:40:17 am by forthevin »
|
Logged
|
|
|
|
zesterer
|
|
Reply #10 Posted on: January 20, 2013, 06:17:38 am |
|
|
Location: Mars Joined: Jan 2013
Posts: 16
|
Well, that particular .gm81 crashes regardless - I have not yet got it to compile in any way (I have tried all compile options). I don't know why, but if it makes a difference, it was entirely created in LateralGM, not GameMaker. With some other .gm81s I can compile, but its a little touch-and-go as to whether they will work, and sometimes they don't work correctly. For example: I am currently developing a Tower Defense game which uses a much faster algorithm than the standard instance_nearest() method, mainly based on arrays and a small amount of pre-loaded data. However, the towers don't shoot in ENIGMA, despite adjusting the code and finding other methods to code it, although they do in GameMaker.
Thanks for your help you guys, I really appreciate it.
Thanks,
Barry Smith
|
|
|
Logged
|
|
|
|
|
|