Missing key on Fleshed Out E3M6

Moderator: Raze 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.
SaveTheDoomer
Posts: 149
Joined: Sun Apr 11, 2021 4:20 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Missing key on Fleshed Out E3M6

Post by SaveTheDoomer »

On E3M6 of Fleshed Out the final cerberus should drop a key 7 when killed, but it doesn't, so the map cannot be completed. Previously raze used to crash on this point, now it seems to be fixed. Tried to play with Bloodgdx and the key is dropped correctly.
The link to the mod is the following: https://www.moddb.com/mods/blood-fleshe ... ed-out-v17
SaveTheDoomer
Posts: 149
Joined: Sun Apr 11, 2021 4:20 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: Missing key on Fleshed Out E3M6

Post by SaveTheDoomer »

Tried to add a savegame, but it is too big.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49192
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Missing key on Fleshed Out E3M6

Post by Graf Zahl »

Please upload it elsewhere and post a link here. It's a bit much to play a level I do not know yet to fInd a place I do not know where to look for. 'So the save would help a lot.
SaveTheDoomer
Posts: 149
Joined: Sun Apr 11, 2021 4:20 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: Missing key on Fleshed Out E3M6

Post by SaveTheDoomer »

Ok, don't you worry, nevermind. Thanks anyway.
SaveTheDoomer
Posts: 149
Joined: Sun Apr 11, 2021 4:20 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: Missing key on Fleshed Out E3M6

Post by SaveTheDoomer »

User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49192
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Missing key on Fleshed Out E3M6

Post by Graf Zahl »

Thanks. I'll look into it ASAP. The crash fix was only half the story - the condition should never trigger, actually, but I never had a place where to reliably test the causes leading up to it.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49192
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Missing key on Fleshed Out E3M6

Post by Graf Zahl »

Ok, so how is this supposed to work?
This seventh key has no sprite image attached.
In NBlood its picnum was -1, that's what was causing the crash. In GDX it is set to 0 which is a brick wall texture. Trying to use a picture one after the 6th key just gives an oversized key outline.
It is the only item in the entire item list that looks invalid.

I can pick up the key with any invalid image, but what does the DOS version do here?
SaveTheDoomer
Posts: 149
Joined: Sun Apr 11, 2021 4:20 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: Missing key on Fleshed Out E3M6

Post by SaveTheDoomer »

Yes, the seventh key looks like a "ghost" blue key outline. I never saw it in the base game or cryptic passage, but in some mod like Death wish it is used to unlock the secret level. In Fleshed out the seventh key is used on a lot of levels, in this particular level is needed to trigger the dynamite at the end of the level, and is dropped by the cerberus upon killing it. In every other level it worked, for some reason the cerberus doesn't drop it here.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49192
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Missing key on Fleshed Out E3M6

Post by Graf Zahl »

I think it works if it gets placed on the map with the proper picnum and scale manually set. But the cerberus drops it and it takes the picnum from an internal record - and that record was not properly filled in.
Which resulted in the spawned key having bad scale and a bad image. In NBlood this will most likely crash as well and in GDX the sprite will be invisible as set up, and I cannot find any further special handling in either port.

I think under these circumstances, setting it up as the same key outline sprite will be most consistent with what users may expect.
SaveTheDoomer
Posts: 149
Joined: Sun Apr 11, 2021 4:20 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: Missing key on Fleshed Out E3M6

Post by SaveTheDoomer »

I didn't play in nblood, but is seems to work : https://youtu.be/58e5gzjXZMk?list=PLoxV ... snH0&t=791
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49192
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Missing key on Fleshed Out E3M6

Post by Graf Zahl »

Yeah, random luck. It still has an out of bounds array access but normally doesn't seem to cause the crash it does in Raze because many of these arrays have been refactored into other data structures where OOB is a fatal error.

But the key still is not visible there. It is one of the two scenarios I considered possible for NBlood, it depended on what random data it read for the invalid picnum.
SaveTheDoomer
Posts: 149
Joined: Sun Apr 11, 2021 4:20 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: Missing key on Fleshed Out E3M6

Post by SaveTheDoomer »

Replayed the level in gdx. The key is invisible, yet it's there. It's the most weird key placement i've ever seen :|
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49192
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Missing key on Fleshed Out E3M6

Post by Graf Zahl »

I can only guess, but maybe Fresh Supply has a valid data record there and if that was the primary testing platform the problem would never have shown.
SaveTheDoomer
Posts: 149
Joined: Sun Apr 11, 2021 4:20 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support

Re: Missing key on Fleshed Out E3M6

Post by SaveTheDoomer »

Recompiled and replayed, now the issue is fixed, thank you! :D

Return to “Closed Bugs [Raze]”