Bug 2881 - Once-off teleport bug
Status: RESOLVED FIXED
Alias: None
Product: Tremulous
Classification: Unclassified
Component: Platform
Version: unspecified
Hardware: PC Linux
: P2 minor
Assignee: Tim Angus
QA Contact:
URL:
: 2925
Depends on:
Blocks:
 
Reported: 2006-09-23 16:42 EDT by Henry Finucane
Modified: 2006-11-19 02:07:20 EST
4 users (show)

See Also:


Attachments
Teleport fix (518 bytes, patch)
2006-11-11 07:29 EST, Martin Doucha

Description Henry Finucane 2006-09-23 16:42:26 EDT
While running through the basement of tremor, I was suddenly teleported into the box room. I think I was transferred through an egg, but I'm not sure.

I'll attach a demo when I figure out how.
Comment 1 Henry Finucane 2006-09-23 16:53:04 EDT
http://www.filefactory.com/file/d24013/ <- temporary hosting for the demo
Comment 2 Martin Doucha 2006-09-24 03:06:39 EDT
Did you select your class to spawn into twice before you've been teleported?
Comment 3 rasz 2006-09-24 12:29:23 EDT
hey, it happened to me several times, but I was sure  I hallucinated :) always just after spawning as alien
twice I spawned as a granger, run a little(first time <1meter,second time a good 20 meters) and BAM, all of a sudden I spawned again from different egg as a dretch, no double 'choose class' dialog

once on niveus, once on arachnid.
Comment 4 Henry Finucane 2006-09-24 20:40:27 EDT
(In reply to comment #2)
> Did you select your class to spawn into twice before you've been teleported?
> 

I don't believe so. You could probably glean that from the demo though.
Comment 5 Marc H. Thoben 2006-09-25 07:37:00 EDT
(In reply to comment #0)
> While running through the basement of tremor, I was suddenly teleported into
> the box room. I think I was transferred through an egg, but I'm not sure.
> 
> I'll attach a demo when I figure out how.
> 

I'd like to confirm this bug:

ATCS, spawned as Granger, walked a few meters, spawned again as Granger, walked a few meters, spawned again as Granger... I always spawned from the same egg...

To me it happened in quite a few games, only on ATCS though. And only at the start of the map when I joined early. Never in the middle of the game.

(In reply to comment #2)
> Did you select your class to spawn into twice before you've been teleported?
> 

Definitely no.
Comment 6 Tim Angus 2006-09-25 07:57:55 EDT
This is potentially something to do with spectators following the player who respawns inappropriately. Please check if this has anything to do with it.
Comment 7 Tony J. White 2006-09-28 15:40:08 EDT
  
Make sure you turn on /cg_lagometer to see how your connection is behaving when this happens.  I have a hunch this only happens in times of network lag and is perhaps just a client prediction quirk.

Has anyone actually seen this happen to another player (not while in spectator follow mode)?   If not, then it would tend to look like a client issue.
Comment 8 Roman "kevlarman" Tetelman 2006-11-10 22:55:35 EST
you can reproduce this bug by hitting a bind that contains one of "class level0", "class builder", or "class builderupg". there is nothing preventing you from getting into the spawn queue multiple times, and that is exactly what happens. the bug only affects aliens.
Comment 9 Martin Doucha 2006-11-11 06:39:03 EST
Ahhh, yes, I see it now... Cmd_Class_f() checks alien class against ent->client->ps.stats[STAT_PCLASS] which is set properly and then reset to PCL_NONE in SpectatorThink()... Humans don't have this bug because their class is always checked against ent->client->pers.classSelection which is not reset.
Comment 10 Martin Doucha 2006-11-11 07:29:55 EST
Created attachment 1144 [details]
Teleport fix

This patch should fix it.
Comment 11 Tony J. White 2006-11-13 10:11:54 EST
Thanks Martin, committed as revision 840
Comment 12 rasz 2006-11-19 02:07:20 EST
*** Bug 2925 has been marked as a duplicate of this bug. ***