Comment 0 for bug 793615

Revision history for this message
n1c0la5 (n1c0la5) wrote :

When I want to play with bearsum (I've tried only with IA), the game crash and I have this backtrace:
--------------------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "./ultimate-smash-friends", line 6, in <module>
    m.go()
  File "/home/nicolas/usf/usf/main.py", line 369, in go
    self.manage_game(state_was == "menu")
  File "/home/nicolas/usf/usf/main.py", line 322, in manage_game
    self.manage_ai()
  File "/home/nicolas/usf/usf/main.py", line 317, in manage_ai
    self.ai_instance.update(self.game, i)
  File "/home/nicolas/usf/usf/ai.py", line 247, in update
    s = search_path(game, iam, max_depth)
  File "/home/nicolas/usf/usf/ai.py", line 193, in search_path
    score, movements = search_path(game, iam, max_depth - 1)
  File "/home/nicolas/usf/usf/ai.py", line 169, in search_path
    simulate(game, iam, M)
  File "/home/nicolas/usf/usf/ai.py", line 85, in simulate
    game.update(deltatime=TIMESTEP)
  File "/home/nicolas/usf/usf/game.py", line 607, in update
    self.update_players(deltatime)
  File "/home/nicolas/usf/usf/game.py", line 496, in update_players
    self.zoom)
  File "/home/nicolas/usf/usf/entity.py", line 893, in update
    self.entity_skin.update(t, self.reversed, self.upgraded)
  File "/home/nicolas/usf/usf/entity_skin.py", line 296, in update
    self.animation.update(t, reverse, server)
  File "/home/nicolas/usf/usf/animations.py", line 132, in update
    frame = self.frame(gametime - self._start_time)
  File "/home/nicolas/usf/usf/animations.py", line 117, in frame
    return filter(lambda x: x.time/1000.0 <= time, self.frames)[-1]
IndexError: list index out of range