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

AFatCat

Private
14 Badges
Sep 20, 2006
15
0
  • Arsenal of Democracy
  • Darkest Hour
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mandate of Heaven
Gents,

Trying to do a modification to make the main BB gun a brigade, differing based on size. This would allow, say Britain and Germany, to have different battleships as was the case historically rather than everyone's 38' BB being the same.

I've added the brigade in the db/brigades and db/tech files appropriately, to include multiple models for upgrading down the line. However, the game only seems to recognize the first model's stats, even if the subsequent techs are research. Also, instead of having a name when you hover over the brigade in-game, it shows 'unknown string wanted.' I'm guessing there is something I need to update in the config folder but I haven't had any luck finding it.

Any help would be greatly appreciated!
 
Have you also modified the files in the config-folder? "Unknown string wanted" error points to that direction. Can't remember which ones of those contains these but you could first check the models.csv and tech_names.csv files.

HINT: If you are using MS Excel with these .csv files, when you close the file always select NO when Excel asks about saving. Always save via the top left icon.
 
I've used this guide that is not mine but is very useful at getting you started, together with lots of 'try it and see what happens'. I have had to completely reinstall the game before when I mucked up the graphics that I could not undo so I would urge you to make a copy of the game in your personal folders (this will also have advantage of giving you read/write control over the files).

Can't remember where I found this, but here is a guide I found online somewhere. I take no credit for this work and will gladly credit the creator when I find out who he/she is.

View attachment 30809
 
Another way to try this is to make a new brigade, one of the unused ones -- the later b_uxx ones, that is a combination of say firecontrol and increased gun size. Write an event for the nation only that gets the special brigade to fire. You also need to put something into the config folder for it to avoid the unknown string thing.

The event should look something like the following:

#########################################################################
# enable USA SP Art/LT brigade
#########################################################################
event = {
id = 999041
random = no
country = usa

trigger = {
exists = usa
technology = { country = usa value = 2220 }
technology = { country = usa value = 2050 }
technology = { country = usa value = 2400 }
technology = { country = usa value = 2170 }
}

name = "USA Tank/Artillery Brigade"
desc = "USA Tank/Artillery Brigade"
# picture = "sub_tech"
style = 0

date = { day = 1 month = january year = 1936 }
offset = 1
deathdate = { day = 1 month = january year = 1999 }

action_a = {
name = "Understood"

command = { type = activate_unit_type which = b_u20 }
command = { type = new_model which = b_u20 value = 0 }



}
}
You should perhaps also write an event disabeling the firecontrol or whatever brigade for the country getting the new gun so that both cannot be attached. This method assures that only the country in question gets the new brigade.

If you have a new model of that brigade, follow with the following type of event:

#########################################################################
# enable USA SP Art/LT brigade value = 1
#########################################################################
event = {
id = 999042
random = no
country = usa

trigger = {
exists = usa
technology = { country = usa value = 2230 }
technology = { country = usa value = 2070 }
technology = { country = usa value = 2410 }
technology = { country = usa value = 2180 }
}

name = "USA Tank/Artillery Brigade"
desc = "USA Tank/Artillery Brigade"
# picture = "sub_tech"
style = 0

date = { day = 1 month = january year = 1936 }
offset = 1
deathdate = { day = 1 month = january year = 1999 }

action_a = {
name = "Understood"


command = { type = new_model which = b_u20 value = 1 }
command = { type = scrap_model which = b_u20 value = 0 }



}
}

The new naval gun brigade needs something in the b_uxx file like the following:

land_unit_type = 1
# 0 - Early SP Art LT
model = {
cost = 11#6
buildtime = 65#70
manpower = 4#2
defensiveness = 6#3
toughness = 6#3
defaultorganisation = 8
softness = -15 #-23#-5
softattack = 7 #6#4
hardattack = 5#2
artillery_bombardment = 3
supplyconsumption = 0.80#0.52
fuelconsumption = 1.0#0.4
upgrade_time_factor = 0.5
upgrade_cost_factor = 1.0
}
# 1 - Basic SP Art LT
model = {
cost = 11.5#6.5
buildtime = 65#70
manpower = 4#2
defensiveness = 7#4
toughness = 7#4
defaultorganisation = 8
softness = -16 #-24#-6
softattack = 8 #7#5
hardattack = 5#2
artillery_bombardment = 4
supplyconsumption = 0.84#0.56
fuelconsumption = 1.0#0.4
upgrade_time_factor = 0.5
upgrade_cost_factor = 1.0
}

An event to disable the vanilla brigade can look similiar to the following:

#########################################################################
# disable sub techs
#########################################################################
event = {
id = 777020
random = no
country = USA

trigger = {
exists = usa
}

name = "USA sub techs are disabled and naval torpedoes unavailable until torpedo problem is recognized and solved"
desc = "US subs are ineffective in sub warfare for some unknown reason yet to be determined"
picture = "sub_tech"
style = 0

date = { day = 3 month = january year = 1936 }
offset = 1
deathdate = { day = 1 month = january year = 1999 }

action_a = {
name = "Understood"
command = { type = deactivate_unit_type which = naval_torpedoes_l }
command = { type = deactivate_unit_type which = naval_torpedoes_s }



}
}

Hope this helps.
 
Last edited:
Awesome, thanks for the help gents. You were correct, updating the models.csv file in the config folder was the trick. I had already done it, but you have to add a line for each subsequent update to the brigade (_0, _1, etc.).