#modding
1 messages · Page 97 of 1
i absolutely love toolpack
@pale sparrow One more question,I have found the way but
Whenever I click on state,yeah UI shows up but when I click ESC
It continues to show up until I select another state
and suddenly appears again
I want it to not show up too whenever I click esc too
Same
i use it in my every playthrough now
I think its a basegame bug
oh
wait let me see then
@pale sparrow DidN't work,any backup ideas?
Like when I do this
before I press ESC
After I press ESC
oh wait
Well It actually works when you press ESC again but yeah when you press ESC first time It doesn't go away
Does anyone know how I add dams to a province/state?
<@&916727924093239336> ?
Its a building in the state file like any other
I just realized I worded that wrong
I meant, how do I add dams to a province/state as a reward for completing a focus
Like any other building
Alr ty
I’m just trying to update this one focus to 1.16 from someone else’s mod so I’m not very experienced
Does anyone know how to make ui upon being opened,with It's variables' name or value change the InstantTextBoxes with their value or name?
How can I do that?
@pale sparrow If you can help on this one too,I would be happy
Wdym
I have made the button show up,now I need it to when button is pressed,I need other ui to show the variables which I have assigned to the each state to show up in InstantTextBoxes
hey everyone! I'm working on a mod for a German disunification tree. any comments on my design?
@pale sparrow Any idea? (Sorry If I'm bothering)
scripted_localisation = {
name = my_state_name
localisation_key = "[This.GetName]"
}
l_english:
STATE_NAME_LINE: "State: $MY_STATE_NAME$"
instantTextBoxType = {
name = "state_name"
size = { width = 40 height = 280 }
position = { x = 150 y = 40 }
format = center
text = "$STATE_NAME_LINE$"
}
If anyone could help
Nevermind,fixed
so in theory to make a mod were Northern Ireland is controlled by Ireland i would just need to make a history folder, a states folder inside that one, and put Northern Ireland inside it with the owner changed to IRE right?
i wonder as i am still on my quest to find out why i am unable to make a mod and this seems like the quickest and easiest change to make a test mod from
basically yeah, could mess with the colors instead aswell
that would be find out were the country files are stored, set up the necessary folder setup, and change colour to something else
common/countries/color.txt
I think it was BIce that I was playing once, they had a building that they didn't want you to build cost so much that it's just not worth building ever
couldn't you also theoretically put the building behind a technology block? if fasilities counts as state buildings to some degree, couldnt you use a similar technology to require building it and this technology only being available via focus or decisions? of course that would cause the problem of it being posible to construct it after said focus so i think sar370 is right here... just make it so ai will never start building it manually
How can I change tech tree’s icons ?
is there any active napoleonic era mod?
so the mod is active... but why doesnt it do anything...?
i made the mod via the paradox launcher
literally the only thing its supposed to do is give northern ireland ti ireland
Hey I got another issue,In my UI culture doesn't show up even though I have defined it's textbox like this
name = "culture_name"
size = { width = 40 height = 280 }
position = { x = 150 y = 90 }
format = center
text = "Culture -> [This.GetStateVariable:culture]"
}```
state={
id=344
name="STATE_344"
manpower = 1081781
state_category = town
history={
owner = TUR
victory_points = {
7620 10
}
victory_points = {
6813 3
}
buildings = {
infrastructure = 2
industrial_complex = 1
}
add_core_of = TUR
}
provinces={
3889 6813 7620 9912
}
set_variable = {
name = cityname
value = "Malatya"
}
set_variable = {
name = culture
value = "Turkish"
}
set_variable = {
name = population
value = 1081781
}
local_supplies=0.0
}
## Code for example state
@pale sparrow Could you help if possible on this one?
Sorry for bothering
IIRC you cant do string variables
Theres also pre-existent automatic population vars
I'm looking for someone who would make me a general mod, more info on dm (general's name, experience, etc. on dm) I have a graphic
oh
how can I do string ones then,Is it impossible
Like
I'm trying to my newly made ui
put an InstantTextboxType
where It will show culture's name
do a numeric variable and assign the text with a scripted localization
How though
So I assign it an ID
and give id a string definition?
from localisation?
@ripe perch Do you have any Idea on how to add variable value a text from scripted localisation?
The UI localization is just something like "[culture_name]", while the scripted loc does check_variable checks
No what I mean
How do I do that
like I have a file rn at
scripted_localisation folder under common
my current progress is
defined_text = {
name = culture_loc
text = {
localization_key = 0 # value of state
}
}
Was looking at here
I didn't get anything not gonna lie
Like,I have put the variable value instead of a string
I gave it 0
Now I don't know what to do
If anyone could help
I still didn't get it man
Wait I get it now
But how can I add a condition to make it show on only the states with value 0?
@ripe perch
defined_text = {
name = culture_loc
text = {
localization_key = nationality_0
}
}
text = { trigger = { check_variable = { my_var = 1 } } localization_key = culture_A }
oohh
alr
@ripe perch Thank you ❤️
So I now define it with
localisation
in english?
What I meant
I generate a new localisation file
and use localisation key
and write the culture's name
ar
alr*
yes
👍
in the scripted localization you need to all different cultures
Last thing
Okay I know
Last thing is
#How do I define it here
instantTextBoxType = {
name = "culture_name"
size = { width = 40 height = 280 }
position = { x = 150 y = 90 }
format = center
text = "Culture -> [SelectedState.GetStateVariable:culture]" <--- This is wrong I need the true one
}
its the name of the scripted loc
I basically add the culture_loc?
name = culture_loc
text = {
trigger = {
check_variable = { culture = 0 }
}
localization_key = nationality_0
}
so this is my scripted_loc file
and the name here
right
oh ok
so I write same as culture_loc to here
no brackets,nothing just the name of it
yes, text = [culture_loc] should work
I'm looking for someone who would make me a general mod, more info on dm (general's name, experience, etc. on dm) I have a graphic
@ripe perch One problem
For some reason every state has Turkish in it
how can I prevent it
state={
id=344
name="STATE_344"
manpower = 1081781
state_category = town
history={
owner = TUR
victory_points = {
7620 10
}
victory_points = {
6813 3
}
buildings = {
infrastructure = 2
industrial_complex = 1
}
add_core_of = TUR
}
provinces={
3889 6813 7620 9912
}
set_variable = {
name = cityname
value = "Malatya"
}
set_variable = {
name = culture
value = 0
}
set_variable = {
name = population
value = 1081781
}
local_supplies=0.0
}
state={
id=339
name="STATE_339"
manpower = 1401889
resources={
chromium=50 # was: 86
}
state_category = large_town
history={
owner = TUR
victory_points = {
4112 15
}
victory_points = {
928 5
}
buildings = {
infrastructure = 2
industrial_complex = 1
air_base = 2
4112 = {
naval_base = 5
}
}
add_core_of = TUR
}
provinces={
928 3927 4112 6992 7130 13392 11848
}
local_supplies=8.0
set_variable = {
name = culture
value = 1
}
}
------------------------------------- STATES ABOVE ------------------------
defined_text = {
name = culture_loc
text = {
trigger = {
check_variable = { culture = 0 }
}
localization_key = nationality_0
}
text = {
trigger = {
check_variable = { culture = 1 }
}
localization_key = nationality_1
}
}
@raven hedge undefined variable will be read as 0
If Turkish is nationality value 0, every state will be that by default, unless a different value is defined
Just letting you know since that musnt be working somehow
Yeah they're in states
Yeh but not in the history block
oh
I think the game isnt expecting the variable setting effect there
Well they're not in history block
Thats the problem
They should be Im pretty sure, because history is an effect block
alr
gfx\interface\special_project
@pale sparrow Well that didn'T work
I put it inside of history scope
state={
id=344
name="STATE_344"
manpower = 1081781
state_category = town
history={
owner = TUR
victory_points = {
7620 10
}
victory_points = {
6813 3
}
buildings = {
infrastructure = 2
industrial_complex = 1
}
set_variable = {
name = culture
value = 0
}
add_core_of = TUR
}
provinces={
3889 6813 7620 9912
}
local_supplies=0.0
}
You meant like that?
It's my current file status
Nvm I fixed it
oh thats simple
start with 1 not with 0. a variable is always 0 if not set. And in the scripted loc try FROM.culture , I think its a scoping issue
wait
wdym
so I change culture with FROM.culture?
[FROM.culture] you say?
check_variable = { FROM.culture = 1 }
a variable is always related to a scope, we need to check state scope, not country scope
Ok
@ripe perch That didn't work too
defined_text = {
name = culture_loc
text = {
trigger = {
check_variable = { FROM.culture = 1 }
}
localization_key = nationality_0
}
text = {
trigger = {
check_variable = { FROM.culture = 2 }
}
localization_key = nationality_1
}
}
guiTypes = {
containerWindowType = {
name = "culture_button_container"
position = {x=465 y=605}
size = { width=280 height = 50 }
background = {
name = "Background"
spriteType = "GFX_window_ui"
}
buttonType = {
name = "culture_button"
spriteType = "GFX_window_ui"
buttonText = "Click for state culture info"
buttonFont = garamond_32
size = { width = 280 height = 50 }
}
}
containerWindowType = {
name = "culture_window_ui_container"
size = { width=500 height = 400 }
position = { x = 750 y = 300 }
background = {
name = "Background"
spriteType = "GFX_window_ui"
}
instantTextBoxType = {
name = "state_name"
size = { width = 40 height = 280 }
position = { x = 150 y = 40 }
format = center
text = "[This.GetName]"
}
instantTextBoxType = {
name = "culture_name"
size = { width = 40 height = 280 }
position = { x = 150 y = 90 }
format = center
text = "Culture -> [culture_loc]"
}
}
}
does this.getname show the state name?
Scratch that, the icons in my custom folder now look like this, do you guys know why that might be?
*countrytechtreeview file
It does
try text = "Culture -> [?culture] [culture_loc]" it should show the variable, just to see if it works
ok, select the state ingame, open the console and type list_vars
alr
Do y'all know how to make it so that a country can't release certain countries/states until a certain thing is done?
looks like set variable is not working correct in the state file
Yeah I guess
I'm sending it again
state={
id=344
name="STATE_344"
manpower = 1081781
state_category = town
history={
owner = TUR
victory_points = {
7620 10
}
victory_points = {
6813 3
}
buildings = {
infrastructure = 2
industrial_complex = 1
}
set_variable = {
name = culture
value = 1
}
add_core_of = TUR
}
provinces={
3889 6813 7620 9912
}
local_supplies=0.0
}
try the short version of setting the variable set_variable = { culture = 1 }, other states use the short version too
yes
check state 835-Haraghe.txt, there are varibles in the history file
so this should work
You can make your own
Also anyone got an answer to this?
New text colours can be added by expanding the textcolors = { ... } array in /Hearts of Iron IV/interface/core.gfx.
scripted_triggers/00_diplo_triggers
IIRC its in there
you are right, its DIPLOMACY_RELEASE_NATION_ENABLE_TRIGGER
are there any HOI4 HL2 or HL1 mods in the steam workshop?
Mmkay I’ll try later, thx
@ripe perch
A question,It seems thast
that*
You can define font colors with one character only,which makes it very hard to define new font colors
Since there is already setup fonts
like what I mean
textcolors = {
C = { 35 206 255 } # Cyan
L = { 195 176 145 } # Lilac
W = { 255 255 255 } # White
B = { 0 0 255 } # Blue
G = { 0 159 3 } # Green
R = { 255 50 50 } # Red
b = { 0 0 0 } # Black
g = { 176 176 176 } # Grey
Y = { 255 189 0 } # Yellow
H = { 255 189 0 } # Header
T = { 255 255 255 } # Title
O = { 255 112 25 } # Orange
0 = { 203 0 203 } # Gradient Step 0 - purple { 102 0 102 }
1 = { 128 120 211 } # Gradient Step 1 - lilac { 51 43 133 }
2 = { 81 112 243 } # Gradient Step 2 - blue { 10 43 153 }
3 = { 81 143 220 } # Gradient Step 3 - navy blue { 33 92 166 }
4 = { 90 190 231 } # Gradient Step 4 - light blue { 28 143 191 }
5 = { 63 181 194 } # Gradient Step 5 - cyan { 63 181 194 }
6 = { 119 204 186 } # Gradient Step 6 - turquiose { 119 204 186 }
7 = { 153 209 153 } # Gradient Step 7 - light green { 153 209 153 }
8 = { 204 163 51 } # Gradient Step 8 - mustard { 204 163 51 }
9 = { 252 169 125 } # Gradient Step 9 - orange { 250 102 25 }
t = { 255 76 77 } # Gradient Step 10 - red { 229 0 0 }
}
I believe there was one, but I'm pretty sure it's either unfinished or discontinued
Having the same issue, it'd be nice to find a way to make them small icons
26 letters, upper and lower case plus 10 number --> max 62 colors, 25 are predefined, so you can add 37 custom colors
ok
Has anyone found a solution for the stretched icons in custom folders?
I've been stuck on this for a day
do you have a small background defined?
what do you mean?
.
Here's my code
*countrytechtreeview.txt
I was makiung a resources tab
That's the thing, I have the same issue and I have a small item implemented for it
So idk why they do that
I've already done what the Wiki says and it still doesn't work
Same here
I have this problem where i make a focus but it just doesnt show up. I even tried to copy already working focus and change some essential things but it doesnt work too... Maybe a problem in syntax or did I reach some kind of limit? And yes i know there is no completion reward but i even tries to just simply put there add political power but still it didnt work. Any help appreciated.
Tag me if you want to answer this request i have
Hi, which files should I be editing if I want to create a mod that changes AI division templates?
@ocean elk Relative position ID shouldn't have { }
ai_templates for the actual designs they should make, and history > units for the starting spawns
Though note if you want to change starting spawns, you also have to make sure that the OOB is set in the country's history file
Well I’d like to make a mod but I need people to help coding
Sorry if I took long to reply
any mods that allow you to build a city?
Like how so?
Are Defense and Defence interchangeable in hoi4's unit code?
I may be wrong, but isnt it written "horthy" and not "horty"
I might be talking about aomething else tho
Dont think
I ask since in a working bit of code I see that unit type buffs seem to use Defense while unit terrain buffs use Defence
Thats just a name issue which i would eventually fix.
But yes its horthy
Ah ok
@dapper gazelle Whuka?
???
twice iyo?
Can someone please tell me what are the must have mods?
Vanilla
Tools,
Better MP,
No Hardcore,
Ukraine Above All
No Ironman,
Extra Player Buffs,
Easy mode
@obtuse condor
All of them make game better
Thank you very much 🙂
Especially ukraine above all though fr
Biased? 🤣🤣🤣
If you tryna do chechoslovakia do ukraine above all and add them to entente
Yes I'm Ukrainian.
Nice
Alr alr thanks
you can play the game without mods and everything will be fine
dont listen to the guy above
Ah okay okay, i thought mods were needed since everyone was talking about them
nah, the game is fine by itself
you can always change the game with mods if you really dislike something
although if you are new then i suggest just playing without mods for now
You should, I think it's perfect! 👏
I know better Ukraine mod
It has many ways and functions
Sure what is the mod called
Extended Cold War, based in 2015 not out yet
send_equipment is not working with convoy or convoy_1. any idea how to transfer convoys from country to country?
Cool idea
It will probably be a flag for a civil war nation called the English State/State of England in a Fourth English Civil War
Help as in "I dont know how to make a mod, can you teach me/do it for me" or help as in "this project is massive and i need people to distribute the workload to"
Second option yeah
how do i put it in the gameplay
do you want to mod templates?
Oh sorry I didn't mean to post this here just ignore
you need to create a playset and add the mods you want to activate to this playset
Guys, help me fix the anarchy.
otherwise, when the main menu appears, the game crashes.
"incorrect checksum for DLC", you should verify your game files, maybe you edited on original file and not the mod file
It has nothing to do with the mod.
The problem is that you don't want to have an anarchy interface in the country
if i have a mod im making and i want to "disable" one section of it (for now, rather not delete it incase i wanna use it in the future) can i do so some other way then jsut spamming # at every line for that section?
If you have a good text editor you can do ctrl+/ do comment out entire sections
what is a good text editor? can notepad++ do this or no?
Not sure, I had technical issues with Notepad++, I use it pretty often in VS Code
alr, thanks.
Please help me fix the portraits. They are both in scale 156x210, dds format
how to set country leader using commands
Could somebody tell me what should I do me make a country unable to trade with anybody?
tno
in vanilla idk do it yoursel ig
aww man
that sucks
I need to larp nuclear h-
Burgundy fanboy
its boring playing plain old germany
Cope
Why??
I know a mod that adds it to tfb
whats tfb
Idiot lol
what
Blud does not know tfb
Anyone have a solution to fixing these icons? Me and another guy are having problems with them
We made new folders and proper interface script, yet they refuse to be small icons
does anyone know how to change the font of the nations names?
Hi guys its me again!
I wanted to ask how to do this Modify "Idea" in a focus (Image as example)
when loading a mod does it change the unit model files in the main gfx folder?
If two ideas have the same localisation, then it'd do that. If you want it to be via a dynamic modifier, you need to code the tooltip yourself
So to kinda dumb it down
IDEA_1:0 "Cool Idea name"
IDEA_1_desc:0 "Cool Idea description"
IDEA_2:0 "Cool Idea name"
IDEA_2_desc:0 "Cool Idea description"
Instead of the game reading these as swapping an idea, because they have the same name and description, they are considered connected
And thus it'd look like it modified the effects instead of swapping ideas
I made my first simple mod, and it's going better than I thought
I'm shocked, but in good way
Nyanyanyanyanyanya
Guess where it is
For some odd reason the game crashes when I accsess the games options and this is a fresh reinstall of the game and I have all the DLCs and I did everything in the documents section as well and it still crashes need help please thanks
are all your mods updated for 1.16 ?
LMFAO
sorry I just found it funny the "historical collection"'s icon is that of a re-shoot of the first time the marines were recorded putting that flag up
All the mods that I use are all updated also I didn't see any orange or red triangles either I just redownloaded the whole game as well as verifying the game files and I have all dlcs as well I even deleted the files related to the game in the documents as well I even tried it without mods as well same issue
help pls
guys out of these mods which are newbie friendly?
TNO, TWR, KR, KX, Great War Redux, Führerreich/redux, Across the Dnipro, Red Dusk, OWB, TFR
I probably shouldn't bring up TNO cuz that's obviously not friendly to newbies
If I had to guess, prob Across the Dnieper, alot of the major mods have complex mechanics for "Spice"
And ATD is prob the most vanilla-like
Also once again asking, how do you fix this to be small icons
what is the difference between compliance_gainand compliance_growth?
compliance_gain = one-time chunk of compliance
compliance_growth = multiplier to daily compliance growth
Hiii
does anyone know of a mod that unlocks the prototype vehicles for every nation
How to do Super Events?
help
gsr_2013_08_18_18.hoi4 (1)
what does it mean?
I am playing road to 56 rn as germany
Why are the Inner circle focuses not being started when I select and finish one of the reichsleiter focuses?
Damn all mods are compatible with 1.16 EXCEPT ATD...
Nvm it has started
I cant join my friend in palpatines gamble
i have the right version
and stuff
but it doesnt let me join
and when i try to host
it doesnt let him join
and i dont have arms against tyranny
any idea how to jjoin him
Bruh
What in the what is that mod?
Isn't that obvious?
I would say kx (not too familiar with kr)
But have you concidered EAW?
Doesnt help
no?
this is Genshin mod
Ahhh, ive heardnof the game but never played it... does it have fun mechanics and foci? Is the plural of focus foci?
I think tou should concider it, its really well balanced and has a lot of fun paths
Guys I need help
How should I rename DDS file to replace otto von habsburg?
I mean portrait
Like just type "Portrait_Hungary_Otto_Von_Habsburg.DDS"?
Wouldnt tou instead change the files which makes that portrait the leader?
Couldnt you just find the file for his image, and name yours the same thing? Doesnt mods overwrite anything conflicting with the game?
Personally i would just scroll through them again anf again until i see it
nascoal
Woah
However it seems the English translation is very incomplete (understandable as the creator is Chinese)
Well thats not too bad, but tou did not answer when i asked about content and mechanics
Kind of vanilla except some UI changes
the figure is crazy
Focustrees?
somewhat related to the games lore
I should chek it out sometimes...
Try checking the DLC folders for Gotterdammerung or Death or Dishonor
Sometimes the base game doesn't have the files, rather the DLC ones do
Hoi4 IC Graph Tool
how can i trigger id code
Please help me solve the problem with country colors in my mod. I've tried all possible solutions that I've found on all sorts of forums, manuals and so on. Changed the colors.txt file as you like, along with the country files. Tried replace_path and many other things. The colors are either inverted or random. If I try to pick colors pre-inverted, they come out several orders of magnitude brighter than what I wanted. Who knows what to do?
check to make sure your countries’ history files arent broken
Thought I could only scorch earth, I can also remove factories?
what is this
I decided to use tp command to end this damn suffer as I had been at war for 5 years and got 5M casualties.
maybe I will try again in the future
at one point when I was transferring 30 divisions to an ally by sea out of necessity, only 14 of them managed to reach the destination
What do you guys think abt this peak mod
Hi guys i have a question why does my game run on 20fps max time low setting and no vsync i tried with vsync too but it just doesnt work and i have a 3060ti and a ryzen 7 5800x and 32gb ddr4 ram and a fast ssd my old pc ran it better that had 1060 6gb and some old intel processor and 16 gb of ddr3 ram the mod im using is millenium dawn.Also i tried literally everything changed the graphics to lower the game ran the same changed the display it ran the same so idk why.
You need a CPU that has the highest GHz specifically (and RAM MHz, IPC, as well as cache size also matter, but much less so). Basically you can have a high end CPU and get less FPS than with a low end CPU literally just because of poor optimisation. Your graphics card does not change anything unless it's made like pre 2015, and even then I'm pretty sure integrated graphics (most CPUs have this) work fine.
So what do i need to to get better fps use my old pc still or what?
so im basically cooked after buying a new pc?
You can get overclocking software
and that will probably fix most FPS problems
but that can be risky depending on your cooling
i have no fps problem in other games and im already oc-d
i have an artic liquid cooler and like 8 fans
i just enabled xmp
idk why tho this game can be even runned on a school pc since its optimized
install fps map mod
does that change anyhting CPU wise tho?
that doesnt work i tried it but runs everything other than millenium dawn
thats GPU tho
unoptimisation kills complex mods like that
millenium dawn causes nasa pcs to crash
^^^
Looking at IPC or GHz is stupid when you can just get a benchmark
Yeah ik but my old pc ran it fine with a 1060 and a i5 2500k
Especially GHz because its not comparable across CPUs
i have a 1030 and it runs but pretty slow
My benchmark was fine i used user benchmark and all of my pc specs performed like one of the best out of those same specs since i oc-d some of them
Userbenchmark is garbage
although...
the thing for people with the same spec isnt too bad
Have you OCed it
Does anyone have a list of their favorite up to date random-type mods? Like random events, random starts, random whatever else…
Hey guys, can someone tell me how to make a super event?
i cannot find this man in the files for the life of me
Does anyone know how to fix this crashing issue for Millennium dawn modern day mod?
I like this picture
Have you tried the waking the tiger files?
What did that even had to do with modding
idk I thought KR content should be here?
Not really, this is about modding the game literally, I mean you can post about mods but preferably post it in General
ah ok
btw when does Austria join the weltkreig?
I was looking at the events because I wanted to create a event where you change the name a city like in where Germany can change the name of leingrad and stailngrad and well
I didn't know they left "message" in the files like this
i made a new special projects category and the game work fine until i build the new facilty, as the game crashes as soon as i enter the research tab. anyone know what i may have missed?
it is set_province_name = { id = <province id> name = <string> }
did you create a scientist specialization for your new category?
yes im pretty sure, ican send a screenshot
guys most of my mods either crash or just close the game. any1 know a fix?
Anyone know how to fix Millennium dawn: modern day mod from crashing all the time?
this metal gear looks solid
Get a stronger pc
Thats literally the only way
What are you're specs
Processor AMD Ryzen 7 8845HS w/ Radeon 780M Graphics 3.80 GHz
Installed RAM 16.0 GB (15.3 GB usable)
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display
you can remove the device and product id
Hmmm
The game shoul open just fine with those specs
yeah it can open, it's just after a while if I speed up the game to max it crashes
Okay
Say that again?
If it doesn't work I'll probbaly have to be forced to play at lower game speeds with the mod
Oh with millennium dawn
Yeah thats just sorta how the mod works
Aka it dosent
yeah hes not there strangely
I thought this was a different game from paradox for a second
its hoi4
napoleonic wars mod
Then why bazitum there ? Also I knew it has hoi4 it just too me a sec to realise
map painting tbh
how can I reload a scripted gui without restarting the game (I am in debug mode)?
Now that you've gotten started modding it's time to learn about how to create national spirits and events in Hearts of Iron IV. What is a modifier? How do triggers work? What kind of events can I create? Your modding journey is still just getting started so try out your new skills and stay tuned for part 3!
0:00 - In this tutorial
0:17 - Effect...
How is it that when he types the word "country" he dosent hjave a red line under it
3:02
but when i do it, it appears
I think its a false positive
are the folder for United Baltic Duchy stuff in Gotterdamerung DLC folder?
cause unless I'm mistaken you can only get the nation by going through the new monarchy path right
nope
im making my own mod
for a new nation
so where is it?
i havent actually setup the state yet
but my issue is
is that in the tutorial he had no issue
but i have an issue (undefined variable) in my code
I think we are talking about two different things lol
I think you replied to the wrong guy
DLC folders only contain cosmetics and other small stuff
So the code will be with everything else
Anyone got a collection of useful achievements enabled mods. Like quality of life?
well i got a few qol mods
City state automatic name changer (changes the names of cities/states to the language of where it is at)
ofc player peace conferences (if road to 56 there should be an inbuilt one)
f
smarter AI
makes the game actually fun
Is there a mod that allows you to add your own flag?
idk exactly what you mean, but this would make making a flag mod much easier
So I can't just use Gimp to make a image and then export it as a TGA?
The tool is easier since you need 3 GFX file sizes
Does 3 GFX relate to the error log I got stating something about 32bpp
[12:18:53][1936.01.01.12][flagtextureatlas.cpp:203]: Error loading country flag overlay: gfx/flags/medium/MFC.tga : Unsupported format. Expected 32bpp, uncompressed, no color palette
no, thats because you used the wrong settings when saving the file
Well shucks, I didn't really get a setting, and it seems to have worked fine for both the custom leader portrait I made and the Continue flag.
Would copying and pasting one of the pre-existing country flags and then painting and renaming it work?
Should work yeh
Guess it is worth a shot, thanks.
And it didn't work. Guess I'll need to give that Flag-Creator tool a try.
Help me, please! In nudge mode, nothing happens when trying to open a region file. On the forum saw a thread on this topic, but no one found a solution. Maybe someone knows how to solve it?
Finally, success. Thanks a lot for sharing that tool!
does it have enabled achievements?
if the mod yes, rt 56 not sure
a;r ty
whats it called?
just "player peace conferences"
does anyone here know how to get rid of the stupid errors relating to states not having "Mega_gun_emplacement" locations defined? I have tried the nudge tool 5 times now with validate all states and there is no option anywhere to create a mega gun emplacement. I can open the nudge tool but it crashes if I try to actually start the game as a country
@pale sparrow sorry to bother you but you usually have the answer, do you know how I can make these icons use the small variants? I have all the code and such in the interface yet it still doesn't work
Ive had that issue in the past but I completely forgot the fix
It should be easy to google because this question comes up quite often
how to increase unit limit on kaiserreich?
With the buffs you get from the focus trees
funnest mod rn ? i just came back to hoi4
Roa-
After how long? Vanilla has gotten better as well
Except for the Fire Rises the modding scene hasnt changed all that much
I fixed it
For anyone else with the issue, you have to ALSO define the sprites in countrytechtreeview.gfx
An example of what you need to add is below:
Just replace "armor_modules_folder" with "MY_TECH_folder"
How to make superevents?
what are these called in the files cuz i wanna see them instead of the flag when zoomed all the way out
n how do i get rid of the offset when zooming out
I’m new to modding and I’m trying to make a radio/music mod though I don’t really know where to start.
Theres a tool to turn a YT playlist into a mod
does anyone know where i can find the guarantee independence mechanic file?
If you mean mod the diplomatic action directly, you can't, diplo actions are hard coded
100% not even a file i can modify?
there has to be something that makes it work the way it does, i dont think the uk guaranteeing el salvador or bhutan is hard coded
there has to be a world tension modifier or something that makes them do it
thats what i want to change
There is a ai_democratic = yes check in the ideologies file
So I assume it's something to do with that
thanks ill take a look
Link?
Though you can't seem to mod it
i think i found something
?
thx
does anyone know how can I prevent it from going above 100 percent or below 0?
also, the image is from scripted effects.
conscription and eco law
it is
clamp_variable = { var = my_var min = 0 max = 100 }
Thank you
should i hide the paths in my focus tree
anyone know of any cartel mods?
Does someone know a good tutorial for HOI4 modding? I’m planning to make something cursed and want pointers
See pins
Gang, if anyone that knows some Graphic Design is interested in volunteering in creating a logo for my mod, I would be appreciated.
Just DM
How do you do that with the code ?
either you paste it before the variable is used or after the variable is modified
K thx
A new collapsing world teaser dropped, what do you guys think?
long ass name for germany
Wouldnt Deutsches Volkstaat work just as well?
Or just the German Peoples State in english
volksarmee is the name of the armed forces which are led by speidel after eliminating goering
so no
and germany is basically a socialist-reactionist military junta
thats why "volksarmee" in its name is important
You could still 100% shorten it
maybe get rid of Reaktionärer ?
Something like that
Is there a millennium dawn 2025 mod?
the fire rises ig
how does it work and do I need to download anything?
Scroll up
Is there a mod for missiles?
Thank you, brother, its what i want
That mod is really complex and fun, you definitely should try communist russia
Are there many languages?
Because my language is not available and I do not understand English very much
As a German that name doesn't sound right
Sorry to interrupt, but anyone know if there is a Transformers mod on hoi4?
If you really want smth more than the standard with more detail I'd say Deutschrevolutionäre Militärregierung and even that's pushing it
Does anyone have any resources/tutorials on how PDX makes their unit textures for Infantry specifically?
Idk really
Thats literally the name of the east german forces
Yeah but not the name of a state
Its there to like symbolize the control of the army, but it could be changed 🤔
I get that but it's not like the DDR called itself Sowjetbesetzte Deutsche Volksrepublik-Parteistaat or smth equally cooked like that
question
is there any current updated mod that is set in a galaxy, that isn't star wars?
Like planets?
what are the best mods out there? im looking for mods that'll spice up my gameplay
Road to 56
Kaiserreich/Kaiserredux
Red Dusk
Pax Britannica
Thousand Week Reich
The New Order is popular among many
Gang, if anyone that knows some Graphic Design is interested in volunteering in creating a logo for my mod, I would be appreciated.
Just DM
I seem to see one missing from that list, hmmmmmmm 
Can you pair the fps map mod with other mods? <@&916727971820240976>
You indeed can
Did kaissereich just got updated?
i dont have any dlc's should i play road to 56 instead of the base game?
Anyone here interesting in coding for a mod?
you should regardless
The Great War Redux
Collapsing World rise of radicalism :trollface:
I some help me with this:
state = {
id = 1017
name = "STATE_1017"
manpower = 667762
resources = {
steel = 5
}
state_category = city
history = {
owner = GER
add_core_of = GER
add_core_of = PRE
add_core_of = RHI
victory_points = {
6469 10 # Essen
}
buildings = {
infrastructure = 2
arms_factory = 1
industrial_complex = 2
air_base = 0
}
}
provinces = {
3512 6469 6570 9482 529
}
local_supplies = 0.0
}
I can't tell what wrong is say there no provinces in the state
The formatting seems correct
i didn't cheak the difintion file
guys how do make it so, when a timer decision is completed, there is a 80% chance i get 0.2 stability, and a 20% i get 0.1 war support
?
i think it has somthing to do with the definitions because i did it manually
random_list effect, see wiki on that
this was the crash log: [20:12:55][no_game_date][pdx_localize.cpp:1134]: Expected quotation mark (") at line 6 and column 13 in localisation/english/state_names_l_english.yml
[20:13:06][no_game_date][effect.cpp:439]: Invalid effect 'provinces' in history/states/1017 - Essen.txt line : 28
[20:13:06][no_game_date][statehistory.cpp:133]: Unknown History Command ==>'provinces'<== for state: history/states/1017 - Essen.txt
[20:13:06][no_game_date][persistent.cpp:68]: Error: "Unknown effect-type: provinces, near line: 28
Unexpected token: provinces, near line: 30" in file: "history/states/1017 - Essen.txt" near line: 30
[20:13:18][no_game_date][state.cpp:665]: no provinces in state "STATE_1017" with id: 1017.
[20:13:18][no_game_date][gamestate.cpp:2908]: MAP_ERROR: The land province 529 - has no state.
[20:13:18][no_game_date][gamestate.cpp:2908]: MAP_ERROR: The land province 3512 - has no state.
[20:13:18][no_game_date][gamestate.cpp:2908]: MAP_ERROR: The land province 6469 - has no state.
[20:13:18][no_game_date][gamestate.cpp:2908]: MAP_ERROR: The land province 6570 - has no state.
[20:13:18][no_game_date][gamestate.cpp:2908]: MAP_ERROR: The land province 9482 - has no state.
[20:13:20][no_game_date][state.cpp:665]: no provinces in state "STATE_1017" with id: 1017.
[20:13:27][no_game_date][state.cpp:665]: no provinces in state "STATE_1017" with id: 1017.
alright thanks
Seems like the provinces block is falling inside the history block
yeah but i pretty sure it isn't
unless i missed somthing
and if i move it anywhere else its still chashes
I gonna do States another day
check pinned messages
hey is there any like hoi4 mods that includes the black army from russia?
How do you add text to decision categories?
same as with focuses, you add _desc behind the token for its description
ngl I tried to try "The fire rises"
Too complex 😭😭
Like legit I KNOW the mod is fire but I know that if i try it I'm not gonna be able to understand it
Hey does anyone know any mod that enhances china and the whole clique thing?
Hmmm depends what youre looking for
Kaiserredux is fun
Its full of "funny" content
I see it as millenial dawn but schizo
Also it has focuses for only 5 or 6 countries
I heard there was gonna be anarchist content?
Yeah
Bleh bleh bleh its a larp
I tried ukraine cause I wanted to see if they had any black army content
There wasnt even a focus tree
Millenial dawn is boring imo
I tried same with serbia and was surprised to see it having no focus tree
Like I dont like majors
They are fun depends wich major you play and what do you play
If you play modded depends on mod
But USA in vanilla is boring as hell
Waiting till late 41 to join WW2
Just to obliterate everything
Not very fun
(In sp ofc)
I main Spain in vanilla (not a major)
I mean I could try soviet union?
Like is there a mod that like
Includes black army?
Like I wanna play the makhnovists🙏🙏🙏
Uhhh Idk
Like any anarchist content?
I also felt like that when I played it for the first two times
Millenium Dawn is WAY more conplex, as there is an advanced economy system and even a satellite mechanic
The only hard thing about TFR is creating a good template, but you can easily find a good one on reddit
Collapsing World RoR, but the black army content is really unpolished and just not good
this is supposed to make Northern ireland owned by ireland. i placed it in my mod folder, history, states. so why doesnt the game recognise it?
anyone got any mod ideas
some china mod maybe?
i know! What about mod about Unthinkable Operation (Allies attack the Soviets)?
hmmm
i didint saw it anywhere
or you could do mod about seven years war
it was very important war and reshaped history
using the nudge tool on linux really does suck
sigh
if anyone wants to waste some time i would love for you to help with creating custom provinces and states
nevermind im forcing my friend to do it >:)
What was the error
@pastel isle yo you have made a super event can you show or atlest point me in the direction to make a superw event.
that doesnt work
im talking about decision categories
not decisions
same thing for categories
how do i work on a mod with my friend
literally doesnt work though
How ambitious are you?
rome wasnt built in a day
This is probably a little to close to 1984 revolutions, but imagine if an interdimensional empire conquered earth and established organisatkonal zones. After 60 years virtually all history has been erased, but suddenly the pottals to the other parts of the empire shuts down... now the administrative zones have no memory of the past and no idea what is going on.
Basicslly the entire world turns into a bunch of chinese warlords wanting to either make a functional government or carve out their own empire, with a couple of officials who wish to bring back the empire (though that should only be one path)
The zones are based on population, languages, and resources, and are more or less industrialized. Still, the idea of culture basically has to be reinvented (not just supported like 1984)
Of course the old portals will serve as special buildings giving pp and war support
Finally it takes place in like 2010, populationwise, but the countriws have not been allowed to industrialize past the 30s (normal technology, hugher population, mostly for the african countries so they actually are relevant)
Every zone needs at least 12 million population, and must be under 200 million
Not too familiar with half life...
basically
these alien fellas
they invade earth
and a lotta people die
then these other alien fellas
they take the americas
Well, in my idea the empire just disappears (it lost a war when the emperor was killed, and they just shut down all portals so the winning side wouldnt be able to take controll over them, mostly out of spite than any hope of returning)
The empire took the entire world
The biggest problem with this mod is all the research you have to do about language and resource distribution, what language which are understandable by others, what regions have what resources. I would actually say resources and population ammount is the only thing which actually matters, but that would just create a couple of huge countries with no reason to collapse
My own lore for this is that there were 3 higher levels of government,
1: the world... literally just the entire planet.
2: resource regions... just what it sounds like, huge regions.
3: semi self governing... this is where language comes in
Gang, if anyone that knows some Graphic Design is interested in volunteering in creating a logo for my mod, I would be appreciated.
Just DM
Is there a mod that allows you to tech que like mio's for example?
how do i fix this
ive uninstalled
the game
ive uninstalled
the mod
ive deleted the files, uninstalled, then reinstlaled
how do i add localization for custom characters?
i really quite want to play tno oand have been unablkel too
Ok lemme help u
Just go to ur hoi4 files
Click on the mod folder
There should be a folder with tno
Click that folder and check if their is a descriptor file
If there isn’t than open notepad and make one. Save it to the TNO folder as TNO.mod. Make sure the file path is the same name as the folder where the tno files are
And if worse comes to worse just go to paradox mods and find it there.
ARGHHH why wont my leader show up
for my custom country
im going back to the iron workshop the new hoi4 tutorials suck
awesome its literally IMPOSSIBLE for me to make my own custom leader
yeah yeah thats lovely
i hate gimp
im on linux
Oh
Ye gang
Dm
the descriptor file is there
Does krita run on your comp?
i have krita yeah
can it export like paint.net?
I use krita for my leader pictures
girl 💔
Ya
…let me go upstairs
pls do 
Yeah just exported them as .TGA
yeah literally just export and it was fine
guess ill work on my mod since im sitting down now lol
if my leader still not working im gen gonna cry 😭
im loading in rn
okay thats it
brb crying
i even followed the iron workshop to the TEE
but nothing working
i hate this game
i followed the most recent paradox vids for mine
there are a lot of fail steps for image to appear
they were confusing for me
so did you make a new char or change one that exists
can we hop in vc or something and you just tell me the obvious thing i missed xD
new char
so you gotta make the new char AND make sure they are the current leader
to see them
yes
yes
create_country_leader = { name = "Romolus" desc = "" picture = "romolus.tga"" ideology = despotism traits = { # } }
and you recruited them in the countries history file too?
ur not, there is just a LOT of stuff spread out haha
ive never done that
just add a line in there like this
`capital = 876
Starting tech
set_technology = {
infantry_weapons = 1
tech_support = 1
tech_trucks = 1
tech_recon = 1
}
recruit_character = romolus
set_convoys = 5
set_politics = {
ruling_party = neutrality
last_election = "1933.3.5"
election_frequency = 48
elections_allowed = no
}
set_popularities = {
neutrality = 90
fascism = 10
}
create_country_leader = {
name = "Romolus"
desc = ""
picture = "romolus.tga""
ideology = despotism
traits = {
#
}
}
`
so just like this?
since my name for the character is just
name = romolus
wait
ive had
if that is their technical tag you gave them
spriteType = { name = "GFX_portrait_RMR_romolus" texturefile = "gfx/leaders/romolus.tga"
in the interface
but shouldnt it be
spriteType = { name = "romolus" texturefile = "gfx/leaders/romolus.tga"
?
this is my interface file
so like for my chars i made sure to retain the format of:
SIA_charname
helps remember a bit what things are what
do i do it like this?
or remove the GFX_portrait too
just have romolus there
?
alright ill do so
well you define the name of the GFX file
and since its just romolus
just put romolus
god i cant wait to finally be done with this and start the fun part of modding
lol yeah this is the most spread out thing ive done so far too
i swear it was easier like a while back 😭
i do NOT remember struggling this much adding leaders
and are you making a new nation or using an existing tag?
new nation
okay, should help with your char showing up at start then
question how does you character txt file look like?
this one?
is it this?
I have it so that my chars get added as leaders via focus
okay this looks very different than mine lmao ill style mine after yours
yep
alright alright
i asked ai for mine no wonder its weird like this
i just kinda gave up cuz its 4am and just wanted SOMETING
when is your mod set, guessing like formation of rome?
753BC
founding of rome
i want to add different bookmarks at some point too
nice
so you can go trough like the history of rome :D
that's really cool
ive always wanted a rome mod for hoi4
yeah ive been playing a lot of italy cuz i like rome
and since playing imperator rome my motivation has been going up again
same
rome is so cool
look how small rome is for now :p
oh yeah you are going to do just europe right?
yeah its just europe map
or like Mediterranean
oh yeah I remember seeing your posts before
so is this map like more detailed with states / provs?
oh yeah
(ive just stolen the Magna Europa map :3)
i removed the microstates and added rome for now
ill slowly work on removing all the countries
oh okay neat, ive not seen that map before
its great mod
and map
and they allow for free usage in own mod :p
nice
alright
i think ive got my leader right
lets see
@fading pollen im going to cry
i give up
i dont know what im doing wrong still
github
did you make sure your leader has the right ideology?
this is how my focus makes my person in the same ideology as the one that is default get swapped
is there a more less effort way
characters = { name = "romolus" portraits = { civillian = romolus } country_leader={ ideology = despotism expire = "1956.1.1" id = -1 } }
this is all i have in my ~/common/characters/RMR.txt file
i dont think so, soz
i see the issue i think
there is no char tag there