Home » MODDING HQ 1.13 » v1.13 Modding, Customising, Editing » v1.13 Modding, Customising, Editing » Hired Merc inventory troubles
Hired Merc inventory troubles[message #346733] Wed, 24 August 2016 20:28 Go to next message
edmortimer

 
Messages:795
Registered:January 2015
Location: Home Free
I've been trying to solve this issue in my mod for the last week without any results -- though I have eliminated a lot of possible problem areas. The issue is: some Mercs when first hired and arriving in Omerta do not have their primary weapon (the item listed in the <mWeapon>xxx</mWeapon> tag in MercStartingGear.xml) (typo- MercProfiles.xml, ignore).

The relevant XML files are all good -- no problems with xml structure or missing tags. In fact, Mercs that have not had the starting gear modified in the last 2 versions of this mod, and who worked previously without problem, do not work now.

The primary weapons not showing up are both standard 1.13 weapons such as the M1 Garand, and some new weapons just added to this version. All the weapons not showing up are rifles or LMGs - but only a few rifles and LMGs have this problem, not all of them. As well, it is not consistent as the problem weapon WILL show up with some characters in both A.I.M. & M.E.R.C..

I've checked the XMLs for these weapons countless times now, and there are no XML problems. The only change from previous versions of the weapons in Items.xml & Weapons.xml have been the addition of recoil factors (<bRecoilX>, <bRecoilY>) to the many weapons that were missing them, and the modification of tags already present (such as <BR_NewInventory>, <ubCoolness>, <Handling>, <APsToReload>).

The weapons do show up in the Merc's gear kits in the Hire screen in A.I.M. and M.E.R.C.. The problem affects only a few Mercs from both A.I.M. & M.E.R.C..

I first noticed this with the addition of a new M.E.R.C. character -- the second addition of this modding. However, since this problem does not affect every Merc I really do not know if the problem started at this time or before. I have removed the character to see if the problem persists . . . and it does.

To my understanding -- the item in the <mWeapon>xxx</mWeapon> tag always goes into the character's hands -- so it's not a pocket problem. I also eliminated all other gear except the backpack, and the rifle in the <mWeapon>xxx</mWeapon> tag, to see if it was a pocket problem -- and still the rifle did not show up when the character touched down in Omerta.

I have checked everything I can think of -- even switched weapon slots with weapons that did show up -- only to have the non-problem weapon not show up. However, when putting a problem weapon to a character's starting gear who previously had no problem . . . there was still no problem -- the weapon showed up.

I've checked all XMLs relating to characters . . . everything is OK. There's no problem with the problem charcters' XML entries.

I'm really lost as to what to check next . . . I've checked all the modifications I've done since the time I know there was no problem . . . and could not find anything wrong.

Does anybody have any ideas on what I can check next? As usual, this happens right when I'm ready to release a new version of the mod . . . so basically, I was in the process of checking everything when this happened.

EDIT: I also added 2 new named NPCs as shopkeepers . . . along with the 2 new M.E.R.C. characters . . . if that matters.

[Updated on: Thu, 25 August 2016 07:31]





Arulco Vacations Blog

Arulco Vacations Bears Pit Forum

Re: Hired Merc inventory troubles[message #346734 is a reply to message #346733] Wed, 24 August 2016 22:44 Go to previous messageGo to next message
tais

 
Messages:797
Registered:February 2008
Location: NL
you mean the file TableData\Inventory\MercStartingGear.xml right?
because if you are putting tags in the wrong files nothing will happen happy



IRC, pretty much the place to be!

☆☆M☆☆
Re: Hired Merc inventory troubles[message #346736 is a reply to message #346734] Thu, 25 August 2016 07:30 Go to previous messageGo to next message
edmortimer

 
Messages:795
Registered:January 2015
Location: Home Free
Quote:
you mean the file TableData\Inventory\MercStartingGear.xml right?


Yes, I mean that one ... no, the tags are in the correct file, just a typo in the message on my part.




Arulco Vacations Blog

Arulco Vacations Bears Pit Forum

Re: Hired Merc inventory troubles[message #346737 is a reply to message #346736] Thu, 25 August 2016 09:41 Go to previous messageGo to next message
silversurfer

 
Messages:2133
Registered:May 2009
Well, the best way to figure it out would be a debugger where you could follow the item distribution process in the code.



Wildfire Maps Mod 6.07 on SVN: https://ja2svn.mooo.com/source/ja2/branches/Wanne/JA2%201.13%20Wildfire%206.06%20-%20Maps%20MOD

Re: Hired Merc inventory troubles[message #346740 is a reply to message #346737] Thu, 25 August 2016 19:36 Go to previous message
edmortimer

 
Messages:795
Registered:January 2015
Location: Home Free
Quote:
Well, the best way to figure it out would be a debugger where you could follow the item distribution process in the code.


Unfortunately, that's beyond my ken at this time.




Arulco Vacations Blog

Arulco Vacations Bears Pit Forum

Previous Topic: Swapping English Voices for German Voices
Next Topic: is it possible to edit JA2 AI?
Goto Forum:
  


Current Time: Thu Aug 17 12:47:16 EEST 2017

Total time taken to generate the page: 0.00986 seconds