[obsolete]Inventory DECORATE Weirdness

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
User avatar
Deathsong12
Posts: 129
Joined: Mon Sep 05, 2005 22:31

[obsolete]Inventory DECORATE Weirdness

Post by Deathsong12 »

Okay, I'm at a loss to explain what's going on with my items derived from CustomInventory. The most irritating problem is that when instructed to drop a DECORATE inventory item, a creature does so, and also drops a weird second item that can be picked up an infinite number of times. Another major problem is using A_Jump codepointers in inventory items-GZDoom crahses upon activating the state containing the jumps. Finally, all codepointers in an inventory state execute simultainously. I can see this being intentional, but it ruins some effects. Thanks for your help.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Post your code. The CustomInventory implementation has some limitations. Most of these are caused because I have no idea how Randy will handle this eventually and I have to define it in a way that I can adjust if necessary. As a result some very specific restrictions apply when defining such an item.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Any help?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

A little reminder: Reporting a bug and not giving any feedback won't help me fixing it.

In this case it no longer applies anyway as I have replaced my CustomInventory implementation with Randy's.
User avatar
Deathsong12
Posts: 129
Joined: Mon Sep 05, 2005 22:31

Post by Deathsong12 »

Well, part of it still matters, as jumps in inventory items still give me the attacthed crash. Here's the one I'm using, in case It's a problem on my end:

Code: Select all

ACTOR DSStamina : CustomInventory
{
     ConversationID 306
     Inventory.MaxAmount 7
     States
     {
     Pickup:
       TNT1 A 1 A_JumpIfInventory ("DSStamina",6,2)
       TNT1 A 1 A_GiveInventory ("UpgradeStamina")
       Stop
       TNT1 A 1
       TNT1 A 1 A_ChangeFlag ("NOBLOOD",1)
       TNT1 A 1 A_GiveInventory ("UpgradeStamina")
       Stop
     }
}
Attachments
CrashReport.tar.gz
(13.17 KiB) Downloaded 51 times
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

I'll look into the crash. But with the current code that item won't go into the inventory anymore so you have to do your check by other means.
Locked

Return to “Closed Bugs”