Modding Questions Thread

Marc_P
Private
Posts: 4
Joined: Mon 2 Sep 2019 10:54
Contact:

Re: Modding Questions Thread

Postby Marc_P » Thu 12 Sep 2019 08:35

Thank you Sireyn, you have been of great help ! :)

nullAurelian
Private
Posts: 2
Joined: Sat 28 Sep 2019 16:42
Contact:

Re: Modding Questions Thread

Postby nullAurelian » Sat 28 Sep 2019 16:55

Hello, I have a question about the WGPatcher

So I am attempting to edit a set of vehicles to use no fuel a la infantry units. I've been trying to delete the appropriate Map object under the Modules Collection but the WGPatcher returns that the change could not be saved.
Searching power crystals thread for this utility revealed no solutions; would anyone else happen to know how to do this?
XML as follows:

Code: Select all

<ndfpatch ndf="pc\ndf\patchable\gfx\everything.ndfbin" table="TUniteAuSolDescriptor" name="BM-24 Fuel Removal">
      <matchconditions>
         <matchcondition property="ClassNameForDebug">Unit_BM_24_CHI</matchcondition>
      </matchconditions>
      <changes>
         <change property="Modules" key="15" type="ObjectReference" operation="delete"/>
      </changes>
</ndfpatch>


Thanks.

User avatar
Sireyn
Sergeant Major
Posts: 258
Joined: Sat 5 Jan 2013 06:57
Contact:

Re: Modding Questions Thread

Postby Sireyn » Mon 30 Sep 2019 16:08

nullAurelian wrote:Hello, I have a question about the WGPatcher

So I am attempting to edit a set of vehicles to use no fuel a la infantry units. I've been trying to delete the appropriate Map object under the Modules Collection but the WGPatcher returns that the change could not be saved.
Searching power crystals thread for this utility revealed no solutions; would anyone else happen to know how to do this?
XML as follows:

Code: Select all

<ndfpatch ndf="pc\ndf\patchable\gfx\everything.ndfbin" table="TUniteAuSolDescriptor" name="BM-24 Fuel Removal">
      <matchconditions>
         <matchcondition property="ClassNameForDebug">Unit_BM_24_CHI</matchcondition>
      </matchconditions>
      <changes>
         <change property="Modules" key="15" type="ObjectReference" operation="delete"/>
      </changes>
</ndfpatch>


Thanks.



It's been a long time since I messed with the patcher, but I at least have a couple observations. The Module you are trying to delete is a Map > Tablestring/ObjectReference. You can try referencing it as a Map instead of an ObjectReference.

The key is pointing to the 15th module, but the Fuel module is the 16th from the top, at least on Unit_152mm_SpGH_Dana. I can't remember if the count starts with 0 or 1, but it's worth checking. Keep in mind that different units may have more or less modules and throw off the count.

nullAurelian
Private
Posts: 2
Joined: Sat 28 Sep 2019 16:42
Contact:

Re: Modding Questions Thread

Postby nullAurelian » Tue 1 Oct 2019 03:59

Unfortunately I haven't had success with referencing the target as a Map either, nor with changing it to unset/null value. I suspect it may require going to the referenced table in question though I am loathe to do so, as the organization system is a labyrinth and looking up the data 42-ish times seems overkill for how frequently I will be mucking about in the tables I suspect.

iampoundfoolish
Specialist
Posts: 11
Joined: Wed 11 Jul 2018 00:17
Contact:

Re: Modding Questions Thread

Postby iampoundfoolish » Wed 6 Nov 2019 20:13

Can anybody help with working out the price and availability of units that I've modded? I've changed a few units (mostly Anzac) for my own amusement but I'm not sure how much they should cost.

ANZAC
1. Kahu: Added 2x Aim-9
2. Phantom: Replaced Aim-7 with 4x Mk-83
3. Hornet (1): Took the Hornet from the NAV tab and gave it 4x Aim-7 and 2x Aim-9
4. Hornet (2): Replaced the 4x Mk-83 with 4x AGM-45, removed 2x Aim-9 and boosted the ECM. Not sure about this unit, should I give it AGM-88 instead or maybe use it for something else and give Anzac the EF-111 instead?
4. F-16: I used the older South Korea ASF and repurposed it with 8x Rockeye and 2x Aim-9. I know this it is a bit of a stretch in terms of realism as the deal for F-16s with the RNZAF was OOTF and cancelled anyway.
5. A-4K: Replaced the Mavericks with 4 xAim-9
6. Strikemaster: Swapped the napalm for a couple of rocket pods
7. M1A1 AIM: Gave the M1 to Anzac and boosted stats to match those of the M1A1
8: M1A1 AIM Command: Had to give this to Anzac because it shares a model with the M1 so the reskin I used affected both. Gave it the same stats as the M1A1. I seem to have accidentally created one of the most powerful command tanks in the game...
9. Tiger ARH: Used the Tigre HAP and replaced the 4x Mistral with 8x Hellfire
10. NZSAS and SASR: Swapped them in the INF and REC tabs

USA
1. Light Riflemen: Upgraded to shock training and renamed US Airborne
2. A-10: Added a couple of rocket pods (still working on this - keep getting glitches)

FINLAND
1. J-35F: Reduced napalm loadout by 50%
2. Mig-29: Added 4x RBK500
3. BMP1-KT: Moved to the VHC tab and reduced optics to match other units in the same tab

That's all for now, any help would be appreciated.

Return to “Modding”

Who is online

Users browsing this forum: No registered users and 9 guests