#modding
1 messages · Page 51 of 1
You'd need about as much modding knowledge as you would if making a regular mod
Okay
I'd recommend looking through the paradox modding wiki, as well as modding tutorials by the iron workshop on YouTube if you're interested
I will this is the bottom of my list of project rn tho
Valid
Hey 👋
I'm making a little mod, and I want to reset all the map (countries, states etc..), but I don't really know how to di it.
Also, I created a new timeline (bookmark), and I want to only make the changes in this timeline (if it's possible).
Please, if you have ideas, tell me, it would be helpful
My only solution is to create a whole new map, which takes time but I know how to do it.
You can delete all the states in the state folder (if you have that in your mod) and create a line in both descriptor files stating
replace_path = "history/states"
so, if I understand correctly, I just need to wirte "replace_path = "history/states" in the descriptor file, ans that's it ?
In both of them. The one in your mod folder, and the one inside the folder called "mod" (the one just outside your mod)
It would be called yourmodname.mod
Iirc
No worries.
You might have to have at least a couple states and a couple tags on the map for it to load properly
It worked for a bit, I was able to ad some states, but then, the game started crashing because of certain provinces overwriting other strategic regions (and some were written twice, so I fixed it all manually, took me 1 hour 💀), but now, it's stilling crashing and I don't know why.
Here's my crash log:
oh, maybe because there's no people living in some states
when you see how much code is responsible for demanding a state and you just decide that your focus will simply give you an annex war goal
it's my first focus tree mod i'm not dealing with that
Your error log is rediculously long, you need to work on fixing those errors
And when is it crashing?
Are you able to get to the main menu, or is it crashing on the first loading screen
the first loading
Are you launching the mod in debug mode?
but I think I will remake a new file for my mod, and then I will be more careful
yes
Idk how you have so many random errors, but you should prolly fix them
I know
but everytime, there're errors about vanilla game stuff that mostly don't make the game crash, and sometimes, there're errors about some "ugc_xxxxxxxxxxxxx.mod"
usually, it still work, I think I just messed up in some files or something like that, so I will try to be more careful
Hey folks! I just released my first mod on the Steam Workshop called Autokrat. The German Empire and Austria-Hungary are still around, fascism is replaced with absolute monarchism, some focus tree tweaks, etc. If anyone wants to try it out and offer any helpful feedback, I’d be very appreciative! Thanks and happy holidays!
The mod is pretty much cosmetic except that it combines the fascism and monarchism sub-branches in some Axis focus trees
Does someone knows how can I create a state with all land provinces of the game ? (And please, I don't want to click manually on all land provinces in the nudge tool)
In which interface file should portraits be written for advisers/military ministers?
ideas
I already tried it, but it crashed (maybe because all the provinces of the game include sea provinces, add the sea can't have states)
[18:48:08][no_game_date][map.cpp:1907]: Bitmap and province definition disagree on whether or not province 12816 is coastal. Bitmap adjacency result will be prefered.
how do i fix it
?
If it's by the sea, put true
if not, put false
because if it's by the sea and not "true" for coastal, it will say "Bitmap and province definition disagree"
and if it's not by the sea and has "true" for coastal, it will say "Bitmap and province definition disagree"
Thanks but what file is that?
Does any of you nice people know where can i find a National Spirit image containing Panther tank?
Definition.csv
tfw ai completely ignores ai_will_do factor and does the factor = 1 focus instead of the factor = 12
it's like the ai is completely ignoring the modded focuses
oh my god the ai did the right focus
now let's see if this continues
if himmler does air innovations again i will actually kill him
I want to make a mod that makes construction speed for supply hubs get a massive boost but only in core territory, any idea what the best way to do this is?
have done minimal modding outside of focus trees/decisions/defines
Hey everyone, i just made an updated verison of the Europe Only mod with multiplayer compatability and balances in its own start date. Please let me know on the steam workshop if you have any suggestions or bugs you find, trying to iron out all the small things before I start making the pacific war balance events.
https://steamcommunity.com/sharedfiles/filedetails/?id=3123832533
My game keeps crashing whenever it is 'initialising game' and I don't really know what error is causing it
heres the error log if it helps
1.13 broke some things
Anyone got that mod that makes your puppets a similar color to you?
mom can we have Magna Europa?
we already have Magna Europa at home
Magna Europa at home:
Anyone knows how to overhaul ideologies like they did in Millennium Dawn? (Multiple parties per ideology, etc.)
HOW TO add remaining units to my division?
[17:52:13][no_game_date][localize.cpp:1602]: Localization file 'localisation/braz_por/new_ideas_l_braz_por.yml' should be in in utf-8-bom encoding
[17:52:13][no_game_date][pdx_localize.cpp:1015]: Missing UTF8 BOM in localisation/braz_por/new_ideas_l_braz_por.yml
[17:52:14][no_game_date][localize.cpp:1602]: Localization file 'localisation/braz_por/new_ideas_l_braz_por.yml' should be in in utf-8-bom encoding
[17:52:14][no_game_date][pdx_localize.cpp:1015]: Missing UTF8 BOM in localisation/braz_por/new_ideas_l_braz_por.yml
What would that be?
What text editor do you use
under the hood they actually use the normal system, I assume they use an overlay over the normal ideology viewer
Road to 56 can do that
My first ever portrait that i personally have made, found a picture of paris davis and went from there. Thoughts?
AI tools are such a wonderful thing
literally a few clicks
Pretty decent enhance yeah
Im searching for people that may be interested in be part of a total conversion mod im working on
Hi I'm trying to make a full rework of the Italian focus tree for the Cold War mod making it a submod I've set the addiction but how can I overload the existing focus to the new one?
I don't understand why the launcher says the mod doesn't exist
Maybe the problem is here. my first mod 
ya know what I would like?
A MD submod that adds stargate command stuff to the US
make the US even more OP
also russia and china
also the normal start matches up almost perfectly year wise so yeah
Anyone know how to change spy portraits from a save file?
anyone got any idea why a state could possibly crash the validate all states tool in nudger?
doesnt give me a crash log at all and nothing in the error log suggests anything wrong with this state in particular
it also crashs the game on a "validate in state" when the states causing the crashes are highlighted so i assume they are related
What tool
https://www.img2go.com/colorize-image for colorizing
https://www.fotor.com/photo-editor-app/editor/basic for correcting the face
Upload image in Fotor online photo editor to crop image, add text to photo, enhance image, remove background, create graphics & more for free.
the first tool has limited uses
and the second puts a watermark on your pic and makes you unable to download it, but you can simply expand the picture so that the watermark is not on the portrait and then screenshot it
Hey guys quick question how to add buildings in a province like naval bases?
There is a specific line of code where it says what buildings the state starts with
Idk it off the top of my head
Sad
How do you hide a focus? or focuses? I want them to unlock after another focus is completed.
Does anyone have a portrait for an american king i can use
Is there a mod that will make USA peace out with Germany if Britain capitulates?
I have one that will fire the event in 10 years if neither side can touch each other

what did you use the make the focuses? 🤔
He used this one website that doesn’t actually make focuses, the only true way to make a focus tree is in the code of the game
ik it doesnt make focuses (ive noticed quickly)
guys
it doesnt happen when you try to log into hoi4modding but it appears server error?
a wise person fixes the errors
a wiser person ignores them
i like mods that don't even tell you what they do
here's a PNG of a flag, figure out the rest yourself
btw if someone is looking for icons, frames, etc i found some ultimate graphic pack
https://github.com/Globvs/Ultimate-HOI4-GFX
.
idk if you still want them
but here they are
it doesn't have the new stuff because this pack is 4 years old
but it has some custom icons so that's cool
thanks
yes sorry was trying to upload it and jokingly put that description
its a total conversion mod still on development
is there a mod that increases the tank designer fuel drum capacity back to original amounts?
idk
would it be easy to make one?
idk
what u on about bro?
there is an export button
and ive used that export button to make 2 wip focuses that i added in my mod
Hey all, ive seen people ask it but never seen it answered before. Is it possible to change the rules of sending a lend lease so a country doesnt have to be at war? I am trying to mod this in but it seems to be handled by game logic I cant find

Thanks
Like really thank
allow_branch
hey guys, I have some problems with the nudger tool, I know that all changes are saved in the documents folder, but if I try to edit states with the mod open It will open fine but it will reset to the previous version every time I do changes, if I copy all map related files form the mod to the doc folder and open the game in vanilla the game will just crash because they will start interfering with the base files. How I am supposed to avoid any crashes and also be able to edit the map from the mod? I'ts not like there is 1,2 states interfering with the base states, there are hundreds.
there's a mod which I got recommended that boosted the performance drastically... I can't remember the name
Afaik spot optimization gives 10-15% with removing graphics
Theres also ones that remove countries
how do I make a formable country?
decisions tab next to your flag on the top left, looks like a gavel

not working


displaced industry works perfectly meanwhile
no extra factories were generated
no factories disappeared
time to make a scripted_trigger so I might perhaps see this easier
Did sb know how to fix this?
add port building in nudger
unitstacks file
Nudger didn save any updates that I made in it
Unitstacks file?
how would set an event to appear after a certain date? (I want it to appear after so I can use it in any mod regardless of the date.)
is there a mod where its around the bismarck time ?
i want like an event where it shows the assassination attempt of bismarck
and he survives it and gains the “iron chanceller” title
plus it would be fun to play prussia and debate agaisnt other german states about unification
and theres more potential with the second napoleonic empire
- crimean war
its a juicy tike period
mod starts around when bismarck is appointed as head chanceller
focus “Pull Bismarck back from Russia” or “Last Effort”
There are the Victoria games
Hoi4 is a total war game
Victoria is a diplomacy and economics game, which is during the time period you mention
yo
i have a problem
im looking at iron workshops vid about making new land units
but i cant find the gfx files
I'm having some troubles finding the event or something that gives eastern Poland to the USSR
I can't find it
I searched through the Germany and USSR event Giles
Searched for 784(Vilnius state) and couldn't find anything
Also the germany.14 event
it is an event fired by Lithuania
Germany
Vanilla
Yeah
There are three different events that give Eastern Poland to USSR after all

actually 4
I added 5 states in that area
But can't find the part that gives them to the USSR
I assume it's outside of the Germany/events file
Searched through all the Soviet and German events files
ye they moved it to scripted effect
I actually fixed that event before... Forgot it had to do with the scripted effects
Thanks
well there are like
4 different events doing similar things
so you need scripted effects for that
I have to do that too

I can't stand border gore
I removed the options for Spain and Italy to take parts of France
In the Vichy event
Anyways Italy wasn't called into the war untill France capitulated irl
Italy only got negligible expansions into south east France
hmm
I wonder if you can put a while_loop_effect inside another one
let's try
should work
you should be able to
while I am not absolutely certain with how it is displayed
any variables should work perfectly
A mod with allot of scripted peace deals would be cool
I wanna update industry rebalance to just include the rise in build slots
so what do I need to remove?
The End of a new Beginning the mods start date is 1857 and it includes Bismarck and the German unification also if I remember correctly there is an event about the assasination attempt on Bismarck
So I'm playing kaiserredux and completed The Nordic Federation about 3 months ago, but nothing has happened, why?
The game didn't tell me anything
Can I trigger the events for denmark and norway manually? With a command or something?
appreciate you my bro
the great war redux
its really good with scripted peace deals
if you do germany with backstab theresmmore scriptedmpeace deals
There should be a redux for the hre tree in tgwreduz
its just focuses to just kill nations
@obtuse condor
oh
event [id]
is there a good mod for an american focus rework
what did you guys pick for the reaching out to the world part
i picked the one wit h the ofn
where do you get TNO, Millennium Dawn, Kaiserredux, visual improvement mods and the great war redux
Steam workshop
cant someone update the colourize your country mod 😔
Hey, folks, random modding question for a noob: For a beginner branching out into making national focus trees and not just tweaking the vanilla ones, what are some good examples of focus trees considered "good?" I hear a lot of good things about the Spanish one after LAR
i love kaiserreich ones cuz they keep u busy getting rid of debuffs but at the same time arent 70 days long
anybody know how to code thing like i want player get event in 1889 year 16 august
if you want to force it to happen
like, absolutely
make it a decision that only AI can see 
let them fire the event on you by taking the decision
???
im confused bruh
huh
but i want to do it for austria
the austria player got this event (if i know correctly , if player own any country , AI can't do anything because owner is player)
no, you just let any AI do it for you 
i can't understand it but thanks
available = {
date > 1889.8.16
}
visible = {
is_ai = yes
}
ai_will_do = {
factor = 9999
}
thanks
then in the event, set it as
is_triggered_only = yes
trigger = {
NOT = { has_global_flag = event_has_happened }
}
option = {
name = event_giga.1.a
set_global_flag = event_has_happened
custom_effect_tooltip = "lmao"
}

just open decision file
otherwise you can do it on event basis alone by
trigger = {
date > 1889.8.15
tag = AUS
}
THANKS
mean_time_to_happen = {
days = 1
}
What commands or modifications do I need to do to add more factory slots to the USA in this game?
Can someone explain why my national spirit icons dosent showed?!
is not work...
in game im in 1889 year 27 august and still not work
since steam workshop doesnt satisfy me I'm gonna attempt to make my own mod
Im new and completely blind here but uh, is there a way to add a picture behind the quotes during loading? ive got custom loading screens but i wanna fill in the splash text box
yes
create file named loadingscreens and put all picture from hoi4 vanilla to your mod and then change the pictures
but not forget pictures size
1920x1440
Also don't forget to change the Image format since the game don't read jpg ig
You need to use dds if im not wrong
game can read png
Fr?
Didn't worked for me so I thought it couldnt lmao
i got it figured out dont worry
yeah
its dosent matter which format is that
just not type wrong formant in interface
BRUH
well you can tell me why my national spirit icon not showed?
i do interface
i do picture in national spirit code
and still not showed
Idk, I have just done some easy mods like loading screens (For me lmao) and a new radio station
ok
Someone know how to do Super events?
hey i tried looking for this mods in paradox plaza mods and i couldnt find those can someone send those mods to my gmail? you would help me a lot 1418575137/1151511773/1511867085 the numbers are the steam id workshop
i think you are scammer
Dudes I fight with my mod over an year, if sb know any team that know how to make good, playable custom map to hoi4 then just write to me, i can even pay for making my map
is end of a new beggining better than its redux?
whichever goes funner
idc abt speed i run mods loike kaiserredux fast af
Does it work with kaissereich?
I think I messed it up
Trying to make a focus
SIK_distance_from_shek
Available after completing SIK_proclaim_rival_government
I added
allow_branch = { has_completed_focus = SIK_proclaim_rival_government }
To the SIK_distance_from_shek
But it doesn't work
HI guys, can anyone please help me? I'm new to hoi4 modding and I have no idea why is this event having no effect at all
`country_event = {
id = china.111
title = china.111.t
desc = china.111.d
picture = GFX_report_event_generic_sign_treaty1
is_triggered_only = yes
option = {
name = china.111.a
CHI = {
dismantle_faction = yes
hidden_effect = {
remove_opinion_modifier = { target = PRC modifier = unstable_alliance }
}
}
hidden_effect = {
PRC = { remove_opinion_modifier = { target = CHI modifier = unstable_alliance } }
}
custom_effect_tooltip = china.107_tt
every_state = {
limit = {
controller = {
original_tag = CHI
is_puppet_of = CHI
}
is_core_of = PRC
OR = {
region = 243
region = 242
region = 155
state = 746
state = 1100
}
NOT = { state = 716 }
NOT = { state = 1096 }
}
PRC = { transfer_state = PREV }
}
}
}`
The event still fires?
Anyone know how to make coustom portraits on windows 11?
I'm going to need to add Reich's kommisariat releasables
It's annoying that Norway Belgium Netherlands Belarus and Ukraine get permanently changed
Also adding other German releasables
General government böhmen-mähren denmark German occupation of France Muscovy Caucasus Armenia Georgia Azerbaijan Latvia Lithuania Estonia
Belarus
you might need another version for that yee
your controller clause needs an OR
now every state has to be China AND a Chinese puppet, which is impossible
set_temp_variable = { var_infra = 5 }
subtract_from_temp_variable = { var_infra = infrastructure_level }
divide_temp_variable = { var_infra = 10 }
set_temp_variable = { var_infra_base = 1 }
subtract_from_temp_variable = { var_infra_base = var_infra }
add_to_temp_variable = { var_existing = var_gained_population }
multiply_temp_variable = { var_existing = var_infra_base }
add_to_temp_variable = { var_total = var_existing }
for some reasons this doesn't work
sad

this part works
how many temp variable can there be?

Ukrainian Belarusian Latvian Lithuanian Estonian polish Czech Belgian dutch Norwegian french Armenian Azerbaijani Georgian caucasian muscovian Livonian/ostland mountain Republic Courland crimea
Any more German empire/German Reich vassals that should be added?
I'm a pretty new player and thinking of playing with Road to 56 for the expanded focus trees. I was thinking of doing a common wealth nation or at least an allies nation. Should I avoid mods until I get a better understanding of naval and air combat
Aight sweet seems like a more approachable mod for beginners compared to kasiermech or the one where Germany wins ww1
my first two event
Guys, why can’t I launch MD? Every time that I launch my game with (only) MD, it crashes after a few seconds
fix all errors
How? They just said that « you crashed »
maybe you have too many errors (i mean mistakes in coding) so better fix that
okok
id = SIK_distance_from_shek
icon = GFX_goal_generic_major_alliance
x = 0
y = 1
relative_position_id = SIK_proclaim_rival_government
cost = 5
allow_branch = { has_country_flag = SIK_rivalry }
ai_will_do = {
factor = 1
}
available = {
}
bypass = {
}
cancel_if_invalid = yes
continue_if_invalid = no
available_if_capitulated = no
search_filters = { FOCUS_FILTER_POLITICAL }
completion_reward = {
if = {
is_subject_of = CHI
add_autonomy_ratio = {
value = 0.35
}
}
add_political_power = 100
}
}
Where would I add it
A focus tree for china to move to Taiwan would be cool
Sending 2.5m to Taiwan would be cool
Bringing universities to Taiwan
Taking the industry
Getting core attack and defense buffs
Having the cores on the mainland removed
Maybe having options to expand into Hainan Macau Hong Kong
Maybe
Nothing crazy
Being able to take china back in 5 years
Whats the most simple way i can add custom songs or make my own radio?
I manually fired it using debug mode
Thank you, this makes lots of sense now
^ disregard
I could help u with it, but Im still struggling with some factors like playing it in specific moments, ideologies or stuff like that
I do tbh NGL imo btw sts
Napoleon is still in power
Poland has all the lands west of the dniper
so this is my first portrait change and been trying to figure out how to fix this issue, it shows up in the game but its not aligned right and off centered, does anyone know how to fix this? thanks
Your portrait img might have extra transparent pixels in that area
You'll have to edit the canvas size probably
seems like that was it thanks a ton
No worries
Should the Slovak polish border be completely passable?
I don't believe it was impossible for the soviets to cross
Can someone make a mod that makes northern dobruja a separate Romanian state
Please
just that state?
are you making every leader or every general cat potraits
Yeah

getting there
can i just say how much i hate modding the turkish focus tree
portrait image might have more pixel than normal portraits
RUK_fascism:0 "Reichskommissariat Ukraine"
RUK_fascism_DEF:0 "the Reichskommissariat Ukraine
RUK_democratic:0 "Ukrainian Republic"
RUK_democratic_DEF:0 "the Ukrainian Republic"
RUK_neutrality:1 "Ukrainian State"
RUK_neutrality_DEF:1 "The Ukrainian State"
RUK_communism:0 "Socialist Republic of Ukraine"
RUK_communism_DEF:0 "the Socialist Republic of Ukraine"
RUK_fascism_ADJ:0 "German"
RUK_democratic_ADJ:0 "German"
RUK_neutrality_ADJ:0 "German"
RUK_communism_ADJ:0 "German"
GER:0 "Germany"
RUK_DEF:0 "Germany"
RUK_ADJ:0 "German"
Are these fitting names for the Ukrainian reichskommisariat?
Oh can't wait to add more decisions for the Reichskommisariats focus
Is there a way to set a MIO for starting equipment? I'd love if I could start countries out using their MIOs... ||(EDIT: There is a way by setting designer = [MIO] on the create_equipment component)||
RUK_fascism:0 "Reichskommissariat Ukraine"
RUK_fascism_DEF:0 "the Reichskommissariat Ukraine
RUK_democratic:0 "Council Ukraine"
RUK_democratic_DEF:0 "the Ukrainian People's Republic"
RUK_neutrality:1 "Ukrainian Directorate"
RUK_neutrality_DEF:1 "the State of Ukraine"
RUK_communism:0 "SPR Ukraine"
RUK_communism_DEF:0 "the Socialist People's Republic of Ukraine"
RUK_fascism_ADJ:0 "Ukranian"
RUK_democratic_ADJ:0 "Ukranian"
RUK_neutrality_ADJ:0 "Ukranian"
RUK_communism_ADJ:0 "Ukranian"
RUK_DEF:0 "German Ukraine"
RUK_ADJ:0 "Ukranian"
Are those better names iyo?
yeah
personally i would keep the tag UKR
theres something in the loc files where you can set country specific puppet names but i havent touched hoi4 in a while
I love our lord and savior TommyKay with every fiber of my being. I will become a disciple of his and start a crusade until he is worshipped as much as deserved
How do I translate a mod that I didn't create into a new language?
do you know the language you are trying to translate it into?
Need some help if anyone could enlighten me, tried editing the bookmarks tab and no matter what I have tried, the minors do not appear
There is a coding line you gotta add I think
VIP is the pacific states
Like smaller versions of the flag for the country gui in the selecting screen
do I need to name it something specific?
I don't remember the exact code for it cause I stopped making mods a while ago
Chat GPT's response
yeah
idk what could be the issue
nvm
I consulted the ancient texts in the hoi4 modding library (I went over the wiki again)
that was able to enlighten me with the sufficient knowledge to overcome the quarrel
nvm
I got nothing
is the guy working on the league of legends mod here?
please don't ask chat gpt how to make hoi4 mods it's so increidbly wrong
fascism ≠ a nazi puppet state
I'm adding reichskommisariat releasables
So Ukraine and the other countries don't permanently become reichskommisariats
You should use a scripted name then
so when it's a subject of germany it gets that name
RUK_GER_fascism_subject:0 "Reichskommissariat Ukraine"
I don't know why the Reichskommisariats would be independent
Since they won't have cores
So all of their land will be taken
In peace deals
I did a similar thing but with that subject line just in case they got independent, but I can see why it might be easier that way
Anyways it wouldn't be that hard to create a scripted peace deal
true
Yeah I did that too
Are you very experienced in making scripted peace deals?
Not particularly
I actually can't remember how I convinced the ai to annex the fake rk tags lmao
Would it be possible to base a scripted peace of war participation somehow?
Army size factory county?
I'm not aware of any way to check contribution
What I did was make an on action, so when the RK tag capitulates, the original country annexes all of its territory immediately
hey
does someonme have the DEFAULT event template
i mean im trying to find pic and photos online but man
theyre all either tno or red flood
hey does anybody know why I can't see what i'm typing in console?
I created a new island and the water was removed. I have no Idea how to fix this. Can anyone help me
I expressed myself badly, I want to translate a Mod that is only in English into Portuguese
#Conversion branch - Enabled in DoD
improved_equipment_conversion = {
equipment_conversion_speed = 0.40
if i want to convert stuff alot faster do i only need to change that number?
hey folks
when modding stuff like this: GRE_anatolian_fascists_in_play_tt:1 "The £faction_gre_fascist §YFascists§! emerge and start off as §Rhostile§!."
How do I mod the stuff surrounded by §? What is that?
hmm
everything in between § makes the game understand that this phrase or word will be in other colors than the game's default
§R This text is in red in the game §R
@west shoal
you are welcome
how do i change this with a photo
add a file named 'thumbnail.png' and add picture="thumbnail.png" to your descriptor file. It won't work locally but if you subscribe to it trough Steam Workshop it will work.
oh it doesn't show locally then alr thanks
What are some good quality of life mods? Like stuff that doesn't alter VA Ulla game play, just makes it easier to organize etc?
wht is this ? in country leaders
Person without traits
Alright, I need help with something that seems relatively simple. How do I basically reskin another nation? What I basically want to do is replace one nation's unit models with another, using in-game models not outside 3D assets. I prefer to do this as a mod that does not modify the checksum so if I really wanted to, I could just use this skin mod in ironman mode as well. It shouldn't since it should just be a cosmetic change. (Got it resolved)
Alright I have a question, so I know that adjusting the map size has to be multiples of 64, does anyone know how large it can be before losing a major amount of stability?
Any new/updated custom nation mods or country overhaul mods?.
Hi how do I set base consumer to 0
It drops to minimum 10%
how can I fix it
Thanks men
hello
Hello
Why you want change the map size ?
So does this change the country colour???
No, this just changes the colors of the focus texts, decisions, etc.
How can i change the country color ?
there's a file, common/countries/colors.txt you can change the value there.
If you mean mid-game, you can do that there too. If you copy one of the bits of code, you can change the tag to whatever you want, such as GER_empire for example, then run the command set_cosmetic_tag = GER_empire in a focus, event, etc. and it will change the colour to the value you set.
In my experience the vanilla hoi4 map already is the largest size possible.
Go to your folder and create the common folder and inside it create the "countries" folder
Follow this same path in the main game folder (Common - Countries) and copy the "colors" file and paste it into the countries folder of your mod, then open this mod's colors file and drag it down and add the tag of your country and the rgb of the color you want
I'm trying to change this number, but apparently NDefines.NAir.ACCIDENT_CHANCE_BASE = 0.1 is not the define to change it. I've searched 'accident', any clues?
for the mod I am working on
alright, I've seen some people say that they have made it bigger, but only incrementally
Hey guys what do I put in here to refrence all countries?
I want to make it so that when the target country that clicks the decision, they have a huge increase in the opinion of all countries
Not just a specific one, but all countries
Update: I tried to reverse trace the define name from the localisation file, but variables are coded in unit_l_english.yml so I cannot.
Guys, how can I put puppet flags ? pls
does modding require programming skills? and if so, which language do i have to use?
I would try every_other_country = { add_opinion_modifier = { target = ROOT modifier = huge_increase } }
Re-read what you're trying to do, so actually it would look like every_other_country = { ROOT = { add_opinion_modifier = { target = PREV modifier = huge_increase } } }. This should give your root country the opinion modifier towards everyone else.
It’s pseudo code, pretty easy to pick up the basics but can get complicated for more advanced aspects
Does anyone here know how to extract a statemap?
I'm trying to get one for the Mars resource map.
Modding uses its own pseudo code called Paradox Modding Language or something like that. I’d say it has aspects of C-based languages though ultimately it is vastly simpler than any real coding language
Prior programming skills would still help, but it’s not required at all
So the statemap?
does someone know how does that Dynamic focus tree thing works??? like in the Cold War Mod i mean, after certain focus/date, the tree changes to another
i did TARGET = FROM
its just JSON
a customized JSOn
Did it work for you?
yep it did, by the way is there a way to modify your peace score with modding
or change the costs of states
idk, never tried messing with that
nevermind i found a way to modify that too, but is there a way to modify the opinion number
like outright
can i set it to 100
using modding
you would have to make a custom opinion modifier to give
what do you mean?
check common\opinion_modifiers for ones to use or define your own in your mod
and how do i add acceptance modifiers
like how do I mod another thing here
that will allow them to accept
what ratio and resolution should loading screens be?
can someone help? my test tree (well.. seed) for cuba isn’t replacing the generic tree
focus_tree = {
id = cuban_focus
country = {
factor = 0
modifier = {
add = 10
tag = CUB
}
}
initial_show_position = {
x = 5
y=10
}
default = no
initial_show_position = {
focus = CUB_prepare_elections
icon = GFX_focus_fra_devalue_the_franc
x = 0
y = 0
prerequisite = {}
mutually_exclusive = { }
cost = 2
ai_will_do = {
factor = 1
}
available = {
if {
limit {
CUB {has_government = democratic}
}}
}
}
bypass = {
}
cancel_if_invalid = yes
continue_if_invalid = no
available_if_capitulated = no
completion_reward = {
add_stability =5.0
}
}
(also how do i make an event trigger as a completion reward? rn i just did "has_completed_focus" in triggers but if it was available to see before completing that wld be great
The opening part of that first focus is labelled initial_show_position instead of focus
You're missing a couple equals signs in the available scope
why is it saying this when im communist?
Add an effect like country_event = my_event.1
And also make an event in the events folder
And wdym you put has_completed_focus in triggers for an event?
And 5.0 stability means 500%
This isn’t modding but its because your faction leader cant declare war, like if youre in a democratic faction in the base game and you try declaring on someone who hasnt created tension even if youre fascist
Ah sry for using the wrong channel, the faction leader is also communist which is also why I'm confused
Could be an idea or something affecting their ruleset for declaring war
oh ya i thought i fixed that..
also ya i have an event file!!
also tysm
Does anyone know where the localisation for the Reichskommisariats decisions is?
Or I could just put the new decisions localisations in a new file
If Romania owns northern Transylvania Odessa and south podolia should be given to Reichskommisariat Ukraine
i got no programming skills and want to make a mod of an actually accurate ww2 world map, is that possible?
I would say that’s inadvisable - map editing is a bit harder than just regular modding
Uprisings never happen in hoi4!
I made Reichskommisariat tags with no cores
And there have been no revolts
The Reichskommisariats have 0 Manpower!
The compliance is going up and the resistance down!
As in accurate states?
like not making the map bigger, fixing borders to a more accurate way, or is that what you meant?
yes
If you're just adding or removing provinces to states, sure. But if you're looking to change provinces, that'll be where difficulties start to arise
so if i want to chane a little bit the borders of a province i will have a lot of difficulties?
I have done it and it's not hard
Imo
Borders of a province might be fine, but if you're adding more or removing provinces, that's where difficulty arises. Changing states and what provinces they have is very easy.
for example, if i want to add the sichuan clique, by changing the borders of the provinces, its easy. while if i want to add a new state in a province or more, its hard. right?
Adding states isn't hard
States are easy. Provinces are hard.
You can easily add in 5 bajillion states and do whatever you want with them, but adding in more provinces will prove to be harder
Fixing events focustrees decisions can be a pain
how much hard is it from a scale from 1 to 10
Anywhere from 1-10
It's not that hard to find stuff in general
3
and what's the most difficult thing to do?
It was a little tuff to find the thing that transfered eastern Poland to USSR that was in the scripted effects
Fixing railway focuses
Tbh
Need to look at the province ids
like changing focus trees?
If you change the provinces the railways will be messed up
Unless you mold the provinces around the railways
ok
seems something i will never be able of doing cause i cannot do anything at all related to anything you can think off
It's not that hard actually imo
I want to make a vanilla expanded mod
With all the states you could need
and once i do that i will screw the entire game folder and ruin like 100€ worth of game👍 seems like something i will do
i got it to replace the focus tree but now my focus just .. wont show up
so fixing china as well?
Remove the prerequisite
Try that
And mutually exclusive
Since there are no other focuses in question
ok ty ill try
Without looking at it I can say it's probably a syntax era
I meant error
That initial_show_position is messing it up
Plus there's like, 3 missing end-brackets
Idk why the demand Slovenia and first Ljubljana award focuses exist
I hope if I fix allot of the events
dude if u use diplomatic pressure u can get like anything
And add some map painting decisions my mod will become bigger
No, the weird one that's afterwards
it like guarantees you can puppet yugo as italy as well as giving u a chance to get slovenia
ohh
focus should close at the end right
I really want to add scripted Soviet/German peace deals
Dniper Volga ural
right before bypass
I'm just going to rewrite that whole sequence
okay tysm.. im so sorry to bother u
available = {
CUB = { has_government = democratic }
}
if limit is for effects
If limit is used in effects to say "If the scope passes these conditions, do these effects"
In an available sequence, it's just conditions
ohh ok
Will a mod 100% get more popular if you give a country 200 extra focuses with some events decisions wars sprinkled in
probably ? i think honestly ur best bet is to join a dev team if u want to be popular
rn im just trying to learn focuses and other stuff before i ask to join a dev team
but i do want to make smthn of the mod im making w my friends
even if its just something we play with it wld still be cool
Adding a lot of mass deportations focuses/decisions/events
To make a mod based
Would probably benefit a mod
ig but only if u back it up with good gameplay
its like MARESOC in eaw
its haha funny tree but the focuses r really boring ngl
and theres not a ton to do
also ughhh it still wont work :C
Adding an Aliyah mechanic is something I really want to add
Aliyah as in the Jewish immigration to Israel/Palestine
No I think that would just cause your mod to develop a sour reputation cause it'd attract racists
My mod has been pretty stagnant the past 6 months
Being somewhere between 325-400 subs
90%+ My fault tho to be fair
I think that's when you just call it quits, and make a new mod. Maybe still using the same content, but mods don't just suddenly become popular
A new mod file with the same mods content?
To give it some vitality
Yeah, but with just more polishing overall. If you just release the exact same mod it'll go the exact same way
I should wait 3 months untill I release a new version tbh
To polish up all the base game content
what can i use for a mechanic that steals the manpower/divisions of the enemy i destroyed
how do I make a trigger on the player justifying against anyone?
like
is_justifying_wargoal_against = any_country
any_country isn't an effect scope so that doesn't work
I think it should be something like
any_country = {
PLAYER = {
is_justifying_wargoal_against = ROOT
}
}
but there's no such scope as player
Depends on what you're using this in
just a music mod
I want a specific song to have a bigger chance to play when the player is justifying
I think ROOT would be the player in this situation, since root typically defaults to the player
oh ok thx I just don't really understand the root/this thing yet
so it should be
any_country = {
ROOT = {
is_justifying_wargoal_against = PREV
}
}
or how do I refer to that any country?
Yeah that should work
thanks I'll try
ROOT just means the base country
You can use the trigger is_ai = no
Are you looking for Quality of Life, total overhaul, historical overhaul, what type?
historical overhaul
Great War Redux and Empires are my personal favourites
wdym base country
If the file is the french focus tree, then ROOT would be referring to FRA for example
well if the file isn't related to any country then it does default to the player, right?
what kind of file is it?
it's a file with chances for radio songs
I don't believe root would work in that situation
wait what's the specific directory?
well I didn't test yet but I think root has to point at something and if the file doesn't point to any tag it should point at the player
mod/modname/music/modname.txt or something I don't remember I've turned the PC off already
it's in the same folder as the .ogg music files and the .asset file
ROOT always refers to the country interacting with it, i don't think It will work in that situation
It doesn't make a distinguishment between ai and real player
so how can I do it if root doesn't work
btw triggers like has_war do work relating to the player without mentioning any tags so I guess the player country is indeed the root in that case
has_war relates to the ROOT scope as well
yeah that's what I meant
It will apply to whichever country's scope it is in, typically root, not the player specifically
and in this case the root is the player
You can do
any_country = {
if = {
limit = {
is_ai = no
}
any_other_country = {
is_justifying_wargoal_against = PREV
}
}
}
That might work???
But the music folder doesn't know that
I think you got it backwards, I want to trigger it when the player is justifying on someone, not when someone justifies on the player
ohhh my bad
but has_war knows that it has to relate to the player if no tag is specified
It doesn't
If it's the player country then it knows because it's that country, not cause its the player
what's even the difference
obviously it's the player country at war not the player himself fighting someone irl
If you put has_war in the focus of a country that isn't the player, for example the italian focus tree, it will assume by default that it's referring to if italy has that war
obviously scopes come into play there but if it's not in any other scopes then it will assume italy
I'm not talking about has_war as a trigger in general, I'm talking specifically about the song chance file, focuses have nothing to do with that
That's just as an example
modifier { add = 1 has_war_with = GER } will trigger if the player country is at war with Germany, even though no tag is specified
no tag for the country at war I mean
ohhhh you're referring specifically to in music files
yes
I apologise
np
You can do
any_other_country = {
is_justifying_wargoal_against = ROOT
}
you got it backwards again
😂🤦♂️
though I'll probably add this too, the song is still fitting if the player is the one getting justified against
English is my first language so that just goes to show how dumb I am 😅
it's okay, especially at 3am lol (if you're in Europe)
is it event?
or scripted_trigger?
or scripted_effect?
radio song chances
ye ROOT works
ROOT doesn't need to point at something on every occasions
ROOT really just means they check whatever countries applicable as the one fulfilling the trigger condition unless specified otherwise
PREV defaults to, well, the prev one
if you have interaction then ROOT = new FROM = old, as they use ROOT to fire the trigger and FROM to identify who receives effect,
it only changes a little for on_action
ive already gotten some help with this but i still cant see this focus ingame? it just shows no focuses, is there any rzn why?
90179323231056926
It's the second initial_show_position, you're only supposed to have one in the file. Also there's still missing end brackets
oh i fixed that i think it didnt save ughhh
omg still wont work ugh... im so sorry :C this is so dumbbbb it sprobably smthn ez and dumb im forgetting
Alright, I will just correct this and then you can take note of it
okay tysm
Notes: You accidentally ended the sequence early with too many closing brackets in the available part
Full stops/periods always need a number before it
You don't need to refer to the country doing the focus, the game already knows
This is a very good reason to always properly tab out your code, since it makes it way easier to read and way more diagnosable
No problem. That'll be 5000 dollars not including tax. Would you also like to use suggested gratuity of 25%?
Oh, it's because you wrote focus = CUB_pre
It should be id = CUB_pre
I mean that's probably on me for not catching that
No I'm Anker
hehe
you possess the traits of a lifesaver
does anyone know of a good up to date version of the battle royale mod?
How does the Austrian units defecting to Germany in the great war redux work?
which event?

In general idk
can someone tell me which color rivers have in terrain map?
Rivers have their own file
where
map/rivers.bmp
ok
can you tell me what city map doing?
is only dark green , light green and brown colors
I believe it's to use different city textures for different regions
I'm not particularly sure about it tho
Working on a naval ledger concept. Where would I find data for downed planes and convoys that are not listed among the ship's sunk?
hi guys i made a bookmark and tried making a icon for the bookmark but it just goes with the default 1936 : ( could anybody help?
how can I make a trigger for when the player country is Austria-Hungary or at war with A-H? is there any flag for the formation of A-H?
alright, does anyone out here knows how to properly export the provinces.bmp file so it actually works (specifically on Gimp)
because i cant figure it out
nevermind exporting it with paint did it for whatever reason
on_actions = { on_startup = { effect = { every_country = { limit = { is_AI = no } add_ideas = { idea1 idea2 idea3 idea4 idea5 idea6 } } } } }
Is this valid? Will it load all the ideas or how can I load multiple ideas on startup?
i cant run nudget D :
i mean i cant run debug mode
man i hate when hoi4 acts retarted
it crashesh when it creates checksum
I made an accident in nudger and now it crashes when loading checksum and its listed in playsets as a mod. How can I delete it and fix my game? i tried all of those things even re-installing and theres still this error popping up.
his ID is VLA i believe
character IDs aren't like that
they're like SOV_iosif_stalin
but I can't find any mention of vlasov in common/characters in either GER.txt or SOV.txt
found it, it's from NSB apparently
SOV_andrey_vlasov
could've guessed myself smh
wait can you help me
how do i add multiple ideas at once upon loading
idk I never did anything but music mods yet
Are you using notepad as a makeshift IDE?
Did you check that the decision category is also visible?
yes it is
it will do
plus its not code anyway
Yeah no it doesn't considering that a proper IDE would tell you that there's a missing closing bracket after complete_effect
huh
what? really?
where
After complete_effect. It doesn't get closed properly
then what should it look like
can you please adjust it
should i press enter afterwards
wait how is that correct
Technically speaking, it does not matter. But also you should really delete all of those notes
i just copied them over
no ones gonna know anyway
Yeah but it makes your code harder to read
i dont care
also its not code
its JSOn
i can read human JSON fine
btw what are some rules that i can add
i want to create my own autonomus states
That's entirely semantical and I do not care
Entirely depends on what it's meant to do
just tell me all the rules that i can add
I think that's probably all of them
how do i assign a state to have my custom autonomy level
A state? You'd need to look at state modifiers and not puppets
i dont want state modifiers, im talking about assigning my newly created autonomy level
to another country
Ok, so you'd use the set_autonomy effect
How would I do that
Is that a command?
Also do I need to put anything in localization?
It’s an effect, it’s essentially the result of something like a decision or focus
No
For example, you’d put it in the complete_effect section of that decision
I mean I guess you’d need to put the autonomy type in, but that’s assumed anyways
if i have a focus that adds 2 factories in a specific state
and then i lose that specific state
will the focus still add factories to that specific state?
i think i can make it so the focus is only avalible if you hold the state but idk how
so can you like generate what im supposed to put in?
The options dont appear
I load in to the game but they are not in the category I put them in
what am i doing wrong for it not to appear
add
always = yes
in visible and available
could also be # problem
have you debugged it from inside the game?
how do i debug it
load save
type debug
resume
wait a bit
reload the save
an error.log will appear
where will it appear
well it appears now
yeah i think it was the comments
wait why does it say ai_will_do
cuz you got bracket issue
well can you correct it
i checked all the brackets
they close properly
heres the file
hmm, actually nothing wrong there
do you see the autonomy decision?
how do i remove the 25 building cap on states
the autonomy decision? yes
but whats wrong with the decision?
any other file sharing the same decision category/
just debug anyway
see what it says
why does this not work
when i load in game and click the decision i dont get market access to all the countries
try ROOT
alright, i also loaded in debug mode
just go through it
i downloaded a mod that changes that and kinda copied the way they did it
ROOT doesnt work
it doesnt give me market access to all countries
which is what supposed to happen once i click that button
if it doesn't work, nothing works
cuz you can't do PREV here either
well, can try
how do i refrence one country
is it TAG = GER
or target = GER
or target = { TAG = GER}
every_country = {
limit = { is_ai = no }
every_other_country = { do your effect here =
target = PREV
can u format it
bro i need it to be formatted properly
How to add a focus for Sweden called "Åland is ours" and when completed it sends a ultimatum to Finland to give åland
@summer lotus
everything works but i get errors saying that focuses don't exist and that "limit' is an invalid effect
can i just ignore this
the focus that doesn't exists works just as it's supposed to so i don't know man
limit goes after trigger cuz it helps defining scope
in itself limit isn't an effect
you have to categorize target such as
every_country = {
then limit = {
which will define what conditions a country needs to satisfy amongst every_country to receive the effect
it's probably because the "[]" things are closed incorrectly
but idk where
i don't really understand
it is saying that the focuses that not only did not cause errors before, but also did work and still work now are invalid or something
the error log isn't pointing me at any real issue
relative_focus_id: LUX_star_base_4 does not exist. Relative focus must be scripted before this.
except the focus does exist exactly as it is written in the error
i had no errors like this for most of my time of making this mod and i just have them now for some reason
i can technically ignore this error because as i said everything works fine but i'm worried it'll bite me in the future if i do
@summer lotus How to add a focus for Sweden called "Åland is ours" and when completed it sends a ultimatum to Finland to give åland
you can simply reverse engieneer focuses that already do that
like the focus that forces lithunia to give some land to germany
You've got an open bracket. Check in that error log, the earliest occurrence of the error in the luxembourg tree will be the general area where the bracket is broken
If you select the opening bracket, it will highlight the closing bracket and vice versa. You can use that to see if they're closing correctly, and fix accordingly.
i did suspect this may be the case but the focus brackets seem to be closed
this is the earliest occurance of this error
i mean there might be an open bracket somewhere
but now have fun trying to figure out where
Make a focus, and have it's effect trigger an event that gets sent to Finland demanding the territory
Can you upload the error log?
the defense_factor modifier is not the reason as it was there before and i know how to fix it i just didn't
I see
In the completion reward you have a limit scope, without an if scope
It's gotta be like
8 ={
If ={
limit ={
}
}
}
That was painful to type on mobile lol
Ignore the gaps, just the structure is what I mean
Or you can put the 8 inside both (not between), that doesn't matter but it works that way as well
Alr I'm going to bed so good luck with that
alright thanks goodnight
ehh if a focus had an open bracket that i'm missing then maybe said focus would not work
and it seems as if all the focuses work exactly as they're supposed to
how do i edit it so that when the target country that takes this decision all countries become puppets of that country
What is the resolution of an event?
How do I set multiple or all provinces to have 10000 victory points
Probably not possible since province id has to be defined specifically as it is not a scope by default
can i use a scope in replacement of province
Dunno, but there is one way you can use every_province in a state if you check Canada focus tree or sth
Just not sure whether set_victory_point works the same way here
how do i edit commands in hoi4
like console commands
Can't
You can't, gotta do them individually
There might be a way to cheese it tho, not 100% sure i'll check
any ideas as to why the senario selection screen is skipped over when clicking singleplayer?
I recently changed it in a mod, but it does the above mentioned thing
I am getting zero mention of it in the error log, which is throwing me off
if theres only one option the game will skip it iirc
np
wdym i cant
how do i cheese it