Home » MODDING HQ 1.13 » v1.13 Bug Reports » Disappearing Sector Inventories
Disappearing Sector Inventories[message #322486]
|
Sun, 07 July 2013 03:08
|
|
Flugente |
|
Messages:3507
Registered:April 2009 Location: Germany |
|
|
Hi,
I ran into a very annoying bug today. What happens is this (can easily be reproduced):
- Enter a sector that uses an alternate map. You can do this by enabling all weapon caches in the ini, starting a new game and then teleporting to H10.
- Kill everybody, thereby generating items in the sector.
- Go to strategic and from there enter another sector (like A9).
- Go back to strategic. Now enter H10 again.
- Voila: All items in this sector have been removed. It is now empty, apart from a 10x scope that can neither be found nor accessed :computer2:
Had this particular bug with a uncommitted exe of mine... but learned in IRC that this is an ancient bug. Apparently never fixed. Any ideas?
What I've learned until know is that this is directly related to alternate maps. If I force he game during loading of the sector to load the original map, all items are there... but, well, the original map is too. In H10 this removes the building, but curiously, changes to the building (like mortared and broken walls) stay. So now I have an map without buildings, apart from a broken wall.
Moreover, not using alternate maps can't be good. For whatever reason, underground maps ALSO have the 'alternate map'-tag. :whoknows: How are alternate maps handled correctly?
The items are stored in i_H10.Dat. It even reads from that when I enter the inventory from the strategic view. Only when I enter the map it reads them differently - it then reads all data from H10_a.DAT. The '_a' stands for alternate.
This seems like when entering and saving an alternate maps, the items should be stored in i_H10_a.DAT. But that never happens. It saves them in i_H10.DAT. Moreover, it does the same with corpses an stuff... and those are read correctly. So should the items be saved as i_H10.DAT, but also saved in H10_a.DAT? I don't know. How is this supposed to work?
Why is GetMapTempFileName() always used with BOOLEAN fAddAlternateMapLetter = TRUE if we enter a sector, but always with = FALSE if we determine the name for a tempfile (items and stuff)? Might be okay if the convention is that a map only ever has one version ingame... but why is the data then not written into H10_a.DAT?
Srsly. I hate this. :rant2:
Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Mon Dec 02 10:20:31 GMT+2 2024
Total time taken to generate the page: 0.01149 seconds
|