Woffelson
 Joined: Aug 2015
Posts: 9
|
 |
Posted on: August 08, 2015, 09:40:01 AM |
|
|
|
I made an fresh installation on Linux. Lateralgm is doing fine but I don't have the enigma tab where I guess should be the compile and other stuff. I obviously did something wrong in the installation but how do I fix it? I have plugins folder and enigma.jar there but don't know what to do about it. I also tried the "make" command but that was after launching lateralgm first time if it has to do anything about that...
|
|
|
TheExDeus
 Joined: Apr 2008
Posts: 1,860
|
 |
Reply #1 Posted on: August 08, 2015, 12:50:06 PM |
|
|
|
And LGM doesn't trow an error about something missing? enigma.jar must be in \plugins jna.jar must be in \plugins\shared compileEGMf.dll/.so must be in the same directory as LGM. On first run LGM tries to compile it, but for me on Windows that usually doesn't work. So I go to the folder via CMD and type "mingw32-make" or in your case "make". That should run the makefile there and compile the .so.
|
|
|
Woffelson
 Joined: Aug 2015
Posts: 9
|
 |
Reply #2 Posted on: August 08, 2015, 02:08:36 PM |
|
|
Yeah, there weren't any errors about missing plugins. The file was libcompileEGMf.so but I got the build tab working by moving the plugins folder into the enigma-dev folder, thank you! When I installed lgm & enigma etc. that folder was originally separated. I had same kind of problem in the beginning with lateralgm.jar, it was installed separately outside the enigma-dev and started working after moving it there. This being noticed I'm now curious about a separate folder ENIGMAsystem, where is a folder named additional. There's ENIGMAsystem in enigma-dev as well but does that need the mentioned "additional" folder? (I hope I explained enough clearly because this seems to be one of the most experienced computer stuff I've ever done.)
|
|
|
TheExDeus
 Joined: Apr 2008
Posts: 1,860
|
 |
Reply #3 Posted on: August 08, 2015, 08:02:48 PM |
|
|
How exatcly did you install ENIGMA? It seems you used the installer or something, but that is only for Windows. QuoteI had same kind of problem in the beginning with lateralgm.jar, it was installed separately outside the enigma-dev and started working after moving it there. This being noticed I'm now curious about a separate folder ENIGMAsystem, where is a folder named additional. There's ENIGMAsystem in enigma-dev as well but does that need the mentioned "additional" folder? (I hope I explained enough clearly because this seems to be one of the most experienced computer stuff I've ever done.) "additional" folder is only for Windows and is only included in the windows installer. It holds all the libraries/dependencies ENIGMA needs. On Linux you must use the package managers to get them. There should only be one "ENIGMAsystem" folder and that should be in "enigma-dev" or more precisely the parent directory (the directory which has the .so and the lgm.jar). Did you use these instructions: http://enigma-dev.org/docs/Wiki/Install:Linux ? And the .jar's should be from here: http://enigma-dev.org/docs/Wiki/Install:Extra_Packages . I don't think the mentioned install.py is updated enough.
|
|
|
Woffelson
 Joined: Aug 2015
Posts: 9
|
 |
Reply #4 Posted on: August 13, 2015, 08:36:23 AM |
|
|
I used the install.py but I also installed the packages from those links mentioned and I used those Linux instructions as well. At least so far the software is working, although every of my gm-projects aren't working yet.
|
|
|
TheExDeus
 Joined: Apr 2008
Posts: 1,860
|
 |
Reply #5 Posted on: August 13, 2015, 09:37:44 AM |
|
|
|
So you can compile and run a simple "Hello World!"?
GM compatibility was never a "one-click" thing and it's possible in the future it might be even harder. But you should be able to easily rewrite the offending code. Also post here the errors and someone will probably be able to help.
|
|
|
Woffelson
 Joined: Aug 2015
Posts: 9
|
 |
Reply #6 Posted on: August 13, 2015, 11:28:13 AM |
|
|
|
I can even compile some of the simple gm-projects (prototype engines) of mine.
This might go off-topic but what comes to writing the code, the thing that really puzzles me is the language compatibility. For example I found that draw_line_width_colour in GML is actually draw_line_width_color in EDL. I discovered that accidentally but there might be many more different functions and if I start to write code it would be good to know all the exceptions whether I'm importing or making everything with LGM/Enigma. GML is the only "programming" language I can handle, I know nothing about C++. Is there any kind of list or such to track the differences between GML and EDL?
|
|
|
TheExDeus
 Joined: Apr 2008
Posts: 1,860
|
 |
Reply #7 Posted on: August 13, 2015, 06:02:42 PM |
|
|
Yeah, we don't use the UK English. Originally all functions in GM was _color, and only YYG started adding colour and such. This broke style, so we kept with US English. A small list of incompatibilities can be found in the wiki: http://enigma-dev.org/docs/Wiki/GM_Incompatibilities as well http://enigma-dev.org/docs/Wiki/Deprecated_GML . Note they are from 2013 so some things could be no longer valid. They do seem to cover the most important parts, like "if -20" being true instead of false like in GM. This is important when using collision functions, as you must check "!=noone" or else it will fire all the time.
|
|
|
Woffelson
 Joined: Aug 2015
Posts: 9
|
 |
Reply #8 Posted on: August 14, 2015, 10:22:20 AM |
|
|
|
Okey thanks. However I'm wondering how the letter-keys work. For example vk-left and such are higlighted red but ord("A") is blue.
|
|
|
TheExDeus
 Joined: Apr 2008
Posts: 1,860
|
 |
Reply #9 Posted on: August 14, 2015, 12:25:01 PM |
|
|
|
That is because vk_left is constant. Constants are red. ord() is a function, that is why it is blue. GM didn't add constants for letter/number keys, so it relies on that function just like us. Technically we could make constants for letters too, like vk_a, vk_A, vk_b and so on. That is a thought I could consider.
|
|
|
|