Home » MODDING HQ 1.13 » v1.13 Bug Reports » Disappearing Sector Inventories
Disappearing Sector Inventories[message #322486] Sun, 07 July 2013 03:08 Go to next message
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

Captain

Re: Disappearing Sector Inventories[message #322489] Sun, 07 July 2013 04:51 Go to previous messageGo to next message
SharkD is currently offline SharkD

 
Messages:351
Registered:July 2003
Would it be faster with a heuristic media-rich firewall language? I just love my new double-buffered texture-mapped intranet automation. And I'm impressed by the user-friendly cross-platform groupware language.

Report message to a moderator

Master Sergeant
Re: Disappearing Sector Inventories[message #322492] Sun, 07 July 2013 10:01 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3653
Registered:July 2009
For a moment there I thought your account got hacked and you were trying to sell handbags.

Report message to a moderator

Captain

Re: Disappearing Sector Inventories[message #322528] Mon, 08 July 2013 16:35 Go to previous messageGo to next message
dinglehopper is currently offline dinglehopper

 
Messages:134
Registered:January 2008
Just out of curiosity, did you try copying i_H10.dat as i_H10_a.dat? If so what happened?

Report message to a moderator

Sergeant
Re: Disappearing Sector Inventories[message #322558] Tue, 09 July 2013 18:03 Go to previous messageGo to next message
silversurfer

 
Messages:2791
Registered:May 2009
I had this bug today with a sector that has no alternative map, F8 the Cambria clinic. I wanted to collect the loot from a previous battle and the sector map showed 113 items (including the clinic supply). When I got there and entered tactical view only a 2x scope was there and unreachable. Sad

Report message to a moderator

Lieutenant
Re: Disappearing Sector Inventories[message #322559] Tue, 09 July 2013 18:26 Go to previous messageGo to next message
Gambigobilla

 
Messages:693
Registered:July 2008
Of all the items why this bug spawns scopes? This happened to me with UC365 and it spawned reflex scopes. Maybe it's something with attachments. I suspect nCAF has something to do with it

Report message to a moderator

First Sergeant
Re: Disappearing Sector Inventories[message #322561] Tue, 09 July 2013 18:45 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3653
Registered:July 2009
Gambigobilla
Of all the items why this bug spawns scopes? This happened to me with UC365 and it spawned reflex scopes. Maybe it's something with attachments. I suspect nCAF has something to do with it

I've had this bug ages ago somewhere in Estoni. I can't recall exactly what my setup was, but we are talking about something in the mid-3### to early 4### with either early AIMNAS or even still AIM-WF. That's what I'm talking about when I call this bug ancient.

Now that I think about it, I believe someone made a hack-fix for the Estoni variant ...

Report message to a moderator

Captain

Re: Disappearing Sector Inventories[message #322563] Tue, 09 July 2013 20:04 Go to previous messageGo to next message
Thor is currently offline Thor

 
Messages:423
Registered:February 2007
Location: Belgium
I've had an 'inventory items disappearing' bug when I ctrl-clicked some items from the sector inventory into the vehicle inventory (r.6187). Happened with several guns that I had double. The second one disappears. Only had it with guns so far...

Report message to a moderator

Master Sergeant
Re: Disappearing Sector Inventories[message #322565] Tue, 09 July 2013 20:14 Go to previous messageGo to next message
Gambigobilla

 
Messages:693
Registered:July 2008
Just a quick search with svn changelogs says there was a fix for Estoni in rev4595. Is this the revision you are talking about?

Also while checking items.cpp there seems to be a bugfix at rev5228 and rev5781.

Report message to a moderator

First Sergeant
Re: Disappearing Sector Inventories[message #322652] Sat, 13 July 2013 03:40 Go to previous messageGo to next message
Flugente

 
Messages:3507
Registered:April 2009
Location: Germany
dinglehopper
Just out of curiosity, did you try copying i_H10.dat as i_H10_a.dat? If so what happened?
Nothing. The game does not try to read such a file. I am not sure wether this is good or bad.

Report message to a moderator

Captain

Re: Disappearing Sector Inventories[message #323062] Mon, 22 July 2013 14:01 Go to previous messageGo to next message
Bambusar is currently offline Bambusar

 
Messages:63
Registered:July 2012
That was massively happening in Urban Chaos i have been playing a while ago. Sometimes insted of scopes i got some NIV pockets. Usually grayed out in strategic screen but when you entered tactical and exited again they were pickupable.

Currently I noticed same bug in latest 6232/1704 in Alma. After you go to tactical and back to strategical all items are gone replaced by 10x scope.

If you need I can post saves.



Thor

I've had an 'inventory items disappearing' bug when I ctrl-clicked some items from the sector inventory into the vehicle inventory (r.6187). Happened with several guns that I had double. The second one disappears. Only had it with guns so far...


I noticed that too. With shotguns. If you put multiple shotguns from truck to map inventory with ctrl-click, they just dissapear.

[Updated on: Mon, 22 July 2013 14:02] by Moderator

Report message to a moderator

Corporal
Re: Disappearing Sector Inventories[message #323240] Thu, 25 July 2013 21:23 Go to previous messageGo to next message
Flugente

 
Messages:3507
Registered:April 2009
Location: Germany
I hope I solved this issue now in r6242. The problem was as follows:

When entering a sector, we preinitialize enemy placements (the one from the map editor), which causes us to temporarily create pre-placed soldiers and pre-placed items for them. In all instances I observed, there were enemies with dragunovs (item #18) and attached 10x scopes (item #208). In vanilla, when the maps were created, these items were compatible - now they aren't anymore.

As a result, the attachment does not fit, so we try to drop that attachment into our inventory - which doesn't exist (remember, WE (=soldier) don't exist). As that fails, we try to drop it at our feet (that don't exist...). This is bad. So bad that it deletes the entire inventory, because why not or something. :hmm:

I changed it, so that we now drop the stuff to a location that does exist (unless I misunderstood how map gridnos work). The item still won't show up, as after all, the item shouldn't exist, as the person using it doesn't exist either. :headbanger:

It seems in ancient times, someone already tried to fix this, but code indicates he/she wasn't entirely sure of what they were doing. Who knows, maybe they'll say it about this fix too. Item creation, attachments and map placements are horrible, horrible things. :roulette:

Report message to a moderator

Captain

Re: Disappearing Sector Inventories[message #323244] Fri, 26 July 2013 00:28 Go to previous messageGo to next message
silversurfer

 
Messages:2791
Registered:May 2009
Flugente
Item creation, attachments and map placements are horrible, horrible things. :roulette:


Yeah, especially since the maps need fixing too after bugs in the editor/game have been fixed. *thinks of the attachment bug in the editor* Wink

Thanks for fixing this inventory bug. It was very annoying.

Report message to a moderator

Lieutenant
Re: Disappearing Sector Inventories[message #323245] Fri, 26 July 2013 00:47 Go to previous messageGo to next message
Gambigobilla

 
Messages:693
Registered:July 2008
Awww yeah, kudos to Flugente.

Report message to a moderator

First Sergeant
Re: Disappearing Sector Inventories[message #323736] Wed, 07 August 2013 11:07 Go to previous messageGo to next message
akiranyo is currently offline akiranyo

 
Messages:12
Registered:July 2013
Location: Slovakia
Latest 1.13 build, without any other additions.

Meduna, Airport. Re-entering the area removes all items in the sector inventory, except a M203 underslung grenade launcher. Seems like the only way to save the items is to move them into a other area before entering.

Guess I get only out the RPG rockets, LAW's and rare ammo and let the rest die. At this point I have no use for it anyways.

Report message to a moderator

Private
Re: Disappearing Sector Inventories[message #323762] Wed, 07 August 2013 20:42 Go to previous message
Flugente

 
Messages:3507
Registered:April 2009
Location: Germany
Using r6274, I can not reproduce that - items in Meduna airport stay (including a single Talon Launcher that cannot be picked up or seen on the map). If I remember correctly from vanilla, there was always a hardcoded RPK-74 with both bipod and talon in that map. This seems to be the case I described above.

Are you sure your exe is >= r6242?

Report message to a moderator

Captain

Previous Topic: email from Speck (Richard) causing crash
Next Topic: Problems with MercAvailability.xml and old savegames
Goto Forum:
  


Current Time: Sat Nov 30 08:40:30 GMT+2 2024

Total time taken to generate the page: 0.01321 seconds