ZDaemon Forum Index ZDaemon
Client/Server DOOM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ClearInventory()

 
Post new topic   Reply to topic    ZDaemon Forum Index -> Fixed Bugs
View previous topic :: View next topic  
Author Message
Xsnake
Dominating!


Joined: 29 Dec 2004
Location: France, Bordeaux

PostPosted: Sat Feb 18, 2012 6:34 pm    Post subject: ClearInventory() Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Sr69Mm-jC
Unstoppable!


Joined: 21 Jul 2011

PostPosted: Sat Feb 18, 2012 8:30 pm    Post subject: Reply with quote

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 Smile 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
View user's profile Send private message
Kilgore
Air Cavalry


Joined: 17 Jun 2003
Location: Up the river

PostPosted: Wed Apr 18, 2012 1:54 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Cybershark
Spamming!


Joined: 05 Jan 2005
Location: off the grid, but still fighting for the users!

PostPosted: Wed Apr 18, 2012 6:35 pm    Post subject: Reply with quote

Wow, that surely does sound like it'd have been pretty convoluted to remedy.

Great that it has been!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    ZDaemon Forum Index -> Fixed Bugs All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group