ENIGMA Forums

Outsourcing saves money => Issues Help Desk => Topic started by: edsquare on May 24, 2014, 12:34:32 AM

Title: Linux 32 bits error saving a game (SOLVED)
Post by: edsquare on May 24, 2014, 12:34:32 AM
Well just that when I finally got the time and started to work through some tutorial, load a bunch of sprites and decide to save the work done so far, Enigma throws this error:

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
   at java.util.ArrayList.rangeCheck(ArrayList.java:635)
   at java.util.ArrayList.get(ArrayList.java:411)
   at org.enigma.file.ApngIO.imagesToApng(ApngIO.java:433)
   at org.enigma.file.EFileWriter$SpriteApngWriter.writeData(EFileWriter.java:420)
   at org.enigma.file.EFileWriter$DataResourceWriter.write(EFileWriter.java:249)
   at org.enigma.file.EFileWriter.writeResource(EFileWriter.java:402)
   at org.enigma.file.EFileWriter.writeNodeChildren(EFileWriter.java:373)
   at org.enigma.file.EFileWriter.writeNodeChildren(EFileWriter.java:382)
   at org.enigma.file.EFileWriter.writeEProjectFile(EFileWriter.java:347)
   at org.enigma.file.EFileWriter.writeEgmZipFile(EFileWriter.java:331)
   at org.enigma.file.EgmIO.write(EgmIO.java:81)
   at org.lateralgm.main.FileChooser$2.run(FileChooser.java:698)
   at java.lang.Thread.run(Thread.java:744)

java.net.UnknownServiceException: protocol doesn't support output
   at java.net.URLConnection.getOutputStream(URLConnection.java:852)
   at org.lateralgm.main.FileChooser$2.run(FileChooser.java:722)
   at java.lang.Thread.run(Thread.java:744)

Found nothing in google or the forum.

Working in linuxmint15 32bits

Will try to update to the version of the 16th of this month.

I'll report back what happens.

Edit 1:

Just checked that I already updated to the version available on <code> http://enigma-dev.org/docs/Wiki/Install:Extra_Packages </code>

This is my Java info:

java version "1.7.0_51"
OpenJDK Runtime Environment (IcedTea 2.4.4) (7u51-2.4.4-0ubuntu0.13.04.2)
OpenJDK Client VM (build 24.45-b08, mixed mode, sharing)

javac 1.7.0_51

Hope this helps  :)
Title: Re: Linux 32 bits error saving a game
Post by: Goombert on May 24, 2014, 02:34:18 AM
I can't really say much, I remember fixing certain issues with sprites in some of the writers, but I can't honestly tell you about an older version.
Title: Re: Linux 32 bits error saving a game
Post by: edsquare on May 24, 2014, 08:49:52 AM
I can't really say much, I remember fixing certain issues with sprites in some of the writers, but I can't honestly tell you about an older version.

Older version? But I am working with this : <code> http://enigma-dev.org/docs/Wiki/Install:Extra_Packages </code>

Where is the newer version I should use instead? Duh!  :ohdear: never mind that last cuestion, I remembered something about git, now I can't compile it gives me this error:

edsquare@edsquare-Aspire-M1100 ~/Escritorio/enigma-dev/ENIGMAsystem/SHELL $ make
gcc -Wall -s -O3 -fno-exceptions -IPlatforms/xlib/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/BBox/Info -IWidget_Systems/None/Info -INetworking_Systems/None/Info -IUniversal_System/Info -I. -I  -MMD -MP -c -o .eobjs//Run/Graphics_Systems/General/glew.o Graphics_Systems/General/glew.c
cc1: error: para generar dependencias debe especificar -M ó -MM
g++ -Wall -s -O3 -fno-rtti -fno-exceptions -IPlatforms/xlib/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/BBox/Info -IWidget_Systems/None/Info -INetworking_Systems/None/Info -IUniversal_System/Info -I. -I -Wall -s -O3 -fno-exceptions  -MMD -MP -c -o .eobjs//Run/SHELLmain.o SHELLmain.cpp
SHELLmain.cpp:48:58: error fatal: Preprocessor_Environment_Editable/LIBINCLUDE.h: No existe el archivo o el directorio
compilación terminada.
Title: Re: Linux 32 bits error saving a game (SOLVED?)
Post by: edsquare on May 24, 2014, 01:35:03 PM
Already solved it:

Executed Enigma in a terminal

This allowed me to notice Enigma was trying (unsuccesfully) to create a make directory in .enigma

Closed Enigma and created the directory myself

Executed Enigma in a terminal no complain about the directory but i got this:
 the paraser is unhappy
and also
error unknown continuing anyway

Couldn't open what I had saved as egm, Enigma complained about the file being corrupt.

Loaded the sprites and saved with the same name but didn't choose egm, instead left the default 1200

So it saved it as .egm.project.gmx

Now it gives another error, should I open another thread?

When trying to open the saved file it complains:

There was an issue opening a data input stream

After clicking OK this is the error report I get:

org.lateralgm.file.GmFormatException: java.lang.NullPointerException: null
   at org.lateralgm.file.GMXFileReader.readProjectFile(GMXFileReader.java:323)
   at org.lateralgm.file.GMXFileReader.readProjectFile(GMXFileReader.java:234)
   at org.lateralgm.main.FileChooser$ProjectReader.read(FileChooser.java:378)
   at org.lateralgm.main.FileChooser$1.run(FileChooser.java:550)
   at java.lang.Thread.run(Thread.java:744)


I'm of to google it, wish me luck.


Edit1:
Already back, found something about a bug, supossedly fixed in newer version, but this is the version I downloaded from git this morning?

Is this a regression?

Am I doing something wrong?

Gremlins in my PC?  :D
Title: Re: Linux 32 bits error saving a game (SOLVED?)
Post by: Goombert on May 24, 2014, 09:56:29 PM
When you save, the drop down combo specifies the extension, the 1200 numbers to the right specify the actual format. Make sure they match 1200 is GMX, and turn off "force extension" when you have it in the filename.
Title: Re: Linux 32 bits error saving a game (SOLVED?)
Post by: edsquare on May 25, 2014, 12:38:48 AM
When you save, the drop down combo specifies the extension, the 1200 numbers to the right specify the actual format. Make sure they match 1200 is GMX, and turn off "force extension" when you have it in the filename.

If I turn off "force extension" and try putting it myself then ENIGMA doesn't recognise the extension in any option from 1200 to 600, the forece extension must be on for the gmx extension to be an option.

And after saving that way I keep getting the same error as I explain in the other thread.
Title: Re: Linux 32 bits error saving a game (SOLVED?)
Post by: Goombert on May 25, 2014, 12:44:47 AM
Oh it is also possible you aren't creating a folder, everybody makes this mistake with LGM. When you save a game in GMX, you must create a folder and save the game inside that folder.
Title: Re: Linux 32 bits error saving a game (SOLVED?)
Post by: edsquare on May 25, 2014, 12:54:54 AM
Oh it is also possible you aren't creating a folder, everybody makes this mistake with LGM. When you save a game in GMX, you must create a folder and save the game inside that folder.

Nope, I do create the folder even though ENIGMA does a good enough job of creatting them, maybe they don't chmod enigma?
Title: Re: Linux 32 bits error saving a game (SOLVED?)
Post by: Goombert on May 25, 2014, 12:56:06 AM
No then you do have my latest LGM, something else is going on, I can't tell without specifically seeing the GMK.
Title: Re: Linux 32 bits error saving a game (SOLVED?)
Post by: edsquare on May 25, 2014, 01:14:58 AM
No then you do have my latest LGM, something else is going on, I can't tell without specifically seeing the GMK.

Here at the belly of the moon (México City) it's fifteen past one oclock in the morning, around ten or eleven this sunday morining I will upload a GMX file so you can see it, do you need something simple or complicated? a game with only a couple of sprites or one of the demos? Do you need the GMK also?

Good night (Or is it morning there?) and thanks for all your help, latter I'll keep bugging you  ::)
Title: Re: Linux 32 bits error saving a game (SOLVED?)
Post by: Goombert on May 25, 2014, 03:31:01 AM
I need specifically a GMK that you are failing to convert to GMX. (Y)