Demos not playing.

Demos not playing.

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
Sevalecan
Posts: 10
Joined: 27 Oct 2006, 00:57

Demos not playing.

Post by Sevalecan »

So, I want to watch a demo. It's been broken for me in the last 3 releases of spring.
At first I looked to see what error was in the infolog, then I looked at the bug tracker.
That bug appears to be here http://springrts.com/mantis/view.php?id=1466 , with that same backtrace as linked to in that report. Ok fine, I want to know more so I compile it in debug mode. Naturally that goes away and it dies on an assertion. (line 35 in rts/Game/PlayerHandler.h, infolog.txt below). There were some warnings in the infolog about there being 3 players but NumPlayers only listing two. I even changed NumPlayers in the demo file to 3 and it didnt do anything(the warning about NumPlayers not matching in the infolog stays).

I don't develop spring, so I'm completely unfamiliar with the code and I just start going around hacking at it until something works. I changed line 34 in rts/Game/PlayerHandler.h so that the players vector was resized to setup->numPlayers+1. I didn't really think that'd work, but it did. So I'm happily watching a replay, it says something about making me a spectator, that's all fine and dandy. But I can only see my team's units and I have to /cheat and /team 1 to see the other side.. I though I was supposed to be a spectator? (pressing 1,2,3,4 doesnt change anything)

Then I tried to do /spectator, that doesn't help.. it thinks I'm trying to hack the game, yes trying to hack it into working properly.

It'd really be nice to watch replays. And I can't imagine how much digging it'd take me to be able to fix it myself(and properly, I know my hack above isn't the right way to do it :P).

Code: Select all

spring ~/.spring/demos/local_20090619_134312_IsisDelta_v02_0.79.1.sdf
LogOutput initialized.
Spring 0.79.1.1
Available log subsystems: mapinfo, CollisionVolume, unit, VFS-detail, VFS, ArchiveScanner, Sound
Enabled log subsystems: Sound
Enable or disable log subsystems using the LogSubsystems configuration key
  or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated).
[CMyMath::Init] CPU SSE mask: 96, flags:
        SSE 1.0:  1,  SSE 2.0:  0
        SSE 3.0:  0, SSSE 3.0:  0
        SSE 4.1:  0,  SSE 4.2:  0
        SSE 4.0A: 0,  SSE 5.0A: 0
        using streflop SSE FP-math mode, CPU supports SSE instructions
