Saving failed due to BlockingLine

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
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Saving failed due to BlockingLine

Post by Nash »

Also, Cooke, in case it wasn't obvious - are you getting that error with vanilla no mods, or with mods? If it's with mods, check the mod isn't doing any "Don't do that"'s. You know how wild it is with ZScript...
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Saving failed due to BlockingLine

Post by Graf Zahl »

BlockingLine should be cleared at the very latest when the old map is freed in ClearLevelData. Whatever is in STAT_TRAVELLING at that point needs to be handled.
Talon1024
 
 
Posts: 374
Joined: Mon Jun 27, 2016 7:26 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Contact:

Re: Saving failed due to BlockingLine

Post by Talon1024 »

With GZDoom 53199e455, I got this problem at the beginning of Equinox MAP10 after leaving Equinox MAP09. If I play it normally, without any mods, and (mostly) let the monsters infight to the death, "blockingline" is out of bounds and I cannot save on MAP10. For some strange reason, however, if I god/noclip my way to the exit, the issue with blockingline doesn't happen.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Saving failed due to BlockingLine

Post by _mental_ »

Graf Zahl wrote:BlockingLine should be cleared at the very latest when the old map is freed in ClearLevelData. Whatever is in STAT_TRAVELLING at that point needs to be handled.
Should it be done like this?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Saving failed due to BlockingLine

Post by Graf Zahl »

I would have done it in ClearLevelData, before the travelling starts. But it will have to be checked if this is sufficient.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Saving failed due to BlockingLine

Post by _mental_ »

Moved resetting of pointers to FLevelLocals::ClearLevelData() as it works fine as well. At first, I missed somehow that you wanted the code to be added to this function.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Saving failed due to BlockingLine

Post by _mental_ »

Merged the change as it fixes the dangling pointers issue for inventory items.
User avatar
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

Re: Saving failed due to BlockingLine

Post by Marisa the Magician »

There's still one minor gripe I have with this. Sure, the I_Error calls were replaced with a Printf, but it's an unconditional print, rather than something that'd be silenced unless, say, developer message level is set to "warnings".
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Saving failed due to BlockingLine

Post by _mental_ »

Making these messages developer only would make a chance to catch related errors very slim.
Post Reply

Return to “Closed Bugs [GZDoom]”