[3547] Things on 3D midtextures spawn/respawn problems

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.
Post Reply
unknownna
Posts: 215
Joined: Sat Oct 06, 2007 4:45 pm

[3547] Things on 3D midtextures spawn/respawn problems

Post by unknownna »

randy wrote:Although now that I think about it, you should probably add 3D midtextures to your tests. They've gone unrepresented in these tests and just been assumed to work if 3D floors work.
Sector floor height : 0
Thing Z position: 32
Lower midtexture height ("STEPTOP" lower unpegged with Y offset 16) : 32
Higher midtexture height ("STEP2" lower unpegged with Y offset 40) : 56
  • Barrels and monsters fall through midtextures upon spawn, but respawn on the tallest one.
  • Items and weapons respawn with the wrong z height. You can see that the chaingun and health bonus actors have their z position shifted down a few map units after respawning.
Image
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49223
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [3547] Things on 3D midtextures spawn/respawn problems

Post by Graf Zahl »

Graf Zahl wrote:Crash fixed.

As for the 'incorrect' item respawning the code says this:

// Do not reappear under the floor, even if that's where we were for the initial spawn.


I think the bottom line is that you just can't expect every conceivable situation to result in a perfect respawn. Twist a system too much and it will break - and this test map is full of such things.

It's not possible to make the code foolproof. Item spawning upon map load is quite broken but this has to be preserved for compatibility. But you can't copy that brokenness everywhere.
unknownna
Posts: 215
Joined: Sat Oct 06, 2007 4:45 pm

Re: [3547] Things on 3D midtextures spawn/respawn problems

Post by unknownna »

Graf Zahl wrote:It's not possible to make the code foolproof. Item spawning upon map load is quite broken but this has to be preserved for compatibility. But you can't copy that brokenness everywhere.
I see. IMHO, the current item/barrel/monster spawn/respawn behavior on 3D midtextures is unexpected and inconsistent (in ZDoom 2.5.0, items even fall through midtextures upon respawn). I'd like to hear what Randy has to say before we close this report.
Last edited by unknownna on Mon Apr 09, 2012 9:38 pm, edited 1 time in total.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49223
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [3547] Things on 3D midtextures spawn/respawn problems

Post by Graf Zahl »

I agree about that part. Spawning a monster on a midtex should work.
Gez
 
 
Posts: 17938
Joined: Fri Jul 06, 2007 3:22 pm

Re: [3547] Things on 3D midtextures spawn/respawn problems

Post by Gez »

Graf Zahl wrote:It's not possible to make the code foolproof. Item spawning upon map load is quite broken but this has to be preserved for compatibility. But you can't copy that brokenness everywhere.
Could we get a mapinfo flag for that?

Something to mark a map as being made for modern ZDoom and to use correct spawning code without compatibility hacks.

Maybe use it as well for actually making use of player start z-heights, so that there's no need anymore to hack around with instant teleports or silent lowering floor when you want a player to start on a ROR effect (3D floor, 3D midtex, bridge thing, whatever).
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49223
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [3547] Things on 3D midtextures spawn/respawn problems

Post by Graf Zahl »

I wouldn't mind at all. Then we could just declare any mod using the old system with 3D floors and midtexes unsupported. ;)
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: [3547] Things on 3D midtextures spawn/respawn problems

Post by NeuralStunner »

Gez wrote:Could we get a mapinfo flag for that?

Something to mark a map as being made for modern ZDoom and to use correct spawning code without compatibility hacks.

Code: Select all

choppers = true; // ... Doesn't suck.
:P
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: [3547] Things on 3D midtextures spawn/respawn problems

Post by randi »

Fixed all issues with 3D midtextures exhibited in this map.
unknownna
Posts: 215
Joined: Sat Oct 06, 2007 4:45 pm

Re: [3547] Things on 3D midtextures spawn/respawn problems

Post by unknownna »

Excellent, thank you.
Post Reply

Return to “Closed Bugs [GZDoom]”