I mentioned this a while back in another thread (which I can't find ATM). At that time, I was having problems with my flare item causing what seemed like random crashes. I messed around with it until it became the version that was released in the Thief WAD. For some reason that didn't seem to cause the problem. However, I have now created another item and it seems to reliably and repeatedly cause what seems like the same/a very similar problem.
Grab the linked file. Load it and pick up the grenade box. Attached to it is a script that simply gives you 25 grenades. GiveInventory ("NJArtiFragGrenade", 25) ). Then walk right up to the door so that you are touching it (as if you were going to open it) but rather than hitting [USE], hit whichever key you have bound to use inventory items to throw a grenade. If it behaves like it does on my system, this will cause GZdoom to get stuck. You can usually Ctrl-Alt-Del to shut GZdoom down, but it can be a pain to do so, and you get stuck with your screen using the game gama settings.
http://www.zen64060.zen.co.uk/gren.zip
[edit]OK, process of elimination stuff by comparing it to my flare...
Reducing the size of the projectile item (NJFragGrenade) to 4x4 and reducing its speed to 20 seems to cure the problem. Restore either thing back to its original value and the problem comes back.[/edit]
[fixed]Thrown inventory items causing GZdoom to freeze
Moderator: Graf Zahl
- Enjay
- Developer
- Posts: 4748
- Joined: Tue Aug 30, 2005 23:19
- Location: Scotland
- Contact:
- Enjay
- Developer
- Posts: 4748
- Joined: Tue Aug 30, 2005 23:19
- Location: Scotland
- Contact:
Can I ask what specifically was causing the problem? It's something that has bugged me on and off for some time now, so I'm just curious to know why it happened with some set ups and not others.
Oh, and there are a few fixes you have done recently for things that have been bugging me. Will you be in a position to build a new version any time soon or are you still otherwise commited? (Not pushing, just trying to sort out my own timescale.)
Oh, and there are a few fixes you have done recently for things that have been bugging me. Will you be in a position to build a new version any time soon or are you still otherwise commited? (Not pushing, just trying to sort out my own timescale.)
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
It was an incorrect use of a global variable in the function that executes the Pickup, Use and Drop states. When your projectile was spawned in the wall its death state got called immediately which contained a code pointer. That overwrote that global variable. Now I am using a local one and all is well.
As for a next version I don't know. ZDoom's code is too much in a state of flux at the moment and there is one outstanding issue that I'd like to see resolved before a release (the player spawn issue in the ZDoom bugs forum.)
As for a next version I don't know. ZDoom's code is too much in a state of flux at the moment and there is one outstanding issue that I'd like to see resolved before a release (the player spawn issue in the ZDoom bugs forum.)
- Enjay
- Developer
- Posts: 4748
- Joined: Tue Aug 30, 2005 23:19
- Location: Scotland
- Contact:
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact: