#modding
1 messages · Page 30 of 1
Other than that I don't think there's a problem
Compare it to the code of your first focus
are there mods compatible with ironman mode that fix vanilla bullshit things
i'm almost done sorta
I just need to add eliat and then I need to add a billion states and then I will be done with the map logic which is the most horrible
and then I have to do the same thing for Jordan, Syria & Lebanon
and then I need to change the troop spawns for the british and french because COLONIZER
does the AI strategy build_army work for only division templates, or it works for ships and planes too?
first picture is first focus , second picture is second focus
is there a mod for nuke testing
would be a fun addition to the lore
nuclear treaties and world tension rise
I gotta then make a focus tree, and then I have to make all of the other middle eastern countries
That sounds time consuming
Yes, it does. I'm pretty sure Road to 56 has an Israeli focus tree right?
It does yes
any error is here?
my guess would there is an extra bracket or two in the second focus
yeah i creait second focus but game not showed
i have big problem
you could just copy paste the second focus code in text
yes
or send the whole file in
focus = {
id = FRA_army_reforms
icon = GFX_focus_generic_little_entente
x = 4
y = 1
prerequisite = {FRA_france_begin_reforms}
mutually_exclusive = { }
cost = 10
ai_will_do = {
factor = 1
}
available = {
}
bypass = {
}
cancel_if_invalid = yes
continue_if_invalid = no
available_if_capitulated = no
search_filters = { FOCUS_FILTER_ARMY }
completion_reward = {
army_experience = 25
}
}
}
what the brackets?
} is bracket?
yes
so
focus = {
id = FRA_france_begin_reforms
icon = GFX_focus_fra_french_union
x = 25
y = 0
prerequisite = {}
mutually_exclusive = { }
cost = 10
ai_will_do = {
factor = 1
}
available = {
}
bypass = {
}
cancel_if_invalid = yes
continue_if_invalid = no
available_if_capitulated = no
search_filters = { FOCUS_FILTER_POLITICAL }
completion_reward = {
add_political_power = 150
add_stability = +0.010
}
}
}
is first focus
that also has one more } than it should
game show first focus
okey i try
Hello, this may be a weird question, but I like to ask: is it possible to use this game and make a pseudo-mod without Steam Workshop? example like this
OH thank you man
you help me with defeat big problem
good luck on the focus tree bud
the second one?
Does Mod Sharing include advertising for mod updates?
im trying to see what the problem might be
so im using the code you just sent in to see what errors show up
ah i see the problem
in your code in the line
prerequisite = {FRA_france_begin_reforms}
you need to put a ' focus = FRA_franch_begin_reforms '
example
prerequisite= { focus = FRA_franch_begin_reforms }
that should work
and the lines of
cancel_if_invalid = yes
continue_if_invalid = no
available_if_capitulated = no
arent needed
so you can delete them as well
Ik afraid not
hello, i was wondering if there is an economics mod thats sort of like the one in millennium dawn but for base game/road to 56
Fixed it
There was an empty OOB = "" at the bottom
Also fixed infantry weapons tech. It was using a - not a _
does someone know why it is only this thin bar? if you need the code i can send it
1.14? Dawg we are are on 1.12
I'm making a mod
when a country is more than 30% surrender
it will enable a decision to raise a random lost state's resistance to 100
however i don't know how to select a random lost state
does anyone know how to do this?
Oh? Im gonna check it
Anyways, thanks for helping, it was really frustrating

