You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to generate a level using example from the readme. It saves the file but when I try to open it in Elastomania it says it is corrupt. I tries both latest published version on crates.io and master but result is the same (
Otherwise a great library, reading levels and lgrs works flawlessly, thanks!
The text was updated successfully, but these errors were encountered:
kryptan
changed the title
Generated level id corrupt
Generated level is corrupt
May 20, 2020
I'm theorizing it might have something to do with how Elma has some expectation of the direction/order of vertices for polygons. Opening the level up in an external editor like SLE works alright. Saving it in SLE, the vertices gets rearranged, and the level saved then works in Elma.
I would have to investigate a bit about how Elma expects these vertices to be arranged, or whether I'm remember correctly in the first place. Maybe it is from something else, but I'm pretty sure this is the reason.
I'm not sure whether the library should forcefully rearrange the vertices, or if it should be up to the person using it to do it correctly. I'm guessing the library should just do it, because I'm not sure why you wouldn't want it to.
Unfortunately I don't know when I'd get around to fixing this, it's not my biggest priority with how little it is used by anyone other than myself at random times. I guess the default level should at least be fixed though so that works.
Hi, I'm trying to generate a level using example from the readme. It saves the file but when I try to open it in Elastomania it says it is corrupt. I tries both latest published version on crates.io and master but result is the same (
Otherwise a great library, reading levels and lgrs works flawlessly, thanks!
The text was updated successfully, but these errors were encountered: