ENIGMA Forums

Outsourcing saves money => Issues Help Desk => Topic started by: The 11th plague of Egypt on June 06, 2014, 12:06:30 pm

Title: Error - ENIGMA: Unable to communicate with library
Post by: The 11th plague of Egypt on June 06, 2014, 12:06:30 pm
Today I decided to try out the latest zip and couldn't even get through the first start.
I got the error you see in the screenshot.

(http://s30.postimg.org/r9menx2nx/2014_06_06_19_47_01_Greenshot.jpg) (http://postimg.org/image/r9menx2nx/)

When I restarted, the error did not appear again, but nothing works.
I'm on Windows 7 x64 SP1 - Italian version, if it makes a difference.
Title: Re: Error - ENIGMA: Unable to communicate with library
Post by: Goombert on June 06, 2014, 12:16:47 pm
I just did a fresh extraction and I am unable to reproduce this. Please delete all copies of ENIGMA, navigate to C:/ProgramData and delete the folder "ENIGMA" and then redownload the latest Portable ZIP, extract it, and run enigma.exe

Report back if the issue persists.
Title: Re: Error - ENIGMA: Unable to communicate with library
Post by: The 11th plague of Egypt on June 07, 2014, 07:02:48 am
Deleted the ENIGMA folder, the ProgramData folder and downloaded the latest zip.
Same error.

I have JRE 7u60 32bits installed. Removed JDK and all other stuff.

Code: [Select]
java.lang.UnsatisfiedLinkError: Unable to load library 'compileEGMf': Native library (win32-x86/compileEGMf.dll) not found in resource path ([file:/C:/Programmini/ENIGMA/enigma-dev/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: Error - ENIGMA: Unable to communicate with library
Post by: Goombert on June 07, 2014, 07:16:58 am
Ok a couple of things.

A) Run ENIGMA with administrative privileges, if that does not work, move on to part B.

B) Does the library exist? If not move on to part C. "C:/Programmini/ENIGMA/enigma-dev/compileEGMf.dll"

C) Open a command line, cd to enigma-dev/CompilerSource, run make, then go back and try ENIGMA again.
Title: Re: Error - ENIGMA: Unable to communicate with library
Post by: The 11th plague of Egypt on June 07, 2014, 07:44:48 am
A) same error after resetting and trying again with admin priviledges

B) no, only file with that name is .cbp

C) error running make (this time without resetting after step A)
"accesso negato" means "access denied"
"impossibile trovare" means "cannot find"

(http://s30.postimg.org/q1u1f0wal/2014_06_07_15_43_17_C_Windows_system32_cmd_exe.jpg) (http://postimg.org/image/q1u1f0wal/)
Title: Re: Error - ENIGMA: Unable to communicate with library
Post by: Josh @ Dreamland on June 07, 2014, 07:57:49 am
That's wild. Could you try running it from git bash? I'm not sure where it is getting that "-------" is a file, but if I had to guess, I'd say it's from one of two things:

1) The way command line arguments are being parsed. It's possible something happened that caused parameters to be interpreted as filenames, and then a sort moved all the hyphens to the front. This is unlikely, but....
2) Someone had merge errors before he distributed the zip, and somewhere in the makefile you'll see <<<<<<<<<<<<, ------------ and >>>>>>>>>>>>. I say this is unlikely because Robert doesn't have the same problem, and you said the zip is fresh.

Could you check over the makefiles to look for oddities?
Title: Re: Error - ENIGMA: Unable to communicate with library
Post by: TheExDeus on June 07, 2014, 09:11:04 am
Yes, try running git-bash.bat from the same folder where ENIGMA.exe is. Then type "cd enigma-dev" and then "mingw32-make". It should compile the compileEGMf.dll and put it in enigma-dev.
Title: Re: Error - ENIGMA: Unable to communicate with library
Post by: The 11th plague of Egypt on June 07, 2014, 10:17:02 am
Yes, try running git-bash.bat from the same folder where ENIGMA.exe is. Then type "cd enigma-dev" and then "mingw32-make". It should compile the compileEGMf.dll and put it in enigma-dev.
Ok! Doing this, compileEGMf.dll is created.

I cannot import my old project, though.
http://sandbox.yoyogames.com/games/147289/download

Is there a very simple game you use for testing?
I'm not sure this really installed correctly.
Title: Re: Error - ENIGMA: Unable to communicate with library
Post by: TheExDeus on June 07, 2014, 02:05:56 pm
Try compiling an empty room first.
Title: Re: Error - ENIGMA: Unable to communicate with library
Post by: The 11th plague of Egypt on June 07, 2014, 06:15:50 pm
Try compiling an empty room first.
It works with no room at all, even in debug mode.
It also works with a single room.
Title: Re: Error - ENIGMA: Unable to communicate with library
Post by: Goombert on June 08, 2014, 06:10:53 am
So is this resolved?
Title: Re: Error - ENIGMA: Unable to communicate with library
Post by: The 11th plague of Egypt on June 08, 2014, 06:23:17 am
So is this resolved?
More or less, but it required manual compilation of the dll to work.
I'd like the next zip to work that on its own, like it's supposed to do.

I've got some other issues importing my old project, but maybe I should start a different thread for that, right?
Title: Re: Error - ENIGMA: Unable to communicate with library
Post by: Goombert on June 08, 2014, 06:24:19 am
Yes please start another topic for that. But, let me ask you to clarify what you did here, and how I can fix the Portable ZIP for you.
Title: Re: Error - ENIGMA: Unable to communicate with library
Post by: The 11th plague of Egypt on June 08, 2014, 07:54:36 am
Yes please start another topic for that. But, let me ask you to clarify what you did here, and how I can fix the Portable ZIP for you.
Delete the ENIGMA folder in ProgramData
Decompress the zip

Run git-bash.bat from the same folder where ENIGMA.exe is.
Type "cd enigma-dev" and then "mingw32-make".
If those steps are not taken, then compileEGMf.dll cannot be found (because it's not present).

Start ENIGMA.