bugDragon Hunt - Bugs: bug #12463, load_map is 'hard-coded' for...

 
 

bug #12463: load_map is 'hard-coded' for default module

Submitted by:  None
Submitted on:  Fri 25 Mar 2005 09:52:35 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 31 Mar 2005 02:52:37 AM UTC, comment #2:

This should be fixed in CVS now. Closed as fixed.

Thanks for finding this.

Trevor Carlson <evilmrhenry>
Project Administrator
Wed 30 Mar 2005 07:37:56 AM UTC, comment #1:

Good point. For the present, I suggest manually changing the string as needed. I'll look into it.

Trevor Carlson <evilmrhenry>
Project Administrator
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.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 31 Mar 2005 02:52:37 AM UTCevilmrhenryStatusIn Progress=>Fixed
  Open/ClosedOpen=>Closed
Wed 30 Mar 2005 07:37:56 AM UTCevilmrhenryStatusNone=>In Progress

Back to the top


Powered by Savane 3.1-cleanup1