• 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.

IceeMan

Private
10 Badges
Oct 13, 2013
10
0
  • Crusader Kings II
  • Darkest Hour
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Semper Fi
  • Sengoku
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Victoria 2
Hello all!

I've ran into an issue trying to do some modding of my own. Just to start off, I edit or create all the files using Notepad. If there's another app I should use, let me know!

When i created my own custom units (d_01, d_02, etc), it changed all the modifiers for the other units (infantry, cavalry, etc). Now units like mountaineers have terrible mountain attack and infantry cannot defend in clear weather. You can view the modifiers file in the same folder as units, brigades.

Has anyone ran into this issue before? Does anyone know how to fix this so that those modifiers for the regular unit types aren't affected? Also, does anyone know how add in modifiers for the custom units?

Any advice or help is greatly appreciated!
 
Mos' def'

https://notepad-plus-plus.org/

Allows for searches of words and replacing those with another. Lots o' stuff. Best!

Eyy what are you creating? Some kinda algae zerg bloom that only attacks when it's raining or misty?
 
Not quite algae zerg blooms ;) lol

I created an Askari militia unit, an elite infantry, an elite cavalry, and finally a rocket unit that had a lot of soft attack and hard attack to simulate the bombardment phase before an offensive during WW1.
 
That's a good idea !

Thanks! I just noticed at least during the 1914 Scenario that dug-in units were way hard to break without massive amounts of casualties. I tried creating this unit that costs a bit of IC, to also simulate the strain an offensive like that would have on the economy. I've yet to test it out, but I'm hoping it does well! I'm still torn between having one "rocket" having tons of soft and hard attack, and it cost a lot of IC. Or have less effective "rockets" and cost less IC, but are used more en masse than the ulterior.
 
Thank you for letting me know! I added in a unit, and went straight to the modifiers file and added in random values as a test. It worked! :)
I'm glad I could help. I had this same issue with another mod I was working on and was scratching my head over it for a while confused as to what was going on.

The reason you get these random values in the unit modifiers is the game will automatically go through the modifiers csv file assuming that the newly defined units are included. Therefore it will count through each value in order until it runs out (at which point modifiers are just read as 0.) So, for example, Even though there was no column for d_01 modifier values, it immediately counted the value in the very next cell in the second row as though it was a top row value for the d_01 column. This can produce some really crazy stats, like applying negative mountain attack values to clear defense for naval ships)