Pages: 1
Author Topic: A quick question about .lib files.  (26,812 Views)
Offline (Unknown gender) TOT_COMICS

Member
Joined: Nov 2014
Posts: 2
View profile
Posted on: November 03, 2014, 05:08:02 PM
 Ok, this is probably a n00b question but a quick google search and forum search didn't give me an answer. How exactly do you add Game Maker .lib files into Enigma?  I can't seem to figure out which directory to put the .lib files into....

Enigma certainly seems to have more directories in it than Game Maker ever did :P
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #1 Posted on: November 03, 2014, 06:44:38 PM
Howdy TOT_COMICS! Most of the LateralGM directories are not actually created automatically, this is because we release it as a single jar because it can be used separately from ENIGMA to just edit files but not run them. We hook ENIGMA which is C++ in using a Java plugin, which is in enigma-dev/plugins/engima.jar

So to add libs you want to create the folder "lib" next to lateralgm.jar and place the libs inside that folder. We also have our own action lib maker that supports LGM's LGL format and GM's lib format, but it doesn't really matter you can use .libs or .lgl's we support both action library formats in LateralGM.
http://enigma-dev.org/forums/index.php?topic=1517.0

Just like GameMaker you will need to restart for the action library to be loaded. I hope you find my response helpful, and let me know how it goes! (Y)

Also I did a quick test to make sure my instructions were correct and I was able to use the following 3D Action Library from the GMC.
http://gmc.yoyogames.com/index.php?showtopic=286088

It appears we however do not support the transparency key in them, for which I have opened a support ticket.
https://github.com/IsmAvatar/LateralGM/issues/161


Edit: I have fixed the transparency bug on the tracker and it will be fixed in the next minor release of LGM and I will post it in my other topic.
http://enigma-dev.org/forums/index.php?topic=2269.0
Offline (Unknown gender) TOT_COMICS

Member
Joined: Nov 2014
Posts: 2
View profile
Reply #2 Posted on: November 04, 2014, 07:09:40 AM
Thank you for your help, the .lib file loaded right up. No wonder I could not find where to put it, I didn't know I had to go a make the directory I was looking for myself  ::)

I tried to import a game that I made in Game Maker 8.0 into Enigma and every single save or load drag and drop command I ever used caused an error. So I removed all of the save and load commands just to see what would happen and I ended up with a C++ compile fail.

I've never used Enigma before so I'm just fiddling around right now to see what I can get. Got any ideas what's going on with the save load/compile stuff?
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #3 Posted on: November 04, 2014, 07:26:53 AM
Well a good place to start is the Wiki there is obviously a couple of differences in the two software and certain things we haven't gotten to yet.

http://enigma-dev.org/docs/Wiki/GM_Incompatibilities

The following page lists unimplemented functions.
http://enigma-dev.org/docs/Wiki/Unimplemented

One such feature not currently implemented is the save and load game functions. We need to write serialized dump methods for objects to dump all their variables, additionally the save and load functions from GM are extremely inefficient because they save things they shouldn't. Important to note is that ENIGMA does not sandbox file functions, so you can read and write files the same in GM except you can do it anywhere on the computer or device.

I can't really say much on the compile failure without seeing the output log, we basically just spit out mingw's output, mingw is the C++ compiler we use, JustDefineIt is our parser written by JoshDreamland which translates your game and GML into C++ or JavaScript and then we use a compiler to build and link it with certain libraries, in this case MinGW on Windows and GCC on Linux and Mac.

Please visit http://www.pastie.org or http://www.pastebin.com and send me the link to the output log. Additionally if you would like you can private message me the source file and I can attempt to build it on my end as well.
Pages: 1