Yes.... I am talking about Lua File Corruption.
Mysterious is its way. How it happends? I have no idea. Why it happends, we also dont know.
Perhaps MadmaN himself could be the only one in this community who could give an answer, or some clue.
Why am I talking about this?
Well... I want to make more awareness of this problem which strikes down hours, days, weeks, months even YEARS in some cases of hard work.
Figuring out all you need just for the whole thing to collapse.
Ive expirienced this a dozens of times.
Once it is corrupted, it cannot be used.
Ive noticed a few levels of corruption, I am no way near 100% right, but that is what ive gathered from those occasions :
Level 1 - You must copy the code, delete it and paste it again in the same file.
Level 2 - You need to copy the code into a different file.
Level 3 - You cannot copy the code, you must write the code in a different file, typing the entire thing again.
Here are a few of my mods which has suffered from this :
Russell Mod - Main script got a level 3 corruption 2 times. 2 side scripts got a Level 2 once. 1 Side script got a level 3.
WWE Mod - Main script got a level 3 one time, unfortuantly, it was accidently deleted from the computer (not in the recycling bin).
Bully Myth's and Legends - Each of the monster scripts has suffered a level 3 LUA corruption.
What do we do if our file gets a level 3 corruption?
Nothing, were fucked.
Yet there is a cure, but it must not be forgotten.
Since what happend to Russell Mod, which consisted the biggest amount of code I have ever scripted in my entire modding career (if you can call it like that
)
I make a backup file every 100 - 500 lines of script I make and keep the old backups as well.
Thing is, at some point, you have like 10 - 20 files and its hard to keep track.
Please, be safe with your scripts, make backups and hopefully there will be an answer soon.
Good luck and happy modding.