using configuration source "/home/sev/.springrc"
OS: Linux
Using read-write data directory: /home/sev/.spring/
Using read-only  data directory: /usr/games/bin/
Using read-only  data directory: /home/sev/.spring/
Using read-only  data directory: /usr/share/games/spring/
Using read-only  data directory: /usr/games/lib/spring/
Using read-only  data directory: /usr/share/games/spring/
Scanning: /usr/share/games/spring/maps
Scanning: /usr/share/games/spring/base
Scanning: /usr/share/games/spring/mods
Scanning: /usr/share/games/spring/packages
Scanning: /usr/games/lib/spring/maps
Scanning: /usr/games/lib/spring/base
Scanning: /usr/games/lib/spring/mods
Scanning: /usr/games/lib/spring/packages
Scanning: /usr/share/games/spring/maps
Scanning: /usr/share/games/spring/base
Scanning: /usr/share/games/spring/mods
Scanning: /usr/share/games/spring/packages
Scanning: /home/sev/.spring/maps
Scanning: /home/sev/.spring/base
Scanning: /home/sev/.spring/mods
Scanning: /home/sev/.spring/packages
Scanning: /usr/games/bin/maps
Scanning: /usr/games/bin/base
Scanning: /usr/games/bin/mods
Scanning: /usr/games/bin/packages
Scanning: /home/sev/.spring/maps
Scanning: /home/sev/.spring/base
Scanning: /home/sev/.spring/mods
Scanning: /home/sev/.spring/packages
Video mode set to  1440 x 900 / 32 bit
SDL:  1.2.13
GL:   2.1.2 NVIDIA 180.51
GL:   NVIDIA Corporation
GL:   unknown board/AGP/SSE/3DNOW!
GLEW: 1.5.1
Connecting to local server
Pre-scanning demo file for game data...
Warning: 3 players in GameSetup script (NumPlayers says 2)
Starting GameServer
GameServer started
Video mode set to  1274 x 900 / 32 bit
Starting demo recording
Warning: 3 players in GameSetup script (NumPlayers says 2)
Using map IsisDelta_v02.smf
Recording demo demos/local_20090619_182426_IsisDelta_v02_0.79.1.sdf
Using script Commanders
Using mod Balanced Annihilation V6.95
Using mod archive BA695.sd7
Became player 3 (team 1, allyteam 1)
Sound: OpenAL info:
Sound:   Vendor:     OpenAL Community
Sound:   Version:    1.1
Sound:   Renderer:   OpenAL Soft
Sound:   AL Extensions: AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_OFFSET AL_LOKI_quadriphonic
Sound:   ALC Extensions: ALC_ENUMERATE_ALL_EXT ALC_ENUMERATION_EXT ALC_EXT_CAPTURE ALC_EXT_EFX
Sound:   Device:     ALSA Software on default
Sound:   Available Devices:
Sound:                       ALSA Software on default
Sound:                       ALSA Software on SB Live 5.1 Dell OEM [SB0220]
Sound:                       ALSA Software on NVidia nForce2
Sound: CSound(): Sucessfully parsed 4 SoundItems from gamedata/sounds.lua
Parsing unit icons
Parsing definitions
Loading all definitions:  1.073000
You are missing the "ARB_shadow_ambient" extension (this will probably make shadows darker than they should be)
Loading map informations
Opening map file
Loading Map
Loading detail textures
Creating overhead texture
Creating ground shading
Loading tile file
Reading tiles
Reading tile map
error = 2, teamcolors.lua, [string "teamcolors.lua"]:61: attempt to index field '?' (a nil value)
teamcolors.lua: luaParser.Execute() failed
Creating projectile texture
Number of damage types: 40
Loading weapon definitions
Loading unit definitions
Loading feature definitions
Creating unit textures
Initializing map features
Couldnt find wreckage info treetype0
Couldnt find wreckage info treetype1
Couldnt find wreckage info treetype2
Couldnt find wreckage info treetype3
Couldnt find wreckage info treetype4
Couldnt find wreckage info treetype5
Couldnt find wreckage info treetype6
Couldnt find wreckage info treetype7
Couldnt find wreckage info treetype8
Couldnt find wreckage info treetype9
Couldnt find wreckage info treetype10
Couldnt find wreckage info treetype11
Couldnt find wreckage info treetype12
Couldnt find wreckage info treetype13
Couldnt find wreckage info treetype14
Couldnt find wreckage info treetype15
Couldnt find wreckage info geovent
Reading estimate path costs
Pathing data checksum: 6cc74423
Creating sky
spring: /var/tmp/portage/games-strategy/spring-0.79.1.1/work/spring_0.79.1.1/rts/Game/PlayerHandler.h:35: CPlayer* CPlayerHandler::Player(int): Assertion `unsigned(i) < players.size()' failed.
Aborted
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: Demos not playing.

Post by Kloot »

Change the Name= field in your ~/.springrc to something non-empty. The real fix for this is already in master, but wasn't applied in making the 79.1.1 release.
Sevalecan
Posts: 10
Joined: 27 Oct 2006, 00:57

Re: Demos not playing.

Post by Sevalecan »

Kloot wrote:The real fix for this is already in master, but wasn't applied in making the 79.1.1 release.
I'd probably have been better off not knowing that...

Must...restrain myself.. argh.
Sevalecan
Posts: 10
Joined: 27 Oct 2006, 00:57

Re: Demos not playing.

Post by Sevalecan »

By the way, I can't seem to find out which commit that'd be. I'd love to toss it on, or is master still compatible?
Post Reply

Return to “Help & Bugs”