Page 1 of 1

Do dynamic records in the save stay forever?

Posted: 10 Aug 2022, 10:56
by Lywzc
Like custom spells and custom potions. They do not seem to be removed after being removed from the game by deleting the custom spells or drinking the stack of custom potions.

Re: Do dynamic records in the save stay forever?

Posted: 11 Aug 2022, 11:16
by akortunov
Yes, they stay forever.

Re: Do dynamic records in the save stay forever?

Posted: 12 Aug 2022, 03:20
by Lywzc
akortunov wrote: 11 Aug 2022, 11:16 Yes, they stay forever.
Why are they not removed though? They do not seem to serve any purpose other than cluttering the save file.

Re: Do dynamic records in the save stay forever?

Posted: 12 Aug 2022, 08:56
by akortunov
Lywzc wrote: 12 Aug 2022, 03:20 Why are they not removed though? They do not seem to serve any purpose other than cluttering the save file.
It is not that easy - instances of given dynamic record can be somewhere in game world, outside of player's inventory (e.g. when player sells home-brewed potions to vendors, gives them to another players or NPC companions, stores them at home or just drops them somewhere). To check if the dynamic record can be removed safely, there should be a complex reference tracking system which covers all visited cells. It just does not worth it.

Re: Do dynamic records in the save stay forever?

Posted: 12 Aug 2022, 10:49
by Lywzc
akortunov wrote: 12 Aug 2022, 08:56
Lywzc wrote: 12 Aug 2022, 03:20 Why are they not removed though? They do not seem to serve any purpose other than cluttering the save file.
It is not that easy - instances of given dynamic record can be somewhere in game world, outside of player's inventory (e.g. when player sells home-brewed potions to vendors, gives them to another players or NPC companions, stores them at home or just drops them somewhere). To check if the dynamic record can be removed safely, there should be a complex reference tracking system which covers all visited cells. It just does not worth it.
So the existence of those dynamic records won't bloat your save file much and does not slow down the game?

Spells seem pretty straightforward, since only player can make and delete them and they can not be transfered to anywhere else. For potions, I wonder if the global count of a specific potion rather than individual instances can be tracked so when player makes one the count+1 and when player drinks one the count-1, all other actions do not alter the count. When the count of a specific potion reaches 0 remove the corresponding dynamic record. This should be pretty light weight but will need an additional field for ALCH dynamic records to store the count.

Re: Do dynamic records in the save stay forever?

Posted: 13 Aug 2022, 17:14
by davidcernat
akortunov wrote: 12 Aug 2022, 08:56 To check if the dynamic record can be removed safely, there should be a complex reference tracking system which covers all visited cells. It just does not worth it.
For reference, TES3MP has had such a system since 2018, proving that it isn't particularly difficult to implement.