Nymra Posted September 14, 2021 Posted September 14, 2021 I have a script that I updated. I put a line inside of it to track the script version (Debug.trace). Now I noticed the script is impossible to update. It just remains at version 07, while I want version 08.... I deleted the mod, cleaned script, I deleted ALL scripts from my mod including that one manually via ReSaver.exe, reinstalled mod, started the game... Old script version still there... Nothing overwrites the script folder, so the newest compiled version is loaded, but not used. Also I decompield the script and it showed the correct version 08 there, so also no compilation problem. somehow skyrim just refuses to forget that the script is there o_O any ideas?
MadMansGun Posted September 14, 2021 Posted September 14, 2021 12 minutes ago, Nymra said: somehow skyrim just refuses to forget that the script is there o_O any ideas? did you try starting a new game?
Nymra Posted September 14, 2021 Author Posted September 14, 2021 11 minutes ago, MadMansGun said: did you try starting a new game? not yet. I mean that would be the obvious solution maybe, but I want to see if there is a way to make this update without new game requirements. What bugs me is, that updating that script in the past never made any problems
MadMansGun Posted September 14, 2021 Posted September 14, 2021 4 minutes ago, Nymra said: not yet. I mean that would be the obvious solution maybe. do it just to rule out "script stuck in save" problems, if that dose not fix it then a copy of the old script is probably still stuck in your mod manager somewhere. if it fixes it then your save cleaner must have missed something.
alex77r4 Posted September 14, 2021 Posted September 14, 2021 6 hours ago, Nymra said: I deleted the mod, cleaned script, I deleted ALL scripts from my mod including that one manually via ReSaver.exe, reinstalled mod, started the game... Old script version still there... The Papyrus0.log must say you why the old script is preserved. Can be because the script is actively running, or registered to some events, or maybe the game can not bind the new script. Sometimes delete the script with ReSaver is not enough, specially when the script is attached to a quest.
Nymra Posted September 14, 2021 Author Posted September 14, 2021 1 hour ago, alex77r4 said: The Papyrus0.log must say you why the old script is preserved. Can be because the script is actively running, or registered to some events, or maybe the game can not bind the new script. Sometimes delete the script with ReSaver is not enough, specially when the script is attached to a quest. is there another way to delete a script then? when resaver is not enough?
alex77r4 Posted September 14, 2021 Posted September 14, 2021 21 minutes ago, Nymra said: is there another way to delete a script then? when resaver is not enough? To effectively upgrade a mod with running script you must prepare it for be upgraded. Add an option in the MCM to call a function inside the critical script to Remove all the listening events. If the script is attached to a quest Stop and Start the quest. Remember remove the mark RunOnce from the quest. Have in mind that, when the quest Start, all the stages are and data data stored inside the quest are restarted from scratch. Then, some complex quest can not be re-Started in an easy way.
Nymra Posted September 16, 2021 Author Posted September 16, 2021 I was stupid and the line was in a different script. But thx to you I now put more thought into how the quests and scripts run their functions, because indeed an active function stays active and is not updated when the script is before restarting it in game, hehe. yeah, logic, I know, but I was raised by wolves thx so far, issue is solved.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.