#modding
1 messages · Page 26 of 1
what issue do you have
idea not being assigned
or
idea not working/registering
Send me the mod and I will take a look at it
how do i add a formable through focus
set country's cosmetic tag and add state cores
and maybe "spawn" news event
are formables really just cosmetic tags
yes
can a countries color change with a cosmetic tag
what
[21:34:56][persistent.cpp:48]: Error: "Unexpected token: spriteTypes, near line: 1" in file: "interface/leaders_oms.gfx" near line: 26
I found your issue I think
its add_ideas
not ideas
Make a cosmetic tag that just doesn't change the name
make sure it looks like this:
spriteTypes = {
spriteType = {
name = GFX_portrait_TAG_firstname_lastname
texturefile = gfx/... # path to your leader portrait file (should be .dds)
}
}
alternatively you could send your file into the chat and I'll look over it
does anyone know how the ethiopia government in exile work? specifically with sweden as the host nation
If I add on to existing naval bases in nudge does it give me more dockyards or just naval bases? I want like 90 dockyards I need to build a super kreigsmarine
If it adds naval bases it adds naval bases, if it adds dockyards it adds dockyards. They are two completely separate buildings
Thank you
anyone know why the name is not appearing in game?
I can not for the life of me figure it out
All of the names or just one of the names?
any
it is just empty in game
How did you create the yml file
by going into my file explorer and clicking create new file
and making it yml
it is UTF-8
That's supposed to be UTF-8 with BOM
It does
I think I fixed it
It switched to a different encoding
UTF with bom
Instead of utf
Ah
It works now
However it won’t read one of my gfx
Other spirits have the icon
Just not one
can someone help me
What u having problems with
i want to make a new country there
can i make a what if soviet union and germany have a stalemate
For country creation, I recommend this https://hoi4.paradoxwikis.com/Country_creation
And for assigning the territory to your country, download find and replace tool for windows and replace Turkish tag with your new country tag in history/states
i want a new area there i tried it with map gen and it didn't work
how can I make an event fire on germany declaring war on russia?
you mean an event for everyone right?
something like the five year plan disrupted event
Check the on_action files
ok, how do I trigger the event with it?
Scope into Germany or the Soviets then do country_event = ...
like on_war = if = { limit = { war_with =ger tag = sov} country_event = smth}}}}
the default scope of on_war is the warring country so you can do
On a ocean tile?
if = {
limit = {
original_tag = GER
has_war_with = SOV
}
SOV = {
country_event =
}
}
something like this, except you might need a way to check that it isnt fired repeatedly if not wanted
will fire_only_once = yes work for that?
If you only want it to fire for one country
i have an issue with my mod where when i complete a focus to apply a cosmetic tag it just wont do it and instead will do the country it already is, how do i fix
"and instead will do the country it already is" what?
it says it will just be called the country it already is
like
''germany will be known as germany''
is your cosmetic tag correctly setup?
(Enable dubug mode if you haven't already and) hover over your country flag, it should show cosmetic_tag: ...
Is the correct cosmetic tag shown?
when the focus is completed?
yeah
yes it does
what is your cosmetic tag? and also show me your localization file pls
i found the issue
yeah? what was it?
damn
also
do you know how to make it so a focus needs a certain amount of states to be completed?
define "states"
You mean the country needs to own a certain amount of states?
yes
depends on what you want to do
i want it so its required for the focus to happen
I'm kind of trying to make a focus 'invisible' and have it appear after an event.
"However, for some reason, it is not working."
Hi, I wanted to make one historical WW2 mod. But I'm just a begginer and I need team to make one. I just wanted to ask if someone would be interested in making project like this, because I have a lot of ambitions if it would work
add mark_focus_tree_layout_dirty = yes to the event to refresh allow_branch
How do you make a mod though
Read the wiki, watch a guide
ok
in allow_branch { } ?
How do I change the gfx for later equipment? I created an expansion to train technologies and all the localization is correct but the images are just the base train images in the production menu (the image is correct in the tech tree)
didnt work
hi so ive tried to edit terrain.bmp and everytime i do, the urban graphics dont show and all urban graphics just dissapear off of the map
ive put the province i want with them to be urban in definition.csv too
New to modding. Does anyone know if there is an updated guide to portrait modding? Everytime i try to place my new portrait in it still defaults to the natural leader in game. I have tried using an existing leader mod and just pasting my gimp file over it but it still just defaults to the natural leader. At this point I have spent several hours trying different things. what do??
Sounds like it should work
does anyone know a way so i need to annex a country before doing a focus?
yay, did it
Check that the country doesnt exist, and that the player either owns all cores of the country or certain preset states
what do i type in the focus for it?
country_exists = TAG
}
all_state = { #no core of the target country is owned by anyone else than the player (ROOT)
OR = {
NOT = {
is_core_of = TAG
}
is_owned_by = ROOT
}
}
where do i put the state
owns_state = number
in the availability if you want that
Is there any code to check the number of synthetic refineries, like num_of_synthetic_refinery?
like this?
focus = {
id = EUAdeclarenewempire1
icon = GFX_goal_tfv_strengthen_commonwealth_ties
x = 58
y = 15
cost = 10
prerequisite = { focus = EUAbreakthetrucehungary }
mutually_exclusive = { focus = }
available = {
NOT = {
country_exists = KOH
}
owns_state = { 155
OR = {
is_owned_by = EUA
}
}
}
I have a question about modding in hoi4. How to add political advisors to a country?
character file
so does anyone know a good ww1 anime mod. I need it for reasons......
how do I delete unused state IDs?
aaand I just forgot to clear the nudge outputs
nevermind
ok, without states I can finally do some good stuff
was tired of deleting stuff all the time
there is a gamerule for that
i have an issue where my units dont have my countries flag and instead has random countries flag on it, how do i fix it?
can someone help with localization? ive put it into an english folder and still my description of events are something like this
and theres also an issue where it only limits to 17 units
- named threat localizations dont work
put description in the event file itself
desc = "text"
it has a limit as it would cut off
doesnt matter
im trying to get a longer paragraph into the event description
as long as its not an enter press it counts
notepad auto new lining at 1k characters dont matter
its not even 1k characters
to my experience atlesat
then whats the cutoff
odd
okay it works now
I decided to make a small mod that gives Artillery a positive org. After awhile of scouting through the code and wiki the main source I've been finding is Common/units/artillery_brigade but the max org in the file is set to zero and editing that does not charge the org on the unit. any ideas?
And only in this folder do I need to add something for the advisors to work?
if there are two decisions on an event, hwo can i make seperate events for both of them? small assistance please , thanks
make your decision just call a new event? Or what do you mean?
you know decisions in events
like you’d have option 1 and 2
something like this?
mhm
that
how could i make news events for both separate
i’ve looked at triggers and
i can’t find what i want
I don't really get your issue, just make the first decision call your first news event and the second decision the other news event
i cant figure out how to the news events after the decisions
the trigger page gives me nothing
and i csnt find out how
and you really just want news events to fire? only that?
yep
...
lemme open vs code rq
if you’d help me with just one news event that would be great as i could add it but modify for the next ^^
i’m rlly sorry for this i’m just
i’ve started coding on hoi4 like yesterday
and i’ve consulted the wiki alot
everyone starts somewhere I guess
country_event = {
id = yourevent.1
title = yourevent.1.t
desc = yourevent.1.d
picture = GFX_XXX
is_triggered_only = yes
option = {
name = yourevent.1.a
news_event = {
id = yourNewsEventID.1
}
}
option = {
name = yourevent.1.b
news_event = {
id = yourNewsEventID.2
}
}
}
Do you understand this?
The event has two options, the first calling the news event yourNewsEventID.1, the second calling yourNewsEventID.2
If you have any questions you ask, always open to help
Hello! I have a little gfx problem, the portrait of my leader doesn't want to appear. Can anyone help me please?
your image file is a .dds file?
yes
I used a default portrait as a template
and placed my image above and kept the proportions
and your image has this "encoding"? (or whatever it's called)
lemme check
(thanks for the help btw)
So I just checked
and it is
maybe it's a synthax problem?
show me your code, I'll look at it
what file
hmm, what exactly have you done? Have you overriden an already existing portrait?
yes
ah
but I put the file into my mod's folder
I didn't override the original portrait into the base game folder
You sure the folder structure is correct?
sure
do I send it here?
Sending a screenshot of the file path is sufficient
What tag is that? RKN?
yes
Don't think that's in the base game, you making a sub-mod?
what country is RKN supposed to be?
A new one
But i'm not creating a sub mod
for another mod
it's a standalone one
so a new country?
yes
How do you create the country leader?
oh
Have you made a file in yourMod\interface?
that's the problem
I only have a gfx/leaders/RKN
go to yourMod\interface (create the interface folder if it doesn't exist) and create the file yourMod_leaders.gfx
Open it and type this:
spriteTypes = {
spriteType = {
name = "GFX_portrait_Joubert"
texturefile = "gfx/leaders/RKN/Joubert.dds"
}
}
This should work
xd
Alr i'm starting my game
Alright so
For some reason, the name's here but not the photo
lemme think for a moment
okay
You sure the portrait's resolution is 156x210?
how do I check that
What image editor do you use?
perfect, open the file and look at the bottom-right
hmm
Would you send me your mod files so I could look better at what might be the issue?
Alr
@quick latch @obtuse condor I'm pretty sure that texture files for portraits do not work on the old assign country leader code. Also make sure it's saved a DDS, think that wasn't mentioned.
If you want to do that, then might I suggest using the character system instead. Otherwise link to it's portrait path directly instead of using texturefiles, as I do believe it's redundant.
If you haven't already figured it out that is
Worked it out in dm, issue was rather interesting. Two files had the wrong ending
Help, All my Desert/Arid Coastlines are Cities 💀
What? xd
How do you rename a city?
Change the victory point name in localisation
Or if it's mid game, then you can use this effect as an example:
set_province_name = { id = 11561 name = "Kryvyi Rih" }
Obviously adjust the province and name to what you want
Am I to take it that you edited the terrain?
So what did you change
Your file probably isn't correctly formatted
Or you have used a wrong colour somewhere
I couldn't say for sure though, the error log should have something to say about that
No problem
is there a way to make a country annex another at the start of the game?
was starting on another focus tree for a different country but the icon in the focus tree didnt load, but it would in the info box
any idea why this is? (it worked for another country)
it's missing the shine effect
top line should be "GFX_unlikely_proposal_shine" instead of "GFX_unlikely_proposal"
ohh okay ill try that out
still not working...
show me how you've labeled it in goals.gfx
also, game says that there is a country with my tag already (SOB) but i can't find it in country_tags
how can i change the thumbnail of my workshop item ?
is it mandatory for me to assign every province to a state?
Hey all.
Are there any country history files without all this DLC stuff added in?
or is it needed
to have them?
Hey all!
Started getting this error.
[20:18:07][flagtextureatlas.cpp:203]: Error loading country flag overlay: gfx/flags/ASR_democratic.tga : Unsupported format. Expected 32bpp, uncompressed, no color palette
[20:18:07][flagtextureatlas.cpp:525]: Error loading flag for country ASR : Ideology democratic : Path gfx/flags/ : File not found
[20:18:07][flagtextureatlas.cpp:203]: Error loading country flag overlay: gfx/flags/medium/ASR_democratic.tga : Unsupported format. Expected 32bpp, uncompressed, no color palette
[20:18:07][flagtextureatlas.cpp:525]: Error loading flag for country ASR : Ideology democratic : Path gfx/flags/medium/ : File not found
[20:18:07][flagtextureatlas.cpp:203]: Error loading country flag overlay: gfx/flags/small/ASR_democratic.tga : Unsupported format. Expected 32bpp, uncompressed, no color palette
[20:18:07][flagtextureatlas.cpp:525]: Error loading flag for country ASR : Ideology democratic : Path gfx/flags/small/ : File not found
Any tips?
would any1 like to do my german hw please @here
Why my news event doesn't fires?
You see the red bracket?
oh
That shows that you misplaced a bracket or on is missing
In this case after date < 2023.5.1 there's a missing bracket
Place your thumbnail into your mod folder and rename it to thumbnail.png. Make sure it has the resolution 600x600
Now open descriptor.mod and add the line picture="thumbnail.png"
Now upload / reupload the mod to Steam and it should work
Whats the pay?
a kiss mwah
change major = no to yes, maybe that'll work
didnt worked it too
it finishes at right point
put a bracket after the trigger = { ... } block
red bracket = not good / something's wrong
yea i hoped you wont say that
I don't think major is valid for events
Try remove it
Oh and also I'm pretty sure 'tag = ROOT' doesn't mean anything, you're going to need to put the actual tag in
You also don't need and if it's not an or statement
accidentally made a new state in nudge tool, deleted it and returned it to base game
now map wont load
how do I fix this?
anyone know some good utility mods?
Go to Documents/Paradox Interactive/Hearts of Iron IV and delete any folders called history or map
ok thanks
Who know working instant war mod?
like no justification?
instant_wargoal command no mod needed
man i wish endsieg was updated
What
ik, but i have quest to do this
i need for multiplayer
What about it
weird localisation
do that
make your mod, nothing holds you back. Have fun while modding
alr
ill make it when ive learned modding and coding
Good luck
thx
@obtuse condor
how do I fix this?
these countries do not exist
so ofc they do not have a history file
like, they do not even have tags assigned techincally
I have a question. If I want to add an opinion modification in another country, I have to add an opinion change only in the 00_opinion_modifiers file?
create a new file in that folder, call it yourmod_opinion_modifiers.txt (all letters need to be small)
Open it and add your opinion modifier there
Make sure you don't replace the file completely
And these countries do exist if they need history files
If not on the map then still by code ^
@obtuse condorMany of Soviet focuses/ideas have normal and alternative localization. Normal localization is used when Soviet Union/Russia is communist and alternative is used when you go non-communist path. Here's example from nsb_focus_l_english.yml: SOV_improve_the_stalin_line_name_default:0 "Improve the Stalin Line" (normal)
SOV_improve_the_stalin_line_name_alt:0 "Strengthen the Western Defensive Line" (alternative)
Hey! I made a Map with MapGen and exported it into a mod. I went into debug mode and wanted to start the game. It crashed obviously but whats the real problem is, is that i didnt get a crash (feedback report) and in Documents the Crashes Folder was also empty. So i can't figure out whats the problem. Does someone have an idea why it crashes but theres nothing in the crashes folder? The game basically just closes.
Hello
Can someone help me with making a mod
Or a tutorial
Which would be helpful
Pls and thank you
Well, what are you trying to make?
I'm trying to make like a different type of map + new leader + new unit stuff.
But I need to work on the basics
Search for the Iron Workshop on YouTube, he makes a ton of tutorials for this
No, that's a worse choice. Read the HOI4 wiki modding section then
It's less intuitive but it's up to date
Oh I found how to make a mod
Btw when I'm trying to create a new mod now what does it mean by version
That usually means the version the mod is for
Oh
E.G. my mods are all for 1.12.12 because they are for that version
So what is the current version rn?
And what does it mean by directory?
(Sorry if I'm asking too much questions)
Directory is the folder name for the mod, it only matters on your own device so you can name it literally anything
Well, literally anything that works as a folder name
Got it thanks!
So
I finished making the mod
What do I do now?
Since I have the base done
You're fine. Feel free to ask any more questions if you need. There's quite a few other people who knew modding (much more than I do), so if I'm not here, they might be able to answer
Do I go watch his videos?
Yeah, I would do so
Well I don't have the Helper role for nothing
Lol
I guess so
I can't find hoi4 in files'
For some reason
@slender brook
I can't find the hoi4 game in my files
For some reason
What is the tutorial telling you to do
I need to do the -debug
The game
But idk how to find the game
I've searched it in my hotbar
If you're trying to use -debug, right click on HOI4 in Steam and click properties, then type -debug into the bottom
thats it
Things like this come with time
Alright
Oh shit
I messed up something
So badly
I open my folders not with NotePad ++
But with Media Plyer
Player
How do I change that
Right click on the file, find open with, hover over it, choose another app, choose NotePad++
Although I think most of us use VSC
What is VSC
Visual Studio Code
Is it recommended I use it?
NotePad++ is fine, although VSC is just a bit more commonplace and has better extensions
And a dark UI by default
Alright
Is there a Visual Studio Code ++?
Oh wait
Nvm
I've used VST before
VSC*
So
@slender brook
I set it at VSC
When I open it right?
Yeah, keep going
Oh wait that's it, yeah just have it open with VSC and it should be fine
Alright thx
Hey! I made a Map with MapGen and exported it into a mod. I went into debug mode and wanted to start the game. It crashed obviously but whats the real problem is, is that i didnt get a crash (feedback report) and in Documents the Crashes Folder was also empty. So i can't figure out whats the problem. Does someone have an idea why it crashes but theres nothing in the crashes folder? The game basically just closes.
Yeah I wouldn't recommend doing map stuff as a first project tbh
I would recommend doing country stuff
Ah
ok so i basicly did everything in hoi4 modding thats possible. From Countries to states to national focuses etc. This map thing is like the last thing i can learn in hoi4 modding and its like the hardest thing. I basically have some mayor knowledge in hoi4 modding. But now being stuck at such a stupid problem must have happend xD
Yeah for your issue I would have no idea since I've only done fairly rudimentary map editing
Hoi4 Modding isnt easy i can tell you. I mean i started with this website (https://edge.hoi4modding.com/) This website does the dirty work for simple things but you have to know that there are also very complicated things in there like country modding etc.
And from there it only got more complicated as i started to add variables, functions etc. Things which aren't possible in this website. Maybe this helps a bit but I can tell you that it won't replace the coding ;D.
Damn...
how do you make a country annex another at the start of the game
on_action file
is there a way to hide an effect
hidden_effect block
well, considering that I deleted them I think that my game might be crashing because of that
any way to just delete those tags somehow?
how do you make it so a country has to accept annexation or decline through event?
you would have to edit every annexation event and focus
now my game doesn't even launch
anyone know what in all of this causes the game to crash?
around 10k errors
modding moment
You have a lot of map errors
I'll try
one error fixed
how do I change a tile to coastal?
nvm figured it out
should have fixed all the map errors
(probably a really dumb question)
but does anyone know how to make a seperate branch require to have another focus done?
a bit like this?
(using imperial nostalgia as a reference)
is it just normal prerequisite?
probably just make it like you want to connect a focus to another focus. Im not sure if the connection line still appears but you can try it out. In this example i think it goes like this:
In "Premier Lenin" there goes in:
prerequisite = { focus = TAG_the_great_industrialization_drive }
Hopr this helps
so it's just like normal prerequisites?
Holy shit
I'm getting sick of this ngl
I don't even know basic coding
Lol
I'm so stupid
i can tell you Hoi4 Modding is its own programming language
so no worries
its hard
i can tell you
Why can't they make it easier
alrighty, those arent my focuses, just wanted to use it as a reference but thank you either way ^^
tbh its an actual pretty understandable language
if you showed it to someone with no knowledge they might understand it somewhat
it just needs some time to understand it
I don't know what to do to start off
there is the hoi4 modding wiki and also yt channels with playlists for basic coding
But like where should I start off?
If I want to make a mod
Like what are the first steps?
The map?
The focus tree?
The political??
The researches?????
yeah
sry but i dont have time rn :I
true
Or make a thing to make it easier for us
Because only people with medium to high skills in coding can do this.
And average player can not
And will spend hours on end just to get no where
i think i will someday make a video which explains everything xD
Thank you
what we could do is if i got time i can explain you focus trees and the connection to the ✨ code world of Paradox✨
Or
We can beg the PDX team to make a actual video
About how to make mods
Or show loopholes of how to
the video be like:
How to make Hoi4Mods:
12:59:59
Idrc
part 1 xD
good luck xD
I don't even know what I'm going to do
Prob just give every country 2000000 mils
And if anyone even judges me
I swear to god
Wait
@ocean prairie
Is it possible to give more than 25 factories to someone in NUDGE!
ehhh i dont think you can do that in NUDGE
but you could do it with the cheat console
How
with instantconstruction
I SHOULD MAKE A MOD THAT GIVES LIKE INFINITE SLOTS
But like only 25 will show up
Wow
oh god chill
It's now Sunday for me
xD
No
I'm never chill
Until I can figure out this stupid HOI4 code
Yes
and then modify a state and add 25 military factories in it within the file
oh god i dont know how to do that xD
i added about 5 countries and since i have the game wont open, can someone tell me why? and in error.log it tells me errors that didnt effect the game
anyone know why this is?
ive created both ideas for the idea swap but
it says they're missing
are you sure that the idea is called like that?
someone help im getting errors
[17:26:01][pdx_entity.cpp:323]: Failed to find entity "ITA_mechanized_vehicle_1_entity" for attachment in vehicle
[17:26:02][effect.cpp:425]: Invalid effect '=' in history/states/735-Savoy.txt line : 11
[17:26:02][persistent.cpp:48]: Error: "Unknown effect-type: =, near line: 11
Unexpected token: =, near line: 13" in file: "history/states/735-Savoy.txt" near line: 13
[17:26:02][parser.cpp:932]: Error: unexpected token in file: "history/states/847-Western Swiss Alps.txt" near line: 3 ( 158 )
[17:26:02][gameitemdatabasehelper.h:150]: Error: "Unexpected token: 158, near line: 3" in file: "history/states/847-Western Swiss Alps.txt" near line: 3
[17:26:02][parser.cpp:932]: Error: unexpected token in file: "history/states/847-Western Swiss Alps.txt" near line: 3 ( = )
[17:26:02][gameitemdatabasehelper.h:150]: Error: "Unexpected token: =, near line: 3" in file: "history/states/847-Western Swiss Alps.txt" near line: 22
[17:26:02][effect.cpp:425]: Invalid effect '=' in history/states/851-Var.txt line : 24
[17:26:02][persistent.cpp:48]: Error: "Unknown effect-type: =, near line: 24
Unexpected token: =, near line: 28" in file: "history/states/851-Var.txt" near line: 28
maybe you missed a } somewhere?
hey i am trying to change the franco-british union's color but someone know the cosmetic tag of it ?
cuz it didn't work
Does someone know how to fix it?
Why is Arizona just a singular state lmao
America good ending
which mods should i use and what country should i choose to max out enjoyment
need to change defines file
set the max to 2000 and then make a modifier that gives 2000 slots
idk it depends on what you like
guys im completely new to modding and i just wanna make a mod thats like the east vs west 1v1 multiplayer mod (that TommyKay used) but about a fued thats going on with my friends, any suggestions how to even start? 
map modding is like, the hardest thing
Id stick to the vanilla map, possible crop it with a map tool
Is it possible to form the Roman Empire in road to 56?
If you want a focus require another focus but without the connector line do this:
available = {
has_completed_focus = focus_ID
}
Can anyone rebuild this abandoned mod? https://steamcommunity.com/sharedfiles/filedetails/?id=2259131163
I have the files.
Do it yourself hippie
what on earth is that icon 4
How do i change the cw of terrains?
Chicky
thanka
does anyone know about a mod that allows you to get the research of a country when you annex it? this is for when two countries unify
there's no reason for their research just disappearing
Don't know a mod but I should be very easy to make on yourself, all the code required would be inherit_technology = XXX (XXX being the country getting annexed). With the on_actions thing it should be possible.
(inherit_technology may override existing research but don't really know)
it's literally just
on_actions = {
on_annex = {
effect = {
ROOT = { inherit_technology = FROM }
}
}
}
Anyone got Millenium Dawn mod discord?
Go on the mod page and scroll down, it's not that hard
how to make my own mod
Texas Volksrepublik
Watch The Iron Workshop's Hoi4 modding tutorials
So I got bored and decided to try to figure out how to make Karelia a starting nation with some additional cores.
Let's see how long I spend
I could just CTRL+C CTRL+V their country info into the file
I mean, all you need to do is copy the states you want Karelia to have / want to have cores on and modify them. Should only take a few mins
Yeah but I'm going to make it a semi-playable nation
what
IE giving it a basic focus tree
ah
I may try to make it a custom country tag.
?
Given it starts as a Kingdom and I'll try to spend like 5 hours making the name on the map say Kingdom of Karelia
isn't hard either, you just need to change it's name in the localisation files
aka countries_l_english.yml
Quick question, if I was to use the already existing tag, would I just leave the colors.txt as it is?
Why would you want to modify it into something it already is?
guys, what do you all think about Ai Behavior Expansion for road to 56
is it a good idea
AI in general is weird af and does questionable things, so sure have fun making that I guess
I just realized, in my base HOI4 files, Kosovo gets an entire Country tag file to itself
lmao
I just find it funny
okay?
but I also wonder why it is seperate
now that's a good question
and also core?
Now I need to figure a way to make it so it starts as Non-Aligned under the party name 'King's Loyalists' until I can make something else
then hurl down some shitty div templates, Frontier Guard, Karelian Rangers, Armored Brigade, Capital Infantry
also easy, in history file search for set_politics = { ... } there you can set the starting ideology (should be neutrality if I remember correctly).
And for the party name you need to create a localisation file. In it write:
l_english:
TAG_ideology: "party name"
TAG_ideology_long: "party name long"
in your case:
l_english:
KAR_neutrality: "King's Loyalists"
For some reason I can't get the localization working
Is your file encoded as UTF-8 with BOM ?
should be
is your file name also xxx_l_english.yml ?
[09:27:46][gameapplication.cpp:766]: The game has loc key collisions. Check logs/text.log for more details
What exactly did you do?
I changed the name of the non-aligned nation name to Kingdom of Karelia
is your file placed in yourmod\localisation\english ?
no it isn't
\localisation\english\countries_l_english.yml
there needs to be a folder called english
read the message
what has that to do with my message
what would that file be called?
Create one yourself, call it whatever, I usually call my own files modname_base_game_file_l_english.yml
Call it yourmod_parties_l_english.yml
Will be gone for the next 3 hours, have fun figuring things ouit on your own
Does this work with annexing through focuses and decisions?
Also Thanks
Actually should only work that way, tested it and peace deals don't make you copy the tech
base game color
can someone tell me what is best mod for graphic
mod opinion depends on user but I prefer Kamerad's Overhaul
guys, what is the program everyone uses for making mods?
and what coding language is it?
The only programs you need are an image editor (for example: paint.net) and a text editor (for example: VS Code)
Hoi4's programming language is called PDXScript I think but idk
so I have deleted almost all my game files, but when I redownloaded them and relaunched the game the map was still broken. Context, I accidentally messed with the nudge tool and made a new state, then deleted it and returned it to base game
Documents\Paradox Interactive\Hearts of Iron IV delete map, history and localisation
That should fix
"so I have deleted almost all my game files"
That should fix
Nudger things aren't stored in the Hoi4 files in your Steam Library
link?
Go to youtube, search "The Iron Workshop"
Is there a mod that allows me to form the German Confederation?
and an updated WW1 mod?
Thanks man
how to make a mod where putin time travels
anyone know good mods for the netherlands?
Hey, would someone be interested in making an economy mod in hoi4? i have no experience tho... 😥 But I am learning! Text me if u are interested and i can explain more deeply
Hello! I have a big boy question for anyone willing to hear me out for a moment.
Unless you're France, Russia, Germany, Britain, Japan, or America you get 0 fun tank models. Is there a way to give countries like South Africa a nicer model?
Im making a chaos mod, can some give me the stupidest leader for Tennessee in your mind
Put Matt Walsh as leader xd
Ok
is it possible to create a submod for hoi4 xbox game pass as all the tutorials i have watched all use steam and i dont know how find mod names and stuff
Here is it
nice
Novum vexillum
Is it actually possible to add custom tank roles to the tank designer?
afaik industrial_complex
surely it's possible but I've never done division modding, but I could look if I find something
good luck with that, it seems like the roles are not set and depend on different factors, some of the presumably hard-coded(not modifiable)
only thing i was able to do is modify the existing ones, and even that with limited success
nah, didn't find anything except equipment.gfx (SteamLibrary\steamapps\common\Hearts of Iron IV\interface) where the role things gfx is assigned.
literally just:
is this supposed to be japans focus tree in rt56? because it looks like the vanilla one
yes
oh, i've seen videos where they have another focus tree idk, what mod should i use for japan focus tree then
someone make this a reality
arizona breaks free then goes on conquests with the pheonix soliders
you can make this a submod for North America Divided
Anyone play novum vexium and if so are u also having issues plsy ing
Meaning lag out like 3-4 years in then never being able to finish
Hey, would someone be interested in making an economy mod in hoi4? i have no experience tho... 😥 But I am learning! Text me if u are interested and i can explain more deeply
Hello! I have a big boy question for anyone willing to hear me out for a moment.
Unless you're France, Russia, Germany, Britain, Japan, or America you get 0 fun tank models. Is there a way to give countries like South Africa a nicer model?
Make 3d model for it
damn
Make one
rip germany
this good?
i cant believe you balkanised Germany
its the HRE all over again
i made an even more balkanized Germany
maybe
should be good enough
wish i could have all the areas on the map but provinced
This go to all the tnobros out there
I turned rfk death off but I still got the event
Is this a bug?
how do i remove this resource rights tool from rt56 rp
Do Console command gui then hover over that bar
Then mass search the interface folder of the mod for any tokens you find
Because of the way it is
i made my own modded focus 🙂
Hello everyone, I have created a custom world and a color water map for it. But the color water map which is 5120 x 2560 (the custom world is the same size as colormap) wont appear. I know the 2816 x 1024 works I but want change that value and I don't know how. Any ideas?
Hello folks,
Is it possible to change how the scroll button works while on the focus page - I wanted it to scroll down (like the EU4 mission page and like the tech page or the decisions window in HOI4 itself), rather than zoom out.
I tried editing the ContiainerWindow called "tree" in the "nationalfocusview.gui" file - but had no luck. Can someone please help me out?
💀
Does anyone know of any mods that increase casualty numbers?
Hello, I am currently working on Russia for my mod and I would like to remove the paranoia system for my non communist ruler. How to do it ?
hello , I need to ask what folders the state modifiers and their gfx are written to and how to localize them
how am i supposed to come up with a whole focus tree for 1 state that has never been independant or wanted to be independant
depends on the state and circumstances of the nation, historical circumstances
what year , what world ( mode ) , nationality of the state , leading personalities / forerunners of the theoretical state
?
just normal 1936 and the country is Oberschlesien
heard of it?
it’s only on Wikipedia in German
i Live near cca. 300 km
but in czech republik
it was part of our state for hundreds of years ( 300 years ago the Habsburgs lost it ) it was part of our state
after the First World War the Poles who were preparing the Plebiscite became interested in it , there was an uprising of the Poles living here but Entate stopped it but Katowice (until then 200 years part of Prussia / Germany ) left the Poles ( who were a bit more peaceful ) got the Hlučín region ( approx. 9000 inhabitants ) , basically only Czechs lived there , the whole Silesia was very industrial , three states sought it: Poland (ethnic law), Germany (ethnic law and power) and slightly Czechoslovakia
if you want to invent the future, you must know the past, start with the period after the first war, go through the region and talk mainly about the three states
how do i not have all the colours get changed when i make a country a different colour
is there a mod where u can swap sides like romania
wow thanks
How do you change a country's colour?
cosmetic tag
I know, I was asking him to see what might be the problem
I tacked on a focus to Japan's tree to enable a new piece of equipment and a new subunit, but unfortunately, only the subunit is working properly. I've tried a few different things, but this is what I settled on
id = JAP_supra #LOCALIZE THIS
icon = GFX_goal_generic_army_artillery #CHANGE THIS
prerequisite = { focus = JAP_army_expansion_law }
x = 3
y = 1
relative_position_id = JAP_army_expansion_law
cost = 10
ai_will_do = {
factor = 1
modifier = {
factor = 1.5
has_completed_focus = JAP_support_the_kodoha_faction
}
}
available = {
}
bypass = {
}
cancel_if_invalid = yes
continue_if_invalid = no
available_if_capitulated = no
completion_reward = {
set_technology = { supra_motorized = 1 }
set_technology = { supra_equipment = 1 }
}
}```
The technologies file I made has this instead. I tried to cover all bases so when supra_motorized didn't enable the equipment, I made a second technology entry specifically for the equipment, but that hasn't worked either
allow = {
always = no
}
research_cost = 1
start_year = 1936
enable_subunits = {
supra
}
enable equipments {
supra_equipment
}
}
supra_equipment = {
allow = {
always = no
}
research_cost = 1
start_year = 1936
enable equipments {
supra_equipment
}
}```
the focus unlocks the unit correctly, it just doesn't work with unlocking the equipment
what is funny is that when I set "active" to false in the equipment file, it's like the equipment isn't even in the game. Instead of being inaccessible because of the focus, I just can't access it at all. I try to add equipment to my stockpile through the console and the game says it doesn't recognize the equipment name
if I make it "active" then my equipment shows up, but it's the bigger issue of it being available to everyone
what on earth 💀
guys what is the code that cancel the demilitarizion of the rheinland?
how do you rename ideologies
XXX = { set_demilitarized_zone = no } XXX -> state id
Check the focus
the GFX tokens arent automatic, you need to specify them in the interface folder
You can tell how to make it?
check ideas.gfx in the game folder
simply add that sort of file to your mod, remove all the vanilla icons and use a different file name
Thanks
anyone have a link for a working mod for mellenium dawn on paradox .com
Anyone know if there is a mod that is from the 550BC time period or something like that? Maybe even 1000AD is fine too just ping me to let me know
Imperator Rome
Bro you are the best, thank you.
What?
this isn't even a mod?
The point is HOI4 cannot represent that era in any sort of realism
HOI can't really even represent anything pre-WW1

the oldest i've found is 719ad
Right, and there's little interest going further back because the division and economic systems make no sense going that far back
But yeah, if you really want to play anything that far back a different game is the most likely option
oh also one more thing, is there any mods that go from like early 1900s or mid to late 1800s up to ww2 where the events actually take place?
Uh, I think Great War or Great War Redux are as close as it gets
But I wouldn't know of anything that starts further back and is meant to be played until WW2
hello, after I added the oob file, the game started to crash.
End of a New beginning is a mod practically like the victoria games but they dont lead to ww1 really at the moment
how do i edit a steam mod for personal use? Im on MacOS
Great War Redux goes on to ww2 technically
Absolutely no reason to do so, however
could someone help me, i watched this tutorial https://www.youtube.com/watch?v=EYFnYyOzU6U&list=PLt_7vUaEvaGTJ0ISBqY2v4EyfmPALiVS7&index=11 and in 7:42 that he was going to take the building file but there are 8 building files for different countries. Should i take all of them or wth does he mean
This lesson will explain how to create new buildings in Hearts of Iron 4.
Timestamps for this tutorial/lesson:
00:00 - Lesson beginning
01:23 - Important notes/things to consider
04:37 - Creating mod file
05:18 - Creating folder/file structure
08:01 - Editing the buildings.txt file
11:58 - Creating building Icon
20:55 - Creating localisation
2...
I love how my modds range from modern to alt history to equestria at war
Hi, I have an idea for a mod, but I'm not a very good modder, so I want to ask if someone can make a mod where bunkers can be upgraded or modified.
theres already tiers, so what is upgraded and modified
hey if u are interested in making an economy/industrial mod then we can prob fix something. I am also not a very good modder
guys im having trouble with mod order. how can i make sure my mod loads after all other mods, in order to overrite all necessary files for my desired fixes?
if youre making a submod you have to specify a requirement, otherwise you need to tweak the launcher settings file to un-hide the load order option
its not a submod, its simply a mod that edits something already edited by other mods, and i need to make it overrite those other mods files
``Go to the launcher-settings.json file and open with a text editor: (where launcher is installed X:.....\Steam\SteamApps\common\Hearts of Iron IV\launcher-settings.json) and find this line:
"modLoadOrderDisabled": true,
Change it to
"modLoadOrderDisabled": false,``
and then?
i did it and it seems that i can now move mods up and down in the playsets. now, to overrite all mods, should i put it in top or last?
Higher number should be later, and so best to override
i tried lowest in the list, then highest in the list, and nothing. the mod i wanted to overrite still loaded on top. In case the information is pertinent, the desired targets for replacement are 00_operations and a denies file with like 10 defines, 4 of wich are defined in the mod i want to overrite
is there any mod that's ESI compatible for more formable nations?
try the Together for Victory DLC folder
How do you make an event go off once you complete a focus? I've been trying to figure it out
Nvm i figured it out
I can't for the life of me find where in the game files are* the modifiers that the AI uses to determine a response to an event, can someone point me in the right direction?
when making a new state the tutorial said that i sould move the map, localisation and history folder to my mod folder. do i need to move them everytime i make a change because it always comes newones when i make a change
Theyre inside the event file, check pre-existing ones
If youre using the nudge tool, I guess so
Theres some good yt tutorials
so
Watching the tutorials is the same thing as me telling him, just a different person that talks
i want to add a few focuses for an existing country
a decision to form a nation that has a few cores and claims
to rename the country after that decision
keep the existing focus tree
change the name/image of leaders, assigning an existing leader to another existing political party
"a decision to form a nation that has a few cores and claims" A new country or formable as in the original country gets a different name and cores?
I see
nah
and make it replace the existing one?
that'd make it just more complicating
Just watch what you need to watch
im not sure what i should watch exactly tbh
let's start with the decision first, you want to create the following folder structure: yourmod\common\decisions\categories
i dont know what should i make and what i shouldnt
so i should stick to an existing country
yes
ok
should i add that respective country in the mods folder?
with all the files from hoi4 game
For now you don't need to
You can add everything you want, I only want to start with the formable because it's the easiest
vc call?
Wouldn't really want that, writing is good enough for communication
ok sure
i want to add decisions for romania
now i should take this file
copy and modify it
In categories create a text file. Call it yourmod_formables_category.txt
Write this:
ROM_formable_nation = { # for example: GER_greater_german_reich_formable
allowed = {
original_tag = ROM
}
visible = {
}
}
yeah, you could call it ROM_greater_romania_formable for example
You want the formable be for Romania, right?
yes
Well, what do you mean with "can i use a different tag?" ? Where would you want to use a different tag?
If you mean original_tag = ROM then no
I'm looking for either one of the Austrian AI event in response to Demand a Referendum, or the Czechoslovakian AI event in response to Protect Czechoslovakia. I'm looking in the event file and don't see any that would match either of these.
search for ai_will_do blocks
is that all?
for the category file? yes
now i have to make decisions_categories?
What do you mean exactly?
if it looks somewhat like this then yes
allowed = {
original_tag = ROM
}
visible = {
}
}```
ah, replace ROM_formable_nation with ROM_dacia_formable
make it look like this: ROM_dacia_formable = {
text after a # are just comments
You mean SteamLibrary\steamapps\common\Hearts of Iron IV\gfx\interface\decisions ?
In decisions create a file and call it yourmod_formables_decisions.txt
Write this:
ROM_dacia_formable = { # Or whatever you set the category ID in "yourmod_formables_category.txt" to
ROM_form_dacia = {
icon = generic_form_nation
fire_only_once = yes # fire_only_once makes the decision work only once
cost = 0 # cost is the political power required, normal you'd use 0 for formables
visible = {
original_tag = ROM
}
available = {
controls_state = XXX # Do this for every state that you need to control
}
complete_effect = {
set_cosmetic_tag = ROM_dacia
add_state_core = XXX # same state IDs as in "available = { ... }"
}
ai_will_do = {
factor = 100
}
}
}
That helped a bunch, turns out my problem was expecting the AI response to be governed by something in that nation's event txt file, but the AI response is baked into the event itself, which seems to be in the Hungarian event txt
thanks a lot
so for available
i have to enter bunch of states that i need to control in order to be able to make the decisions
for the core states, can i add cores that aren't currently in my possession?
yeah, every state that you want Romania to habe under control to be able to form dacia
That is exactly the point
