google-code-export / gummworld2

Automatically exported from code.google.com/p/gummworld2
Other
2 stars 0 forks source link

gw2_skeleton run_game.py doesnt' work #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Copy gumworld distro to a new directory
2. Copy gw2_skeleton files into same directory per the README.txt.
3. chmod 755 run_game.py
5. ./run_game.py

What is the expected output? What do you see instead?
Expected:
Some basic do nothing game should start up.

Actual:
Traceback (most recent call last):
  File "./run_game.py", line 48, in <module>
    run_optimized()
  File "./run_game.py", line 31, in run_optimized
    import main
  File "/home/stephen/gaming-projects/scrollers/my-first-scroller/gamelib/main.py", line 5, in <module>
    import intro, settings
  File "/home/stephen/gaming-projects/scrollers/my-first-scroller/gamelib/intro.py", line 8, in <module>
    import settings, mainmenu
  File "/home/stephen/gaming-projects/scrollers/my-first-scroller/gamelib/settings.py", line 21, in <module>
    if os.environ['COMPUTERNAME'] == 'BW-PC':
  File "/usr/lib/python2.7/UserDict.py", line 23, in __getitem__
    raise KeyError(key)
KeyError: 'COMPUTERNAME'

What version of Python, pygame, and Gummworld2 are you using? On what
operating system?

Ubuntu 11.10
python 2.7
Package: python-pygame (1.9.1release-0ubuntu4)
Latest download of Gumworld and gumworld skeleton.

Please provide any additional information below.

Original issue reported on code.google.com by steveo98...@gmail.com on 12 Feb 2012 at 12:05

GoogleCodeExporter commented 9 years ago
Thanks for pointing this out. As an interim workaround you can simply remove 
the if block in settings.py that begins with "if os.environ['COMPUTERNAME'] == 
'BW-PC':". Obviously I didn't test the skeleton on non-Window OS. :)

Original comment by stabbing...@gmail.com on 12 Feb 2012 at 5:22

GoogleCodeExporter commented 9 years ago

Original comment by stabbing...@gmail.com on 23 Feb 2012 at 12:11