View Issue Details

IDProjectCategoryView StatusLast Update
0000955Spring engineGeneralpublic2008-06-18 19:50
Reporterzenzike Assigned ToAuswaschbar  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version0.76b1+svn 
Summary0000955: Cannot host and spectate
DescriptionI've made a startscript that allows me to spectate the game when 2 bots are fighting one another, and it worked fine in Spring 0.76b. However, it doesn't work in the svn version.

If I launch this in 0.76b+, both AI teams get created and start playing. However, I am down as an Ally, rather than a Spectator, and I can control Team 1 units (at the same time as the AI -- it's actually quite entertaining, but really not what I want). The line of sight is also restricted -- ie, I really am considered a player, and not a spectator.

Script attached.
TagsNo tags attached.
Attached Files
startscript.txt (Attachment missing)
Checked infolog.txt for Errors

Activities

Kloot

2008-06-17 16:25

developer   ~0002336

Last edited: 2008-06-17 16:33

Happens because CGameServer always sends out a TEAMMSG_JOIN_TEAM in BindConnection() for player 0, which overrides the spectat** fields set in CGameSetup when CGame receives it.

Auswaschbar

2008-06-18 19:50

reporter   ~0002349

Fixed in rev6043. Thanks for the report.

Issue History

Date Modified Username Field Change
2008-06-17 11:25 zenzike New Issue
2008-06-17 11:25 zenzike File Added: startscript.txt
2008-06-17 16:20 Auswaschbar Status new => assigned
2008-06-17 16:20 Auswaschbar Assigned To => Auswaschbar
2008-06-17 16:25 Kloot Note Added: 0002336
2008-06-17 16:33 Kloot Note Edited: 0002336
2008-06-18 19:50 Auswaschbar Status assigned => resolved
2008-06-18 19:50 Auswaschbar Resolution open => fixed
2008-06-18 19:50 Auswaschbar Note Added: 0002349