Page 1 of 1

Spring Corrupting LUA in .sdd?

Posted: 22 Oct 2007, 20:47
by Forboding Angel
Is it even remotely possible?

Seems like spring corrupts my lua stuff at random. The solution is to take an zipped version of the lua, extract to a folder far away from spring, copy the rest of the mod there, delete the .sdd and put the other folder in the mods dir and rename to *.sdd.

This has happened 3 times so far, and the messed up thing is, I haven't even touched the LUA. Even replacing the previous files with known good files while it is .sdd doesn't work.

This is seriously messed up.

Is it cause I start and stop spring so often? Is it just whacking out the LUA over time?

Tobi/Trepan, could you guys look into this?

Posted: 22 Oct 2007, 21:19
by tombom
I'm a little confused. What's happening?

Posted: 22 Oct 2007, 21:57
by Tobi
How do the corrupt files look like?

Are their modification times from times when Spring was running?

Are you sure just deleting your LUA configuration (ask someone else which files that are exactly) does not solve the problem?

Does just overwriting of the mod's LUA with a known working set of LUA files solve the problem?

Personally I think it is strange since IIRC Spring does not even have an internal API to write to archives (which an .sdd file is).

Posted: 22 Oct 2007, 22:33
by Forboding Angel
Tobi wrote:How do the corrupt files look like?

Are their modification times from times when Spring was running?

Are you sure just deleting your LUA configuration (ask someone else which files that are exactly) does not solve the problem?

Does just overwriting of the mod's LUA with a known working set of LUA files solve the problem?

Personally I think it is strange since IIRC Spring does not even have an internal API to write to archives (which an .sdd file is).
1. No

2. LUA config? More detail pls

3. Yes, but only if they are overwritten in a separate directory outside of the spring tree. <-- oddness.

4. Join the club.


More detail on this. Basically what happens is it starts disabling widgets. If those widgets are deleted then it finds reasons to remove others, until there are no widgets left. Then it starts in on the gadgets and doesn't stop till all lua stuff is gone.

THis happens at random times even if I delete the .sdd and extract one that is working correctly. Some time after that is done it will start messing up agian.

It's just fricking wierd.

Posted: 22 Oct 2007, 22:41
by LordMatt
trepan is in your spring executable, deleting your luas. :shock:

Posted: 22 Oct 2007, 22:50
by Forboding Angel
Doesn't delete them, it removes them ingame for no appearent reason.

It's ok as I'm about to stick evolution on an svn so that I will always have a "Clean" backup, as well as considering the amount of block changes I'm doing, etc etc.

Posted: 23 Oct 2007, 16:22
by Forboding Angel
Done this that, however I think a (somehow) borked copy of lua stuff is in the svn, but I have it archived, so no biggie. New revisions for the winrar.


Pressure Line, check ur PM's :-)