Pages: 1
  Print  
Author Topic: [Ubuntu] Opening Files on LateralGM Made By LateralGM  (Read 1031 times)
Offline (Male) Reiddsan
Posted on: April 21, 2014, 02:13:50 PM

Member
Joined: Apr 2014
Posts: 12

View Profile WWW Email
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?
Logged
Offline (Male) Goombert
Reply #1 Posted on: April 21, 2014, 02:15:17 PM

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

View Profile
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.
« Last Edit: April 21, 2014, 02:18:32 PM by Robert B Colton » 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) Reiddsan
Reply #2 Posted on: April 24, 2014, 09:57:38 AM

Member
Joined: Apr 2014
Posts: 12

View Profile WWW Email
Here you go
Logged
Offline (Male) Goombert
Reply #3 Posted on: April 26, 2014, 04:57:23 PM

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

View Profile
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.
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) Reiddsan
Reply #4 Posted on: April 26, 2014, 06:03:44 PM

Member
Joined: Apr 2014
Posts: 12

View Profile WWW Email
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!
Logged
Offline (Male) Goombert
Reply #5 Posted on: April 26, 2014, 06:11:22 PM

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

View Profile
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.
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) Reiddsan
Reply #6 Posted on: April 27, 2014, 12:05:21 PM

Member
Joined: Apr 2014
Posts: 12

View Profile WWW Email
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?
Logged
Offline (Male) Reiddsan
Reply #7 Posted on: April 29, 2014, 01:12:17 PM

Member
Joined: Apr 2014
Posts: 12

View Profile WWW Email
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  ???
Logged
Offline (Male) Goombert
Reply #8 Posted on: April 30, 2014, 04:01:10 AM

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

View Profile
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
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