Tchos wrote...
I'm not sure what you're talking about that can't be done, but I'm just talking about testing a module, saving it in a certain area, then reloading that saved game after making some change for testing. I've done that in the past, and I was advising against it for many reasons, including the ones I mentioned.
Hi Tchos,
EDIT: Ah! I just understood what you mean Tchos. Let me explain what you and I are both saying in detail to Cly for clarification:-
When you save a game, you save an
entire copy of the module in
its current state. When you make any changes to the module in the toolset and save it
in a new version, reloading a saved game will NOT show those changes unless you make the changes and place the changes in a hak or an override.
So, taking the above example, if Cly was making changes in his toolset and saving it, if and when (as you suggest) he
reloads a saved game, then of course there will not be any changes because he is
reloading the older module with all its saved variables! You can ONLY ever test comfortably by restarting the game from new, to ensure
all variables have been reset.
If Cly only ever tests by making changes and reloading, then he will always have the same problem! As the variable will be set on the trigger just as surely as it was set on the module ... and reloading any save game where a variable has been set will always have that variable set, no matter what you do in the toolset.
Do you see what I mean?
If anybody else has been testing their "saved " games the way you describe, then they are surely going down a path of illogical testing and will run into all sorts of problems. Do a quick test on any module setting a variable on
any object (module or trigger) and you will see what I mean.
IN BRIEF: Always test code changes by restarting the module from fresh! (Unless using a hak/override.)Cheers!
Lance.
Modifié par Lance Botelle, 25 octobre 2012 - 11:08 .