edisona / endgame-singularity

Automatically exported from code.google.com/p/endgame-singularity
1 stars 0 forks source link

Making a new save crashes the game #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start a new game.
2. Save.

What is the expected output? What do you see instead?

The game crashes.  It shouldn't.

Please use labels and text to provide additional information.

Traceback (most recent call last):
  File "singularity.py", line 169, in <module>
    game_action = map_screen.map_loop()
  File "/home/phil/rcs/svn/endgame-singularity/trunk/code/map_screen.py",
line 440, in map_loop
    result = show_options()
  File "/home/phil/rcs/svn/endgame-singularity/trunk/code/map_screen.py",
line 295, in show_options
    result = handle_pause_menu(selection, menu_buttons)
  File "/home/phil/rcs/svn/endgame-singularity/trunk/code/map_screen.py",
line 455, in handle_pause_menu
    g.save_game(possible_name)
  File "/home/phil/rcs/svn/endgame-singularity/trunk/code/g.py", line 662,
in save_game
    pickle.dump(bases, savefile)
NameError: global name 'bases' is not defined

Original issue reported on code.google.com by phil.bor...@gmail.com on 27 Apr 2008 at 10:43

GoogleCodeExporter commented 9 years ago
For some reason, the terseness of "The game crashes.  It shouldn't" is 
reminding me
of Linus's RickRoll bug.  No profit!

Anyway, fixed in git (ca7b008).  This will get committed to svn along with the 
fix
for issue 6 (old saves).
-FM

Original comment by funnyman3595 on 28 Apr 2008 at 7:08