How to make a mod-mod

For technical discussions and help
Post Reply
Highrollr
Posts: 1
Joined: Mon Jan 30, 2017 12:56 am

How to make a mod-mod

Post by Highrollr »

Hi,

What is the correct procedure for making a mod-mod? I'd like to play around with changes to Long War 2. I found the classes I'd need to alter, but I'm not sure how to tell ModBuddy to use the Long War 2 files without actually including them in my own mod. For instance, if I made changes to the gunner class, I'd like to use the 99% of the class I'm not changing without putting all those files in my mod, but still be able to alter the 1%. Thanks!
NotSoLoneWolf
Terra Invicta Beta Tester
Posts: 9
Joined: Fri Jan 27, 2017 6:55 am

Re: How to make a mod-mod

Post by NotSoLoneWolf »

Well, I'm making a custom SPARK class that uses a missile launcher instead of a BIT. This is what me hijacking LW2's "add unlimited starting items" function looks like:

[LW_Overhaul.LWTemplateMods]
+UnlimitedItemsAdded="MicroLauncher"
+UnlimitedItemsAdded="MacroLauncher"
+UnlimitedItemsAdded="MissileRack"

Basically, I went into LW2's config files and found where the UnlimitedItemsAdded class file got the items it was adding. I found:

[LW_Overhaul.LWTemplateMods]
+UnlimitedItemsAdded="Arcthrower_CV"
+UnlimitedItemsAdded="SawedOffShotgun_CV"
+UnlimitedItemsAdded="Holotargeter_CV"
+UnlimitedItemsAdded="CombatKnife_CV"
+UnlimitedItemsAdded="LWGauntlet_CV"
+UnlimitedItemsAdded="LWPistol_CV"
+UnlimitedItemsAdded="FlashbangGrenade"
+UnlimitedItemsAdded="SmokeGrenade"
+UnlimitedItemsAdded="SMG_CV"
+UnlimitedItemsAdded="Medikit"
+UnlimitedItemsAdded="ShredderGun"
+UnlimitedItemsAdded="CeramicPlating"

So, the [LW_Overhaul.LWTemplateMods] line is the key. The first piece of text before the period (LW_Overhaul) designates what mod you are referencing. The second piece of text (LWTemplateMods) is the .uc file in that mod that you are referencing.

I know this isn't the answer to your question, but it seemed relevant and helpful.
ZephyrusMK
Posts: 3
Joined: Tue Jan 31, 2017 1:26 am

Re: How to make a mod-mod

Post by ZephyrusMK »

(prefix, havn't moded anything before other than to change existing data in an .ini file).

sooo... if I wanted to create a mod that modified the LW2's soldier templates to give them better aim... i'd do the following?

[LW_Overhaul.Soldier_Diff_0 X2CharacterTemplate]
+CharacterBaseStats[eStat_Offense]=80


also or alternatively (and forgive me if this already out their and I missed it), is their a way to just blanket say increase the default LW2 .ini values by +10 for example or in this case would it have to be a replacement value?
NotSoLoneWolf
Terra Invicta Beta Tester
Posts: 9
Joined: Fri Jan 27, 2017 6:55 am

Re: How to make a mod-mod

Post by NotSoLoneWolf »

ZephyrusMK wrote:(prefix, havn't moded anything before other than to change existing data in an .ini file).

sooo... if I wanted to create a mod that modified the LW2's soldier templates to give them better aim... i'd do the following?

[LW_Overhaul.Soldier_Diff_0 X2CharacterTemplate]
+CharacterBaseStats[eStat_Offense]=80


also or alternatively (and forgive me if this already out their and I missed it), is their a way to just blanket say increase the default LW2 .ini values by +10 for example or in this case would it have to be a replacement value?
You would do:

[LW_Overhaul.Soldier_Diff_0 X2CharacterTemplate]
-CharacterBaseStats[eStat_Offense]=65
+CharacterBaseStats[eStat_Offense]=80


well, replace the 65 with whatever the value actually is. I'm not sure what you mean by "blanket"... Not all the .ini values are numbers, some are true/false, some are text. So if Blanket means literally every value, then no. There is no way. Because you can't increase False by 10 :lol:
ZephyrusMK
Posts: 3
Joined: Tue Jan 31, 2017 1:26 am

Re: How to make a mod-mod

Post by ZephyrusMK »

Thank you, good to know.

blanket being if I wanted to increase a solider ability like offense or dodge by +5 or +10 even if I didn't know what the original value was.

so if the value of a solidier stat in the LW2 mod of rookie easy difficaulty was ??, add +10 to it.

(I can go the substitution way but i'm not certain what some of the values are initially and would rather add 5/10/15 if able).
Post Reply