ENIGMA Forums

General fluff => Announcements => Topic started by: Josh @ Dreamland on September 08, 2010, 04:38:46 AM

Title: ENIGMA R4
Post by: Josh @ Dreamland on September 08, 2010, 04:38:46 AM
OUTDATED
The contents/links of this page may be outdated. We have instead starting hosting our installation links and directions on the wiki: http://enigma-dev.org/docs/Wiki/Install



It's been a long road. So much has come and gone, and even just changed slightly, since the release of R3 near the end of 2008. R3, as most of you know, was basically a proof-of-concept. It demonstrated that with a little effort, it is possible to take something like Game Maker and compile it for a number of advantages. Since then, ENIGMA's philosophy has changed by leaps and bounds. What started only as a spite-fueled attempt to compile GML has evolved into a nonstop effort to develop the better scripting language.

R3 brought most of GM's language functionality to the compiled world, and with some limitations, most of C++'s as well. R4, however, has shattered the boundary between the two.

With R4's new setup, the system is astoundingly extensible, and even faster and more efficient than ever before. The newly designed instance system functions like a dream, handling the more thought-consuming concepts such as heredity automatically, by nature of its design.

C++ functions and containers are available to anyone who wants to #include them in the new resource, so far called "Definitions." By that mechanism, anyone can create C++ structures and functions for use in ENIGMA games. Even with a (constantly shrinking) list of missing features from R3, ENIGMA has never been in a better condition.

That said, as has been hinted, there is much left to do. The main system is in place and has undergone basic testing. But this release marks the public beta of the final product. Please report any and all errors you encounter immediately.

