Zandronum Chat on our Discord Server Get the latest version: 3.1
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002671Zandronum[All Projects] Bugpublic2016-03-07 04:512018-09-30 22:02
Reporterthrowaway 
Assigned ToTorr Samaho 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target Version3.0Fixed in Version3.0 
Summary0002671: TIDs only sent to client as short - huge issues when combined with UniqueTID()
DescriptionUniqueTID() can return any TID in the range [1, 0x7FFFFFFF].

Only TIDs in the range [1, 32767] will be sent properly to the client, since the TID is sent as a signed short.

This causes quite a few issues with using UniqueTID() and newly-spawned actors as a way to send position data to the client (presumably you could also send angle/pitch data this way, but I haven't messed with that), namely that the client only gets a correct TID about 1/65536 of the time.

Right now, almost no Zandronum mods use UniqueTID(), but as mods get developed for Zandronum 3.0, this could very easily become an issue.
Attached Files

- Relationships

-  Notes
User avatar (0014566)
ZzZombo (reporter)
2016-03-07 09:54

That might explain quite a few things, but, actually negative TIDs are valid too, and can be returned by specifying a negative starting TID.
User avatar (0014588)
Torr Samaho (administrator)
2016-03-20 14:45

SERVERCOMMANDS_SetThingTID now sends the TID as long.
User avatar (0014597)
cobalt (updater)
2016-03-20 16:14

Issue addressed by commit f928a926b864: SERVERCOMMANDS_SetThingTID now sends the TID as long (addresses 2671).
Committed by Benjamin Berkels [Torr Samaho] on Wednesday 31 December 1969 23:59:57

Changes in files:

 src/cl_main.cpp | 4 ++--
 src/sv_commands.cpp | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

User avatar (0015008)
Ru5tK1ng (updater)
2016-06-04 17:36

Tested this online with r160519-2047 and UniqueTID successfully returned values +/-0x7FFFFFFF and values in between.

Issue Community Support
This issue is already marked as resolved.
If you feel that is not the case, please reopen it and explain why.
Supporters: ZzZombo Catastrophe
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2016-03-07 04:51 throwaway New Issue
2016-03-07 09:54 ZzZombo Note Added: 0014566
2016-03-20 14:45 Torr Samaho Note Added: 0014588
2016-03-20 16:14 cobalt Assigned To => Torr Samaho
2016-03-20 16:14 cobalt Status new => needs testing
2016-03-20 16:14 cobalt Target Version => 3.0
2016-03-20 16:14 cobalt Description Updated View Revisions
2016-03-20 16:14 cobalt Note Added: 0014597
2016-06-04 17:36 Ru5tK1ng Note Added: 0015008
2016-06-04 17:36 Ru5tK1ng Status needs testing => resolved
2016-06-04 17:36 Ru5tK1ng Resolution open => fixed
2016-06-04 17:36 Ru5tK1ng Fixed in Version => 3.0
2016-06-04 17:36 Ru5tK1ng Description Updated View Revisions
2018-09-30 22:02 Blzut3 Status resolved => closed






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker