Ticket #639 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

No able to open maps with similar names

Reported by: Kilian] Owned by: vtchill
Priority: normal Milestone: 0.3.4
Component: tools/editor Version: trunk
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Time planned:
Time remaining: Time spent:


It's not possible to open two or more maps with a similar name like tourist_beach.xml (from Rio de hola) and tourist_beach_test.xml at the same time.

Traceback (most recent call last):
  File "/home/kili/Repositories/FIFE/trunk/tools/editor/scripts/editor.py", line 419, in openFile
    map = fife_loader.load(path)
  File "../../engine/python/fife/fife.py", line 7506, in load
    return _fife.MapLoader_load(self, *args)
RuntimeError: _[NameClash]_ , A name or identifier is already in use :: TouristBeach

Change History

comment:1 Changed 6 years ago by vtchill

I do not believe this is a bug. The reason why it can't load them at the same time is because the id attribute in the Map element is the same. We load a map and store it based on this id parameter. The id's have to be unique otherwise we say the map is already loaded.

Is there an alternative way you would like FIFE to keep track of a map?

comment:2 Changed 6 years ago by vtchill

  • Owner changed from FIFE to vtchill

comment:3 Changed 6 years ago by vtchill

  • Status changed from new to assigned

comment:4 Changed 6 years ago by vtchill

  • Status changed from assigned to closed
  • Resolution set to fixed

(In [3835]) changed the map id parameter in the tourist_beach_test.xml file so that it no longer conflicts with the tourist_beach.xml map file. closes #639

Note: See TracTickets for help on using tickets.