[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Adonthell-devel] Got it working!
From: |
Alexandre Courbot |
Subject: |
Re: [Adonthell-devel] Got it working! |
Date: |
26 Apr 2002 14:08:38 +0200 |
Ah, managed to get it to work on a Windows machine here. Actually
warnings.py is only need when Python emits a warning - so fixing the
"from character_screen import *" made the title screen appear properly.
But when starting a game, after entering the player's name, the game
remains stuck and stderr.txt contains the following:
Traceback (most recent call last):
File "c:/share/adonthell/games/wastesedge/scripts\init.py", line 104,
in on_update
self.show_menu (1, 0)
File "c:/share/adonthell/games/wastesedge/scripts\init.py", line 180,
in show_menu
gamedata_player ().set_name (cs.name)
AttributeError: 'NoneType' object has no attribute 'set_name'
Here is the exact change I've made:
Original init.py:
if retval == 1:
# -- let the player chose a name for his character
from character_screen import *
cs = character_screen ()
gamedata_engine ().main (cs, "character_screen")
gamedata_engine ().fade_out ()
self.cleanup ()
# -- load the initial game
gamedata_load (0)
adonthell.gamedata_player ().set_name (cs.name)
# -- on to the intro
self.play_intro ()
New init.py:
# -- start new game
if retval == 1:
# -- let the player chose a name for his character
import character_screen
cs = character_screen.character_screen ()
gamedata_engine ().main (cs, "character_screen")
gamedata_engine ().fade_out ()
self.cleanup ()
# -- load the initial game
gamedata_load (0)
# Don't know why there were an "adonthell." here...
gamedata_player ().set_name (cs.name)
# -- on to the intro
self.play_intro ()
I really don't understand why gamedata_player () return None. Any clue
Kai?
Alex.
--
http://www.gnurou.org
Re: [Adonthell-devel] Got it working!, Alexandre Courbot, 2002/04/26