Fri 25 Mar 2005 09:52:35 PM UTC, original submission:
Dragon Hunt Version: 0.46
Platform: ArchLinux (Linux kernel 2.6.4)
Python Version: 2.4
file: ./code/load_map.py
Line: 57
array_mods = listdir("../modules/Dragon Hunt/data/maps/")
Attempts to change this to use g.mod_directory fail. Running Map_Editor after adding 'import g' to load_map.py produces:
Traceback (most recent call last):
File "map_editor.py", line 30, in ?
import load_map
File "/.../Dragon_Hunt-3.46/code/load_map.py", line 23, in ?
import g
File "/.../Dragon_Hunt-3.46/code/g.py", line 38, in ?
import main
File "/.../Dragon_Hunt-3.46/code/main.py", line 35, in ?
import inv
File "/.../Dragon_Hunt-3.46/code/inv.py", line 28, in ?
import action
File "/.../Dragon_Hunt-3.46/code/action.py", line 24, in ?
import battle
File "/.../Dragon_Hunt-3.46/code/battle.py", line 34, in ?
hp = StringVar()
File "/usr/lib/python2.4/lib-tk/Tkinter.py", line 228, in _init_
Variable.__init__(self, master)
File "/usr/lib/python2.4/lib-tk/Tkinter.py", line 179, in _init_
self._tk = master.tk
AttributeError: 'NoneType' object has no attribute 'tk'
Exception exceptions.AttributeError: "StringVar instance has no attribute '_tk'" in <bound method StringVar.__del__ of <Tkinter.StringVar instance at 0x406448ec>> ignored
I think this is a dependancy issue that I need to specify an additional import in load_map.py, but I can't seem to figure out what is needed. As for why exactly we need to include the battle and action stuff for the map editor, I don't understand. Perhaps we need to move the module related pieces out of g.py to allow this to be used in load_map.
Note: I would have posted this to a mailing list instead of as a bug, but did not find an active ML to post to. Any responses to this bug for additional information may be directed to mailger (at) mail (dot) com.
|