Pages: 1
  Print  
Author Topic: Linux 32 bits error saving a game (SOLVED)  (Read 1584 times)
Offline (Male) edsquare
Posted on: May 24, 2014, 12:34:32 AM

Member
Location: The throne of ringworld
Joined: Apr 2014
Posts: 402

View Profile
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  :)
« Last Edit: May 28, 2014, 12:48:31 PM by edsquare » Logged
A child of five would understand this. Send someone to fetch a child of five.
Groucho Marx
Offline (Male) Goombert
Reply #1 Posted on: May 24, 2014, 02:34:18 AM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3107

View Profile
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.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Male) edsquare
Reply #2 Posted on: May 24, 2014, 08:49:52 AM

Member
Location: The throne of ringworld
Joined: Apr 2014
Posts: 402

View Profile
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.
« Last Edit: May 24, 2014, 09:13:33 AM by edsquare » Logged
A child of five would understand this. Send someone to fetch a child of five.
Groucho Marx
Offline (Male) edsquare
Reply #3 Posted on: May 24, 2014, 01:35:03 PM

Member
Location: The throne of ringworld
Joined: Apr 2014
Posts: 402

View Profile
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
« Last Edit: May 24, 2014, 01:41:29 PM by edsquare » Logged
A child of five would understand this. Send someone to fetch a child of five.
Groucho Marx
Offline (Male) Goombert
Reply #4 Posted on: May 24, 2014, 09:56:29 PM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3107

View Profile
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.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Male) edsquare
Reply #5 Posted on: May 25, 2014, 12:38:48 AM

Member
Location: The throne of ringworld
Joined: Apr 2014
Posts: 402

View Profile
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.
Logged
A child of five would understand this. Send someone to fetch a child of five.
Groucho Marx
Offline (Male) Goombert
Reply #6 Posted on: May 25, 2014, 12:44:47 AM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3107

View Profile
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.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Male) edsquare
Reply #7 Posted on: May 25, 2014, 12:54:54 AM

Member
Location: The throne of ringworld
Joined: Apr 2014
Posts: 402

View Profile
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?
Logged
A child of five would understand this. Send someone to fetch a child of five.
Groucho Marx
Offline (Male) Goombert
Reply #8 Posted on: May 25, 2014, 12:56:06 AM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3107

View Profile
No then you do have my latest LGM, something else is going on, I can't tell without specifically seeing the GMK.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Male) edsquare
Reply #9 Posted on: May 25, 2014, 01:14:58 AM

Member
Location: The throne of ringworld
Joined: Apr 2014
Posts: 402

View Profile
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  ::)
Logged
A child of five would understand this. Send someone to fetch a child of five.
Groucho Marx
Offline (Male) Goombert
Reply #10 Posted on: May 25, 2014, 03:31:01 AM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3107

View Profile
I need specifically a GMK that you are failing to convert to GMX. (Y)
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Pages: 1
  Print