Ticket #639 (closed defect: fixed)
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: |
Description
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
Note: See
TracTickets for help on using
tickets.

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?