Jump to content
Sign in to follow this  
Matthew10_28

Items duplicating in backpacks when using Arsenal (problem narrowed to my mod)

Recommended Posts

The problem is this: If you have items in your backpack and you access Arsenal (via virtual arsenal in the main menu, self hosting a mission with arsenal attached to an object, etc) those items duplicate.  It doesn't matter what the item type or mod of origin.  If you check inventory before accessing, then access Arsenal and look at your contents of the backpack there, the items are doubled.  i.e. if you have 2 epi pens before accessing arsenal, you will have 4 the moment its triggered.  It can be any object type (hats, magazines, ace items, etc)  The effect is accumulative every time you re-access arsenal.  2 becomes 4 which becomes 8, etc.

 

I've got 13 mods technically in play (rhs, tfar, shacktac, etc) but I've recently narrowed it down to a problem with my own mod.  When I turn it off, the problem stops.  Someone in our group said my server was the only place he'd ever had the Arsenal problem, so I narrowed it down to my mod and it doesn't even have to be associated with a server so JIP and desync issues are ruled out.

Before I go posting my 1500+ line config.cpp, are their any ideas as to what would cause this?  My mod is pretty simple in that it adds a few custom uniform textures, backpack textures, custom faction definitions, unit loadouts, weapon config to pre-group accesories & attachments, pre-filled backpack definitions, etc.  It's all inherited class stuff.  I can't imagine what in my config.cpp would cause this strange behavior.

Share this post


Link to post
Share on other sites

https://forums.bistudio.com/topic/196915-backpack-transportitems-and-arsenal-revisited/

 

Seems to be standard behavior with backpacks that are preconf:ed using TransportItems, magazines etc etc along with Arsenal. Darn bummer if you ask me :/

My forum search-fu is weak.

If I'm understanding that, I think the solution is to allow players to establish their loadouts specific to their backpacks via Arsenal.  The only time you would pre-define a backpacks contents is for friendly AI use or to have a "go-bag" of something like medical supplies that can be loaded into a vehicle or crate inventory.  Basically, if the backpack is predefined as being loaded with goodies, make sure a player never wears it while accessing the arsenal right?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×