MantisBT - Zandronum
View Issue Details
0001073Zandronum[All Projects] Bugpublic2012-09-26 23:272024-03-19 04:37
unknownna 
 
normalcrashalways
resolvedfixed 
1.0 
 
0001073: Client crash if spectator uses Targeter
It seems that clients crash if they use the Targeter item when they're a spectator.
1. zandronum.exe -file targeter_01.wad -host +sv_cheats 1
2. Connect a client to the server.
3. "give targeter_02" in the console.
4. "invuse" in the console.
It will only crash if the sprites (TRGTA0/TRGTB0/TRGTC0) are included in the WAD.
No tags attached.
? targeter_01.wad (726) 2012-09-26 23:27
/tracker/file_download.php?file_id=760&type=bug
Issue History
2012-09-26 23:27unknownnaNew Issue
2012-09-26 23:27unknownnaFile Added: targeter_01.wad
2012-09-26 23:27unknownnaStatusnew => confirmed
2012-09-26 23:45unknownnaNote Added: 0004817
2012-09-27 16:18LlewellynNote Added: 0004826
2012-09-27 19:45Torr SamahoNote Added: 0004829
2012-09-27 20:49unknownnaNote Added: 0004831
2012-09-30 08:02Torr SamahoAssigned To => Torr Samaho
2012-09-30 08:02Torr SamahoStatusconfirmed => assigned
2012-09-30 08:24Torr SamahoNote Added: 0004863
2012-09-30 08:24Torr SamahoNote Edited: 0004863bug_revision_view_page.php?bugnote_id=4863#r2638
2012-09-30 08:25Torr SamahoAssigned ToTorr Samaho =>
2012-09-30 08:25Torr SamahoStatusassigned => confirmed
2012-09-30 08:25Torr SamahoNote Revision Dropped: 4863: 0002637
2012-09-30 08:38unknownnaNote Added: 0004865
2012-09-30 08:39unknownnaNote Edited: 0004865bug_revision_view_page.php?bugnote_id=4865#r2640
2012-09-30 08:40unknownnaNote Edited: 0004865bug_revision_view_page.php?bugnote_id=4865#r2641
2024-03-19 04:37Ru5tK1ngNote Added: 0023424
2024-03-19 04:37Ru5tK1ngStatusconfirmed => resolved
2024-03-19 04:37Ru5tK1ngResolutionopen => fixed

Notes
(0004817)
unknownna   
2012-09-26 23:45   
Are spectators supposed to be able to use any items at all?
(0004826)
Llewellyn   
2012-09-27 16:18   
Probably trying to refrence the Accuracy of the player.
The Targeter's edge sprites get closer together the higher your accuracy is.
(0004829)
Torr Samaho   
2012-09-27 19:45   
Quote from unknownna
Are spectators supposed to be able to use any items at all?
Spectators are not even supposed to have any items at all. Using the give cheat as a spectator breaks that logic. So I think I'll prevent spectators from using this cheat to fix this.
(0004831)
unknownna   
2012-09-27 20:49   
Quote from Torr Samaho
So I think I'll prevent spectators from using this cheat to fix this.

It also crashes if a player, i.e., a non-spectator, has used a Targeter in MAP01 before a map change to MAP02.

1. zandronum.exe -iwad strife1.wad -host +sv_cheats 1
2. Connect a client to the server and join the game.
3. "give targeter" in the console.
4. "invuse" in the console.
5. "nextmap" in the server console.
(0004863)
Torr Samaho   
2012-09-30 08:24   
Note: This only crashes with the software using release mode binaries. Unfortunately the debugger doesn't reveal what's going on. So this may be non-trivial to fix.

(0004865)
unknownna   
2012-09-30 08:38   
(edited on: 2012-09-30 08:40)
Quote from Llewellyn
Probably trying to refrence the Accuracy of the player.
The Targeter's edge sprites get closer together the higher your accuracy is.

Clients don't know of their own UpgradeAccuracy and UpgradeStamina after map changes. Perhaps this could be the cause of the crash. You can see this if hud_althud and hud_showstats is set to 1. It seems that you also can upgrade your stamina after map changes, even if your stamina was full (Inventory.MaxAmount) before the map change.

(0023424)
Ru5tK1ng   
2024-03-19 04:37   
Marking this resolved since spectators no longer can use inventory and the crash related to the targer and nextmap could not be reproduced in 3.1