yes i fixed
hey so i'm new to modding, and for some reason my event that i'm trying to implement isn't working
i put the same id in both the event and focus tree file for the mod
but when i look at the focus, it says the ID is invalid
and when i look at the error log, it says that it's a malformed token i think
show code
guys pls help me how to type add military factor 2 and add bulding slots 2
and how to type local population +2500
focus = {
id = FRA_population_growth
icon = GFX_focus_generic_population_growth
x = -4
y = 1
relative_position_id = FRA_france_begin_reforms
prerequisite = {focus = FRA_france_begin_reforms}
mutually_exclusive = { }
cost = 15
ai_will_do = {
factor = 1
}
available = {
}
bypass = {
}
cancel_if_invalid = yes
continue_if_invalid = no
available_if_capitulated = no
search_filters = { }
completion_reward = {
}
why game not showed this focus
is the prerequisite there, does it have a closing bracket in your code
it have
does anyone know anything about these "errors"?
its flooding my log and its really annoying
game runs perfectly fine btw
What could I add to my facist Ireland mod, I’ve already updated its name,flag and leader but idk what else to add (I’m terrible at coding so just simple stuff)
u missed "}" in the end
pls show me
focus = {
id = FRA_fallen_economic
icon = GFX_goal_generic_construct_mil_factory
x = 0
y = 1
relative_position_id = FRA_france_begin_reforms
prerequisite = {focus = FRA_france_begin_reforms}
mutually_exclusive = { }
cost = 10
ai_will_do = {
factor = 1
}
available = {
}
bypass = {
}
cancel_if_invalid = yes
continue_if_invalid = no
available_if_capitulated = no
search_filters = { FOCUS_FILTER_INDUSTRY }
completion_reward = {
}
}
that correct?
focus = {
id = FRA_fallen_economic
icon = GFX_goal_generic_construct_mil_factory
x = 0
y = 1
relative_position_id = FRA_france_begin_reforms
prerequisite = { focus = FRA_france_begin_reforms }
mutually_exclusive = { }
cost = 10
ai_will_do = {
factor = 1
}
available = {
}
bypass = {
}
cancel_if_invalid = yes
continue_if_invalid = no
available_if_capitulated = no
search_filters = { FOCUS_FILTER_INDUSTRY }
completion_reward = {
}
}
oh sorry
i copy other focus
focus = {
id = FRA_population_growth
icon = GFX_focus_generic_population_growth
x = -4
y = 1
relative_position_id = FRA_france_begin_reforms
prerequisite = {focus = FRA_france_begin_reforms}
mutually_exclusive = { }
cost = 15
ai_will_do = {
factor = 1
}
available = {
}
bypass = {
}
cancel_if_invalid = yes
continue_if_invalid = no
available_if_capitulated = no
search_filters = { }
completion_reward = {
}
}
i am talking about this
its the same
Oftentimes when foci don't show up it is actually the focus beforehand
if it doesnt work u could send the error logs
Or even just the focus file itself
send error logs
[14:48:04][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 106" in file: "common/national_focus/france.txt" near line: 133
[14:48:04][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 135" in file: "common/national_focus/france.txt" near line: 162
errors are here i believe
send the whole file
focus = {
id = FRA_population_growth
icon = GFX_focus_generic_population_growth
x = -4
y = 1
relative_position_id = FRA_france_begin_reforms
prerequisite = {focus = FRA_france_begin_reforms}
mutually_exclusive = { }
cost = 15
ai_will_do = {
factor = 1
}
available = {
}
bypass = {
}
cancel_if_invalid = yes
continue_if_invalid = no
available_if_capitulated = no
search_filters = { }
completion_reward = {
}
}
focus = {
id = FRA_popular_front
icon = GFX_goal_generic_support_democracy
x = 30
y = 1
prerequisite = { }
mutually_exclusive = { }
cost = 10
ai_will_do = {
factor = 1
}
available = {
}
bypass = {
}
cancel_if_invalid = yes
continue_if_invalid = no
available_if_capitulated = no
search_filters = { FOCUS_FILTER_POLITICAL }
completion_reward = {
add_democratic_popularities = +0.010
}
}
I can almost guarantee that the issue is with the focus before that
Here's the thing about programming: Syntax problems usually are in the line/section before the error
copypaste
I fixed a bunch of other issues in this
its fixed all
brackets
I also fixed the = + thing
nope
ok
add_popularity = {
ideology = democracy
popularity = 0.01
}
but he has no focus and with this problem he must have this focus anyway
but yes its an error too
I fixed the brackets and stuff as well, just that stuff in addition
ur welcome
i have question how to type local population +25000
and how to type add military factory and bulding slots 2
How do I change a portrait. I wanna make hitlers portrait be adolf fatler
Change it in the character file
how to change the party names?
do you know how to change the party name in your own mod?
nah, never modded
set_party_name = {
ideology = neutrality
long_name = "example long"
name = "example short"
}
Thank you!
hey man
Hello
Hey uhh, for some reason the AI will always white peace, how do I change it so that they always annex all without specifying specific states in some file?
Also the wiki page that does exist is pretty complicated
guys i need help
Anyone know the name of this mod ??
i want to make an event in 1936-1938 that seperates aden and burma from india
how would i do that?
how would i make an event like that
in which folder do i put it in? in the history folder of the country or do i make it as a national focus (or what else)?
is there any way to fix player led conferences
in any war the player isnt in, they just white peace
That's an effect to change it mid game. If you want to change it from game start, then you just change it in localisation.
Ok i will try it
In the parties.txt or the (in my case) jap.txt?
parties_I_english.yml
why game show only one line
i noticed how you put the prerequisite code
do this if you want all of the following needed:
prerequisite = { focus = FRA_population_growth_5 }
prerequisite = { focus = FRA_population_growth_4 }
do this if you only want one of them needed:
prerequisite = { focus = FRA_population_growth_5 focus = FRA_population_growth_4 }
also don’t put the code like that when making prerequisites and mutually exclusive, it’s only useful for other codes but not mutually_exclusive and prerequisite
anyone know a good tool for laying out focus trees? dont want anything like that website that makes the trees, just want something to let me layout the placement of focuses
My focus doesn't appear in game. Why?
Use VS Code as text editor with the Hoi4 Mod Utilities addon: https://marketplace.visualstudio.com/items?itemName=Chaofan.hoi4modutilities
It lets you preview a focus tree like this:
Leave out the empty entries and it should work
Ok
negative X for a focus that has no prerequisites or relative position means its just pushed to X = 0
What could I add to my facist Ireland mod, I’ve already updated its name,flag and leader but idk what else to add (I’m terrible at coding so just simple stuff)
It’s basically just tryna remove generic stuff
Can I rename the province Amazonas to Manaus?
Make Ireland a colonial power
Edit state_names_l_english.yml (located here: SteamLibrary\steamapps\common\Hearts of Iron IV\localisation\english)
look for the localisation key for that province
probably because you havent defined the relative position? not ssure tho
you mean like giving it to another country or making one state into 2?
how do you make so that it does that between 1936-1938
what do you want to do exactly?
i want to make an event that fires between 36-38 that makes aden and burma part of the uk
ah, that "should" be simple
to transfer the state just create an event with the option being transfering the 2 states to the uk, for the randomness i'm not sure, but if you would like a fixed date you can usse an on_action file for that
Use mean_time_to_happen
@lofty plaza where do you go to modify time? i.e. how many incriments each speed setting goes by?
Not exactly sure what you mean
guys
common/defines/00_defines.lua underneath GAME_SPEED_SECONDS
Can anyone recommend a mod that darken or shorten the border colors?
What I though that was snow was actually Finland borderline
guys how to type local population +25000
Just do add_manpower = X within a state scope
i dont understand pls tell me with code
STATENO = {
add_manpower = X
}
thanks
but how to type add military factores and bulding slots
and how to type modify (national spirit)
and also how to type
research bonus 75% x2
and how to type create 3 division
I'd recommend reading the "effect" page of the hoi4 paradox wiki
Look under
add_building_construction
swap_ideas (you need to make a seperate spirit to "modify" one)
add_tech_bonus
create_unit (find the division template in history/units)
hello again, how do I make a country change its tag, definition and adjective after clicking a decision
When you say change tag, what do you mean?
not changing country but just changing the country’s tag
like from USA to AME
or something like that at least
You could create a tag alias for that, but properly changing a country's tag would require making a seperate country, and switching to that, which can cause issues
especially if it's going to be a player
yeah, use TAG alias and cosmetic tag
can someone give me a list of leader portraits?
Check interface/_leader_portraits.gfx
I think that's for dlc portraits though
bruh
not in folders
it takes forever to open shit in gimp and msot of the portraits arent even good i want a list like the focus icons on the wiki
Check out SageThumbs
Should let you preview portrait files
do i have to download it
Yeah it's an extension
windows
wdym
What do you guys think about my mod so far?
Also, where do I add a country as one of the "interesting countries"?
help me how to type here somthing with modify national spirit
bookmark
you can do it either with variables or replacing it with another spirit
thank you
What is it about?
I assume it has to do something with the middle east.
does anyone know how to make new countries?
tried watching a tutorial but its out of date
The tutorial by the iron workshop should get you going
tried using it
there wasnt a common folder, or a countries folder
do i need 2 change version?
You need to make it in your mod
i was
So what is the problem?
in the video he got country files from commons > countries
but it isnt there got me
In your mod or base game?
base game
Yeah, then that's a you problem
It should very much be there, and it's required for the game to run properly.
Either you're not looking properly or you need to verify your game files
So, I used map gen to create a map, then I fixed all of the realy importaint errors, but now nudge tool wont work any one got a fix?
guys
i need help with something
so im making a unit trait
and i dont know how to assign the trait picture to the unit trait
But how he made the costum state?
How hard is basic modding?
Not hard the slightest, just takes a bit of learning and knowing where to get info
It helps to have a basic understanding of real code, but by no means is programming a required skill
They’re pretty good but just keep careful about the age
Yeah that was my concern
I wouldn’t imagine it changed fundamentally but a lot of new stuff was added
I mean pretty much, you can double check with the wiki or the game files to make sure
ok so since there is an unlock_national_focus how do i lock national focuses
That's not how it works
In available:
available = {
NOT = { has_country_flag = your_flag }
}
If you want to look a focus then give the country your country flag and it should work
bruh
Or just anything other condition
iron workshop is W
Anyone any ideas for a mod I can make?
guys can u recommend me any fun mods im bored af
Paper map mod, it should be easy to find on the workshop
Fuhrerredux
name of the mod?
What mod does it say
why does hoi4 keep overriding my local .mod file
when i open the launcher it adds remote_file_id and changes the picture= from the local path to thumbnail to thumbnail.png, which is what's set for the mod/modname folder's descriptor.mod.
the image shows up on steam
Is the file encoding set to UTF-8 with BOM ?
That looks like a bloody Google Doc mate
Is the actual file using .yml file type with the abovement mentioned file encoder
FRA_Napoleon_VI={ #bonapartism leader
name=FRA_Napoleon_VI
portraits
civilian={
large="GFX_portrait_fra_Napoleon_VI
}
}
country_leader={
ideology=bonapartism_ideology
traits={ imprisoned_emperor }
expire="1965.1.1.1"
id=-1
}
advisor={
slot = political_advisor
idea_token = FRA_Napoleon_VI
available = {
has_completed_focus = FRA_FRA_Support_bonapartism
}
allowed = {
original_tag = FRA
}
traits = {
imprisoned_emperor
}
ai_will_do = {
factor = 1.000
}
}
}
why game dont show this advisore
It is using .yml, its a locatisation file for a mod that is not my creation, how do I check the encoding?
I'm new to HoI4 modding, I was just editing the text between " and changing the file sufix from _english to pt_braz (iirc thats how its written)
No it's braz_por
Yeah that one
Did you change the l_english in the file to that as well?
Yep
Is it in the right folder
i.e. modFolder/localisation/braz_por
Do I need to put it on a braz_por folder?
The files were not on a _english folder
It's cleaner for the files themselves
Although yeah it may not be the entire issue
But also... yes they are in a english folder
Most of stuff work, with the exception of a few ideas within the focus tree descriptions, the description of an advisor and that event (havent checked the other events
Strange, I will fix it once I get home and see if it works, thanks!
All mods I've found didn't had those folders
It's usually only a problem if the mod has multiple languages
But yeah the issue is probably encoding. You'll have to download Visual Studio Code to change it
Advisors use small civilian portraits not large civilian portraits
Anybody know a mod that replace motorised divison model with mechanized one? It's ugly when as minor country I have mechanized but it still appear as trucks
couldnt find
It's because I pulled a trolling on ya
but the character is also leader
ok so im modding hoi4, and im making a leader, but the option i need 2 save it (like for it to work) doesnt appear
that good?
like this appears instead of "Frank Merriam"
i have same problem
dont we have to make it a specific option or somethingh
How are you setting the country leader?
like saving the file?
create_country_leader = {
name = "Frank Merriam"
desc = ""
picture = frank_merriam.dds
ideology = liberalism
traits = {
#
}
}
set_
actually, could you post the whole country file?
should, yeah
nice
Is there a way to prevent a research from being done until the player has first done a focus?
not as far as I know
how do you fix player led peace conferences
wdym it works fine
anyone know why my hoi4 keeps crashing after loading with the the new order last days of europe mod?
Try again, I crashed once and then it worked after I tried again
nope sadly it did not work but thanks for trying to help
you could try hiding it until they complete it maybe
You can have both
Just add after large =,
small =
@viral otter
I was wondering, how do I make name's of focuses have different colors? A pic from kaiserredux's banat focus tree for example:
Anyone know a mod name where the game starts at 2000?
Millenium Dawn...?
alr thanks alot
Im making a alt history mod which starts in the late 2020s, not finished tho
Thanks man appreciate it
Oh ya also this one, its modern day i think dunno much about it
is there a way to spawn naval units through focuses or events like how infantry can be spawned?
Hi! If someone want to could they dm me a list of mods making focus trees better for as many nations as possible
So i've been making a graphics mod and I got stuck on the flags part. When i entered the civilwar it didn't show the flag i have set for left opposition but the normal soviet flag. I have it tried two times and I don't know what might be causing it. Do i have to add the original soviet flag to the mod for it to work?
wth is this
why is my hoi4 crashing every time i play for like 30 seconds im using iron curtain mod
I am playing as Monarchist Denmark with the road to 56 mod, and I am wonder which focus between consolidate Iceland and Crush the rebellion is better?
so im following the docs on resource modding and i added a new thing, but it doesnt have text in the little filter box, any idea what would cause this?
if i set the resource icon to one of the other ones it has the name for that resource but not for its own
made a mod and now i have 5 GB left of storage
hello guys i want rate my gfx 0-10
looking good, im rating this................
8/10
9/10
How do you do that?
hey
my newest friend is making a HOI4 mod for RL units and templates
currently hes just making the icons for the units
Good morning, does anyone know of any video or tool to modify maps? I need this tool to create a fictional island in the Atlantic Ocean for an "Internal" mod with my friends, in which I would add one more country to the world during World War II.
10
So I am trying to replace a advisor portrait but they have a standard portrait (not unique) I have believed to done is correctly, here is a few pics and plese lmk if you notice anything wrong, the person is Lauri Malmberg.
Also the pictures I am using are in the right places, so something is wrong with the code
5
why?
choice your equipment and next create focus in paint.net
1? what do you not like
2? what do you not like?
The frames are extremely weird and the assets are too small
The colour matching also isn't that great
FRA_recaptured_europe
picture = idea_chi_war_of_resistance3
allowed = {
original_tag = FRA
always = no
}
allowed_civil_war = {
tag = FRA
}
removal_cost = -1
modifier = {
conscription = +0.5
war_support_factor = +0.1
weekly_manpower = +2500
army_org_Factor = 0.1
planning_speed = 0.25
}
}
guys why game not showed this national spirit
Nice lol
mmmmm substances
guys
SpriteType = {
name = "GFX_focus_fra_Napoleon_is_your_hero"
texturefile = "gfx/interface/goals/GFX_focus_fra_Napoleon_is_your_hero.dds"
}
why game not showed this focus picture
not GFX_focus, but it's GFX_goal
so "GFX_goal_fra_Napoleon_is_your_hero"
don't forget to do the goal shine too
Bro i have other two focus GFX_focus and is worked
ah, sorry then
did you set the goal_shine?
did you type it incorecctly in your focus?
[20:12:54][power_balance.cpp:616]: ANE_power_balance: gap detected around ANE_balance_range (-1 < -0.1)
[20:12:54][power_balance.cpp:616]: ANE_power_balance: gap detected around ANE_balance_range (0.1 < 1)
[20:12:54][power_balance.cpp:616]: ANE_power_balance: gap detected around ANE_balance_range (-1 < -0.1)
[20:12:54][power_balance.cpp:616]: ANE_power_balance: gap detected around ANE_balance_range (0.1 < 1) is this coming from the bop of the country equiping it
as I keep chaning the bop (balance of power) file but it dosent change the error
why game showed other colors?
Made a new tactic but have been unable to get the picture within the doctrine/tactic list. The other surrounding UI is there (aka everything is functional as the list exists with the stats just no icon on the left).
Not at PC rn and boutta be busy just leaving this so I can come back to it
@pale sparrow if you are interested*
Ah I was summoned
Luigi has a question on tactics GFX and I saw you have been discussing new tactics
Please wait my pc is switching on
Functions, has the picture = tactic_"rest of name exactly" + it's in the land combat DDS files
So idk if I maybe define the picture or something
I would doubt it's in the general UI windows section but could be
Ik this is low info
No worries
When I get to my PC I'll provide pics and such
Was just hoping it's a common fix lmak
Very based
Thank you
Even if you go through the whole process it'll be easy to spot what I didn't touch lmao
As I've been everywhere it feels
Learned a ton just through the process
I think you do not need tactic_ for picture
Because we didn't do anything in /interface as well
Make sure your new gfx is in the correct structure gfx/interface/landcombat/tactics
Then it should apply automatically
@stark citrus
Have all above, I wonder if there is specific for exporting the image
why picture look like bad
Ah
Smoking gun
Thank god though
Did so much coding groundwork
Did linear but did dx11
Prob what happened
@vale yarrow thank you so much man! Will let you know if it works when I try it
Although reckon it will
first portrait, what do you think?
Not bad
It is way better than my first portrait
@glad adder
Portrait Guides
Kaiserreich Style
AlgerianEntity - https://docs.google.com/document/d/1QRI7SOsm4tvjdAG-YEUHUCNwHiLsnRolrn7gh_akdA4/edit?usp=sharing
Ma Ji - https://www.youtube.com/watch?v=ebdY2AN7dE4
Carmain - https://www.youtube.com/watch?v=rd0ku2rubjE
TNO Style
Atomic Falco - https://www.youtube.com/watch?v=UwEc_vno1IA
Maho - https://docs.google.com/document/d/1KIl8S5o2eQYFZrOYvPUX0EwPOdlbV2O5Kkkmzz0OhHY/edit?usp=sharing
Vanilla Style
Manulight - https://www.youtube.com/watch?v=uzmVrvzyLoc
Batsy - https://www.youtube.com/watch?v=YE3ASYN12sA
Musvak - https://www.youtube.com/watch?v=CZ34kTKRqm0
PoorBananaMan27 - https://youtu.be/6FBD7RHEW68
Hoi4PortraitGuy - https://youtu.be/6gNKj-kCYRk
Image Tutorial - https://media.discordapp.net/attachments/686042616365973506/891490069624553472/unknown.png
Other Style
Dog231's Aging Guide - https://docs.google.com/document/d/1ST9C2NdWfrhujCRaBmlQQHjBN4yQ2cJPPQucqGHXQEY/edit?usp=sharing
RevRealised Style Tutorial - https://youtu.be/mMVO4pl-fEc
tombricks style Tutorial - https://youtu.be/g3IEvvtQx5c
Thanks
I followed ma ji's google doc but had to eyeball some things due to paint.net not having it
To me the top of the head is the worst thing
Congrats!
sucks i spent so much time looking for a ghost
Glad marijn pinged me or I most likely won't be here
Cheers🍻
Boy
What's the best, free alternative to Photoshop that I could use to follow along with a portrait tutorial?
probably photopea
its what I use
Hm I'll check it out
how can i make a new map?
how do i get the previous version of a mod
Anyone good at making portraits?
i've been trying to make one and failing
This is the image i was trying to edit
huey?
Quick question
For creating a country leader and I want to add a trait from the base game where do I put it?
Does it matter where it is in the traits section?
why game showed too bad the picture
gonna make a mod where you can brutally execute people in occupied territory to core it
I'm pretty sure you just gotta adjust dimensions
like edit the size, i.e, 400x400
idk what they're but hope that helps
i think that’s called germany in ww2
what trait(s) are you trying to give them
Got it to work
nice
i could make you one, dm me and tell me how you want it to look
free of charge
hey guys how do i make a focus available after i clicked a certain option in event?
What kind of AI are you using man
stable diffusion
Yeah but the model
Cause like that don't look hoi4 in the slightest
Probably not
hello, I have a question for people who have also done something with this,
namely after deleting all data in common/national focus/Poland.txt
and adding one tree to start
when I enter the game, a regular tree with resources appears, does anyone know how to make the Polish tree itself empty?
this is my code
and i have it in the game
what to do to make this tree empty
You restart your game?
yes
That is what the ww2 Germans did
how do i add super events to my mod
i guess set it to 100
like you just made the add above POL 100
it works for me
18 fps on paused
i feel so bad for you
As someone with little to no experience with modding, how would one change the portrait for a leader?
Open the country tags character file located in common/characters
You mean having no focuses?
I am making a music mod, and I want to make it so certain music only play at peace time while some only play at war time
how exactly can I do that?
Install the program "Focus tree manager"
Sounds like a virus ngl
No, it's not a virus. The program works well, but crashes when starting the mode for creating events and effects. Therefore, you have to prescribe the effects yourself.
It's easier to use the Hoi4 Mod Utils addon for VS Code, that makes everything easier
yes
okay
replace your poland.txt file's content with this:
focus_tree = {
id = polish_focus
country = {
factor = 0
modifier = {
add = 10
tag = POL
OR = {
has_dlc = "Poland: United and Ready"
has_dlc = "No Step Back"
}
}
}
default = no
}
it works, thank you very much
guys
i need help
owns_state = 39
after type this
game no longer show focus
why???
focus = {
id = FRA_Paris_army
icon = GFX_goal_generic_construct_mil_factory
x = -3
y = 1
relative_position_id = FRA_fallen_economic
prerequisite = { focus = FRA_fallen_economic }
mutually_exclusive = { }
cost = 10
ai_will_do = {
factor = 1
}
available = {
owns_state = 16
}
bypass = {
}
cancel_if_invalid = yes
continue_if_invalid = no
available_if_capitulated = no
search_filters = { FOCUS_FILTER_INDUSTRY }
completion_reward = {
16={
add_extra_state_shared_building_slots = 4
add_building_construction = {
type = arms_factory
level = 4
instant_build = yes
}
}
}
}
and i delet this owns_state and game not showed focus
Send a screenshot of the code
It's really hard to see what exactly you're doing when you just copy and paste it
That's gonna be very hard to do
I mean i know you can make music play after certain events
But i dont know about that
That's not very hard to do, you just need to increase the factor of the song playing while at war or other conditions
`music = {
song = "general_war_1"
chance = {
modifier = {
factor = 1
has_war = yes
}
}
}`
is there a way to cap the maximum manpower in the army? I want to create an Austria mod and the treaty prevented them from having more than 30k people in the army so I want to make sure the person can't go over that
I forgot the code to add a rule in hoi4 modding does anyone remember?
was it set_game_rule or something
k nvm I figured it out
You can add a national spirit that decreases their recruitable population, and restrict changing their manpower law when they have the spirit in the /common/ideas/_manpower.txt file
hey guys i got banned out of the hoi4 modding server can anyone help me get back,
my account got hacked and sent a bunch of spam links and i got baned
Is the equestra at war any good? im too scared to play it
is there a way to change the tags that is being played using effects?
looking for a way for my country to use the SOV tag, without starting as SOV.
Use a country tag alias for that
alternatively, you could actually switch the tag, if that's what you want
The code for that'd be:
XXX = { # Original country
change_tag_from = XXX # New country
}
if i use a country tag alias, will wargoals generated against SOV also generate against my country?
thank you
There can only be one of the same tag at a time.
yes, i plan to add the alias after my country assumes control of russia, and SOV is gone
so would it work if the origional SOV is gone?
In that case: Use the alias
Altough I've never tried setting a country's alias tag to an already existing actual tag.
It could work tho I'm not completely sure. I guess you'll if it works or not
yep, ill see
guys what is the best way to find good mods
sort on most subscribed and scroll through
.. in the paradox website
(dont judge me)
but fr i cant even find the most popular mods
like wheres kaisereich for example????
use steam
most mods are not uploaded to paradox website
i've modded for 3 years, even on big projects, and never once opened that place
Ok
I followed the iron workshops tutorial for making a new country and I just modded Prussia a bit but it still doesn’t appear
also how do i fix this?
Ok thanks
Np bro
i made a custom focus icon but problem is when doing it the icon doesnt show up
help please
You need to make a shine definition for it
SpriteType = {
name = "GFX_shine"
texturefile = "gfx/interface/goals/focus_DEU_rheinlandbesetzung.dds"
effectFile = "gfx/FX/buttonstate.lua"
animation = {
animationmaskfile = "gfx/interface/goals/focus_DEU_rheinlandbesetzung.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/focus_DEU_rheinlandbesetzung.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 the code for it, aynthing wrong?
I stole the italian bop and just renamed the stats and what not but im now getting these errors?
[20:12:54][power_balance.cpp:616]: ANE_power_balance: gap detected around ANE_balance_range (-1 < -0.1)
[20:12:54][power_balance.cpp:616]: ANE_power_balance: gap detected around ANE_balance_range (0.1 < 1)
[20:12:54][power_balance.cpp:616]: ANE_power_balance: gap detected around ANE_balance_range (-1 < -0.1)
[20:12:54][power_balance.cpp:616]: ANE_power_balance: gap detected around ANE_balance_range (0.1 < 1)
anyone know where the problem could be located as I keep changing stats but the error doesn't change
Looks like there isn't anything defined for those ranges
I have it defined under neutral as I took it from the italian tree, do I need to apply the neutral the same way you give a country a balance of power sides?
the name is wrong
it needs to be the exact name of the normal GFX, but with _shine pasted behind
fixed
How do i change time on focuses, where is this parameter?
like from 70 Days> 35 days, or 35 Days>15 days
That is defined as ‘cost’
Cost is done in multiples of 7, i.e. cost = 10 means 70 days
But you can just use decimals to ignore that
Hello guys. Do you know how to create alerts like these?
That is it yes
So a couple of days ago I somehow, while trying to export my mod, deleted the entire thing except for the map. No idea how I did it or why it happened. If anyone has any way I might be able to get it back, let me know.
Can someone help me? I created a country but it doesnt work at all and wont appear
Did you check the trash can ?
I changed the tags and now nobody owns the state
Yeah, it was a copy-past issue
Even though in the files ive set all of Czechoslovakia and the Austro-Hungarian Territories in Poland to belong to them, they wont change ownership
is anyone online?
Did you declare a country tag in the file common/country_tags/00_countries.txt?
I did
it works for some states but others wont change ownership
Did you set the KUK value for 'owner' and 'add_core_of' in the history/states/*.txt file?
Yes I did
my country is pink now
cant change it back and I didnt do anything
im following a tutorial on how to add focuses, but I cant seem to add more than one
Check the brackets. If there is a problem with focuses not appering its usually because there are too few or too many brackets
[23:12:47][countrytag.cpp:112]: ROOT - is not in the tag list i have this error in my error log. this appeared after I did some new events, and nothing else, so I am 100% the issue is coming from my events. but it doesnt tell me what line the error is on. how do i find where the issue is?
why game showed blue? is red
WHY DO ICONS NOT WORK
LIKE EVER
WHEN I TRY TO ADD CUSTOM ICONS
IT DOESNT SHOW UP
AAAAA
I HAVE THE FILE
I HAVE IT SPECIFIED
IT DOESNT SHOW UP
NONE OF THE CUSTOM ICONS DO
AAAAAAAAA
send help
im having a mental breakdown over focus icons
icon = GFX_focus_gus_invite_rakosi
icon = "gfx/interface/goals/focus_gus_invite_rakosi.dds"
im specifying the icon in 2 ways
it doesnt work
neither do
why
like honestly why
You have to reference it in /interface/goals.gfx and /interface/goals_shine.gfx
what
You need to add a new line(s) to those files
these files
i cant find those files
You can create your own file for each if you want them to break with game updates, just copy-paste the syntax
bruh
It's probably not in your mod but it's in the vanilla files
its not
it's not in common, just interface
ok
do i replace the stuff thats already in it with my stuff or do i add my stuff to it
Add your own stuff, or create a new file based off one of the sections in there
so it specifies the name and texture file
why cant i just specify texture file in the focus tree itself
because that isn't how it works
You'd have to specify path, name and shine all in the focus tree
Don't ask me I didn't make it
💀
Is there a mod like makes embargoing without target country creating world tension?
If not, can someone create it please?
Hello is there a guide or something to start modding?
'Recruit Gypsies'
how do i make a focus thats activated from an event?
guys i have 3 problem
- not showed my create leader picture and showed african generic leader
- the focus dont have icon but after click i see the icon
- game not showed my new country name and flag
you can use this in event file:
option = {
name = event.1.a
complete_national_focus = your_focus_id
}```
is there a way to make it so the focus cant be completed without the event?
just add this in your focus file:
available = { always = no }```
A tooltip might be good to add to the availability if it might be confusing otherwise
can you make focuses ingame that have no _'s and are with caps? for example instead of FRA_begin_reforms Begin Reforms . If you can do it how?
So you're asking how to use localization files?
aka display actual names instead of IDs?
yup
Go to yourmod\localisation (create folder if necessarry) and create a file called yourmod_focuses_l_english.yml. Also make sure it's encoding is set to UTF-8 with BOM.
Open it and type:
l_english:
your_focus: "Your Focus Name"
your_focus_desc: "Your Focus Description"
In your case it'd be FRA_begin_reforms: "" and FRA_begin_reforms_desc: ""
how would I go about creating a custom landmass and states etc
thank you so much, new to modding, will ask many questions here
like tutorials etc
And by that I mean a completely different hoi4 map, kinda like EAW
I tried using the MapGen but I'm getting wierd errors
here's the error
There's nothing map related
it just doesn't work
huh
Never tried modding the map, only creating new states from already existing provinces, sry
shit
Why does Ethiopia keep generating such errors? There is no such problem in the vanilla game, and I haven't touched it in my mod in any way
[21:18:16][triggerimplementation.cpp:3163]: common/characters/ETH.txt:1017: has_idea_with_trait: minister_of_the_interior_aregai is not a valid trait for has_idea_with_trait
[21:18:16][triggerimplementation.cpp:3163]: common/characters/ETH.txt:706: has_idea_with_trait: minister_of_the_interior_abate is not a valid trait for has_idea_with_trait
[21:18:16][triggerimplementation.cpp:3163]: common/characters/ETH.txt:1182: has_idea_with_trait: minister_of_finance_mariyam is not a valid trait for has_idea_with_trait```
I'm having a similar issue
it's related to BBA messing things up i think?
it didnt work
interesting... can you send me full event code in DM?
this is my option
option = {
name = "Conservative Party"
complete_national_focus = ENGconservative
}
You sure that the focus ID is correct?
yes
But the event itself is triggering correctly, right?
How do you put alf landon as a leader at start? as I also can't seem to find his character in the common file 🤔
Just wait for the election in November like everyone else
Oh, forgot this was modding and not general oops
In the countries history file, search for a recruit_character = field with his ID, move it to the top and that should do the trick
Guys, please help. I want to add to my mod an alert (the ones at the top of the screen) that will alert when a country controls non-core states. How can I do this? I assume you have to use a scripted gui to do this, but I have no idea how to implement this specifically.
does anyone know how to remove puppet states?
Wdym?
I also tried looking for that
But I couldn't find that either 🤔
Then look for a create_country_leader = { ... } code block with the ID. Simply move it on top of the others
guys i have three problem
- game showed generic leader , game not showed create leader picture
- focus icon is unknow but after click i see the icon
- game not showed new country name
Is there a Vietnam mod for steam on hoi4
Probably, just search up Vietnam in the workshop
Ok
- Are you sure you declared the portrait in the .gfx file?
- You probably need to add the focus icon with the glow effect to goals-shine.gfx
- Did you change the name of the state in a separate localization file, or did you replace the existing countries_l_english.yml?
You find one?
Ok
Gotta stay healthy
Also, thanks
if most of my focuses are starting with KOP (Example: KOP_New_Ways) do i just delete the KOP to be the normal title seen? (Also do I have to change that in the prequisites?)
Nvm, fixed it, wrong encoding
For that, it's localisation, like this:
i just change it in the localisation? without common?
?
I don't understand why my mod generates these errors at startup
Does anyone have any ideas?
- yes
- ok
- oh i forget this
oh i forget i have 4. problem
game not showed my new flag
Make sure you create a flag in three sizes: small, medium and large. The large flags must be located in the gfx/flags folder, and the others in their respective folders inside the flags folder. The name of the flag file must have the following form: TAG_ideology.tga or TAG.tga
oh i dont create large but i named TAG_ideology
DEM_communism
DEM_democratic
DEM_fascism
DEM_neutrality
Try creating a large flag. You can copy any flag from the Hearts Of Iron IV/gfx/flags folder to your folder and edit it
ok thanks
hey how many pixel need large flag
i am talking about this
82x52 pixels
82x52, 41x26, 10x7
oh
game still not showed the flag
and game showed african generic leader
create_country_leader = {
name = "demetre pro"
desc = ""
picture = GFX_Portrait_demetre_empire_demetre_pro
expire = "1953.3.1"
ideology = liberalism
traits = {
}
}
what the mistake?
In which file is this code located?
in the history in the countries file
DEM - Demetre empire
It's very interesting.
You must declare a character in file mod/common/characters/DEM.txt, and in file DEM - Demetre empire in folder history write instead create_country_leader={...} the following:
recruit_character = YOUR_CHARACTER_ID
If I understand correctly what you want to do
i dont understand
Sorry late response but yea
- Create
common/charactersfolder - Create a file
DEM.txtin this folder - Write the following in it:
characters = {
DEM_demetre_pro = {
name = "demetre pro"
desc = ""
portraits = {
civilian = {
large= GFX_Portrait_demetre_empire_demetre_pro
}
}
country_leader = {
ideology = liberalism
expire = "1953.3.1.1"
id = -1
}
}
}```
4. in `history/DEM - Demetre empire` file write `recruit_character = DEM_demetre_pro` iinstead of `create_country_leader={...}`
yes! i understand now
but i have problem
the flag is not showed
i added large file
nah game not showed the character picture
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
Try to check the size of the flag files. The large flag should be 82x52, the medium should be 41x26, and the small should be 10x7
??
hey guys do you know why endsieg keeps crashing? When I select country and start the game it loads for a few seconds then crashes. Do you know why?
is correct
guys any mistake is here?
[00:05:07][flagtextureatlas.cpp:525]: Error loading flag for country DEM : Ideology democratic : Path gfx/flags/ : File not found
[00:05:08][flagtextureatlas.cpp:203]: Error loading country flag overlay: gfx/flags/medium/DEM_democratic.tga : Unsupported format. Expected 32bpp, uncompressed, no color palette
[00:05:08][flagtextureatlas.cpp:525]: Error loading flag for country DEM : Ideology democratic : Path gfx/flags/medium/ : File not found
[00:05:08][flagtextureatlas.cpp:203]: Error loading country flag overlay: gfx/flags/small/DEM_democratic.tga : Unsupported format. Expected 32bpp, uncompressed, no color palette
[00:05:08][flagtextureatlas.cpp:525]: Error loading flag for country DEM : Ideology democratic : Path gfx/flags/small/ : File not found
not found???
Each flag needs to be a TGA-file with the name of the country tag and, optionally, the ideology group that the flag is assigned to. The flag file format is uncompressed 32-bit ARGB. In this case, "32-bit", "32 bits per pixel (bpp)", and "32 bitdepth" have the exact same meaning. In some editors where the bitdepth isn't settable when exporting but rather static without allowing the user to draw anything that the bitdepth doesn't allow, 32-bit means the RGB image mode alongside an alpha channel used for transparency present within the image. If it is 24-bit (meaning there is no alpha channel), the file will load but throw an error stating that it'll slow down the game and that it's recommended to use 32bpp.
From Paradox Wiki
hmm lets try
but the leader picture not showed
I think it should be written in the logs
i create all the codes but the game not showed
characters={
DEM_demetre_pro={ #Democratic Leader
name=DEM_demetre_pro
portraits={
civilian={
large="GFX_Portrait_demetre_empire_demetre_pro"
}
}
country_leader={
ideology=liberalism
traits={ }
expire="1953.3.1.1"
id=-1
}
}
}
the is character file
recruit_character = DEM_demetre_pro
the is history file
Check the resolution of the portrait. It should be 156x210
[00:45:34][effect.cpp:425]: Invalid effect 'building' in history/states/909-imereti.txt line : 10
[00:45:34][statehistory.cpp:127]: Unknown History Command ==>'building'<== for state: history/states/909-imereti.txt
[00:45:34][persistent.cpp:48]: Error: "Unknown effect-type: building, near line: 10
Unexpected token: building, near line: 17" in file: "history/states/909-imereti.txt" near line: 17
[00:45:34][statetemplate.cpp:229]: State #910 does not have a category defined.
[00:45:34][statetemplate.cpp:231]: State #910 has no people living in it.
[00:45:34][effect.cpp:425]: Invalid effect 'building' in history/states/911-kaxeti.txt line : 8
[00:45:34][statehistory.cpp:127]: Unknown History Command ==>'building'<== for state: history/states/911-kaxeti.txt
[00:45:34][persistent.cpp:48]: Error: "Unknown effect-type: building, near line: 8
Unexpected token: building, near line: 11" in file: "history/states/911-kaxeti.txt" near line: 11
[00:45:34][statetemplate.cpp:229]: State #911 does not have a category defined.
????
[00:51:49][flagtextureatlas.cpp:203]: Error loading country flag overlay: gfx/flags/DEM_democratic.tga : Unsupported format. Expected 32bpp, uncompressed, no color palette
[00:51:49][flagtextureatlas.cpp:525]: Error loading flag for country DEM : Ideology democratic : Path gfx/flags/ : File not found
[00:51:49][flagtextureatlas.cpp:203]: Error loading country flag overlay: gfx/flags/medium/DEM_democratic.tga : Unsupported format. Expected 32bpp, uncompressed, no color palette
[00:51:50][flagtextureatlas.cpp:525]: Error loading flag for country DEM : Ideology democratic : Path gfx/flags/medium/ : File not found
[00:51:50][flagtextureatlas.cpp:203]: Error loading country flag overlay: gfx/flags/small/DEM_democratic.tga : Unsupported format. Expected 32bpp, uncompressed, no color palette
[00:51:50][flagtextureatlas.cpp:525]: Error loading flag for country DEM : Ideology democratic : Path gfx/flags/small/ : File not found
nah is not fixed
@median dagger
Are you sure you exported the flag correctly?
Do you have Adobe Photoshop?
Using it, you can copy the flag from the Hearts Of Iron IV/gfx/flags folder and superimpose your flag over it. Then, just click on the Save button. The flag will be saved with the desired settings, the only thing left is to rename it.
I've always done so
no i have paint.net
yes
Try following this guide: https://youtu.be/XulAELfxPDc?t=1368
same nations have different focus in the mod?
interesting
is two yugoslavia
game dont know how used two different focus and game is crashed
hmm any gfx change?
oh i have idea
try only one mod test all mod
the mod is crashed
check the fils and cods
ok
try others
no no select only one
chek only one
wow that nice menu
oh! there is mistake game dosent know who mods menu picture is set in the menu
Where would I find the files for mods Ive downloaded on the workshop
You would find it in Program Files/steam/steamapps/workshop/whatever the hoi4 ID is, I can't really remember, just go through until you find it.
C:\Program Files (x86)\Steam\steamapps\workshop\content\394360.
No, chances are they all probably change states, which causes incompatibility since they're modifying the same files
can someone help me with my error.log
i dont know what any of it means but my game crashes to desktop when i start the game unless i use millennium dawn
I have a question, my mod wont upload even though i uploaded it to steam work shop.
that easy
where do you download the hoi4?
in paradox or steam?
@median dagger i have big problem
the guys say select A8B8R8 and here i dont have A8B8R8 selecter
Can anyone help me? How do I add a thumbnail to my mod?
i have same question
Can you give me a screenshot of your save options?
Put a file called thumbnail.png in the folder with the mod, and in the file descriptor.mod add this: picture="thumbnail.png"
Thank you
As long as your mod is on the local drive, the picture will not be displayed. In order to see it, you need to load the mod to the steam workshop
That's right. You need to select this option
who?
Okay, let's try it another way. Can you send me a png file of the portrait and the flag in private messages?
Hello! I tried to find any mod for Ming Dynasty. I found one yet it is outdated. Does anyone know any good and updated mod for such path?
I do not know if there are new mods for ming, you can use the outdated one I suppose there are not a lot.
I know the one I mentioned about, I'll try to see if it works for 12 version tho. Thanks for response anyways!
Anyone know what effects to use in an Idea to prevent the tag from training new units?
division_template = {
name = "qvedanayofi" # Rifle Division
division_names_group = DEM_INF_01
regiments = {
infantry = { x = 0 y = 0 }
infantry = { x = 0 y = 1 }
infantry = { x = 0 y = 2 }
infantry = { x = 1 y = 0 }
infantry = { x = 1 y = 1 }
infantry = { x = 1 y = 2 }
infantry = { x = 2 y = 0 }
infantry = { x = 2 y = 1 }
infantry = { x = 2 y = 2 }
}
support = {
#engineer = { x = 0 y = 1 }
artillery = { x = 0 y = 0 }
}
}
division_template = {
name = "kavaleria" # Cavalry Division
division_names_group = DEM_CAV_01
regiments = {
cavalry = { x = 0 y = 0 }
cavalry = { x = 0 y = 1 }
cavalry = { x = 1 y = 0 }
cavalry = { x = 1 y = 1 }
}
support = {
#recorn = { x = 0 y = 1 }
}
}
guys any mistake in here?
the game not showed the two division template
Hi. I am working on a mod that replaces all the vanilla portraits with new real colorised photo portraits. There are lots of graphics to modify (leaders gfx files & ideas gfx files), so I want to found a modding team/group that will work with me on this and maybe other mod projects for HoI4. Dm if you're interested.
guys why leader picture look like this
allow_branch = {
if = {
limit = {
has_game_rule = {
rule = obsolete_focus_branches_visibility
option = HIDE
}
}
NOT = {
has_completed_focus = USA_continue_the_new_deal
}
}
}
does someone know why this makes the other ones not invisible?
I need help
the local version of my mod works
but if I use the mod downloaded from steam it doesn't
how do I make a national spirit be set to a country from the start
How do i rename country political parties names and leaders? Do i edit the country file in history folder?
you cannot have both installed at the same time
add_ideas in the history file
Either edit the localization, or do it by effect in the history file
thanks
allow_branch is only checked on game start by default, or you can force it to recheck with mark_focus_tree_layout_dirty = yes
wdym?
thanks, sorry im new to modding and creating my first mod
does anyone know how I could create my own custom map
how do create a new type of ideology? do i go do ideologies text file and add my own? and how do i create a description for it as well
Thx for that tip
where do i put "mark_focus_tree_layout_dirty = yes" into the national focus?
completion_effect
its a lot of work, try use a tool that generates a random map or a section of the normal map
timelapse mods
I am having issues with the portrait of a country leader. I have put the picture in leaders folder in gfx folder and I have created a characters folder in common folder. But it doesnt show up
And instead another random picture shows up
As country leader
Can someone help?
ok so some time ago i had a idea where australia were the bad guys in ww2, and im making a mod about it, any ideas?
the current idea for the axis powers are: Australia being the equivalent to Germany, Iran the equivalent to Italy and Brazil the equivalent to Japan
How about Australia Equivalent to Japan?
?
was the hoi4 modding wiki changed? it looks different on my screen now for some reason
why does it look like this wtf
transfer_state_to = 547 KEN
transfer_state_to = 1082 KEN
transfer_state_to = 1121 KEN
transfer_state_to = 1055 KEN
transfer_state_to = 1122 KEN
transfer_state_to = 1083 KEN
remove_core_of = 1083 UGA
remove_core_of = 1122 UGA
add_core_of = 1083 KEN
add_core_of = 1122 KEN
add_stability = -0.3
}
what am i doing wrong with this file?
Seemingly everything
transfer_state_to only parses with a state scope. It would be used like transfer_state_to = KEN
In this case you'd want
KEN = {
transfer_state = 123
transfer_state = 123
}
Same thing with the other two types.
Hold on I accidentally posted early
KEN = {
transfer_state = 1082
transfer_state = 1055
transfer_state = 547
transfer_state = 1121
transfer_state = 1083
transfer_state = 1122
add_state_core = 1083
add_state_core = 1122
}
UGA = {
remove_state_core = 1083
remove_state_core = 1122
}
this good?
Seems to be
option = {
name = "absolute monarchy"
ai_chance = { factor = 25 }
KEN = {
transfer_state = 1082
transfer_state = 1055
transfer_state = 547
transfer_state = 1121
transfer_state = 1083
transfer_state = 1122
add_state_core = 1083
add_state_core = 1122
}
UGA = {
remove_state_core = 1083
remove_state_core = 1122
}
add_stability = -0.3
set_politics = {
ruling_party = neutrality
elections_allowed = no
last_election = "1935.12.17"
election_frequency = 48
long_name = "House of Buganda"
name = "House of Buganda"
}
character = Edward Mutesa
name = Edward Mutesa
}
option = {
name = "constitutional monarchy"
ai_chance = { factor = 25 }
KEN = {
transfer_state = 1082
transfer_state = 1055
transfer_state = 547
transfer_state = 1121
transfer_state = 1083
transfer_state = 1122
add_state_core = 1083
add_state_core = 1122
}
UGA = {
remove_state_core = 1083
remove_state_core = 1122
}
add_stability = -0.1
set_politics = {
ruling_party = democratic
elections_allowed = yes
last_election = "1935.12.17"
election_frequency = 48
long_name = "House of Buganda"
name = "House of Buganda"
}
character = Edward Mutesa
name = Edward Mutesa
}
You know what the problem with this file is?
Can you send the raw file instead of as a message
Well you definitely need to fix your formatting
Also this is probably your issue
What are you actually trying to do there?
i want to make a poltiical referendum in uganda
No, that specific code I screenshotted
i want to make that person the leader
and i want there to be 4 different options for leaders
Well that's definitely not how you do it
All leaders should be created already on game start in a character file
You would recruit the character in the history file and then promote_character
yo
is there a way to make it so a countries name wont apear or there is just no country besides germany
Im making like a yt scenario were germanies states declare independence
to make a country not have a name, just dont make a localization for the country name
there has to be a tag controlling every state or the game will crash
so just make a tag that controls everything but germany, and dont give it a name.
then just give all the states to another country and delete that country's name from the countries localiation file
How do i make it control everything but germany without typing every state ID
i think you have to
there might be a better way but the only way i can think of is just setting the ownership of every state individually to that country
or you can have an on-action that has that specific tag annex all tags except for germany
but the on-action might lag the game when it starts and won't show the differences until after you've loaded into your country (so on the country selection screen they'll appear)
Anyone kno tiles galore?
I am having issues with the portrait of a country leader. I have put the picture in leaders folder in gfx folder and I have created a characters folder in common folder. But it doesnt show up. And instead another leader shows up(a random character)
Hello, would anyone be able to help me, I'm trying to mod in a new focus tree for Australia, but they can't get independence.
This is what it says.
guys
i need help
i want the one idea cancled in civil war moment
how to type?
has_civil_war = yes
has_civil_war = no
you entered a certain reading mode
Guys I need help. What should I do if I translated the focus to another language and it does not appear in hoi4?
This is from original mod. And it's displayed in original mod as is must be.
The most interesting if I change it to somebody else it's also not displaying even if I change it to english one. And this problem is for this and two other focuses. Other focuses work as normal.
My character portrait aint showing up
i checked error.log and it said this [15:14:48][effectimplementation.cpp:5145]: history/countries/ENG - United Kingdom of Great Britain.txt:8: recruit_character: Character ENG_winston_churchill cannot be assigned to ENG as it is already assigned to ENG
can someone help me?
spriteTypes = {
spriteType = {
name = "GFX_DEM_idea_the_one_country"
texturefile = "gfx/interface/ideas/DEM_idea_the_one_country.dds"
}
guys why game not showed natioal spirit picture
how do you remove these advisors?
