View previous topic :: View next topic |
Author |
Message |
Xsnake Dominating!
Joined: 29 Dec 2004 Location: France, Bordeaux
|
Posted: Sat Feb 18, 2012 6:34 pm Post subject: ClearInventory() |
|
|
Hey,
I've been trying to get iu-part5 working at 100% on ZDaemon lately and came across that bug.
The ClearInventory function works but when it's called twice in a row, the game will crash.
Here is a test wad.
Press the switch once, it will work fine. Press it again and the game will crash. |
|
Back to top |
|
|
Sr69Mm-jC Unstoppable!
Joined: 21 Jul 2011
|
Posted: Sat Feb 18, 2012 8:30 pm Post subject: |
|
|
Correction.. It's not exactly about calling it twice in a row. It's about pressing it when you have fist selected.
Situation 1:
- Select any weapon but fist
- Press switch
- It switches you to fist
- Press switch again
- Crash
Situation 2:
- Select any weapon but fist
- Press switch
- It switches you to fist
- Cheat to acquire weapons
- Goto Situation 2 It won't crash.
Situation 3:
- Select fist
- Press switch
- Crash
So the solution is to not remove player's default weapon 1, I guess?
P.S. Checked zdoom behaviour.. When calling this function with fist selected, it lowers and raises fist, so it kinda looks like it re-gives you the fist. |
|
Back to top |
|
|
Kilgore Air Cavalry
Joined: 17 Jun 2003 Location: Up the river
|
Posted: Wed Apr 18, 2012 1:54 am Post subject: |
|
|
This turned out to be a PITA. There were in fact 3 bugs in there:- Instant client crash when you remove all weapons AND you have full screen HUD.
- Client crash when hitting weapnext/weapprev after having brought the client weapons to some inconsistent state (cause by the removal of all weapons in the first place).
- Failure to remove the weapon from the clients in online mode (it was actually removed on the server side, but that didn't relay properly to the clients).
All that should be working properly in b27. |
|
Back to top |
|
|
Cybershark Spamming!
Joined: 05 Jan 2005 Location: off the grid, but still fighting for the users!
|
Posted: Wed Apr 18, 2012 6:35 pm Post subject: |
|
|
Wow, that surely does sound like it'd have been pretty convoluted to remedy.
Great that it has been! |
|
Back to top |
|
|
|