Do dynamic records in the save stay forever?

General discussion regarding the OpenMW project.
For technical support, please use the Support subforum.
Post Reply
Lywzc
Posts: 4
Joined: 14 Jul 2022, 14:20

Do dynamic records in the save stay forever?

Post 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.
User avatar
akortunov
Posts: 853
Joined: 13 Mar 2017, 13:49
Location: Samara, Russian Federation

Re: Do dynamic records in the save stay forever?

Post by akortunov »

Yes, they stay forever.
Lywzc
Posts: 4
Joined: 14 Jul 2022, 14:20

Re: Do dynamic records in the save stay forever?

Post 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.
User avatar
akortunov
Posts: 853
Joined: 13 Mar 2017, 13:49
Location: Samara, Russian Federation

Re: Do dynamic records in the save stay forever?

Post 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.
Lywzc
Posts: 4
Joined: 14 Jul 2022, 14:20

Re: Do dynamic records in the save stay forever?

Post 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.
Last edited by Lywzc on 12 Aug 2022, 10:51, edited 1 time in total.
davidcernat
Posts: 251
Joined: 19 Jul 2016, 01:02

Re: Do dynamic records in the save stay forever?

Post 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.
Post Reply