Request) Ok, so I had my worst nightmare come true.
Posted: Thu Oct 11, 2012 9:30 pm
First off, let me say that I am not a programmer. My first experience with LUA was a few days ago when I decided I would create a mod for Grimrock.
So even if the below hour count is high, there isn't that much code.
Yesterday I worked on a script (let's call it script1) for some 10 hours and finished it nicely.
Then this morning I continued on another script (let's call it script2) for some 5-6 hours, which I also managed to get it to work like I wanted.
Then I went back to play through the dungeon from the start, and script1 didn't kick in.
What was the problem?
Without knowing it, I had apparently copied/pasted all the code from script2 into script1. I didn't have the code in Notepad++ anymore (which I use to code), since the code was finished.
So the brutal lesson is ALWAYS keep a backup of your scripts, even if you finish it!
So my tip/request to Antti & Petri : please add a simple lock function in the editor, which we can use to lock the entity (scripts at least) from further edits, something like this:

Thanks.
So even if the below hour count is high, there isn't that much code.
Yesterday I worked on a script (let's call it script1) for some 10 hours and finished it nicely.
Then this morning I continued on another script (let's call it script2) for some 5-6 hours, which I also managed to get it to work like I wanted.
Then I went back to play through the dungeon from the start, and script1 didn't kick in.
What was the problem?
Without knowing it, I had apparently copied/pasted all the code from script2 into script1. I didn't have the code in Notepad++ anymore (which I use to code), since the code was finished.
So the brutal lesson is ALWAYS keep a backup of your scripts, even if you finish it!
So my tip/request to Antti & Petri : please add a simple lock function in the editor, which we can use to lock the entity (scripts at least) from further edits, something like this:

Thanks.