#modding
1 messages · Page 31 of 1
i close the bracket
where are steam workshop mods kept?
\steamapps\workshop\content\394360 Good luck figuring out the correct folder
is it possible to replace the possible effects with some random text
like instead of "add 13819 guns" or something, the effect just says "we will search for more guns" or something like that
how would i let a focus unlock building slots?
go to Hearts of Iron IV\history\general, you'll find a file named "generic_advisors.txt", copy and paste that into your \history\general folder (create one and paste it there if you don't have one)
open the .txt file and you'll see a lot of code, should look like this, just find where the tags are located, after that, just put "tag = (what your country tag is)" next to any tag
the ones in “NOT = { OR = {“ btw
don’t put anything else in the lines if your only thing is to remove generic advisors
other than that, enjoy
sorry if my explanation is unclear
add_extra_state_shared_building_slots = 1
I tried that but i get an error
I dont see how im providing country
if you want it to be random
random_owned_controlled_state = {
add_extra_state_shared_building_slots = 1 }
if you want a specific state to have it, give me a few minutes, i gotta check out how to do it
ok, thanks
Is there a way to wrap text in a localisation for events with long descriptions?
add \n\n between each paragraph
Example: something.1.d:0 "Something something \n\nSomething something"
Hopefully that helps
Thank you!
No problem
if anyone knows, please reply with a ping, thanks
How do i force the game for recalculate stuff? I have a focus that should add 10 civs, but it only works when ive done something else in the game, such as changed my economy law, or my trade law.
i thought recalculate_building_slots = yes would do it but it only works for the first one, and then stops
thank, i'll try it out
can anyone tell me why is notepad++ detecting a problem with my code?
state={
id=909
name="STATE_909"
history={
owner = BUL
add_core_of = BUL
}
provinces={
965
history={
owner = BUL
add_core_of = BUL
}
}
manpower=24000
state_category=city
buildings_max_level_factor=1.000
local_supplies=0.000
}
where is the error showing?
cuz i think i see it
history-provinces-ish
yeah
remove the history bit in provinces = {
you cannot assign a core to a province or an ownership of a province to a nation
provinces should look like this
in this case with 965
ohh thank you
Anyone help?
small spelling mistake, the focus id has provisonal, not provisional
you can fix the focus id if you want but that’s up to you
I got an idea for an alt hist hoi4 mod
does someone know why its so big?
show me texturfile
the gfx?
spriteTypes = {
SpriteType = {
name = "GFX_idea_the_communist_rise"
texturefile = "gfx/interface/ideas/the_communist_rise_icon.dds"
}
SpriteType = {
name = "GFX_idea_The_communist_win"
texturefile = "gfx/interface/ideas/The_communist_win_icon.dds"
}
}
the first one works normally
yes?
i try to make my idea icon but not worked
i type spriteTypes
but still not working
how do you make this icon
i dont know what you mean. but if you mean the looks it from this video https://www.youtube.com/watch?v=UGJipc6rTH0&t=155s
Hello everyone and I hope you enjoyed this new video from modding Thomas. If you would like to join the Boże coś Polskę discord server, the link is down below.
Discord: https://discord.gg/SemrVdfQJ6
Hoi4 GFX database: https://github.com/marshalthomas/Hoi4-gfx-database/tree/main
this is focus icon tutorial
not national spirit
focus icon bigger than idea icons
oh thats why it looks like that thank you my man
no problem your welcome
@dull maple is worked?
i didnt testes yet i need to wait until i played the tutorial in my game
same problem
works perfectly
The options don't have closing brackets
thanks that looks great
Is the mod you are making related to social monarchism?
thanks i really appreace it
the event has become gangrenous metaphysically
what file type are you using for the event picture?
yeah i did
was it a jpg, bmp or what?
jpg
try converting from png to dds, it should keep the transparency and prevent that black outline
take in mind to convert the file, not copy it and paste it in paint
where/how do i convert a jpg file to a dds file
focus = {
id = The_communist_way
icon = GFX_The_communist_way
search_filters = { FOCUS_FILTER_POLITICAL }
x = -20
y = 0
#relative_position_id = USA_the_worlds_loco_works
available = {
NOT = {}
NOT = {}
}
bypass = {
}
cost = 0
#prerequisite = { focus = USA_the_worlds_loco_works }
#prerequisite = { focus = JAP_cruiser_modernization }
cancel_if_invalid = no
continue_if_invalid = yes
available_if_capitulated = yes
mutually_exclusive = { focus = USA_continue_the_new_deal }
mutually_exclusive = { focus = USA_reestablish_the_gold_standard }
allow_branch = {
if = {
limit = {
has_game_rule = {
rule = obsolete_focus_branches_visibility
option = HIDE
}
}
NOT = {
has_completed_focus = USA_continue_the_new_deal
}
}
}
completion_reward = {
add_political_power = 50
add_timed_idea = {
idea = the_communist_rise
days = 180
}
remove_ideas = home_of_the_free
mark_focus_tree_layout_dirty = yes
}
ai_will_do = {
}
} what did i do wrong that it still doesn't works? thats the thing with allow branch
trigger = {
original_tag = ENG
date > 1936.1.1
}
fire_only_once = yes
mean_time_to_happen = {
days = 500
modifier = {
factor = 1.0
date > 1937.1.4
}
}
Is this event going to happen between january1st 1936 and april 1st 1937?
no @obtuse condor.
how do i make it so that happens then?
trigger = {
original_tag = ENG
date > 1936.1.1
}
fire_only_once = yes
mean_time_to_happen = {
days = 250
factor = 1.0
date > 1937.1.4
}
}
this?
no
remove the date thing
indent properly
you cant if I remember correctly
just put MTTH halfway
i think you swap the "1946.6.3" to "1937.4.1"
Does anyone know how to fix this?
add_namespace = colonialism
Act 1935
country_event = {
id = colonialism.1
title = "Government of India Act 1935"
desc = colonialism.1.d
picture = GFX_idi_amin
#is_triggered_only = yes
trigger = {
original_tag = ENG
date > 1937.4.1
}
fire_only_once = yes
mean_time_to_happen = {
days = 500
modifier = {
factor = 1.0
date > 1937.4.1
}
}
on_startup = {
effect = {
ENG = {
country_event = {
id = on_action_colonialism.1
days = 365
random_days = 135 # Fires in the last week of 1936, assuming default start date.
}
}
}
}
option = { # Seperate both Aden and Burma from India
name = "Seperate both Aden and Burma from India"
ai_chance = { factor = 90 }
How do i fix this?
[02:30:59][persistent.cpp:48]: Error: "Unexpected token: on_startup, near line: 8" in file: "events/colonialism.txt" near line: 23
[02:30:59][parser.cpp:932]: Error: unexpected token in file: "events/colonialism.txt" near line: 98 ( } )
[02:30:59][parser.cpp:724]: Error: "Unexpected token: }, near line: 98" in file: "events/colonialism.txt
I can't make Australia independant
Can anyone tell me what I am doing wrong, or what i have to add?
add the england history file
and search for ast
what, put both the ast and eng hist files in?
you just have to put the uk history file in your mod
and then search for ast in the england history file
Alright, thanks.
australia is made a puppet in there
I'm trying to make it so that australia can free itself through focus'
oh ok
Can someone help me?
With what
nvrmind i got it
thats good ?
yeah
thanks
where would i find that
in interface
not gfx interface
in interface
completion_reward = {
add_ideas = Extensive_conscription
add_to_variable = { DEM_bad_organization_army_defence_factor = +0.02 }
add_to_variable = { DEM_bad_organization_army_attack_factor = +0.02 }
custom_effect_tooltip = DEM_army_reforms_tt
}
guys
why game not showed this?
- What exactly is not showing?
- This part of the code is fine. I need the full code of this focus to figure out what's wrong with it
game not showed national spirit modifies
i want add +0.02 with division attack but game not showed
focus = {
id = DEM_army_reforms
icon = GFX_focus_DEM_army_reforms
x = 10
y = 1
relative_position_id = DEM_demetre_empire_reforms
prerequisite = { focus = DEM_demetre_empire_reforms }
mutually_exclusive = { }
cost = 10
ai_will_do = {
factor = 1
}
available = {
}
bypass = {
}
cancel_if_invalid = yes
continue_if_invalid = no
available_if_capitulated = yes
search_filters = { }
completion_reward = {
add_ideas = Extensive_conscription
add_to_variable = { DEM_bad_organization_army_defence_factor = +0.02 }
add_to_variable = { DEM_bad_organization_army_attack_factor = +0.02 }
custom_effect_tooltip = DEM_army_reforms_tt
}
}
oh, I didn't notice that. Try to remove the '+' from add_to_variable fields
why
how do game know i want to add not '-'
ok
is not worked
game show only law
The game shows everything correctly. Variable operations should not be showed
i want game showe like this
firstly, you need to create a dynamic modifier. Not just a simlpe idea
where?
common/dynamic_modifiers
and now what
It should work if you've done it right
- create file
*.txt - In it, write:
your_modifier_id = {
enable = { always = yes }
icon = GFX_idea_POL_ideology_drift_defence
army_defence_factor = DEM_bad_organization_army_defence_factor
army_attack_factor = DEM_bad_organization_army_attack_factor
}```
And, of course, set the base values for these variables when adding a modifier
Icon from Poland modifiers. You can replace it with your own
I forgot to remove this
How can i make events by timed decisions time?
Read the decision wiki for missions
[02:30:59][persistent.cpp:48]: Error: "Unexpected token: on_startup, near line: 8" in file: "events/colonialism.txt" near line: 23
[02:30:59][parser.cpp:932]: Error: unexpected token in file: "events/colonialism.txt" near line: 98 ( } )
[02:30:59][parser.cpp:724]: Error: "Unexpected token: }, near line: 98" in file: "events/colonialism.txt
How do i fix this file?
I couldn't find that can you send the link?
I don't know how to fix this.
SpriteType = {
name = "ContGDR"
texturefile = "gfx/interface/goals/industry/1_Great_Depression/2CGDR"
effectFile = "gfx/FX/buttonstate.lua"
animation = {
animationmaskfile = "gfx/interface/goals/industry/1_Great Depression/2CGDR.dds"
animationtexturefile = "gfx/interface/goals/shine_overlay.dds" # <- the animated file
animationrotation = -90.0 # -90 clockwise 90 counterclockwise(by default)
animationlooping = no # yes or no 😉
animationtime = 0.75 # in seconds
animationdelay = 0 # in seconds
animationblendmode = "add" #add, multiply, overlay
animationtype = "scrolling" #scrolling, rotating, pulsing
animationrotationoffset = { x = 0.0 y = 0.0 }
animationtexturescale = { x = 2.0 y = 1.0 }
}
animation = {
animationmaskfile = "gfx/interface/goals/industry/1_Great Depression/2CGDR.dds"
animationtexturefile = "gfx/interface/goals/shine_overlay.dds" # <- the animated file
animationrotation = 90.0 # -90 clockwise 90 counterclockwise(by default)
animationlooping = no # yes or no 😉
animationtime = 0.75 # in seconds
animationdelay = 0 # in seconds
animationblendmode = "add" #add, multiply, overlay
animationtype = "scrolling" #scrolling, rotating, pulsing
animationrotationoffset = { x = 0.0 y = 0.0 }
animationtexturescale = { x = 1.0 y = 1.0 }
}
legacy_lazy_load = no
}
This right?
for the goal_shine file?
Update: I tried fixing it, but it broke.
right I wanna add a new victory point in Dabancheng named Hami, this is for a releasable there, any help on how to?
I have this but I'm unsure if it'll work if I put it in here
You need to define the victory point in the state file then add the name to the localisation folder you have there
Is there an effect to take away civ factories? but not consumer good?
Huh
War Reps is the closest thing to stealing people's Civs
or is there a effect to turn civs to millitary factories
How can i do this in a national focus?
how do I add/take away provinces from a state without my game crashing?
so like this?
success
I want to replicate the Balance of power interface for further modification (I want to make something different out of it). Does anyone know how its scripts work from the inside? Does anyone have any idea how to accomplish what I have in mind?
does someone know why it dont work? do i got a spelling mistake?
how do i get this event tofire after the player forms the hre?
Find the decision in the game files that forms the HRE and add the trigger of this event to the effects
Yep
Hearts Of iron IV/common/decisions/
can someone make me a mod please
cuz i just want to have no cooldown on plan offensive in the spanish civil war
anyone know why this isn't coloring Galicia?
I recently edited some states via nudging and added a few, I saved the stuff onto a mod folder, but now when I try to play vanilla hoi4 without the mod turned on this appears.
When you saved the stuff in the mod folder, did you remove the og files from the other folder
the og files?
The ones in the /Heart of Iron IV folder
Anybody know?
I don't see any files going by that
No folders called /map or /history?
I do see a history folder but it's unedited
Try deleting that anyways
if the sprite name is ContGDR then that sprite for the shine must be called ContGDR_shine
SpriteType = {
name = "ContGDR_shine"
texturefile = "gfx/interface/goals/industry/1_Great_Depression/3FGDR.dds"
effectFile = "gfx/FX/buttonstate.lua"
animation = {
animationmaskfile = "gfx/interface/goals/industry/1_Great_Depression/3FGDR.dds"
animationtexturefile = "gfx/interface/goals/shine_overlay.dds" # <- the animated file
animationrotation = -90.0 # -90 clockwise 90 counterclockwise(by default)
animationlooping = no # yes or no 😉
animationtime = 0.75 # in seconds
animationdelay = 0 # in seconds
animationblendmode = "add" #add, multiply, overlay
animationtype = "scrolling" #scrolling, rotating, pulsing
animationrotationoffset = { x = 0.0 y = 0.0 }
animationtexturescale = { x = 1.0 y = 1.0 }
}
animation = {
animationmaskfile = "gfx/interface/goals/industry/1_Great_Depression/3FGDR.dds"
animationtexturefile = "gfx/interface/goals/shine_overlay.dds" # <- the animated file
animationrotation = 90.0 # -90 clockwise 90 counterclockwise(by default)
animationlooping = no # yes or no 😉
animationtime = 0.75 # in seconds
animationdelay = 0 # in seconds
animationblendmode = "add" #add, multiply, overlay
animationtype = "scrolling" #scrolling, rotating, pulsing
animationrotationoffset = { x = 0.0 y = 0.0 }
animationtexturescale = { x = 1.0 y = 1.0 }
}
legacy_lazy_load = no
}
This better?
probably
oh god
its even worse now
SpriteType = {
name = "StartCW_Shine"
texturefile = "gfx/interface/goals/industry/2_CivilianWorks/1StartCivWrk_Shine"
effectFile = "gfx/FX/buttonstate.lua"
animation = {
animationmaskfile = "gfx/interface/goals/industry/2_CivilianWorks/1StartCivWrk_Shine.dds"
animationtexturefile = "gfx/interface/goals/shine_overlay.dds" # <- the animated file
animationrotation = -90.0 # -90 clockwise 90 counterclockwise(by default)
animationlooping = no # yes or no 😉
animationtime = 0.75 # in seconds
animationdelay = 0 # in seconds
animationblendmode = "add" #add, multiply, overlay
animationtype = "scrolling" #scrolling, rotating, pulsing
animationrotationoffset = { x = 0.0 y = 0.0 }
animationtexturescale = { x = 2.0 y = 1.0 }
}
animation = {
animationmaskfile = "gfx/interface/goals/industry/2_CivilianWorks/1StartCivWrk_Shine.dds"
animationtexturefile = "gfx/interface/goals/shine_overlay.dds" # <- the animated file
animationrotation = 90.0 # -90 clockwise 90 counterclockwise(by default)
animationlooping = no # yes or no 😉
animationtime = 0.75 # in seconds
animationdelay = 0 # in seconds
animationblendmode = "add" #add, multiply, overlay
animationtype = "scrolling" #scrolling, rotating, pulsing
animationrotationoffset = { x = 0.0 y = 0.0 }
animationtexturescale = { x = 1.0 y = 1.0 }
}
legacy_lazy_load = no
}
This is it. Did I need to put '_Shine' in front of the texture file directories?
What am I doing wrong?!
Is it fine if I just copy eveyrthing without learning anything
?
ok
thanks
please share your wonderful mods
Well no, because you aren't learning anything. At that point why even bother
how do i do opinion modifiers; i made them but the opinion number just says "0"
'
the purpose isnt to learn something
it is to use others works to make benefit
Oh I see, I didn't realise this was satirical... at least I hope it is satirical
is it possable to add a modifier to a focus
What type of modifier?
like army_core_defence_factor = 0.3
You would have to add that as a country idea
Or I mean national idea or whatever it's called
ok thx
how do i fix this
To solve your problem, I need your opinion modifier code
okay, it is correct
give me your focus completion reward code
focus = {
id = DEU_reapproachment_with_italy
icon = GFX_focus_generic_italy_propaganda
available = {
}
prerequisite = {
focus = DEU_the_global_stage
}
mutually_exclusive = { focus = }
relative_position_id = DEU_the_global_stage
available_if_capitulated = yes
continue_if_invalid = no
available = {
}
x = 2
y = 1
cost = 3
ai_will_do = {
factor = 50
modifier = {
factor = 50
is_historical_focus_on = yes
}
}
completion_reward = {
ITA = {
add_opinion_modifier = { target = ROOT modifier = first_step_reapproach_with_italy }
add_ai_strategy = { type = befriend id = ROOT value = 50 }
}
custom_trigger_tooltip = {
tooltip = italy_warning_focus_tt
}
custom_effect_tooltip = italy_warning_focus_tt
}
} @median dagger
interesting... It looks right. It's supposed to work
but it shows this
why does my focus tree loses some focuses?
How can I make a national spirit that denies producing armor and aircraft like the Bulgarian army restrictions?
I know it's à defining rule but i don't know how , basically not every country obey same rule
Is it possible to make the same rule work with another national spirit?
How do I assign a 3D model of tank/plane from one country into another?
How do I get rid of planes from my mod? And I also wanna remove airports and construction of airports including the plane research tab as well
my mod says "Some mods are made for other game versions" but it works perfectly how do i change that so it doesn't say that
Update it
how?
When u created the modfile did u see a file made with the folder?
yeah
This one
Right click this, select open with and open it with notepad or notepad++ whatever u have, and then u will see the game versions, just update it there first.
Like if its 1.12.9 or something, update it, I think the current version is 1.12.14 or something
version="1.12.14"
picture="empires.png"
tags={
"Alternative History"
"Map"
}
name="Empires In WW2"
replace_path="gfx/loadingscreens"
supported_version="1.12.14"
path=""
remote_file_id=""
Like this
update the version and the supported version
thanks
Then open ur mod folder and u will see a descriptor file
Do the samething with it aswell
And I think then u might have to restart ur PC
version="1.12.14"
picture="empires.png"
tags={
"Alternative History"
"Map"
}
name="Empires In WW2"
replace_path="gfx/loadingscreens"
supported_version="1.12.14"
remote_file_id=""
Update it in here as well
Then it should work
How do I get rid of planes from my mod? And I also wanna remove airports and construction of airports including the plane research tab as well
i just made something in modding (focus, ideas) and now my country starts with 0 divisions
pls help
does anyone play hoi4 with owb mods
Playin rn as lanius siding with the twin mothers
which mods do you have?
im trying add the east coast stuff and enclave stuff but idk what game version will make most of the mods compatible
rn I am using ad victoriam as an addon mod but there is enclave reborn with enclave reborn plus
I'm not sure if there is anything for the east coast
Not that I have seen, just gonna have to wait for the base mod to be updated
Louisiana should be added in the next update
im using these
There is an east coast one?
yeah
Huh, I never knew
the more you know
truly
but i cant find a game version thats compatible with all of them
Makes sense
I'm pretty sure the first one is outdated and the second one is just the more up to date version
I believe that this one should fix the enclave one
The only one I don't know about is the east coast one
oki
what version do you think i should play on
The newest should be good, if it doesn't work I would suggest turning off the east coast mod because it might be outdated and overlapping with the base owb mod
ok
@foggy rivet How's it workin?
How to make Endsieg not crash?
i just stopped bothering and just played barebones owb
How the hell is one of those mods -1gb
Less stuff than the og game? idrk
typical launcher L
you know the decisions where you hover over that magnifying glass and it highlights certain states on the map?
like for a formable
what is that called and how can i make it
Check the Formable Nations mod to see it. The highlighting is done in the decision category level because Paradox decided they didn't want individual decisions highlighting multiple states
i dont have a formable nations mod
i guess i could download one
Specifically the one I made because that one actually has highlighting. Anyways, just remember that it works at the category level not the individual decision level
could i please get a link to your one?
No
tragic
is that an australia new zealand union?
I think that's Anglosphere
oh ok good
had me worried for a second
how do i know which one is yours in the mod folder @slender brook
The folder number and link number are shared
i dont see it
and it dont even know how to open the file lol
oh i found the mod file
just had to put it in a playset
oh im so clever
so common > decisions > categories?
Yeah
are these important?
No
do i have to link the name of the text file anywhere? or is it like a localisation file
What text file?
You would not have to link the text file anywhere. That type of stuff should be handled by the game
is the 00 at the front of the file name necessary?
Only if you want to replace basegame files
Hey, to add your own focus icons, do they just need to be put in the goal and goal shine files, or is there more?
[16:45:04][texturehandler.cpp:160]: Texture Handler encountered missing texture file: gfx/interface/goals/3FnshMilWrk.dds
[16:45:04][texturehandler.cpp:216]: Couldn't find texture file: 'gfx/interface/goals/3FnshMilWrk.dds'
[16:45:04][spritetype.cpp:330]: Error initialising texture: gfx/interface/goals/3FnshMilWrk.dds for spritetype FnshMilWrk
This is the error I am getting.
This is what it looks like ingame, for reference.
you need add new focus icons in your_mod_name/interface(NOT GFX)/goals
and also
goal_shine
goal_shine added little animation
these files?
yes
um
could we call, it'd be ewasier if i could show you whats wrong
if you do not mind?
show me code
yeah, want to screen share
in goal
yes
the great war redux mod has a pickelhaube infantry model how can i export it to base game so that it works with all mods
That'll be for you to figure out
does anyybody have a mod that auto queues up industry for you? tirred of having to constantly queue up as usa
on_startup = {
effect = {
ENG = {
country_event = {
id = on_action_colonialism.1
days = 460
random_days = 460 # Fires in the last week of 1936, assuming default start date.
}
}
}
}
Whats wrong with the file and how do i fix it?
Does anyone know of a discord for hoi4 mods
are the second numbers for victory score points
or score points
or whatever they're called
also does this code look right, like are there any indentations missing?
How do I get rid of planes from my mod? And I also wanna remove airports and construction of airports including the plane research tab as well
Yes
The buildings max and local supplies lines are unnecessary given they're their default values but
If I were to add a victory point to aksai chin in Hoi4, which one would be the best?
🤷♂️
[07:52:32][map.cpp:675]: MAP_ERROR: Palette in rivers.bmp is probably not correct
Can someone share a good guide about modding? I've never tried it before and I was curious if anyone knows a good guide so I could start developping one. 😀
Iron Workshop on YT makes pretty good ones
Thanks!
how do you use the "args" array for custom console commands?
I tried it and nothing I do seems to work
I'll post an example shortly
This is what I'm trying to achieve, substituting "oil" with the first argument and "10" with the second (of the array)
You're using a different colour
let me know if someone that knows modding wants to make a classical music mod with me
i have all the songs i just dont know coding, we'll do it together
can i make mods for older vers?
You can yes
should I bother trying to learn how to mod? And if I wanna, where should I start?
Europe of the Slavs?
And you can see examples of formable nations in the basegame. You would use a decision that applied a custom tag, with custom tags being given flags and names the same way regular countries are
Well, I don’t speak Serbian so maybe it only sounds weird when translated
I would just name it Europe unless your mod has you do sussy things to make the majority of Europe slavic
If you want to have your mod go down that path, sure
Just be warned that it’ll attract… certain types of attention
Go hogwild then
I dunno anything about models
someone should make a unit mod for the P1000 RATTE
Do anyone know of any type of wunderwaffe mod for hoi4?
idk
ill be making a Hoi4 MULTI MOD
which adds new tech units templates etc
Nice
I will download it whenever it's done
alr thx
You have any mods currently?
yes 3
on hoi4
On Steam?
here
yes
i will allow people to make SUB MODS of my MULTI MOD
There seems to be a problem with the link
what
alr
It might be because am on phone, but i will try on my PC
alr
try
can we discuss this in DMs?
Sure
alr
Anybody help with it? Mods aren't existing in folder
That means exactly that mods are not existing in folder. Try reinstalling.
Reinstalling what launcher? I reinstall it and nothing changed
Reinstalling mod. Or checking your folder if it's your own mod.
Documents/Paradox Interactive/Hearts Of Iron IV/mod/
Yeah that's my mod but if I create folder with same name It would just create another mod
If there's actually no folder, what's the problem then? Delete that blank shortcut and create new mod
How to delete this shortcut?
Besides mod folder and descriptor in it there's .mod file in /mod/. Simply remove it.
Is there any alternatives to Mappa Mundi?
Again, this files doesn't even exist
Tested it out a second ago, works. If it's so, i guess it's just paradox interactive moment. Maybe there's some list json file, but i honestly cant find it.
I also tried to find out this mod list file but I don't find anything
one question, i made a custom ui for a decision category but it seems to flicker whenever an hour passes in the game or if you interact with it through buttons, it ends up looking like its having a sstroke. Anyone have any idea what might be happening?
Heeeey, I was wondering if someone could help look for a mod.
Assuming it even exists that is.
I'm looking for a mod that lets players make announcements or "News Papers" kinda like the browser game Call of War. I've been searching everywhere and havent found anything yet
Is the rise of nations mod good?
guys i am not good for GFX , pls make one flag british flag , one flag Poland and one flag france
Not even a please (btw I can't do good art, so don't ask me)
he wrote "pls"
Oh god I am blind
I am sorry, I didn't see that pls
is ok
hope that's good enough
does someone know what the problem might be that when i finish the first focus the picture of the secxond dissappears
Missing shine texture
turn on anti aliasing my man
Probably on the workshop
wow thanks man
How can I make the same interface as the manage subjects window. I am particularly interested in attaching the window to the poltics tab
Use the GUI console command to backtrace the interface code
thank you
i tried to make a flag mod and the flag doesnt apear ingame any reasons to why?
how to start modding?
This is all done. The problem is that I have no idea how to attach the interface to the politics panel
well, it's most likely because of the file size
the game uses a certain file size for you to be able to use your flag for some reason
also np
What size is it
well, for ordinary size flags (not small or medium) it would 17.1 KB
for small flags, it would be 800bytes to 1 kb
around 4-5 kb for mediums
mines 2k for normal flag
2kb
this one has a different name could that be the case
well, it's also possible that the interface is the problem
wym
sorry for being a bit random but like things like this
it's essential for you to have it
wait
otherwise there would be errors
whats that
sprites
in the tut i followed it didnt show that
Learn in under 9 minutes how to change any flag in Hearts of Iron 4!
If you have a complicated question that can't be answered here properly (for example if you want to attach a screenshot) you are welcome to use the topic on the Paradox forums, I am always looking there for questions:
https://forum.paradoxplaza.com/forum/index.php?threads/le...
this is the tut i followed
it is quite old
ig that explains it
ah
you can copy and paste a gfx file considering that sprites use any .gfx file for certain icons
no
you can simply make your own .gfx file in interface but I'd say it's best to copy and paste
this is my entire folder
create a folder and name it "interface"
oh wait, damn, sorry for wasting your time, ignore what i said
oh
aight
yeah uhh hold on, let me check what you should do next
yeah, it's just size
@gilded raven
it's just size that was blocking the way
ah
yeah, should be more than that
i can send it if you need
sure, i'll happily help
the medium one seems to be meeting the file size requirements
ah
but it seems the ordinary one is somewhat corrupted
it is?
i'll try to check out
thanks
if it continues to not be able to read the file, i'll make a new one for you and send it
thanks
ty
if the flag isn't showing up then idk what to do
thanks man
np
It worked
Guys how can i start modding hoi4?
poke around in the game files to see where different things are
if you’re not making major overhauls most of modding is just taking what’s already in the game and changing small parts of it
im thinking about learning everything
i found some good YT tutorials when I started
https://youtube.com/playlist?list=PLt_7vUaEvaGTJ0ISBqY2v4EyfmPALiVS7
videos I used to get a basic grasp on hoi4 modding, to get any deeper you’ll need to start actually creating something
This Hearts of Iron IV modding lesson will explain how to create new characters, including country leaders, advisors, corps commanders, field marshal and admirals.
If you found this video helpful and want to help the channel grow you can use the super thanks button above, any amount helps the Iron Workshop improve and continue to make more vide...
i can use this to make commanders right?
yes
the hardest part of commanders is honestly portraits imo
once you figure out the character system it’s pretty formulaic to make more
i ont really get it
characters={
GER_adolf_hitler={
name=GER_The_Cool_Dragoon
portraits={
civilian={
large="gfx/leaders/GER/Portrait_Germany_Adolf_Hitler.dds"
}
}
country_leader={
ideology=nazism
traits={ dictator }
expire="1965.1.1.1"
id=-1
}
}
}
if i have code like this and i want a general do i remove the 'country leader+{' part
No swat stickers allowed here
ah mb
ill disable the mod and repost
i deleted all the code for commanders and hitler so thats was the issue
Just make a new focus, move it over and branch of that.
Never got into Balance of Power modding after BBA - can you have multiple BoPs active at a time, or is only one per country at a time?
One at a time
Go to your unit template, click the name thing
Like it would say infantry division or if you are Germany late war infantry division
i cant find a proper guide on custom weapon reserhc
uh i made a country and this happens in 1939 start
I mean it’s definitely functioning as a country, what part of this is the issue?
the leaer
shoulda specified
leader
i had a custom leader in 1936 star
not at my pc now and tbh I’ve never messed with 1939 start but it might be a separate history file or smth
guys
i create game
if what i know english b1plus
так что если естть русские можете заййти
айди
90173682632191004
DIPLOMACY
if = {
limit = {
OR = {
has_dlc = "Together for Victory"
has_dlc = "Man the Guns"
}
}
1868.1.1 = {
set_autonomy = {
target = MAL
autonomous_state = autonomy_integrated_puppet
}
}
1860.1.1 = {
set_autonomy = {
target = RAJ
autonomous_state = autonomy_colony
freedom_level = 0.35
}
}
1920.1.1 = {
set_autonomy = {
target = ISR
autonomous_state = autonomy_colony
freedom_level = 0.35
}
}
1868.1.1 = {
set_autonomy = {
target = CAN
autonomous_state = autonomy_dominion
freedom_level = 0.4
}
}
1795.1.1 = {
set_autonomy = {
target = SAF
autonomous_state = autonomy_colony
freedom_level = 0.4
}
}
1900.1.1 = {
set_autonomy = {
target = AST
autonomous_state = autonomy_dominion
freedom_level = 0.2
}
}
1840.1.1 = {
set_autonomy = {
target = NZL
autonomous_state = autonomy_dominion
freedom_level = 0.2
}
}
1882.1.1 = {
set_autonomy = {
target = EGY
autonomous_state = autonomy_dominion
freedom_level = 0.2
}
}
}
Is there anything wrong with this?
ahhh
the average hoi4 player
what is a screenshot blyAt
screenshots dont work if you use windows xp in eastern europe
how do i get icon on multiplayer name?
Cheers
hey modders i have an idea for a mod if it is possible to make but i dont know how to mod and was wondering if one of yall might want to take the idea make a throne of glass mod based off of the throne of glass book series just an idea if yall want to use it
Ive been looking at my code for a few hours and cant find why the nation doesnt start with a neutral government. Can somone help?
Hey Guys. Did anyone know where are the files for the demilitarised are. I want to ad a kind of a demilitarised zone. Can anyone help me?
localisation/english/parties
Because it is set on the start date 1.1.1939
does anyone know how to make countries (like british raj) into another countries puppet in files?
history/state/ then the state you want
add
set_demilitarized_zone = yes
under the add_core_of
History/counties. Than look in the County file of the UK
thank you
I mean to make a now command just like demilitarised
not sure then
What are you trying to do?
i have the same set of code just for 1936 but its off screen
I want this for a HRE effect
Can you send me the file private and i look what i can do
yes, and replace it with
field_marshal = { #field_marshal can be replaced with corps_commander which will make the character a general instead of a field marshal
traits = { } #whatever traits you want to add for them
skill = #(should be around 1-9)
attack_skill = #any number you want, make them OP, make them useless
defense_skill = #any number you want
planning_skill = #any number you want
logistics_skill = #any number you want
legacy_id = -1 #this doesn't really matter much
}
traits for the unit leaders can be found in Hearts of Iron IV\common\unit_leader if you're confused
I have a mod idea that you guys can do Saudi Arabia making Umayyad Caliphate
do you mean the folders its in or all the code in the file?
whats the right compression for flags?
paint.net or smthing else?
What would cause the letters to compress like this
i think its (linear, A8R8G8B8)
i think it gives the option when you save
it isnt for me which is weird
ig paint.net is acting up
[16:41:43][statehistory.cpp:127]: Unknown History Command ==>'provinces'<== for state: history/states/163-Dalmatia.txt
[16:41:43][persistent.cpp:48]: Error: "Unknown effect-type: provinces, near line: 19
Unexpected token: provinces, near line: 19" in file: "history/states/163-Dalmatia.txt" near line: 19
[16:41:46][state.cpp:658]: no provinces in state "Zadar" with id: 163.
[16:41:46][gamestate.cpp:2670]: MAP_ERROR: The land province 6408 - has no state.
[16:41:46][gamestate.cpp:2670]: MAP_ERROR: The land province 9485 - has no state.
[16:41:47][state.cpp:658]: no provinces in state "Zadar" with id: 163.
[16:41:48][flagtextureatlas.cpp:525]: Error loading flag for country WAL : Ideology democratic : Path gfx/flags/ : Warning slow to read format - Consider using 32bpp instead of 24bpp
[16:41:48][flagtextureatlas.cpp:203]: Error loading country flag overlay: gfx/flags/medium/WAL_democratic.tga : Unsupported format. Expected 32bpp, uncompressed, no color palette
[16:41:48][flagtextureatlas.cpp:525]: Error loading flag for country WAL : Ideology democratic : Path gfx/flags/medium/ : File not found
[16:41:48][flagtextureatlas.cpp:203]: Error loading country flag overlay: gfx/flags/small/WAL_democratic.tga : Unsupported format. Expected 32bpp, uncompressed, no color palette
[16:41:48][flagtextureatlas.cpp:525]: Error loading flag for country WAL : Ideology democratic : Path gfx/flags/small/ : File not found
``` also these files are acting up like 163 has provinces its acting like it doesnt
i have the same issue but my nation controls the state instead so idk
I FIXED IT
the colors of a nation on the map is described with rgb, right?
if i put 50 0 13 in there, which is the rgb code for burgundy, it gives me this disgusting yellow for some reason
would you mind telling me how?
yeah 1 sec
id = 163
name = "STATE_163" # North Vidzeme
resources = {
steel=20 # was: 32.000
aluminium=11 # was: 18.000
}
state_category = large_city
history = {
owner = UKR
victory_points = { #Venezia
11584 10
}
victory_points = { #Padova
3604 3
}
victory_points = { #Verona
603 1
}
buildings = {
infrastructure = 3 #was: 6
arms_factory = 2
industrial_complex = 4
dockyard = 1
air_base = 3
11584 = {
naval_base = 6
}
}
add_core_of = UKR
add_core_of = EST
}
provinces = {
9485 6408
}
manpower = 3963151
buildings_max_level_factor = 1.000
local_supplies = 5.0
}```
provinces needs to be after the cores closing bracket
and before local supplies
could i make this w out the leader file
hi there
i forgot i had some dumbass pfp
how is evreyone?
hello
hi
do you knwow how to mod?
i use notepad++ and i cant find the issue
can i ask a miner rqwest to yoiu?
sure
ok thanks so im bad at the game and use buffs mods and i like italy a lot but the creatr hasent updated the mod to by blood alone wich means that italy new focus tree dosent work my rqwest is if you could look at the code and update it to by blood alone and put it on steam or pardex mod site
i cannot do that
oh it woulid be coopig the mod wich isent allowed?
i cant see whats wrong either
that and i have no clue on how
fair enogh
i guess i cood keep looking for somewon who cood they couild prob put a few more fertes in it so it woddent be cooping
cool thing you have there
? my pfp?
the mod you were using
i acouly been looking for pepole that cood update it to by blood alone and add like 1 new fetre so it wodent be cooping it😆
@manic wolf me and my silly stuff also do you know how to mod? and how are you?
i know how to mod but i havnt messed with focus tree's much
if you could do it for me all i want is for op italy to be updated to by blood alone
what dos it do?
ok thanks so im bad at the game and use buffs mods and i like italy a lot but the creatr hasent updated the mod to by blood alone wich means that italy new focus tree dosent work my rqwest is if you could look at the code and update it to by blood alone and put it on steam or pardex mod site
this bacley described what i wanted
@manic wolf wood this work for op italy?
im gonig to try it
That version is obsolete
Hm
HI MODDERS how could i edit this i cant deploy troops even in my own country
i have core
Do you have any other version then because I don’t think I’m gonna find anyone else to update Op Italy for me
its pretty simple just to make italy op edit 00_difficulty edit just stats
I don’t know how to do that do you cause I could send you the mod I use
Here’s the mod I use I’m not a moder I just downloaded it
i can edit the setting called strenghen italy
im experimenting with ai flags and so far i would say its pretty good
I mean the mod 😂
Cool
@frail jacinth
Toolpack without the Errors :3
Can you send me a link please?
Thank you but what does this do
its possible to have 2 state files right?
Only the ones you override? Yes
Cheat mod
Would it Fix OP Italy not working with Italy’s new focus tree
@pale sparrow
And how would I buff Italy?
quit waffling
tf why doesnt my country exist
state={
id=279
name="STATE_279" # Santiago
manpower = 3935146
state_category = large_city
resources={
steel=16 # was: 24
}
history={
owner = ALV
buildings = {
infrastructure = 3 #was: 5
arms_factory = 1
industrial_complex = 7
air_base = 3
8222 = {
naval_base = 5
}
5121 = {
naval_base = 1
}
650 = {
bunker = 1
}
}
add_core_of = ALV
victory_points = {
650 10
}
}
provinces={
650 5121 5169 5191 8194 8222 8229 8251 12920 12954 12984
}
local_supplies=0.0
}
this code is right?
ah wait
nvm
still broken
Have you made ALV a country with all the relevant files?
Is that file in your mod, and is that mod enabled?
this is my root folder
my mod is enabled
and its in my mod
Can you send over your mod folder?
Try make a new mod folder through the create mod thingy
alright
i tried that
there is no country
ah
Did you modify any of the files? that looks like you might've missed the common folder
it apears i had left a folder out
alr
well thanks for the help
same issue do i gotta like refersh the mod?
Yeah
makes sense
how do i refresh it?
lemme make another mod to see if that work
now that area is ocupied (by chile)
could you send me this
the folder
wait
its the same one i send
m,b
mb
Don't worry happens to all of us haha
You have the common subfolders in there, right?
I'm not too sure then
i've been playing the Darkest Hour mod, and looking abt it, cuz i really found it was interesting, but does someone know how they managed to make those changes in the Staff (Mainly the Cabinet having all of those advisors)
Other question is about the dual leadership, anyone know how they made it? and if so, is it possible to adress these dual leaderships to just some countries?
(For Example, the relations of King and Prime Minister, and General Secretary/Head of the State are very interesting, but for some countries it wouldn't work very good, like the Cliques and some absolutist empires, idk)
try to see if there is some file saved in the Hearts of iron folder, before the mod, inside some of the folders, idk
wym
Like, see if there is any "states" folder or "history", etc, in the Hearts of Iron folder, before the mod one
cuz accidentally i dropped one of indochina in this file, and then it messed up the state, i needed some days to figure it out
ooh
no i did
probably is that then
it still didnt work
yeesh
logs can be there
must have been what you were talking ab
my new states wont work but icba to figure it out now
but these should be right?
GG
i mean, probably, i don't see anything wrong
but what is ALV?
like
for what country it stands for?
yup, you can, just don’t forget to do “recruit_character = #character” name here in your country history file or how it’s called
Custom country I made
if you meant that by separating generals and leaders
Ah
How can i edit an existing country rather than create a new one in my new mod?
also which of the country's files should i copy
for example i want to edit the german reich
what do i do
what of it though
many stuff focuses, colour, flag
btw the colour also has hsv as germany
for some reason
maybe it turns out slightly better that way
just copy over the vanilla files you want to override and nothing more
alright but the colours?
germanys color doesnt show up
lemme send the file picture
copy the file in the same folder called "colors"
The file in the folder, i meant the file was callled colors
my bad
how do i put text in the effects section of a national focus?
Just send me the folders in a zip
how would i give a custom country starting units and templates
How would I make my nation show up as a releaseable in a peace conference
wouldnt you have to make it a colony for antoher country?
Wdym
like create the country
then make it owned by antother
idk tho i started 4 days ago
I wanna add the already releasable German states as releasable via the peace conference
idk
Ok
I personally installed it multiple times, but it never worked for me, tho maybe its in game options when starting a new game/loading a game. If not, then ask someone that knows
By default your launcher is on an initial playset with all installed mods I believe
Any Clue?
Does someone Know what the "Election Frequency" thing in the country history files do?
It determines the frequency of elections
🙄
If you didnt know, an ideology with elections will swap ruling party if another takes a larger share(/majority?)
yee, ik, but like, how does it work?
i'm working in cuba history file
and the value attributed to it is 48
like, what is 48?- it's the year where the next ellections will occur?
months
1899.1.1 = {
buildings = {
infrastructure = 2
industrial_complex = 1
}
}
1900.1.1 = {
victory_points = {
8216 1
}
}
Is this possible?
Yes
Well I don't see why it wouldn't per say
well thats great news for me
would be pretty stupid for argentina to start with its victory points in the middle ages
is there a modding discord?
cause i cant find out how to do half the shit
and this chat is really slow
for answers
how do i make custom countrys start with divs
Per se
hello guys
pls rate
0-10
10/10
10/10
thanks guys :DDD
who i your favorite icon
I've a question: I am currently making a focus tree and wish to allow the player to gradually get rid of a very bad national spirit by completing focuses. However, I don't want them to be linear, I want the player to be able to do said focuses in whatever order they please; is there a way to be able to do this? I'm new to modding and the only way I know of "updating" nat. spirits is swapping them with other nat spirits, which won't work for a non-linear focus branch
The one with the tank is quite nice :)
show me code
I haven't even made it yet, it's just a general idea. I've been scouring the internet for anything of help but I haven't been able to find anything which allows you to basically change national spirits by focus tree, only to swap them
whats with the white outer glow?
Check the code for italy's focus tree, I believe they use variables instead of idea modifiers
Create an oob in history/units
also there is a modding coop
Oob?
Order of battle
What's that
In modern use, the order of battle of an armed force participating in a military operation or campaign shows the hierarchical organization, command structure, strength, disposition of personnel, and equipment of units and formations of the armed force. Various abbreviations are in use, including OOB, O/B, or OB, while ORBAT remains the most comm...
In hoi4 it's ur units
Ah
Copy something like argentina or someone simple's 1936 file and modify it for yourself
All good
Also put the line oob = "TAG_1936" in the history/countries file for your country
but with your tag
Aight
can i not use diacritic letters for localization keys
like i had a focus with ö in it
it didnt let me localize it
or anything after that
is there a trigger for Hoi4 that goes like " Days since War Started" or something like this. I want to check how much Stability someone has when he went into a war.
how do i make it centered?
how would you go about adding a country there
common\bookmarks
do i have to change the bottom line of code if i want to change the name inga,e
ingame
in an if clause can i add multiple limit parameter in the {} brackets?
Something I made for fun, using this map as a base https://www.reddit.com/r/imaginarymaps/comments/14i8oom/the_final_definitive_beyond_the_ice_wall_30/
?
so
there are 8 major country slots
you cant really make it centered
unless you uhh
edit the gui or whatever
idk how to do that
never done that
nvm fixed it
Who made this shit 💀
look at creator
also how do i make an industrial concern decrese consumer good factories
Kaiserreich by like
i still cant get divitions to wrk
can anyone tutor me into making a music mod 'd appreciate it
[15:33:17][flagtextureatlas.cpp:203]: Error loading country flag overlay: gfx/flags/medium/WAL_democratic.tga : Unsupported format. Expected 32bpp, uncompressed, no color palette
[15:33:17][flagtextureatlas.cpp:525]: Error loading flag for country WAL : Ideology democratic : Path gfx/flags/medium/ : File not found
[15:33:17][flagtextureatlas.cpp:203]: Error loading country flag overlay: gfx/flags/small/WAL_democratic.tga : Unsupported format. Expected 32bpp, uncompressed, no color palette
[15:33:17][flagtextureatlas.cpp:525]: Error loading flag for country WAL : Ideology democratic : Path gfx/flags/small/ : File not found
``` says this but also, i get a map error when booting, which i doubt these are connect?
and yes this is the entire log
i want for it to be a hidden effect that the latin american countries arent allowed to increase their conscription
iirc that is do able but i forget line of code
try something like hidden_effect = { news_event = { id = GER.134 days = 2 } GER = { country_event = { id = GER.133 days = 6 } } }
but ya know edit it
thanks
lmk if it works
did it work?
what are the deicisions in the Country tab named in the files?
(Like the "Declare War", or "Guarantee Independence" ones)
those are diplomatic actions for one
look for defines.lua in the common folder (and they're called diplomatic actions for reference)
thxx
i have -debug enabled and no debug popup text
is there a way i could get canada to be called amerika instead as a puppet but only if specific nations have it as a puppet?
localizations
how would i do it for specific nations?
yeah but the nations is democratic/nonaligned, im doing this for
would this work? CAN_HUN_subject:0 "$OVERLORDADJ$ Northern Amerika" CAN_HUN_subject_DEF:0 "$OVERLORDADJ$ Northern Amerika"
this makes no sense
make it "$OVERLORDADJ$ észak amerika"
smh
bazmeg
thats a placeholder but it didnt work
bruh
i guess
well it didnt work in game
did hungary puppet canada
as canada is called british north america despite being a dutch colony
bruh
i have a line for it of dutch
CAN_HOL_subject_DEF:0 "$OVERLORDADJ$ Northern Amerika"```
i mean it should work
did you save localization file
and did you restart game
sometimes it only works after restarting game idk why
it didnt was the issue
wait
set ideology
CAN_HOL_ideology_subject
if that doesnt work then idk
i give up
what difference does it make if i set the :0 to :1 at the end of vicotry point localization line like VICTORY_POINTS_9660:0 to VICTORY_POINTS_9660:1
if vanilla adds a name for VICTORY_POINTS_9960:0 and you add VICTORY_POINTS_9960:1, it'll affect which is taken (I think it is always lowest number behind the : but don't remember for sure rn).