Freeze on saving
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Re: Freeze on saving
Any tests I can do? Can replay the hangar map with ZDoom instead of GZDoom and log the activity, but I'm not sure if it'll work.
- Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Freeze on saving
You can do one thing, which will work in both ZDoom and GZDoom:
enter 'stat gc' in the console, and once the freeze occurs, tell us what it says in the bottom left corner.
enter 'stat gc' in the console, and once the freeze occurs, tell us what it says in the bottom left corner.
Re: Freeze on saving
Sounds like I need to add an OF_Transient flag you can use to mark objects that should not be written out to save games, then.Graf Zahl wrote:GZDoom, in order to reduce save file size, destroys all attached lights before saving out the data and restores them right afterward.
- wildweasel
- Posts: 21706
- Joined: Tue Jul 15, 2003 7:33 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): A lot of them
- Graphics Processor: Not Listed
- Contact:
Re: Freeze on saving
Will this flag be exposed to Decorate? I suspect it'll be in modders' best interests to attach the flag to things like gore, bullet puffs, and debris.randi wrote:Sounds like I need to add an OF_Transient flag you can use to mark objects that should not be written out to save games, then.
(And shopkeepers, for those wanting to mimic the old Daggerfall save glitch. =P)
- DoomKrakken
- Posts: 3489
- Joined: Sun Oct 19, 2014 6:45 pm
- Location: Plahnit Urff
- Contact:
Re: Freeze on saving
Does this mean that objects not written out to save games will be removed entirely if the save is reloaded?
- Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Freeze on saving
Yes, precisely. In the case of dynamic lights that would be fine because they will be recreated afterward anyway.
- DoomKrakken
- Posts: 3489
- Joined: Sun Oct 19, 2014 6:45 pm
- Location: Plahnit Urff
- Contact:
Re: Freeze on saving
Oh... they'll be recreated?
- Major Cooke
- Posts: 8218
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia with Vulkan support
- Location: GZBoomer Town
- Contact:
Re: Freeze on saving
This would be nice indeed. While I suspect this will break some save games if misused... Guess it's the modder's fault in that case.wildweasel wrote:Will this flag be exposed to Decorate? I suspect it'll be in modders' best interests to attach the flag to things like gore, bullet puffs, and debris.
Re: Freeze on saving
That'd allow to make a reload detector... Even let you detect how many times the game has been saved. Pseudocode:
Code: Select all
if (count(transient_item) == 0)
{
spawn(transient_item);
reloaded = true;
savecount++;
}- Major Cooke
- Posts: 8218
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia with Vulkan support
- Location: GZBoomer Town
- Contact:
Re: Freeze on saving
...PRICELESS! I've always desired some way of detecting reloads!