Home » MODDING HQ 1.13 » v1.13 Bug Reports » Disappearing Sector Inventories
Re: Disappearing Sector Inventories[message #323240]
|
Thu, 25 July 2013 21:23
|
|
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
|
|
|
|
Goto Forum:
Current Time: Mon Dec 02 12:32:11 GMT+2 2024
Total time taken to generate the page: 0.01567 seconds
|