The first challenge on our list of things to work out in the beta is actually getting ENIGMA to install on all operating systems. The most anticipated release package--a simple zip file for windows--I present now, without further adieu:
ENIGMA R4 install-ready zip, for Windows (http://dl.dropbox.com/u/1052740/ENIGMA.zip)
ENIGMA R4 install-ready zip, for Mac (http://alasdairmorrison.com/enigma-mac/Enigma.pkg.zip) (mac sdk has to be preinstalled)
For this phase of the testing period, please unpack the zip and run ENIGMA.exe. It should take care of the rest for you, provided you have Java installed.

When the MinGW installer gives installation choices, just make sure G++ is checked in addition to the default.
When LGM prompts you to fetch libraries, leave the default selection of Stable as your choice, and choose Yes. This will start the installation process. Depending on your internet connection (which will need to remain up for install), this may take upwards of two minutes. It is a one-time install. Your first compile will complete the installation, and depending on your processor, can take the same amount of time. Use only "Run" for now, if you would.

Let me know how the installer treats you. Post any problems with installation here, and any other bugs on the tracker (http://enigma-dev.org/tracker/).

The reason for the delay is the amount of effort that went into setting up an update system and the user-defined functions system. Everyone who likes those features owes IsmAvatar a huge "thank you." I personally believe she did an outstanding job on the matter.
For now, C++ Definitions are persistent throughout all games, but can be saved or loaded. We'll get around to fixing them to be game-local eventually.
 
Happy coding, and I sincerely hope you enjoy the release.
Title: Re: ENIGMA R4
Post by: Josh @ Dreamland on September 08, 2010, 04:44:25 AM
When the dust settles from the installer, we will begin the function submission phase. I will make another newspost and a new board on the matter.

TGMG: When you wake, please edit the above post with a link to the ENIGMA for Mac installer.
RetroX: Seeing how the Windows system works, make sure you are happy with your packages, and post the links there as well. If you aren't allowed to edit admin posts, post a new message and one of us will add the links in.
a2h: A download page that looks like my testing page I showed you a few days ago wouldn't hurt. You know, with the OS logos.
Title: Re: ENIGMA R4
Post by: Josh @ Dreamland on September 08, 2010, 05:09:00 AM
Oh, and if you get past the installer, and it gripes about OpenAL missing, blame Dazappa and run Autoconf/oalinst.exe from ENIGMA's directory. It was dazappa's idea to just include the DLLs where the game runs instead of forcing its install, so blame him. :P

...I intend to replace OpenAL on Windows, anyway.
Title: Re: ENIGMA R4
Post by: polygone on September 08, 2010, 05:13:42 AM
It says when prompted check:

GCC C compiler
G++ C++ Compiler
GDB GNU Debugging Program

I do not see these on the list..
Title: Re: ENIGMA R4
Post by: Josh @ Dreamland on September 08, 2010, 05:15:55 AM
Polygone: Care to screenshot your list? They may be checked by default, or burried in the tree.
Title: Re: ENIGMA R4
Post by: polygone on September 08, 2010, 05:21:42 AM
(http://img237.imageshack.us/img237/3741/mingwinstall.th.png) (http://img237.imageshack.us/i/mingwinstall.png/)

Are they all included in the base tools? I don't want to install things I don't need.
Title: Re: ENIGMA R4
Post by: Josh @ Dreamland on September 08, 2010, 05:48:35 AM
I see g++ compiler on that list...
Just install that, and you'll be fine.
If GDB isn't on there, so be it.
Title: Re: ENIGMA R4
Post by: notachair on September 08, 2010, 06:17:46 AM
Wow, you've been up for a bit.

I've got physics, business studies and economics to deal with over the next two days, so I won't be able to get stuff done immediately.
Title: Re: ENIGMA R4
Post by: Josh @ Dreamland on September 08, 2010, 06:20:08 AM
Fair enough. Yeah, I think I'll head to bed now; let the community stir for a few hours. Wake up to five questions.
Title: Re: ENIGMA R4
Post by: polygone on September 08, 2010, 07:05:19 AM
It's not installing make with those settings. I tried just installing everything but there was an error doing that.
Title: Re: ENIGMA R4
Post by: Josh @ Dreamland on September 08, 2010, 07:06:45 AM
Great, that's just what I need is the official MinGW installer failing me. What was the error?
Title: Re: ENIGMA R4
Post by: polygone on September 08, 2010, 07:30:28 AM
I think it was just the connection failing, I tried reinstalling again with everything checked and it worked. However make was still not found.

Quote
Enigma cannot run because it requires the 'make' tool, which could not be found.

Unhandled Exception:
org.lateralgm.file.GmFormatException - java.io.IOException: Cannot run program "C:\MinGW\bin\make.exe" (in directory "E:\New\Kept\ENIGMA"): CreateProcess error=2, The system cannot find the file specified

Stack trace:
java.lang.ProcessBuilder.start(Unknown Source)
java.lang.Runtime.exec(Unknown Source)
java.lang.Runtime.exec(Unknown Source)
org.enigma.EnigmaRunner.make(EnigmaRunner.java:166)
org.enigma.EnigmaRunner$1.run(EnigmaRunner.java:121)
Title: Re: ENIGMA R4
Post by: luiscubal on September 08, 2010, 07:49:40 AM
Perhaps make needs to be checked separately as well?
Title: Re: ENIGMA R4
Post by: polygone on September 08, 2010, 07:50:06 AM
I checked everything that time.
Title: Re: ENIGMA R4
Post by: The 11th plague of Egypt on September 08, 2010, 07:52:43 AM
It didn't say I needed to check Make too! Do I have to install that too?

Here's another problem
(http://img339.imageshack.us/img339/9346/sshot708.th.png) (http://img339.imageshack.us/i/sshot708.png/)
Title: Re: ENIGMA R4
Post by: luiscubal on September 08, 2010, 07:53:25 AM
Is there any file named "mingw32-make" in C:\MinGW\bin? If so, make a copy and rename the copy to "make"

EDIT: You'll need to install the JRE (Java 6) too.

http://www.java.com/en/download/manual.jsp
Title: Re: ENIGMA R4
Post by: polygone on September 08, 2010, 07:56:51 AM
Yes I just realised. In winmake.txt it's directing to C:\MinGW\bin\make.exe when it's installing as C:\MinGW\bin\mingw32-make.exe

So renaming to make.exe does the trick. But yes 11th plague you do need to check win-make as well to install it using the installer.
Title: Re: ENIGMA R4
Post by: The 11th plague of Egypt on September 08, 2010, 07:59:08 AM
Hum, no. Mine points to C:\MinGW\bin\make.exe

Probably installing the MinGW-Make you messed things up.
Title: Re: ENIGMA R4
Post by: r9k on September 08, 2010, 08:08:24 AM
Code: [Select]
Running make from `/MinGW/bin/mingw32-make.exe'
Full command line: /MinGW/bin/mingw32-make.exe Game GMODE=Run GFLAGS="-O3 -s" GLINKS="-lopengl32 '../additional/zlib/libzlib.a' '../additional/al/lib/Win32/OpenAL32.lib' 'Platforms/windows/ffi/libFFI.a' -lcomdlg32 -lgdi32 -o game.exe" GRAPHICS=OpenGL PLATFORM=windows
echo Okay.
process_easy: DuplicateHandle(In) failed (e=6)
process_easy() failed to launch process (e=6)
C:\Users\r9k\AppData\Local\Temp\make3004-1.bat
Counted 1 args in failed launch
----Make returned error 2----------------------------------

When compiling any gmk
Title: Re: ENIGMA R4
Post by: polygone on September 08, 2010, 08:16:56 AM
OK got it running. It complained about OpenAL so I ran oalinst.exe but Windows is now saying 'wrap_oal.dll is either not designed to run on Windows or it contains an error'. However ignoring that error it's running correctly :)
Title: Re: ENIGMA R4
Post by: The 11th plague of Egypt on September 08, 2010, 08:19:42 AM
Quote
Unhandled Exception:
org.lateralgm.file.GmFormatException - java.io.IOException: Cannot run program "C:\MinGW\bin\make.exe" (in directory "C:\Programmi\ENIGMA"): CreateProcess error=2, Impossibile trovare il file specificato

Stack trace:
java.lang.ProcessBuilder.start(Unknown Source)
java.lang.Runtime.exec(Unknown Source)
java.lang.Runtime.exec(Unknown Source)
org.enigma.EnigmaRunner.make(EnigmaRunner.java:166)
org.enigma.EnigmaRunner$1.run(EnigmaRunner.java:121)
I had to install Make too. Then LGM worked and asked me to update some other libraries.
Title: Re: ENIGMA R4
Post by: luiscubal on September 08, 2010, 08:21:41 AM
As I mentioned earlier, if make is not found but mingw32-make is, just make a copy of mingw32-make and call it make.
Title: Re: ENIGMA R4
Post by: The 11th plague of Egypt on September 08, 2010, 08:24:20 AM
What game should I test now? Are there some standard examples?
Title: Re: ENIGMA R4
Post by: r9k on September 08, 2010, 08:25:54 AM
Try this out : http://dl.dropbox.com/u/10495683/gmk/watersimulation_shading.gmk (http://dl.dropbox.com/u/10495683/gmk/watersimulation_shading.gmk)
Title: Re: ENIGMA R4
Post by: polygone on September 08, 2010, 08:29:25 AM
Can we build up a list of things that are missing from gml somewhere?
Title: Re: ENIGMA R4
Post by: The 11th plague of Egypt on September 08, 2010, 08:31:41 AM
Can we build up a list of things that are missing from gml somewhere?
There is, here (http://enigma-dev.org/functions.htm)

BTW, my winmake.txt file points to \MinGW\bin\mingw32-make.exe but I still get an error
Quote
----Make returned error 2----------------------------------
process_easy: DuplicateHandle(In) failed (e=6)
process_easy() failed to launch process (e=6)
C:\DOCUME~1\User5\IMPOST~1\Temp\make3744-1.bat
Counted 1 args in failed launch
Title: Re: ENIGMA R4
Post by: Micah on September 08, 2010, 08:37:07 AM
Stencyl's title of most hyperbolic description of a game engine has officially been toppled.
Title: Re: ENIGMA R4
Post by: polygone on September 08, 2010, 08:37:39 AM
Quote
BTW, my winmake.txt file points to \MinGW\bin\mingw32-make.exe but I still get an error
Point it back to \MinGW\bin\make.exe but just rename mingw32-make.exe to make.exe

Quote
There is, here
That's just functions. It doesn't mention things like collisions, timelines, variables. I mean an entire list together somewhere so you can instantly know.
Title: Re: ENIGMA R4
Post by: The 11th plague of Egypt on September 08, 2010, 08:44:56 AM
Still no luck.
Quote
Full command line: /MinGW/bin/make.exe Game GMODE=Run GFLAGS="-O3 -s" GLINKS="-lopengl32 '../additional/zlib/libzlib.a' '../additional/al/lib/Win32/OpenAL32.lib' 'Platforms/windows/ffi/libFFI.a' -lcomdlg32 -lgdi32 -o game.exe" GRAPHICS=OpenGL PLATFORM=windows
echo Okay.
process_ea----Make returned error 2----------------------------------
sy: DuplicateHandle(In) failed (e=6)
process_easy() failed to launch process (e=6)
C:\DOCUME~1\User5\IMPOST~1\Temp\make3652-1.bat
Counted 1 args in failed launch
Title: Re: ENIGMA R4
Post by: TheExDeus on September 08, 2010, 08:56:58 AM
I also needed to rename make. I also installed OpenAl, but I didn't check if I even needed to. Thou when I launch LGM it asks me if I want to download r435, and when I press Yes, I think it downloads all of those files, but the next time I run LGM it asks me if I want to update to r435 again. Also, in help>about it says r456, so it asks me to download an older version?

Besides this, I can complile and run games. I tried r9k example and it runs.
Title: Re: ENIGMA R4
Post by: r9k on September 08, 2010, 08:58:10 AM
I also needed to rename make. I also installed OpenAl, but I didn't check if I even needed to. Thou when I launch LGM it asks me if I want to download r435, and when I press Yes, I think it downloads all of those files, but the next time I run LGM it asks me if I want to update to r435 again. Also, in help>about it says r456, so it asks me to download an older version?

Besides this, I can complile and run games. I tried r9k example and it runs.

Current version of enigma is r435.
Current version of LGM is r456.

Your game is running, Whats your OS ?
Title: Re: ENIGMA R4
Post by: The 11th plague of Egypt on September 08, 2010, 08:59:15 AM
I also needed to rename make. I also installed OpenAl, but I didn't check if I even needed to. Thou when I launch LGM it asks me if I want to download r435, and when I press Yes, I think it downloads all of those files, but the next time I run LGM it asks me if I want to update to r435 again. Also, in help>about it says r456, so it asks me to download an older version?

Besides this, I can complile and run games. I tried r9k example and it runs.
Same forced update here, on Win XP, and same version in About.

Plus the Make thing doesn't work.
Title: Re: ENIGMA R4
Post by: TheExDeus on September 08, 2010, 09:01:50 AM
Quote
Whats your OS ?
Win7 64bit.
Title: Re: ENIGMA R4
Post by: polygone on September 08, 2010, 09:16:06 AM
Is nobody but me getting the Windows error upon compiling 'wrap_oal.dll is either not designed to run on Windows or it contains an error'?
Title: Re: ENIGMA R4
Post by: r9k on September 08, 2010, 09:17:40 AM
Is nobody but me getting the Windows error upon compiling 'wrap_oal.dll is either not designed to run on Windows or it contains an error'?

No. What is your OS ?
Title: Re: ENIGMA R4
Post by: polygone on September 08, 2010, 09:22:49 AM
Vista 32-bit.
Title: Re: ENIGMA R4
Post by: IsmAvatar on September 08, 2010, 10:28:25 AM
HaRRiKiRi: there are 2 revisions, since there are two programs. LateralGM, or the IDE, is at r456. Enigma, the program you are interested in, is at r435. The about box will show you LGM's revision. You will only see Enigma's revision when an update is in order.



As for that always-asking-for-update problem, I've fixed this in r436 on dev's trunk. Josh can review it before making it upstream on stable.
Title: Re: ENIGMA R4
Post by: TGMG on September 08, 2010, 12:41:36 PM
I can't edit the post (or anyone elses) so here is the installer:
http://alasdairmorrison.com/enigma-mac/Enigma.pkg.zip (http://alasdairmorrison.com/enigma-mac/Enigma.pkg.zip)

Although there is an issue with the auto compilation of the compiler, it creates a file called "..\compileEGMf.dll" in the compilerSource directory, instead of compileEGMf.dylib in the parent directory.
Title: Re: ENIGMA R4
Post by: IsmAvatar on September 08, 2010, 01:01:17 PM
tgmg: CompilerSource/Makefile lines 13-27.
Your OS needs to be added to that list, or else it is considered windows.
Also, the change will need to be reflected in genmake.sh
Title: Re: ENIGMA R4
Post by: The 11th plague of Egypt on September 08, 2010, 01:08:15 PM
What can I do to fix my problem with Make? Renaming the file doesn't help.
Title: Re: ENIGMA R4
Post by: polygone on September 08, 2010, 01:10:42 PM
Try deleting and re-downloading Enigma, leaving MinGW as it is (with the rename).
Title: Re: ENIGMA R4
Post by: The 11th plague of Egypt on September 08, 2010, 01:18:03 PM
I deleted everything, redownloaded and reinstalled. Now it can't find the winmake.txt file

Quote
Unhandled Exception:
org.lateralgm.file.GmFormatException - java.io.FileNotFoundException: winmake.txt (Impossibile trovare il file specificato)

Stack trace:
java.io.FileInputStream.open(Native Method)
java.io.FileInputStream.<init>(Unknown Source)
java.io.FileReader.<init>(Unknown Source)
org.enigma.EnigmaRunner.make(EnigmaRunner.java:162)
org.enigma.EnigmaRunner$1.run(EnigmaRunner.java:121)

And it asked me to update to v457 then to v458, something is wrong.
Title: Re: ENIGMA R4
Post by: TGMG on September 08, 2010, 01:20:58 PM
tgmg: CompilerSource/Makefile lines 13-27.
Your OS needs to be added to that list, or else it is considered windows.
Also, the change will need to be reflected in genmake.sh
Thank you, its now working as of revision 438 :)
Title: Re: ENIGMA R4
Post by: The 11th plague of Egypt on September 08, 2010, 01:22:40 PM
Ok, I had to create the winmake.txt file by myself, inside I written
\MinGW\bin\mingw32-make.exe

Then it was able to download and install v458.

Still it can't run the game, here's a complete report
Code: [Select]
Building for mode (0)
Cleaning up from previous executions
Grabbing locals
Location in memory of structure: 055E0160
File version: 800

COPYING SOME F*CKING RESOURCES:
Copying sprite names [0]
Copying sound names [0]
Copying background names [0]
Copying path names [kidding, these are totally not implemented :P] [0]
Copying script names [0]
Copying font names [kidding, these are totally not implemented :P] [0]
Copying timeline names [kidding, these are totally not implemented :P] [0]
Copying object names [1]
Copying room names [1]
SYNTAX CHECKING AND PRIMARY PARSING:
0 Scripts:
"Linking" scripts
`Linking' 0 scripts in 0 passes...
Completing script "Link"
Done.
1 Objects:
 waterGenerator: 12 events:
  Event[0]:   Parsing 1 sub-events:
Check `waterGenerator::create...Done. Starting parse...Done.
  Event[3]:   Parsing 1 sub-events:
Check `waterGenerator::step...Done. Starting parse...Done.
  Event[8]:   Parsing 1 sub-events:
Check `waterGenerator::draw...Done. Starting parse...Done.
"Linking" scripts into the objects...
"Link" complete.
Writing modes and settings
Writing object switch
Writing resource names and maxima
Writing events
Checking for default code in ev[0, 0.
Checking for default code in ev[8, 0.
Checking for default code in ev[3, 0.
Linking globals
Running Secondary Parse Passes
Writing object data
Writing local accessors
Running make from `/MinGW/bin/mingw32-make.exe'
Full command line: /MinGW/bin/mingw32-make.exe Game GMODE=Run GFLAGS="-O3 -s" GLINKS="-lopengl32 '../additional/zlib/libzlib.a' '../additional/al/lib/Win32/OpenAL32.lib' 'Platforms/windows/ffi/libFFI.a' -lcomdlg32 -lgdi32 -o game.exe" GRAPHICS=OpenGL PLATFORM=windows
echo Okay.----Make returned error 2----------------------------------


process_easy: DuplicateHandle(In) failed (e=6)
process_easy() failed to launch process (e=6)
C:\DOCUME~1\User5\IMPOST~1\Temp\make3284-1.bat
Counted 1 args in failed launch
Title: Re: ENIGMA R4
Post by: IsmAvatar on September 08, 2010, 01:24:12 PM
Quote from: The 11th plague of Egypt
And it asked me to update to v457 then to v458, something is wrong.
Actually the repository has been pretty active. You probably just happened to open LGM while someone was making those changes.

However, this does alert me to the realization that it probably shouldn't update unless your particular branch (e.g. stable, tags, or dev trunk) has changed. These 2 revisions only effected the trunk.


TGMG: If you'd like to tell me what parts of Josh's post you'd like to change to reflect your changes, I can do that for you.
Title: Re: ENIGMA R4
Post by: polygone on September 08, 2010, 01:31:00 PM
Quote
Ok, I had to create the winmake.txt file by myself, inside I written
\MinGW\bin\mingw32-make.exe
It should still be renamed to make.exe

Rename mingw32-make.exe to make.exe in MinGW. Delete the Enigma folder but leave MinGW as it is. Then re-download enigma, it should create winmake.txt and find MinGW itself but if it doesn't create winmake.txt again create it using \MinGW\bin\make.exe as the parameter.
Title: Re: ENIGMA R4
Post by: TGMG on September 08, 2010, 01:33:18 PM
That would be great, it was just to add the link to the mac package under the windows one
link: http://alasdairmorrison.com/enigma-mac/Enigma.pkg.zip (mac sdk has to be preinstalled)
Title: Re: ENIGMA R4
Post by: The 11th plague of Egypt on September 08, 2010, 01:37:13 PM
Quote
Ok, I had to create the winmake.txt file by myself, inside I written
\MinGW\bin\mingw32-make.exe
It should still be renamed to make.exe

Rename mingw32-make.exe to make.exe in MinGW. Delete the Enigma folder but leave MinGW as it is. Then re-download enigma, it should create winmake.txt and find MinGW itself but if it doesn't create winmake.txt again create it using \MinGW\bin\make.exe as the parameter.

Renaming just gives a renamed error. Still the same.

Code: [Select]
Building for mode (0)
Cleaning up from previous executions
Grabbing locals
Location in memory of structure: 05550180
File version: 800

COPYING SOME F*CKING RESOURCES:
Copying sprite names [0]
Copying sound names [0]
Copying background names [0]
Copying path names [kidding, these are totally not implemented :P] [0]
Copying script names [0]
Copying font names [kidding, these are totally not implemented :P] [0]
Copying timeline names [kidding, these are totally not implemented :P] [0]
Copying object names [1]
Copying room names [1]
SYNTAX CHECKING AND PRIMARY PARSING:
0 Scripts:
"Linking" scripts
`Linking' 0 scripts in 0 passes...
Completing script "Link"
Done.
1 Objects:
 waterGenerator: 12 events:
  Event[0]:   Parsing 1 sub-events:
Check `waterGenerator::create...Done. Starting parse...Done.
  Event[3]:   Parsing 1 sub-events:
Check `waterGenerator::step...Done. Starting parse...Done.
  Event[8]:   Parsing 1 sub-events:
Check `waterGenerator::draw...Done. Starting parse...Done.
"Linking" scripts into the objects...
"Link" complete.
Writing modes and settings
Writing object switch
Writing resource names and maxima
Writing events
Checking for default code in ev[0, 0.
Checking for default code in ev[8, 0.
Checking for default code in ev[3, 0.
Linking globals
Running Secondary Parse Passes
Writing object data
Writing local accessors
Running make from `/MinGW/bin/make.exe'
Full command line: /MinGW/bin/make.exe Game GMODE=Run GFLAGS="-O3 -s" GLINKS="-lopengl32 '../additional/zlib/libzlib.a' '../additional/al/lib/Win32/OpenAL32.lib' 'Platforms/windows/ffi/libFFI.a' -lcomdlg32 -lgdi32 -o game.exe" GRAPHICS=OpenGL PLATFORM=windows
e----Make returned error 2----------------------------------
cho Okay.
process_easy: DuplicateHandle(In) failed (e=6)
process_easy() failed to launch process (e=6)
C:\DOCUME~1\User5\IMPOST~1\Temp\make4004-1.bat
Counted 1 args in failed launch

Can somebody explain me what's wrong? It worked to compile downloaded stuff, why not now?
Title: Re: ENIGMA R4
Post by: IsmAvatar on September 08, 2010, 01:50:50 PM
Prepend your drive letter and a colon to the make location in winmake.txt.

This is a feud between Josh and I. Josh provides me with the location of Make, and I call it to make Enigma. However, sometimes he provides this half-assed path, and I don't know what to do with it, and I have no way of deriving the drive letter for it.
Title: Re: ENIGMA R4
Post by: Josh @ Dreamland on September 08, 2010, 03:08:07 PM
I've updated ENIGMA.zip. Can someone confirm it fixes Java path issues?
Title: Re: ENIGMA R4
Post by: The 11th plague of Egypt on September 08, 2010, 03:33:41 PM
I still have to create the winmake file manually (it didn't happen the first time I installed Enigma). Now, should I try renaming MinGW Make or just point to it?

EDIT: I still get the same Make error when compiling a game. And I successfully downloaded v459.
Title: Re: ENIGMA R4
Post by: polygone on September 08, 2010, 03:58:52 PM
Any idea what's up with this wrap_oal.dll error?
Title: Re: ENIGMA R4
Post by: Josh @ Dreamland on September 08, 2010, 04:50:02 PM
How annoying. If any of you could join the IRC, that would help.
irc://irc.freenode.net/enigma-dev
Title: Re: ENIGMA R4
Post by: polygone on September 08, 2010, 05:18:16 PM
What exactly did you change?
Title: Re: ENIGMA R4
Post by: Josh @ Dreamland on September 08, 2010, 07:00:11 PM
Not enough, evidently. Cycling back...
Title: Re: ENIGMA R4
Post by: tdub311 on September 08, 2010, 10:39:30 PM
It's working great for me. Windows XP.
Any idea on when the compile feature will be ready?
Title: Re: ENIGMA R4
Post by: Josh @ Dreamland on September 08, 2010, 10:43:14 PM
All right, talking with different people on the matter, I've discovered that most of the errors reported here resulted from drive letter mixups and difficulty finding program files, namely because createProcess doesn't support %variables% and some people here (namely Plague) do not have English as their computer's primary language. I thought I had that corrected, but then LateralGM started throwing exceptions in Ism's latest revision, so now I'm waiting for her to fix things.

tdub311:
I'm very glad to hear it works for you. Presently, I'm reluctant to make a compile feature because I don't have a number of measures in place to take care of aesthetics, namely (1) making sure there are no external dependencies (such as OpenAL) and (2) that the outputted executable is as small as possible (you might not be horrified by an EXE size if you were to look now, but they're over a megabyte).
Title: Re: ENIGMA R4
Post by: Brett on September 08, 2010, 11:07:51 PM
Over a MB beats gamemakers of over 2MB. Not too worried about it.
Title: Re: ENIGMA R4
Post by: freezway on September 09, 2010, 12:40:44 AM
I haven't been able to get this to work. Come friday when I have spare time I will remove mingw and then run the whole shebang... I may have time to test linux tomorrow... Also, If ENIGMA works reliably enough and soon enough, my programming team for a local game design competition (where EVERYONE uses, but does not have to use, game maker. Talk to y'all in the morning.
Title: Re: ENIGMA R4
Post by: kkg on September 09, 2010, 01:28:46 AM
Windows 7 64-Bit. SVN version works fine.
Installed version:
Download > extracted > ran ENIGMA.exe
asked to download libraries, left it as stable and allowed it
Got the "missing make" error:

Unhandled Exception:
org.lateralgm.file.GmFormatException - java.io.IOException: Cannot run program "D:C:\MinGW\bin\mingw32-make.exe" (in directory "D:\ENIGMA"): CreateProcess error=2, The system cannot find the file specified

Stack trace:
java.lang.ProcessBuilder.start(Unknown Source)
java.lang.Runtime.exec(Unknown Source)
java.lang.Runtime.exec(Unknown Source)
org.enigma.EnigmaRunner.make(EnigmaRunner.java:166)
org.enigma.EnigmaRunner$1.run(EnigmaRunner.java:121)

RAWR
Title: Re: ENIGMA R4
Post by: Fede-lasse on September 09, 2010, 02:31:59 AM
Shouldn't this be called R5? It's a fifth release. Or do you guys prefer something like R4.5? :P

I have Windows 7 64-bit, but I haven't tested this release yet. Maybe I'll do sometime, I dunno. If Josh really wants me to, I'll do it, of course.
Title: Re: ENIGMA R4
Post by: Josh @ Dreamland on September 09, 2010, 08:21:53 AM
kkg:
I have corrected my part of the problem, waiting for Ism to correct hers.

fede:
This is the fourth public release.

IsmAvatar:
This is the problem. It occurs only the first time ENIGMA is run, after checking out all the files:

Code: [Select]
Calling `make`
Exception in thread "Thread-6" java.lang.NoClassDefFoundError: org/enigma/Enigma
Thread
        at org.enigma.EnigmaRunner.make(EnigmaRunner.java:194)
        at org.enigma.EnigmaRunner$1.run(EnigmaRunner.java:121)
Caused by: java.lang.ClassNotFoundException: org.enigma.EnigmaThread
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 2 more
I can confirm the make path is valid, not that the above error implies in any way that it wouldn't be. After restarting LGM, the entire system works.

This, however, seems to occur randomly, whenever a code piece is opened:
Code: [Select]
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/enigm
a/EnigmaRunner$4
        at org.enigma.EnigmaRunner.subframeAppeared(EnigmaRunner.java:725)
        at org.lateralgm.subframes.SubframeInformer.fireSubframeAppear(SubframeI
nformer.java:37)
        at org.lateralgm.subframes.ActionFrame.<init>(ActionFrame.java:205)
        at org.lateralgm.subframes.ActionFrame.<init>(ActionFrame.java:89)
        at org.lateralgm.components.ActionList.openActionFrame(ActionList.java:1
32)
        at org.lateralgm.components.ActionList$ActionListMouseListener.mouseClic
ked(ActionList.java:168)
        at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Title: Re: ENIGMA R4
Post by: IsmAvatar on September 09, 2010, 01:52:13 PM
After updating, the enigma.jar plugin needs to reload. I'm working on fixing this. In the meantime, if you experience this problem, simply restart LGM. You may need to delete compileEGMf.dll or libcompileEGMf.so before starting LGM to force the dll to rebuild.

To clarify, if you experience, after updating, an error like so:
Code: [Select]
Calling `make`
Exception in thread "Thread-6" java.lang.NoClassDefFoundError: org/enigma/Enigma
Thread

Take the following steps to correct it and complete the update:
1) Exit the program.
2) Delete compileEGMf library
 a) Windows: compileEGMf.dll
 b) Linux: libcompileEGMf.so
 c) Mac: libcompileEGMf.dylib
3) Run the program again.
Title: Re: ENIGMA R4
Post by: freezway on September 09, 2010, 04:39:39 PM
I'll test when I find time. Someone should create a zip of enigma without svn kit because my school hath blocked it. With a recent version.
Title: Re: ENIGMA R4
Post by: The 11th plague of Egypt on September 10, 2010, 01:50:40 AM
I still have to use the run.bat file to start Enigma...

And then, when it fetches libraries, it downloads MacOS stuff too.

I read I got a make error when compiling libraries, but didn't have the time to copy the console output.

Here's another odd one.
Code: [Select]
Calling `make`cd CompilerSource && C:/MinGW/bin/mingw32-make
mingw32-make[1]: Entering directory `C:/Programmi/ENIGMA/CompilerSource'
process_begin: CreateProcess(NULL, uname -s, ...) failed.
mkdir .eobjs
g++ -Wall -s  -O3   -c  backend/JavaCallbacks.cpp        -o .eobjs/JavaCallbacks.o
g++ -Wall -s  -O3   -c  backend/ideprint.cpp        -o .eobjs/ideprint.o
g++ -Wall -s  -O3   -c  cfile_parse/cfile_parse.cpp        -o .eobjs/cfile_parse.o
g++ -Wall -s  -O3   -c  cfile_parse/cfile_parse_macros.cpp        -o .eobjs/cfile_parse_macros.o
g++ -Wall -s  -O3   -c  cfile_parse/cfile_pushing.cpp        -o .eobjs/cfile_pushing.o
g++ -Wall -s  -O3   -c  cfile_parse/cparse_components.cpp        -o .eobjs/cparse_components.o
g++ -Wall -s  -O3   -c  cfile_parse/cparse_shared.cpp        -o .eobjs/cparse_shared.o
g++ -Wall -s  -O3   -c  cfile_parse/cpmain.cpp        -o .eobjs/cpmain.o
g++ -Wall -s  -O3   -c  cfile_parse/expression_evaluator.cpp        -o .eobjs/expression_evaluator.o
Title: Re: ENIGMA R4
Post by: Josh @ Dreamland on September 10, 2010, 02:41:04 AM
Plague: That's just Make stabbing at the dark to get what platform it's on. I'm not sure why it doesn't know that. But Windows doesn't support anything, so.

I'd need to see the other make error to know what's causing it.

What happens if you don't use run.bat? Can't find library? If so, Ism's working on that, I think.

Mac OS stuff comes with the Repo. I'm not sure what to do about that, really, since we decided to use SVN for updates, and SVN can't mark folders as being for a specific OS.
Title: Re: ENIGMA R4
Post by: The 11th plague of Egypt on September 10, 2010, 05:23:40 AM
Plague: That's just Make stabbing at the dark to get what platform it's on. I'm not sure why it doesn't know that. But Windows doesn't support anything, so.

I'd need to see the other make error to know what's causing it.

What happens if you don't use run.bat? Can't find library? If so, Ism's working on that, I think.
The same old error "Can not find Java" when starting Enigma.exe

Mac OS stuff comes with the Repo. I'm not sure what to do about that, really, since we decided to use SVN for updates, and SVN can't mark folders as being for a specific OS.
You could automatically delete the "wrong" directories after the download. The updater should be able to do that, right?
Title: Re: ENIGMA R4
Post by: Josh @ Dreamland on September 10, 2010, 12:14:06 PM
Heh, I suppose, but then we'd need to maintain a manifest of correct directories. Which is hard to decide on.
Title: Re: ENIGMA R4
Post by: TheExDeus on September 11, 2010, 04:07:17 AM
So... I still get "update to ..." problem. Every time I do it, it just asks me again.
Title: Re: ENIGMA R4
Post by: IsmAvatar on September 11, 2010, 05:01:51 PM
HaRRiKiRi: This is probably one of the following:
1) You really do need to update... or
2) It's picking up updates from another branch/tag/trunk that is not yours. This will be fixed in the near future. If you update, and no revisions are made, and it still needs an update, then
3) You've modified one of the files that SVN plays with. At this time the plugin reads versioned modifications as "Needs Update". I plan to add better support for this in the near future, but in the meantime, consider not modifying versioned files. One of the big goals of LGM/Enigma is that you shouldn't need to modify our files - just create your own in a format that is a lot more user-friendly.
Title: Re: ENIGMA R4
Post by: Osl112 on December 28, 2010, 05:38:37 PM
Excuse me if this has been somewhere along the line or solved, but I haven't found it. Blame me if it has, my eyes have probably gone blurry from all this typewriter-esk font being pasted everywhere. I'm not a technophobe either, or at least I wasn't.

I've installed all of MinGW and have gotten onto the libraries. Now after ordering it to fetch the stable libraries, it comes up with the following:

Code: [Select]
Unhandled Exception:
org.lateralgm.file.GmFormatException - org.tmatesoft.svn.core.SVNException: svn: Cannot create new file 'C:\Program Files (x86)\LateralGM\.svn\lock': The system cannot find the path specified

Stack trace:
org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:85)
org.tmatesoft.svn.core.internal.wc.SVNFileUtil.createEmptyFile(SVNFileUtil.java:336)
org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea14.createVersionedDirectory(SVNAdminArea14.java:1579)
org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea16Factory.doCreateVersionedDirectory(SVNAdminArea16Factory.java:30)
org.tmatesoft.svn.core.internal.wc.admin.SVNAdminAreaFactory.createVersionedDirectory(SVNAdminAreaFactory.java:274)
org.tmatesoft.svn.core.internal.wc.admin.SVNAdminAreaFactory.createVersionedDirectory(SVNAdminAreaFactory.java:281)
org.tmatesoft.svn.core.wc.SVNUpdateClient.doCheckout(SVNUpdateClient.java:941)
org.enigma.EnigmaUpdater.checkout(EnigmaUpdater.java:191)
org.enigma.EnigmaUpdater.checkForUpdates(EnigmaUpdater.java:56)
org.enigma.EnigmaRunner.attemptUpdate(EnigmaRunner.java:362)
org.enigma.EnigmaRunner$1.run(EnigmaRunner.java:121)

After I ok that, it comes up with even more fun and joy!

Code: [Select]
Unhandled Exception:
org.lateralgm.file.GmFormatException - java.io.FileNotFoundException: winmake.txt (The system cannot find the file specified)

Stack trace:
java.io.FileInputStream.open(Native Method)
java.io.FileInputStream.<init>(Unknown Source)
java.io.FileReader.<init>(Unknown Source)
org.enigma.EnigmaRunner.make(EnigmaRunner.java:162)
org.enigma.EnigmaRunner$1.run(EnigmaRunner.java:121)

After that it tells me that "ENGIMA: Unable to communicate with the library, either because it could not be found or uses methods different from those expected.

"The exact error is:
Unable to load library 'compileEGMf'. The specified module could not be found.

So, all in all, it doesn't like me. I'm running Windows 7 btw, 64 bit.

Any help is appreciated; I will start afresh to see if I can solve this myself (and edit this if I can) but otherwise, I need a little  :eng101:. You can slap me with a wet fish if I've missed anything ;)


Attempt 2:

I'm only getting the "compileEGMf" error now. I reran ENGIMA.exe and didn't get any "compileEGMf" error, but when I just opened LGM; guess what appeared?

Sorry, I must be going bone idol. Anyone up for helping me? I'll start over again later.
Title: Re: ENIGMA R4
Post by: freezway on December 28, 2010, 06:02:49 PM
you might try the code from the svn.
Title: Re: ENIGMA R4
Post by: IsmAvatar on December 29, 2010, 01:32:14 AM
I agree. You're experiencing a dozen different problems here which I don't know if we've corrected half of them with later revisions or what. Truth is, the zip has become dreadfully outdated now. I'd recommend doing a fresh checkout from the SVN. Join the IRC for more instructions. It's ok to experience problems with it, it's probably not your fault, it's probably ours - stuff we still need to fix. So do report your problems before you just hack it together to work for yourself, but also realize that we have broken some of our older release stuff that should have been kept stable or at least updated. Meh, it's a work in progress, what can I say.