ENIGMA Forums

Outsourcing saves money => Issues Help Desk => Topic started by: HitCoder on January 29, 2015, 01:13:41 PM

Title: Can't open egm project on Linux [SOLVED]
Post by: HitCoder on January 29, 2015, 01:13:41 PM
OS: Linux Mint 17.1 Rebecca - XFCE
Machine: Lenovo G505
Java version: Java JDK 7 Runtime
Error:
(http://i.imgur.com/ZWNxUTh.png)
Code: [Select]
Operating System: Linux
Version: 3.13.0-37-generic
Architecture: amd64

Java Vendor: Oracle Corporation
Version: 1.7.0_65

Available processors (cores): 4
Free memory (bytes): 102934648
Maximum memory (bytes): 777519104
Total memory available to JVM (bytes): 151519232

File system root: /
Total space (bytes): 38107922432
Free space (bytes): 26067496960
Usable space (bytes): 24108077056

Stack trace:
java.lang.NullPointerException
at org.enigma.file.EFileReader.readResource(EFileReader.java:666)
at org.enigma.file.EFileReader.processEntries(EFileReader.java:644)
at org.enigma.file.EFileReader.readNodeChildren(EFileReader.java:622)
at org.enigma.file.EFileReader.readEgmFile(EFileReader.java:560)
at org.enigma.file.EFileReader.readEgmFile(EFileReader.java:538)
at org.enigma.file.EgmIO.read(EgmIO.java:56)
at org.lateralgm.main.FileChooser$1.run(FileChooser.java:564)
at java.lang.Thread.run(Thread.java:745)

When I try to run the game it crashes LateralGM. Everything appears fine in editor at first glance however, and it appears that I can edit most assets perfectly fine.
Title: Re: Can't open egm project on Linux
Post by: TheExDeus on January 29, 2015, 02:53:19 PM
Right now the new LGM cannot load egm files. It was broken recently, so if you updated LGM then it might not work. I think Robert should take down that version.
It is possible that this is a different problem though. Like previously EGM files changed the room format. So it might mean you will have to delete rooms and recreate them. Or just save it to gmk/gmx in the last version where it worked fine and then load that gmk/gmx in this new version. EGM sadly still doesn't save rooms in xml format, which just seems sad, but I don't code LGM so I cannot easily change that. Making a format that doesn't break is actually VERY trivial, but sadly we have not been able to do it because of lack of developers.
Title: Re: Can't open egm project on Linux
Post by: HitCoder on January 29, 2015, 04:08:07 PM
Oh, ok. If I had enough experience in Java, I may have been able to help, but I have only had experience messing with Minecraft's source code...
Title: Re: Can't open egm project on Linux
Post by: edsquare on January 30, 2015, 01:46:03 AM
Right now the new LGM cannot load egm files. It was broken recently, so if you updated LGM then it might not work. I think Robert should take down that version.
It is possible that this is a different problem though. Like previously EGM files changed the room format. So it might mean you will have to delete rooms and recreate them. Or just save it to gmk/gmx in the last version where it worked fine and then load that gmk/gmx in this new version. EGM sadly still doesn't save rooms in xml format, which just seems sad, but I don't code LGM so I cannot easily change that. Making a format that doesn't break is actually VERY trivial, but sadly we have not been able to do it because of lack of developers.

I asked where do you actually set/make the file formats, still no response.
Title: Re: Can't open egm project on Linux
Post by: TheExDeus on January 30, 2015, 05:59:42 AM
You asked who? Robert? He has been online more sparingly recently, so you might end up waiting a little.
Title: Re: Can't open egm project on Linux
Post by: edsquare on January 31, 2015, 02:12:17 PM
You asked who? Robert? He has been online more sparingly recently, so you might end up waiting a little.

It was an open question on a post where I complained exactly about the same thing : EGM not working

I imagine the declaration, etc. of the file formats is done in LGM, but where?
Title: Re: Can't open egm project on Linux
Post by: HitCoder on January 31, 2015, 05:10:13 PM
have the repositories been updated for Enigma yet? If not, how long? Will I have to copy my files from my windows install?
Title: Re: Can't open egm project on Linux
Post by: edsquare on January 31, 2015, 09:20:23 PM
have the repositories been updated for Enigma yet? If not, how long? Will I have to copy my files from my windows install?

I have an old lgm/enigma combo that works correctly on linux and that opens and saves to egm, tomorrow I'll upload it somewhere and give you the link
Title: Re: Can't open egm project on Linux
Post by: HitCoder on February 08, 2015, 09:53:16 AM
Ah, however you did not send me that link. :P
anyway, I tried the version that works on windows, but got a few errors, so I tried to run the install.py, it appeared to work ok, then I opened it, and got this:
(http://i.imgur.com/7XWxkVK.png) (http://i.imgur.com/7XWxkVK.png)
I updated my jars, however, it is still the same error.
Title: Re: Can't open egm project on Linux
Post by: edsquare on February 08, 2015, 10:52:53 AM
Ah, however you did not send me that link. :P
anyway, I tried the version that works on windows, but got a few errors, so I tried to run the install.py, it appeared to work ok, then I opened it, and got this:
(http://i.imgur.com/7XWxkVK.png) (http://i.imgur.com/7XWxkVK.png)
I updated my jars, however, it is still the same error.

Sorry to much work with my classes, completely forgot about it. Here it is:
Code: [Select]
http://www53.zippyshare.com/v/ADgdipQp/file.html
On second thought maybe it's this one:
Code: [Select]
http://www74.zippyshare.com/v/fJqyHUUL/file.html

That is the same error I got before Robert fixed the compiler to use C++11
Title: Re: Can't open egm project on Linux
Post by: HitCoder on February 08, 2015, 11:10:29 AM
I still have that error in the version you sent me in "Enigma.zip"
The version in the other zip appears to be too old. It doesn't even have the run functions from current Enigma.

EDIT: This time I got a full error report, here it is:

Code: [Select]
Operating System: Linux
Version: 3.13.0-37-generic
Architecture: amd64

Java Vendor: Oracle Corporation
Version: 1.7.0_75

Available processors (cores): 4
Free memory (bytes): 41804848
Maximum memory (bytes): 777519104
Total memory available to JVM (bytes): 94896128

File system root: /
Total space (bytes): 38107922432
Free space (bytes): 12669988864
Usable space (bytes): 10710568960

Stack trace:
java.lang.UnsatisfiedLinkError: Unable to load library 'compileEGMf': Native library (linux-x86-64/libcompileEGMf.so) not found in resource path ([file:/home/hitcoder/enigma/plugins/enigma.jar])
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:271)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:398)
at com.sun.jna.Library$Handler.<init>(Library.java:147)
at com.sun.jna.Native.loadLibrary(Native.java:412)
at com.sun.jna.Native.loadLibrary(Native.java:391)
at org.enigma.EnigmaRunner.attemptLib(EnigmaRunner.java:252)
at org.enigma.EnigmaRunner.access$1(EnigmaRunner.java:245)
at org.enigma.EnigmaRunner$3.run(EnigmaRunner.java:183)
Title: Re: Can't open egm project on Linux
Post by: HitCoder on February 10, 2015, 04:22:55 PM
Just a reminder, this still isn't fixed, however, I'll try redownloading it.
Title: Re: Can't open egm project on Linux
Post by: TheExDeus on February 10, 2015, 05:14:12 PM
The "unable to load library" is usually just the issue that the library cannot be found. Either it's not compiled or there is path issue. Downloading new ENIGMA with new LGM will not help, because it has the egm bug. It has not been fixed and the LGM is not reverted. I'm totally not sure why. I think more than one person should have access to all that, so this can be dealt with in timely matter, not wait for Robert to show up. At least he could of reverted the .jar to a working one, before leaving for IRL stuff.

This is the ENIGMA I use and it works fine - https://portal.emakonis.lv/Shares/Home.aspx?ShareID=7d579156-05be-4825-97d5-08ee2ec32834
It has the .jar's, .exe and additional's. As you are running linux then of course you can ignore those two (and ENIGMA should ignore them for you). So run .jar and see if it works now. This also loads egm's and doesn't corrupt them.
Title: Re: Can't open egm project on Linux
Post by: Darkstar2 on February 11, 2015, 06:24:02 PM
Right now the new LGM cannot load egm files. It was broken recently, so if you updated LGM then it might not work. I think Robert should take down that version.

See that's the big problem that plagues this project, things that were working fine, get broken, and the things getting broken pile up.
What was that expression ? Don't break what's not fixed ? :P What a damn shame - some of us prefer the EGM format over the other formats.
If I knew enough about crap JAVA I would have done some big changes to LGM myself even my own format, yeah lot of new things added indeed, but breaking / crashing some things along the way.  EGM should have been left alone and instead do the tests into an alternate format that is a duplicate of EGM to test on as to not break EGM.
I was thinking of an xEGM format along the way.

One thing, this LGM has become an unstable rubbish.

I was thinking eventually of making my own IDE but since I am not skilled enough to know how to interface with the compiler, I could probably manage to do my own mini IDE/ IDE that creates an EGM file - that I can then load in LGM and compile :P  That might be in some distant project of mine.

Title: Re: Can't open egm project on Linux
Post by: egofree on February 12, 2015, 03:27:21 AM
If I knew enough about crap JAVA

The problem is NOT about JAVA, but about testing and quality. This doesn't depend about the language used. I just hope that LGM will not be left because of these problems, because i spent many hours adding new features, and i tried always to do quality.  >:(
Title: Re: Can't open egm project on Linux
Post by: HitCoder on February 12, 2015, 05:38:23 PM
If anyone ever makes an IDE, then make it use tabs instead of scattered windows like that of gamemaker.

Also, thank you ExDeus, I will use that if it works.

EDIT: I am getting the exact same error as before.

EDIT2: I copied the jars from the version I use on windows into the one I built on Linux, it appears to be working perfectly so far...

EDIT3: I got this error upon compiling/testing "Line 9, position 13 (absolute 485): Invalid assignment to function `time'"
It works fine in windows :/

EDIT4: I changed the variable because it may be a conflict, so far so good though, so yeah....
Title: Re: Can't open egm project on Linux
Post by: TheExDeus on February 12, 2015, 06:41:04 PM
Yeah, "time" is probably taken. We already made everything to be in enigma_user:: namespace, but for some reason POSIX C functions keep polluting it. But it is weird that your Windows version worked, but my didn't. It's possible that some Linux regression has happened before Windows one.

Also, is Robert dead?
Title: Re: Can't open egm project on Linux
Post by: HitCoder on February 13, 2015, 07:30:36 PM
I still got an error, it took so long to report it though, I didn't bother updating the post because I was too tired, but yea. - Also, I lost the log, but I couldn't find anything that explained it, but in the terminal it literally just printed '3' at the end, no other info. In the compiler dialouge, it just said failed to compile...

Also, I hope he's not, he's been really helpful, we can't afford to lose him!
Title: Re: Can't open egm project on Linux
Post by: HitCoder on March 29, 2015, 08:51:20 AM
Okay, so I don't mean to bump this, but I have not got anywhere, here's the output for the last few lines of the compiler log: http://pastebin.com/1FEhkceF
And here's the same from the Terminal
Code: [Select]
Writing local accessors
Writing font data
Writing room data
Writing shader data
Running make from `make'
Full command line: make Game WORKDIR="/home/hitcoder/.enigma/" GMODE=Run GRAPHICS=OpenGL1 AUDIO=OpenAL COLLISION=Precise WIDGETS=None NETWORKING=None PLATFORM=xlib CXX=g++ CC=gcc CXXFLAGS="-std=c++11" COMPILEPATH="Linux/Linux" EXTENSIONS=" Universal_System/Extensions/Alarms Universal_System/Extensions/Timelines Universal_System/Extensions/Paths Universal_System/Extensions/MotionPlanning Universal_System/Extensions/DateTime Universal_System/Extensions/ParticleSystems Universal_System/Extensions/DataStructures" OUTPUTNAME="/tmp/egm8595916109687287675.tmp" eTCpath=""


*********** EXECUTE
  `/usr/bin/make`
  `Game`
  `WORKDIR=/home/hitcoder/.enigma/`
  `GMODE=Run`
  `GRAPHICS=OpenGL1`
  `AUDIO=OpenAL`
  `COLLISION=Precise`
  `WIDGETS=None`
  `NETWORKING=None`
  `PLATFORM=xlib`
  `CXX=g++`
  `CC=gcc`
  `CXXFLAGS=-std=c++11`
  `COMPILEPATH=Linux/Linux`
  `EXTENSIONS= Universal_System/Extensions/Alarms Universal_System/Extensions/Timelines Universal_System/Extensions/Paths Universal_System/Extensions/MotionPlanning Universal_System/Extensions/DateTime Universal_System/Extensions/ParticleSystems Universal_System/Extensions/DataStructures`
  `OUTPUTNAME=/tmp/egm8595916109687287675.tmp`
  `eTCpath=`



3

EDIT: It works with no issues at all on windows, but it appears to be something to do with the ini functions. Would this be because Linux does not support ini files?
If it is, how do I store settings??

EDIT2: Okay, I'm pretty sure that's the problem, INI files are obviously a windows thing, and Linux doesn't use them. Looks like Linux users will not be able to save their settings for now :/
Title: Re: Can't open egm project on Linux
Post by: TheExDeus on March 29, 2015, 12:35:53 PM
ENIGMA on Linux has a special Ini extension, so you can use ini's on Linux. You just probably have to enable it on Linux (and disable on Windows).

But this problem is unrelated to the EGM project not opening correct (the original topic)?
Title: Re: Can't open egm project on Linux
Post by: HitCoder on March 29, 2015, 02:40:45 PM
Yes.. sorry for straying off topic, but aside from that, I had an issue on Linux and still couldn't run my game on Linux, to technically the issue was not fixed. I apologise for going off topic, however I didn't see a need for creating a new thread (I have created enough of those here already that are ongoing right now)
Title: Re: Can't open egm project on Linux
Post by: TheExDeus on March 29, 2015, 05:36:16 PM
So does enabling the ini extension fix your problem on Linux?
Title: Re: Can't open egm project on Linux
Post by: HitCoder on March 30, 2015, 08:03:48 AM
Yes, it does. Sorry for forgetting to include that in my last message. Thanks for all the help. ^^