Freeze on saving

Bugs that have been investigated and resolved somehow.

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.
User avatar
Accensus
Banned User
Posts: 2383
Joined: Thu Feb 11, 2016 9:59 am

Re: Freeze on saving

Post by Accensus »

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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Freeze on saving

Post by Graf Zahl »

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.
User avatar
Accensus
Banned User
Posts: 2383
Joined: Thu Feb 11, 2016 9:59 am

Re: Freeze on saving

Post by Accensus »

http://imgur.com/a/zwRWv

Info in the image descriptions. Will provide even more info if needed.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: Freeze on saving

Post by randi »

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.
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.
User avatar
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

Post by wildweasel »

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

(And shopkeepers, for those wanting to mimic the old Daggerfall save glitch. =P)
User avatar
DoomKrakken
Posts: 3489
Joined: Sun Oct 19, 2014 6:45 pm
Location: Plahnit Urff
Contact:

Re: Freeze on saving

Post by DoomKrakken »

Does this mean that objects not written out to save games will be removed entirely if the save is reloaded?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Freeze on saving

Post by Graf Zahl »

Yes, precisely. In the case of dynamic lights that would be fine because they will be recreated afterward anyway.
User avatar
DoomKrakken
Posts: 3489
Joined: Sun Oct 19, 2014 6:45 pm
Location: Plahnit Urff
Contact:

Re: Freeze on saving

Post by DoomKrakken »

Oh... they'll be recreated?
User avatar
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

Post by Major Cooke »

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.
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.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Freeze on saving

Post by Gez »

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++;
}
User avatar
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

Post by Major Cooke »

...PRICELESS! I've always desired some way of detecting reloads!
Post Reply

Return to “Closed Bugs [GZDoom]”