Pages: 1
Author Topic: All EGM's Broke  (38,121 Views)
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Posted on: December 14, 2013, 11:32:40 AM
Well I had to add the "Force software vertex processing" setting to Global Game Settings and found a real nasty bug.

If an EGM is saved with older global game settings it fails to load with the latest version. If you update LGM or the plugin any time lately you'll need to patch up your EGM's too, it is real simple, the bug is already filed on the tracker as well.

Since EGM is simply a ZIP file just open it up and add "FORCE_SOFTWARE_VERTEX_PROCESSING: false" to Game Settings.ey file then rezip or whatever. I already updated all my EGM's on the site.

You can also just download the new Portable ZIP.
http://enigma-dev.org/docs/Wiki/Install:Windows

This is the open bug report.
https://github.com/enigma-dev/lgmplugin/issues/12
Offline (Unknown gender) TheExDeus

Developer
Joined: Apr 2008
Posts: 1,860
View profile
Reply #1 Posted on: December 14, 2013, 07:12:12 PM
So that stuff like this doesn't break anything in the future we should probably just assign default values when loading. So in the LGM you just see if the EGM has the certain parameter and if not, then set it to some value (in this case I guess it's False).
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #2 Posted on: December 15, 2013, 01:48:38 AM
Yup; yup; that's why I made a ticket, I'm just feelin lazy :P
Offline (Unknown gender) cheeseboy

Administrator
Joined: Mar 2011
Posts: 105
View profile
Reply #3 Posted on: December 15, 2013, 04:44:26 AM
Quote from: TheExDeus on December 14, 2013, 07:12:12 PM
So that stuff like this doesn't break anything in the future we should probably just assign default values when loading. So in the LGM you just see if the EGM has the certain parameter and if not, then set it to some value (in this case I guess it's False).

Or we could ban robert
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Reply #4 Posted on: December 15, 2013, 01:16:34 PM
There is no reason an EGM should EVER have this problem. The reason it is a zip file with plain-text attributes is so no harm can come of a missing attribute. Or missing resource. Or missing anything. And new information can always be added without any such fears.
Offline (Unknown gender) FroggestSpirit

Member
Joined: Mar 2013
Posts: 79
View profile
Reply #5 Posted on: December 16, 2013, 12:57:32 AM
I just updated a minute ago, do I need to worry about this?
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #6 Posted on: December 16, 2013, 02:22:45 AM
This is the exception that occurs, I did nothing more than add the property to the game settings property structures.

Quote
Exception in thread "main" java.lang.NullPointerException
   at org.enigma.file.EFileReader$DataPropReader.convert(EFileReader.java:423)
   at org.enigma.file.EFileReader$DataPropReader.put(EFileReader.java:444)
   at org.enigma.file.EFileReader$DataPropReader.readProperties(EFileReader.java:387)
   at org.enigma.file.EFileReader$DataPropReader.read(EFileReader.java:375)
   at org.enigma.file.EFileReader$DataPropReader.readUnknown(EFileReader.java:364)
   at org.enigma.file.EFileReader.readResource(EFileReader.java:634)
   at org.enigma.file.EFileReader.processEntries(EFileReader.java:611)
   at org.enigma.file.EFileReader.readNodeChildren(EFileReader.java:589)
   at org.enigma.file.EFileReader.readEgmFile(EFileReader.java:533)
   at org.enigma.file.EFileReader.readEgmFile(EFileReader.java:516)
   at org.enigma.file.EgmIO.read(EgmIO.java:56)
   at org.lateralgm.main.FileChooser.open(FileChooser.java:533)
   at org.lateralgm.main.FileChooser.open(FileChooser.java:519)
   at org.lateralgm.main.LGM.main(LGM.java:809)

Edit: I have fixed this in a new pull request by simply checking if a null value is being added to the property list, and if so not adding it and keeping the default.

https://github.com/enigma-dev/lgmplugin/commit/a5bc74ae5939e366dfaf048de69a351875d05c77

Please redownload the plugin, the latest version will not have broke EGM's.
Pages: 1