Difference between revisions of "Talk:Save File Notes (Papyrus)"

save file weirdness
imported>Kuertee
imported>TheMagician
(save file weirdness)
Line 105: Line 105:
What this tells me is that the Event manager pings the Script even if it doesn't exist in the file system.<br/>
What this tells me is that the Event manager pings the Script even if it doesn't exist in the file system.<br/>
-- [[User:Kuertee|Kuertee]] 07:40, 1 March 2012 (EST)
-- [[User:Kuertee|Kuertee]] 07:40, 1 March 2012 (EST)
== Save File Weirdness ==
Ah, the joys of modding. Being the optimist that I am, I created a follower with two scripts. I've been using this follower for a while now with no problems. Then I decided to improve one of the scripts, so I wrote a new script, deleted the first script from the actor (bumping the second script up to the top of the list) and added the new script. Everything worked perfectly on a save from before taking on the companion, but when I try to play the game with my current save, my companion no longer works (obviously). The game still thinks that the deleted script is script #1, but now when it runs the real #1 script (formerly #2) it can't find the functions...obviously because the pointer is pointing to a different script. And, of course, my new script #2 isn't running at all.
* am I correct in assuming that the order of the scripts on an actor/object has to stay the same to avoid corrupting the save file? ie. no deleting, only adding new to the end of the list
* is there any way to fix this? ie. will restoring the original script and re-adding the scripts and resetting the properties on my actor fix the save file issue, and if so, how the heck do we update scripts without breaking everything?
--[[User:TheMagician|TheMagician]] 14:57, 14 March 2012 (EDT)
Anonymous user