ENIGMA Forums

Outsourcing saves money => Issues Help Desk => Topic started by: Reiddsan on April 21, 2014, 02:13:50 pm

Title: [Ubuntu] Opening Files on LateralGM Made By LateralGM
Post by: Reiddsan on April 21, 2014, 02:13:50 pm
I get the following error every time I try to open a file made on LateralGM (this doesn't happen with files made by Game Maker):

Code: [Select]
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:745)

I already reported it here,
https://github.com/IsmAvatar/LateralGM/issues/112#issuecomment-40942009

And IsmAvatar said it's not a LateralGM issue, and that it was an issue with a plugin I was using.

I did the following:

Code: [Select]
reiddsan@reiddsan-HP-ENVY-dv6-Notebook-PC:~$ cd enigma-dev
reiddsan@reiddsan-HP-ENVY-dv6-Notebook-PC:~/enigma-dev$ git fetch
remote: Counting objects: 26, done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 26 (delta 7), reused 0 (delta 0)
Unpacking objects: 100% (26/26), done.
From git://github.com/enigma-dev/enigma-dev
   c07e948..be8fc50  particle_fix -> origin/particle_fix
reiddsan@reiddsan-HP-ENVY-dv6-Notebook-PC:~/enigma-dev$ git pull
Already up-to-date.

To my understanding, this should have updated things. Yet I still continue to get an error. What am I doing wrong? I want to be able to resume the projects I start in ENIGMA. Should I give something else a try? Like saving under Game Maker 8 format?
Title: Re: [Ubuntu] Opening Files on LateralGM Made By LateralGM
Post by: Goombert on April 21, 2014, 02:15:17 pm
You pasted the ENIGMA error into the log, which no longer exists, she nor I saw the GMX loading exception, which is an issue.

Can you upload the GMX project?

Also, with LGM, when you save a GMX, you have to create a new folder, and save it inside that folder. It's impossible for LGM's save dialog to automatically create folders, Studio's does this because it does not let you save your projects wherever you want like older GM versions do.
Title: Re: [Ubuntu] Opening Files on LateralGM Made By LateralGM
Post by: Reiddsan on April 24, 2014, 09:57:38 am
Here you go
Title: Re: [Ubuntu] Opening Files on LateralGM Made By LateralGM
Post by: Goombert on April 26, 2014, 04:57:23 pm
Where are the other files? This is only the main file? You probably didn't create a directory when you saved the game, people continue to make this mistake. When you save with the GMX format you have to create a folder and save the game in that folder, since LGM unlike Studio lets you save the projects anywhere you like.
Title: Re: [Ubuntu] Opening Files on LateralGM Made By LateralGM
Post by: Reiddsan on April 26, 2014, 06:03:44 pm
Where are the other files? This is only the main file? You probably didn't create a directory when you saved the game, people continue to make this mistake. When you save with the GMX format you have to create a folder and save the game in that folder, since LGM unlike Studio lets you save the projects anywhere you like.

Oh ok gotcha. the last version of game maker i've used is gm 8.1, and this whole time i've gotten used to gmk files having all the info in them. i didn't know the recent game maker studio and enigma/lateralgm had external resources that are kept in a single folder.

i'll make folders from now on, thank you!
Title: Re: [Ubuntu] Opening Files on LateralGM Made By LateralGM
Post by: Goombert on April 26, 2014, 06:11:22 pm
You don't have to with a GMK. Also, Studio has GMZ, which is basically just a ZIP of your GMX, but that requires use of proprietary code that I don't want to add in LGM, plus, Studio has a set folder where all your projects are created, so you can't just save anywhere like you can with LGM. The closest I can get is the Right Click->New folder option in the save dialog, I don't know what to do though because people like you keep coming here and being confused by this.
Title: Re: [Ubuntu] Opening Files on LateralGM Made By LateralGM
Post by: Reiddsan on April 27, 2014, 12:05:21 pm
i see. maybe add the warning to new projects being saved on the "Save File" window:

"You will not be able to reopen this unless saved on an empty folder"

and add a "New Folder" option instead of relying on newbies to find the right-click option. what do you think?
Title: Re: [Ubuntu] Opening Files on LateralGM Made By LateralGM
Post by: Reiddsan on April 29, 2014, 01:12:17 pm
even though i create a new folder for any new projects, i still continue to get the same error and i can't seem to open files made by lateralgm. is there a way to reinstall everything? maybe that's the issue  ???
Title: Re: [Ubuntu] Opening Files on LateralGM Made By LateralGM
Post by: Goombert on April 30, 2014, 04:01:10 am
Well for one, git pull, only updates the engine code. To update LateralGM or the Plugin on Linux you do python install.py, on Windows you have to manually download and replace the jars.
http://enigma-dev.org/docs/Wiki/Install:Extra_Packages

Second of all, I can't tell you why LGM is erroring unless I have one of the projects that it is erroring when trying to load.

I have updated LGM to automatically create folders when saving a GMX, please see my comments below.
http://enigma-dev.org/forums/index.php?topic=1870.msg18519#new