The door closed and killed my armor... [.96 and unofficial]

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

The door closed and killed my armor... [.96 and unofficial]

Post by Graf Zahl »

This is probably the strangest bug I ever encountered. For apparently no reason whatsoever the armor disappeared from my inventory. So after a little debugging session I have to find out that any BasicArmor in the player's inventory gets crushed when there's a door that closes near (0,0) on the map and intersects with the armor item that is spawned at (0,0).

The bad thing is, I can't find a working fix for this one, except to check a crushed item for being owned by somebody! Every attempt to avoid this situation is somehow subverted by some code in the inventory system.

But I had to share this one anyway so here it is! ;)
User avatar
Risen
Posts: 5263
Joined: Thu Jan 08, 2004 1:02 pm
Location: N44°30' W073°05'

Post by Risen »

Soo.... should we just avoid placing armor at (0,0)?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49224
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

No. That's not the problem. The internal inventory item is spawned at (0,0). Now, if some door closes and intersects with that item it gets crushed (i.e. removed) without mercy.
User avatar
Risen
Posts: 5263
Joined: Thu Jan 08, 2004 1:02 pm
Location: N44°30' W073°05'

Post by Risen »

Ah, so I should avoid placing doors and crushers at (0,0), then?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49224
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

That would certainly help - but not with existing maps.
User avatar
Cutmanmike
Posts: 11351
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Post by Cutmanmike »

Any maps in doom or doom2 contain doors/crushers at 0,0?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49224
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

No, I don't think so. I noticed it in MAP06 of Astrostein 1.
killingblair
Posts: 937
Joined: Mon Oct 04, 2004 9:16 pm

Post by killingblair »

Wow, thats very odd. :?
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Post by Xaser »

Whoa... this is certainly very strange indeed. I made a small test wad to demonstrate the effect, and as Graf said, any armor pickup you get will instantly be removed when the door closes. Kind of weird, huh?


Also, I'm not sure if this would work, but isn't there a flag that prevents an actor from being crushed? If so, could this possibly be applied to that internal inventory item so it doesn't die?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49224
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

There's a flag that causes an item to be crushed. Too bad that the inventory code does its best to ensure that all the necessary flags are set (or cleared) for the armor to be affected...
User avatar
Apothem
Posts: 2070
Joined: Sat Nov 29, 2003 7:13 pm
Location: Performing open heart surgery on an ACS compiler.

Post by Apothem »

Uhmmmm it doesnt do that with me.... Perhaps i'm special or something?
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Post by Xaser »

The bug only shows up in the .9x versions. If you use .63a or below, it works fine.

EDIT: I fail it.
Last edited by Xaser on Tue Jul 05, 2005 9:08 am, edited 2 times in total.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49224
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Xaser wrote:It only works in the .9x versions. If you use .63a or above, it works fine.

You mean below, right? ;)
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Post by Xaser »

Graf Zahl wrote:
Xaser wrote:It only works in the .9x versions. If you use .63a or above, it works fine.

You mean below, right? ;)
Maybe both at the same time? Who knows? :P

Anyway, thanks. Above post edited to make sense now. :P
Post Reply

Return to “Closed Bugs [GZDoom]”