Always the little things

Thank god I finished in time. Although I am rather annoyed that I didn't have time for sound effects.

I'm sorry to everyone trying to play the game for the glitch in level 6.

Replacing the 'scene.py' file with the one I've uploaded should fix it though.

(log in to comment)

Comments

There was a bigger problem - getting it to work at all.

Out of the box I got...

Traceback (most recent call last):
  File "run_game.py", line 11, in <module>
    main = game.Core(screen)
  File "/home/mauve/pyweek/Stratejelly/game.py", line 92, in __init__
    "map":MapState(self),
  File "/home/mauve/pyweek/Stratejelly/game.py", line 170, in __init__
    self.levels.append(LevelNode(self.screen,i+1,(x+100,y+250),completion))
  File "/home/mauve/pyweek/Stratejelly/gui.py", line 103, in __init__
    data = pickle.load(f)
  File "/usr/lib/python2.6/pickle.py", line 1370, in load
    return Unpickler(file).load()
  File "/usr/lib/python2.6/pickle.py", line 858, in load
    dispatch[key](self)
  File "/usr/lib/python2.6/pickle.py", line 966, in load_string
    raise ValueError, "insecure string pickle"
ValueError: insecure string pickle

I fixed that by re-running make_levels.py (or flip -u data/levels/*.txt), but it's to do with line endings: open your files with 'wb' and 'rb' for pickles to avoid this.

Another problem was that the levels appear blank, which was also down to line endings. I fixed it by adding the mode 'rU' to open() in map.py, line 30.

Now to play it...