When I try to load my iji.egm file, I get the following error:
java.io.IOException: Unexpected end of file reached at filepos: 971
at org.lateralgm.file.GmStreamDecoder.read(GmStreamDecoder.java:80)
at org.lateralgm.file.GmStreamDecoder.read(GmStreamDecoder.java:59)
at org.lateralgm.file.GmStreamDecoder.readStr(GmStreamDecoder.java:132)
at org.enigma.file.EFileReader$RoomGmDataReader.readData(EFileReader.java:1194)
...It is clear that this is caused by the Room decoder looking for the "pre-creation" event that was just added recently. Edit: Actually, it might be from translation/rotation/scale? Either way, the engine is expecting something in the room binary blob that is not there, so it is over-reading.
Unfortunately, I have no idea how to recover from this error. Consider:
- I am storing Iji unzipped in a directory (which I then zip up into an EGM file).
- The room_x.rmg file is a binary file
- Apparently the room editor now looks for the missing properties in the .rmg file?
So do I have to manually edit every .rmg file in a hex editor? Or is there some way for the plugin to auto-detect if it is loading an old rmg file and then add the the missing properties? I don't mind doing this once or twice, but if the .rmg format is going to change frequently, then I would recommend adding versioning.
Edit: Or perhaps someone could provide a script to update .rmg files when the format changes?