• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

theisey

Recruit
Nov 6, 2021
3
0
I'm playing around with a mod creating a small/medium caliber rapid-fire Gauss rifle I'm calling the AG/5. With a smaller caliber, the box would have a larger capacity than the standard Gauss box. However, I'm stumbling over the ammo box. I've tried matching either the stock AC/2 (naming) and several weapon mods (mod.json and techniques). Based on errors in the output log and the modtek log, I have one of two problems. (It's the only mod running.)

1) If I set the weapon's weaponsubtype to AG5 instead of Gauss, that throws an error into the logs that the reference is invalid and I get the spinning wheel of infinity.
2) If I set the weapon's weaponsubtype to Gauss, then I get a "no undamaged ammo box" error in the mech bay. A Gauss ammo box doesn't work either.

If I'm understanding the problem, I need to create a weaponsubtype of "AG5", but I can't find any instructions to do that. Is it possible to create/add a new weaponsubtype or am I barking up the wrong tree?

Thanks!


My mod files and folders are attachedin a zip - ignore the weapon values. I'm still tweaking them.

Here are the name and ID references I'm using:

AmmoCategory.json
ID: 801
Name: AG5
FriendlyName: AG/5
UIColorRef: Ballistic

Ammunition_AG5.json
ID: Ammunition_AG5
Name: AG/5 Ammo
Category: Gauss or AG5 ?????

Ammo_AmmunitionBox_Generic_AG5.json
AmmoID: Ammunition_AG5
Model: AG5
UIName: AG/5 Ammo
ID: Ammo_AmmunitionBox_Generic_AG5
Name: AG/5 Ammo

Weapon_Gauss_AG5_0-TommyGunn.json
Category: Ballistic
Type: Gauss
WeaponSubType: Gauss
ammoCategoryID: AG5
Manufacturer: TommyGunn Arms
Model: Rapid Fire Gauss Rifle
UIName: AG/5
ID: Weapon_Gauss_AG5_0-TommyGunn
Name: AG/5
 

Attachments

  • TomsAG5-works-no-ammo.zip
    6,4 KB · Views: 0
hey theisey,

To create new ammo, you need to use DataDrivenEnums. They use a different style than the Original Files. You'll also need to use modtek to load the new ammo types. Here is an exmaple mod that will create a HeavyGauss without any DLL changes. Pay careful attention to the ammocategory, ID's and what the differences are.
 

Attachments

  • AmmoCategory.zip
    2,7 KB · Views: 0