#modding
1 messages · Page 24 of 1
it is
ye
well, this didn't solve the issue, since I am trying to get control of Kherson in Ironman mode from Italy as germany, but the game detected I modified the save file
oh
ffs, why doesn't italy want to give it to me already
it switched over due to some bug
did you already do the peace treaty>
and now I cannot get ukraine
nope
end the war, then you can demand for all of russia
but I want to form the reichskommissariat
I know, but that will take a long time
I kinda need it now
since I am running out of manpower
ss of the current frontline?
push to moscow
great, now my main save file is also unironmanned
just refresh it
any way to fix this?
nope, still thinks that I modified that file
although I didn't
yeah same
I did modify a copy of that savefile though
I'll see if there is a way to fix this
yeah that can be done, but now I cannot get acheivements for no reason
interesting
screw it, at this point I'll at least get goddamn kherson from stupid mussolini
...aaaaand it doesn't work
no wait I do
hoi4 moment
oh ye, ik why it'd work
your faction controls it
and so behind the scenes, benito and adolf can have a talk about ceding the land
You could of also just gone into debug and hovered over it
Modifying a state file does not change a save, it only changes the starting map
does someone know a discord server that "give/share" mods?
if u could send me one, thanks
what exactly do you mean?
a discord server that sent mods
yeah, sorry bad english
define "give/share mods"
sent mods?
Who sends who mods?
idk
I was modyfying the save file
As a matter of fact, the state was controlled by me but it still showed italy as the owner
The best mod in the universe. (This is on russian, I know, but I am from Russia, so it's normal that I play on russian language, this is just Luxembourgish towns)
hot
can someone make a mod where you can skip justify war goals for mp and you can use in other mods like millennium dawn i tried but failed
so like instantly be able to declare war or what?
how does statenames work
mfw you haven't touched the mod in like, 4 years
@_@ im scared
just use allow.diplo in console lmao
or 'allow diplo' i cant remember
allow diplo
HOI4 doesn't really use commands with . in it
Also he said for multiplayer
So taht doesn't work
ah
well
im not really sure but my 8 braincells left could probably try to do it
also W femboys
Thank you
well, i know i could decrease wargoal time to ten days and like 1 pp
but that doesnt let you just declare
anyways i got a headache and i got 6 hours of sleep
so
gn
Good night
truee
?
the names of states are set in the indivdual state files
No they aren't
They're defined in state_names_l_english, using the STATE_100 format
mmm they are
Are you talking about the name attached after the state number?
state={
id=853
name="STATE_853"
Alright, that's what you meant
I thought you were talking about the actual, real name
Whats the difference
One is a localisation key, the other is an actual name
STATE_853 would be Ljubljana
It's done this way so names in different languages work properly
southern albania
Ah right
Are you sure you aren't looking modded files
i am :)
Is it possible to add more custom portrait to the pool which the game use to create random generated portrait? Because today I just realize that after generated 5 - 6 portraits, the next one will be the same as one of the previous generated portrait. Now there are a lot of twins in my generals pool.
yes
I'll see what I can do about it but there should already be enough mods that let you do something similiar
ive reinstalled hoi4 as i am returning to it and i am met with this
in the mods section
#ask-for-help-here is probably the better place to ask in since I don't see how this has to do with modding itself
alr
is there any mods that add assault guns to tank designer. No total overhausl like horst or TFB
Cool stuff
[02:37:08][dlc.cpp:227]: Invalid supported_version in file: mod/ugc_1993141805.mod line: 7
[02:37:08][dlc.cpp:227]: Invalid supported_version in file: mod/ugc_2008958925.mod line: 7
[02:37:08][dlc.cpp:227]: Invalid supported_version in file: mod/ugc_2673259461.mod line: 10
[02:37:08][dlc.cpp:227]: Invalid supported_version in file: mod/ugc_786868637.mod line: 8
Does anyone know what the cause of this is
long time since ive modded
https://steamcommunity.com/sharedfiles/filedetails/?id=2957110611
Mod i'm working on just released its demo, feel free to check it out if you got the time.
problem isn't your mod, errors come from mods doing this:
gotta love debugging a mod while having 20k errors about a german infantry man's animations not aligning with hungarian tanks
*Hungarian tank models
why are the tanks trying to walk
Is it possible to make a decision only clickable if the player has clicked another one? I mean doing something like this:
decision_two = {
available = {
has_completed_decision = decision_one
}
}
i could be wrong but isnt it by having the first decision unlock the second?
like how?
country flags
such as the decisions for changing ideology use custom flags as variables to know what stage you are in the prcoess of changing
makes sense
im trying to figure out why my mod keeps crashing after I scaled the map up by a factor of 2
good luck fixing
its scaled from 5632x2048 to 11264x4096
had to put the panama canal back in panama and not in the galapagos.
\
So is it possible to add a resource and have owning some of that resource be a requirement for certain research and equipment production
Don't think so
Damn thats a shame
Ik you can do it for Eq. Prod
Like with tanks, you need x amount of steel
But idk about tech
Damn, i was planning on adding a element which would require you to own some of it to do research on it basically then use it to produce stuff
I guess ill just have to do ALOT of googling
I have an idea, where my mod has 2 pie wheels
One for ideologu as in fascist, monarchist, communist
And another for the sub ideology, like Marxist or nazist
Would it be possible
I doubt it, although maybe with some complicated variables it might be
so if i bust my ass, maybe?
Honestly just make your own game at that point
Oh right, you could do something like the Senate and House, but a pie chart might be more difficult
hardest part is making it as a sub of the main chart
casually making hoi5
Ruling party should be something like socialism; ruling party means what subideology they are using
weird, on the other nations i put communism and it worked
Oh
I’ll check again
You need to put 0 after fascism and neutrality
Here’s a tip for any coding; never have an equals sign without something on both sides
I don’t know any code that doesn’t cause errors with that
Isn’t it just create_faction and add_to_faction
where to put?
Ok i found it
how to make a nation declare war on another nation when a game starts
this?
if = {
limit = {
has_start_date < 1936.01.02 # If the start date of the game is before 02/Jan/1936
}
declare_war_on = {
target = TAG # Country to declare war on
type = annex_everything # What would the AI do with the nation afterwards, annex_everything/puppet
}
}
What do you think of mod Millenium dawn: modern day?
lags alot
and its slow
Boring
awful
like egregiously bad
Check how Italy declares on Ethiopia, copy that
i could not agree with you more
Lmaoo
Which tastes better
Union Of Malayan Nations UOMN
United Malayan Nations Organization UMNO
Organization Of Neutral Malayan Nations ONMN
Free Malayan Nations FMN
Its for my mod
United Malayan States UMS
Malayan States National Organization MSNO
I must know
Switch UOMN to "The Union of Malayan States" Or just UOMS
U dont have to, just spit balling
That sounds nice
k
Ur mod seems nice from the one image I saw of it. Hope it does well and gets a positive review.
Thanks!
np
Great!
guys, where do i see all unit roles?
i want to use build_army, but idk wat are the targets. wiki seems to be confused too, saying the target is an archetype and then saying it is a role
what is suposed to be in id = and where do i find the things dat i can put there?
I'm assembling Expert and trust worthy people for The AML Mod Team to Create a WW1 Version of This https://steamcommunity.com/sharedfiles/filedetails/?id=2725313804 and I will be using assets aka all from the GWR
dm me if you want to help
you have no leader
that is why
add a leader and the nation will be communist
nations with no leaders get... very weird
ill have to edit that in the descriptor file then right?
no, you can't fix that. The original dev of the mod would need to fix it
Just ignore the error
its my mod
oh, well how does your descriptor file look like?
you mean whats inside or just what it looks like
the code inside the file
try to change version just to "1.0"
didnt work
Are you also changing the .MOD file in the folder directly just before your actual mod folder to support the same version?
Documents/Hearts of Iron IV/mod (or equivalent path) to be specific
i only changed the MOD file in my actual seperate mod folder
ill change the other one too thanks!
ill let you know if it works
Theyre on the same version already
version="1.0"
tags={
"Alternative History"
"Map"
"National Focuses"
"Ideologies"
"Historical"
"Gameplay"
"Fixes"
"Events"
}
name="Lost Chaos of 36'"
supported_version="1.12.11"
path="C:/Users/hackk/OneDrive/Dokumenter/Paradox Interactive/Hearts of Iron IV/mod/LC36"
remote_file_id="2956966402"
version="1.0"
tags={
"Alternative History"
"Map"
"National Focuses"
"Ideologies"
"Historical"
"Gameplay"
"Fixes"
"Events"
}
name="Lost Chaos of 36'"
supported_version="1.12.11"
remote_file_id="2956966402"
quick question
does anyone know how to change an icon for an agency
or add a new one?
Thats not a problem anymore + it does not affect the ruling party
how to mod a state that has permanant access to another?
give me the example you are trying to use it for
to another country
wrong msg deleted
UK Egypt
Egypt was semi-independent
Egypt controled most things but has a big influence by the british
in politics
add it in the history files that the uk has mil access to egpyt, but if egypt is still a puppet, theyll have access through each other's land unless youve removed access in puppet types
how do I add it?
i'm new to modding
ik how to make countries
but not the diplomacy
help
In Egypt's history file add this line
give_military_access = ENG
put beneath the capital state if its easiest for you
normally its put in the political section of the file but thats just for organization
wdym
either look them up on the wiki or as i do, use vs code to ctrl+f for a keyword and find it elsewhere in code
the wiki is easier though
what is the page exactly?
what the spectate/observe command?
What can sause the nudge tool to crash when renaming states?
don't worry, I spoke to someone on #ask-for-help-here
When using highlight_states = { ... } directly inside a decision (and not a decision category) why does that only highlight one state and not all?
is it possible to add custom portrait to the pool which the game use for create random generated officer portrait?
add AND before i think
forgot how to do it exactly
beta version of my mod
shit
bruh
ffs
gruhh
ah what ever
this should...
eh still links it to page
any docs
Weird because Formable Nations does it exactly like I do and there it works
I am the Formable Nations guy and I do it using categories
Because it is not impossible in singular decisions, for some reason
how do i give a country autonomy through a focus?
should cuba be given a monarchist tree for non-aligned?
i was thinking of having a monarch path and a non-aligned despot path (historical, batista)
just to make it interesting
though im not sure
that would open the door to a spanish led lat-am faction that coud be fun in MP
military government maybe, would be something different from all the other non-aligned paths
cuba would already have one with Batista as he was a Despot
which is the hist path
ah
starting 1940 there'll be an event where if the player has met certain requirements through focuses and decisions, batista will be elected president and then turn the country into a dictatorship
and then 1953 if the game goes on that long, if cuba remained neutral during WW2, also hist path
there'll be a civil war with the communists by default, Castro's revolution
but well before that itll give cuba some debuff stability and debuff WS ideas
also probably gonna be through decisions the player makes
is there a limit to how large of a loc file nudge tool will save, because ive reinstalled the game and the launcher and the nudge tool still crashes when saving state loc files
The Nudger saves to your documents\Paradox Interactive\Hearts of Iron IV folder, deleting localisation, history and map should resolve all Nudger issues
there are no history loc or map files... when i save a state rename in nudge, the game crashes with no errors present in the log
Other than 20k about a hungarian tank model trying to map german infantry animations to itself and failing
why does the tutorial crash the game
apparently attempting to remove the tutorial files from my mod crashes the game
how'd you even try to remove the tutorial? xd
stupidly apparently, i removed the interface and gfx files for it but forgot that my mod is set to replace path for almost every folder in the game file
just a few errors
most are the animation issue and then some for missing flags and country names under custom ideologies
and a few for the game deciding belgium's focus tree is not the generic one
most of this mod is about the addition of nearly 400 new states
and i have been working on it for nearly a year
What does [14:33:37][pdx_nakama_wrapper.cpp:1561]: [PDX NAKAMA] Socket onError: connect failed: set_fail_handler: 9: Timer Expired. mean?
Multiplayer-related, but I'm not sure if it's a modding problem
is it legal for me to make a mod that doesn't make the game require DLC to do certain stuff?
As far as im aware you're allowed to make mods of pretty much anything, bar stuff obviously illegal
so it's illegal?
like I could just get No Step Back for free?
Probably, so long as you werent ripping assets and didnt claim that it was completely original
I mean, all the NSB focus trees already exist in the game files, even if you don't own the DLC
So anyone could just disable the DLC check and use them
So am I allowed?
Sure, unless theres some specific thing ive never heard about preventing that
sudetenland forts are causing graphical bugs now
nvm its jsut the fort model in general
i figured out how ima do ideologies until i can figure out a system for dual ideologies
just make a metric shit ton, then make it so you cant change ideology
only through focus
just dont give the nations the political advisors to change ideology then
thats the plan
what does
"FACTION_NAME_DEMOCRATIC_1"
mean
like, what does it do
and do i need it for say, absolutism or Anarchism
actually, i will
but you can't enable them
like if Russia wanted to make the Trotskites rule, they'd need a trotskist advisor to grow the ideology into the gov
make the ideology growth happen through a national spirit that is applied via the focus in question rather than by advisor
figured out that faction name does
meh
then i gotta create icons for it
when i could just use people of influence in that time
what does it mean by "can_force_government = yes"
like, force a gov ideology in a treaty
or influence ideology
first ideology almost done
Is it possible to edit name and portrait of officer/generals (created by procedural generated) ?
like there is a generals name A, he is a random generated general, but I want to edit his portrait and also his name, is it possible?
Don't think that's possible, you probably need to add your general manually
not possible, but you can create a huge list of effectively every name in germany for example, and have it use that
how to remove pruge
Yes
If you can get them targeted, you can apply a set_character_name and set_portraits
It’s about change ideology in a peace deal
Yup
just started modding and made a custom nation. It works but all the other nations have their rgb colours inverted does anyone know what to do?
anyone knows how to make that few developers can "update" mod like others big mod instead of making mod alone (how to create github repository with out creating a new file if i want to put it in my mod file)
how do i add something so when i complete a focus a newspaper appears? kind of like how rhineland appears in the news
btw terminal Paradox interactive doesnt exist for some reason
This Hearts of Iron IV modding lesson you will learn how to create the two main types of events in Hearts of Iron 4... Country events and News events, along with their graphics and localization.
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...
event triggers?
i want something to pop up in the news
oh
yea make the event
and in a focus, you put in the trigger to play that event
like with the moscow trials
and focus completion award should have like trigger event...
this, give or take would be the type of code you want
how can i remake the mongol empire using RT56? i cant find the focus to do it
you probably have already figured it out but if not:
focus = {
# all other stuff here
completion_reward = {
news_event = {
hours = 6 # optional
id = news.25 # news event to play (remilitarization of the Rhineland in the case)
}
}
}
i need someone to help me solve a map issue rq
shouldnt take more than a few minutes
i enlarged Cuba but it seems that the provinces are in entirely different places
this is an example
and this weird clipping
it should look like this
You sure those are all unique colours that aren't already used?
yeah i had the nudge generate them
i used photoshop to look for the hex codes too to double check
im just getting provinces randomly appearing invisible in the ocean where Cuba used to be in the original map
and weird clipping
i think i missed a step
Sounds like you haven't edited the terrain and/or heightmap to account for the new province geography
But don't ask me about those, I still haven't figured out how to edit them
As long as the terrain itself has not changed that is irrelevant
i asked chatgpt and it says i mightve forgotten to update definition.csv
maybe
i havent map modded in a while
Well there's definitely that as well
But that's the easy part compared to provinces clipping through terrain
then its that
its probably why the game thinks there are provinces in the ocean
Yeah, it could be that
Again, the terrain does not matter unless you're changing the actual map. Though you're free to try if there even if anything.
is it a console command?
can i change a country flag w/o changing ideology?
because Stalin was in power by 1924, but didn't have Stalinism around until 1927
actually nvm ik what to do
Any kings in here want to make a mod for usa that just adds Creighton Abrams as a general
Also pershing
Until his death
should be easy
you want them generals, officers, or FMs?
in all reality, all 3 of them are usable for FM role with promoting
Are hours like when you finish focus, and what should i put in event to play? If i do anscllus
how do I make a focus unlock a certain tech?
chg = { icon = exgeneric cost = 100 days_remove = 14 remove_effect = { if = { limit = { fascism > party_popularity@communism fascism > party_popularity@democratic fascism > party_popularity@neutrality } set_politics = { ruling_party = fascism } } } } }
is this ok ?
can you make the potrait of a general change when he changes countries?
for example
the austrian generals
can they change
when
they join germany?
ill be making a Mod that adds a LOT of new units and templates
aswell as a RL military organization
Why does it show error?
Actually this one shows "add ." so I assume it's the problem
Assuming you got these from another place; you need to have the said ideas for those focuses
i fixed this guy. he looked so bad with the generic face
i found the potrait online
i didnt make it
but this was my first mod
and im happy 😄
austria is a small country and he didnt matter
but after anchluss he became a german general
and that bothered me
whats going on boys
any one want to play a game
is there a way i can make a music track change based on the world tension?
lmao wtf
why would u want to do it
why not
as world gets more chaotic so does the music
never messed with characters
e
why would you want to do it
uhmmm
for like the generals
that came later
into armies
or got promoted
need people for my mod mostly loc and gfx
im trying to make the most historical mod
started today
making focuses for major country
making economy system
operation tab (if possible) and etc...
If you want to join fill free to dm me !
is there a mod to make the Western and Western bloc as USSR
like how Germany can form the Reichskos
Hi, i didn't found the hoi4modding discord server so i ask this here, let me explain, i created a focus tree in hoi4modding website with 11 focus, i put the mod in the game but when i lanched the game, taked france, and click on the focus tree, only 2 of the 11 focus appears, do you know how to fix that ? (btw the mod is in french)
Idk
map mods, retextures, music mods
Ok
invalid prerequisite focuses hides the focus
you shouldnt use the hoi4modding website
Fix: Do not use HOI4Modding.com
Anything else
you should be using visual studio code, maybe Notepad++ for mass searches
Bro I just want to make a focus tree for like iran
just copy paste focuses then edit them
Ok
does anyone know how to cancel decisions with timer early ?
nvm fixed
not really
I mean there is cancel_trigger but I don't know how to utilize it if I remember there were decisions that can be cancelled by clicking again
how do I enable that feature in my decision
ChatGPT knows HOI4 modding
its a massive help
hey @pale sparrow can u help me w something rq
i messed up my map horribly no idea whats causing it
here are the files i edited but they dont have artifacts in them
unaware if i messed up the heightmap or something else
Can somebody send me their amount of errors so I can show to my friend that 320 is not a lot lol
does either TWR or TNO work on latest version?
If this is about the provinces, you should not of edited the terrain.
Otherwise you're going to have to be more specific
It’s more than provinces.
I made the actual island of Cuba much larger for gameplay purposes
My mod im working on currently has like 1200 errors
haha what are they about
Mostly flags being missing and missing things from gfx files
Random errors that are easy to fix mostly
And i think some relating to missing audio
Rookie numbers, most I've gotten is either 10000 or even 80000
Christ
How did you manage that
I mean ig i havnt really changed much, so far im just changing countries and the ui (got tno ui from some other mod on the workshop and it came with hella errors I’ve neglected to fix)
Hi I need help trying to figure out, why a mod I'm trying to use isn't working. is there anyone that can help me?
Lmao man deleted all the country tags
I get antsy when I have one error, what the hell are you guys doing
Yep
Helping a friend with their first mod using a custom map as my first mod
Needless to say it took a few days to get almost all of the errors fixed
That's normal
I usually have maybe 60k errors if I mess up sum
Any modpacks with competent AI where i would have a challenge playing
Most errors I got were 5 🗿
hours is the amount of in-game hours the event should display after it has been triggered.
You get a bunch just from not having DLC
continuous_focus_position = { x = 400 y = 2800 }
focus = {
id = CIS_the_sith_plot
icon = GFX_CIS_the_sith_plot-57183
days = 1
x = 13
y = 0
cost = 10
available_if_capitulated = yes
ai_will_do = {
factor = 1
}
completion_reward = {
add_political_power = 66
add_war_support = 0.05
unlock_technology = {
technology = "C9979_equip"
technology = "nantex_equip"
}
}
}
Is this ok?
days is not a focus argument and unlock_technology is not an effect
in the near future ill/i will make new units and templates for every nation
aswell as RL Military organization
I followed chat gpt's suggestions and apparently they are unreliable
reading the wiki is 100x times better
how do i make the japaneese divisions not spawn in NK?
continuous_focus_position = { x = 400 y = 2800 }
focus = {
id = CIS_the_sith_plot
icon = GFX_CIS_the_sith_plot-57183
days = 1
x = 13
y = 0
cost = 0.2
available_if_capitulated = yes
ai_will_do = {
factor = 1
}
completion_reward = {
add_political_power = 66
add_war_support = 0.05
set_technology = {
C9979_equip = 1
nantex_equip = 1
vulture_fighter_equip = 1
diamond_equipment = 1
marauder_equipment = 1
}
}
}
so now It should work right?
how can i make japaneese divisions not spawn in korea?
hehe
how do i replace a leader of a country?
am i correct in assuming that if i put this in the default ai strategy file, it will encourage the ai to make carrier fighters and deploy them for any nation that has carriers?
type = unit_ratio
id = cv_fighter
value = 10
enabled {
has_navy_size = {
unit = carrier
size > 0
}
}
}
ai_strategy = {
type = equipment_production_factor
id = cv_fighter
value = 10
enabled {
has_navy_size = {
unit = carrier
size > 0
}
}
}```
(and repeat for carrier naval bombers ofc)
hmmm Who would have thought xd
on game start?
Edit steamapps\common\Hearts of Iron IV\history\units\JAP_1936.txt
Edit their OOB
how to add scenario
common/bookmark folder
me rethinking my life choices after I uninstall and re-install hoi4 and the game doesn't launch
Have you cleared out your Documents/Paradox Interactive/Hearts of Iron IV/ folder of any modding-related folders (maps, history, etc.)?
They'll prevent the game from launching properly otherwise, and that folder isn't cleared when you uninstall the game
I got it working, dw
Oh, good stuff
How do I make the Soviet AI not immediately justify on me after I annex their European states but not the rest?
you dont
figured it out after some time in the SOV's ai code, weird there
is there any way to change the version of the xbox game pass version?
got a few mods i wanna try but can't because they crash since they're made for older versions
damn, that sucks
go in the oob of japan and remove the division thats location is set to that province
you can use tdebug to find out the province id
Just casually spent 2 hours trying to figure out why my localization wasnt working when i put a uppercase I in the file name instead of a lowercase L, bruh momento
common L
hey
Sup
I have a problem, I created an event that should run at the start of the game, and then no longer appear. I put a line in the file on_actions
here it is:
on_startup = {
effect = {
every_country = {
if = {
NOT = {
has_country_flag = opisanije_moda.1_flag
}
country_event = {
id = opisanije_moda.1
}
}
}
}
}
Also, here is the event itself:
country_event = {
id = opisanije_moda.1
title = opisanije_moda.1_t
desc = opisanije_moda.1_d
picture =
is_triggered_only = yes
trigger = {
}
option = {
name = opisanije_moda.1_opt_1
hidden_effect = {
set_country_flag = opisanije_moda.1_flag
}
}
}
The event appears at the start, but the problem is that it repeats an infinite number of times, after about 3-10 days. Please help!
put fire_only_once = yes in your event:
country_event = {
# all stuff before
is_triggered_only = yes
fire_only_once = yes
# rest of your event code below
options = { ... }
}
also remove trigger = { }, you don't need that since you use is_triggered_only
also pls use code blocks because just pasting your code into discord looks ugly and is harder to read
Thanks, God bless you!
I rarely use discord, so I don't know about it, sorry
and what exactly does that have to do with modding?
@quick latch
someone know how i make decisions?
how do i make it so i need a certain amount of manpower and political power to do a focus
@dim bronze @digital stag check the wiki and game files
will do, thanks
how do i make it so you can annex a state through a focus?
do transfer_state = "STATE ID"
in your complete reward
when i do it i cant add any buildings there
wdym
i cannot construct in the state i transfer
a problem with ur game than cuz thats not a problem for me
did the transfer work though
yes
i can construct now
alr
idk what happened before
what country ur doing though
i recommend making a event if it takes a state from a random country where theres refuse = war goal or accept = gives the state
how do i make it so an original countries troops are transferred to my mod countries troops? like if i put a mod country in germany how do i give germanys troops to that mod country on game start
go into the countrys file
and do what
sorry i meant go to history and then countries
in ur code of ur country
add
oob = "GER_1936"
after the set captial
what does it do
JUST DO IT
IT GIVES THE COUNTRY AN OOB/ ARMY
and also not all units will be in your land so u can make a new oob in history units and make your own army
i added the file and i dont have an army
with the #?
go into the oob of the country]
history > units > GER 1936
add a line that goes like this
set province to province id
remove divison_name
its useless
one more thing, do you know how to change a countries ideology through a focus?
remove division_name
and every thing thats in its barracks
set_ruling_party = "IDEOLOGY"
try that
i forgot if it did work
is the location the province?
yes
doesnt work
did u do something like this
set_ruling_party = fascism
yes
oh try this
set_politics = {
ruling_party = fascism
elections_allowed = no
}
it works now
also low party support for that ideology means a event which forces u to become to the old party or a civil war will happen
ive made it so the ideology is above 50% support
alr
is there a way to make a formable through focus?
what exactly do you mean? Formable country like Polish-Lithuanian Commonwealth?
yes
hmm, the solution you want varies, for example Scandinavia would be something like this:
completion_reward = {
set_cosmetic_tag = SCA_UNIFIED
# Norwegian States
110 = { add_core_of = ROOT }
142 = { add_core_of = ROOT }
143 = { add_core_of = ROOT }
144 = { add_core_of = ROOT }
# Swedish States
38 = { add_core_of = ROOT }
124 = { add_core_of = ROOT }
138 = { add_core_of = ROOT }
139 = { add_core_of = ROOT }
140 = { add_core_of = ROOT }
141 = { add_core_of = ROOT }
666 = { add_core_of = ROOT }
# Danish States
37 = { add_core_of = ROOT }
99 = { add_core_of = ROOT }
}
while Greater German Reich is something simple like this:
completion_reward = {
set_cosmetic_tag = GER_greater_german_reich
set_province_name = {
id = 6521
name = "Germania"
}
}
What do you recommend to defeat the Soviet Union using Germany?
hi can someone help me? I need a command to change the leader of the country
max collabs, take Leningrad, Stalingrad and Moscow and the Soviets cap
XXX = { # XXX is the Tag of your country
kill_country_leader = yes
create_country_leader = {
name = "firstName lastName"
desc = "POLITICS_FIRSTNAME_LASTNAME_DESC"
picture = GFX_portrait_TAG_firstName_lastName
ideology = # subideology of the ruling party, for example: stalinism (if the country is communist)
traits = {
# Optional
}
}
}
for the portrait to work go into yourModName\interface, create a file called yourModName_leaders.gfx and open the new file with a text editor of your choice
add the following code:
spriteTypes = {
spriteType = {
name = GFX_portrait_TAG_firstname_lastname
textureFile = gfx\leaders\TAG\portrait_TAG_firstname_lastname.dds
}
}
A spriteType could look like this:
spriteType = {
name = GFX_portrait_SOV_josef_stalin
textureFile = gfx\leaders\SOV\portrait_SOV_josef_stalin.dds
}
but if you already have an existing character that you just want to promote to be the country leader then do this:
XXX = { # XXX is the Tag of your country
kill_country_leader = yes
TAG_firstname_lastname = {
add_country_leader_role = {
promote_leader = yes
country_leader = {
ideology = subideologyOfRulingParty
expire = "1965.1.1.1" # Don't know what this does, everywhere I see this it's 1965.1.1.1
traits = {
# optional
}
}
}
}
}
gl
Wrong channel for this
Just released a 1v1 HoI4 mod I hope you will appreciate.
Idk if my mod idea is good but roughly this is what it would look like I guess?
Ok but what is it
What is the timeline
What is the event that changed to cause this
It’s 1960, some of the leaders might have died but I just picked em as quick as I could and if I can I’ll make an excuse as to why they’d live
Oh so nothing changed, it's just set in 1960?
It’s a multitude of events that I’m still figuring out, I’m going by year and I’m only up to 1930
Alright, just say what the very first event that changed was
1914:
Archduke Franz Ferdinand is assassinated by Gavrilo Princip
Austria-Hungary declares war on Serbia, Russia and Montenegro sides with Serbia, Ottoman Empire, Bulgaria and Italy sides with Austria Hungary. Germany, France and Britain refuse to get involved.
1917:
Austria-Hungary loses the war and is dissolved. Serbia takes control of all the following states (Croatia, Bosnia, Vojvodina, Slovenia, Carinthia, Bulgaria, Istanbul, Trieste). Montenegro decides to unite with Serbia. Serbia renames itself the Illyrian Federation. Russia takes Galicia. Czechiaslovakia, Hungary, and Austria become independent nations.
This is the first main thing that happens
I have more events up until 1930 if you want me to list them?
If you want to list them, but I can already see that the timeline has changed quite a bit
I’ll do it but it’s kinda outdated, I know the Poland timeline at least will have to be changed for the Sanation government cause I chose PSL in this timeline
Actually I forgot I fixed that nvm
1918:
The Czechoslovakian National Socialist Party wins the first election in Czechoslovakia.
Civil Wars break out in both Russia and the Ottoman Empire. An alliance between the Socialist Revolutionaries led by Aleksandar Kerensky and the Social Democratic Party led by Vladimir Lenin is formed intending to overthrow a Tsar and bring forth Democracy (although both have disagreements over this, as Lenin wants a Communist society.)
The Turkish Revolution is led by former Field Marshal and hero of the Ottoman Empire, Mustafa Kemal. He has a populist and progressive conservative platform that unites much of the working class and intellectuals.
1920:
The Polish Peasant Republic declares independence from Russia. Due to the civil war they are met with no resistance. The Polish People’s Party win the incumbent election.
1921:
Inspired by Mustafa Kemal, Reza Khan leads a coup in Iran, becoming Shah and introducing rapid reforms. He maintains a very close relationship with the Kemalists. He later gives himself the last name “Pahlavi”
1922:
Both civil wars end, with the victory of the Reds (also known as Narodniks) in Russia and the now dubbed “Kemalists” of the Republican People’s Party in what is now known as Turkey. Both nations have a friendly relationshop, with Russia now handing over ownership of the Turkish Straits back to Turkey.
1922: (Continued)
Benito Mussolini leads a March on Rome with his blackshirts and other members of the Fasces of Revolutionary Action. The fascist/national syndicalist group are handed over powers by the King who they threatened with violence. They promised to be an alternative to the ever growing communism. He was later forced into exile.
Egypt is granted independence by the UK. Fuad I is proclaimed king.
1923:
Russia is renamed the “Soviet Federation.”
The IRA win the Irish War of Independence against the UK. Michael Collins is elected the leader of the newly formed Irish Free State, under the party Sinn Fein. The IRA still exists as the paramilitary wing of the party.
Illyria forms the Balkan Pact with Turkey. Turkey later declares war on Greece, with Illyria joining.
Billy Hughes’ Australian Labor Party forms a coalition with the Australian Country Party, after taking a more nationalist and agrarian stance in recent years (while maintaining socialism).
Adolf Hitler is arrested for leading a failed coup against the SPD government and is sentenced to 50 years in jail. He succeeds in committing suicide. The Strasser brothers win a power struggle to take over leadership of the NSDAP.
1924:
Vladimir Lenin passes away, lowering tensions in the Narodniks. The Menshevik Faction break a stalemate to become the majority faction. He is replaced as Deputy Premier by Leon Trotsky.
China and the Soviet Federation agree to allow Mongolia to form an independent nation, with the Mongolian People’s Party winning the elections. The Social democratic faction of the party holds a majority. All three countries remain friendly.
An coup backed by the Soviets in Estonia leads to the incorporation of Estonia into the Federation.
1925:
The Balkan Pact defeat Greece. Turkey annexes Izmir and the Greek islands. Illyria incorporates Greece into its federation. Illyria becomes a European power.
Adolf Hitler’s manifesto, Mein Kampf, is suppressed by the authorities in prison.
1926:
Jósef Pilsudski leads a merger of the Polish People’s Party and the Polish Socialist Party. He later becomes Prime Minister of Poland.
António de Oliveira Salazar leads a coup against the government of Portugal, bringing in a corporatist government under his newly formed party, the National Union.
Protests in Mexico lead to a constitutional reform that allows freedom of religion, stopping a possible civil war by Catholic forces. The ruling Mexican Laborist Party gains newfound support from Catholics.
Antanas Smetona becomes president of Lithuania once more after a coup led by his party, the Lithuanian Nationalist Union. The Soviet Federation launch an invasion on Lithuania citing this. The invasion comes to an end when Smetona agrees to join the Soviet Federation, under the condition that he and the Nationalist Union can maintain power in the republic. The invasion was unpopular with members of the Narodniks, however Premier Aleksandar Kerensky and Deputy Premier Leon Trotsky still maintain it was justified.
1927:
“Fascist” members of the Labour Parties begin marches around Britain, led by Sir Oswald Mosley.
Sun Yet-sen is cured from liver cancer. Despite originally being given 10 days to live back in 1925, the treatment was fully successful, and the cancer was eradicated. This can be likely attributed to him following western doctors advice and avoiding Chinese alternative medicine.
Leon Trotsky resigns from the Narodniks, due to “revisionism”, taking most remaining communists with him.
Iraq gains independence from the UK.
(To be continued)
1928:
Chiang Kai Shek’s NRA of the Kuomintang end all warlord resistance within China, unifying it.
Members of the People’s Radical Party, (the ruling party in Monarchist Illyria) led by President Gavrilo Princip, start a riot in parliament that eventually leads to protests in the streets, demanding the Monarchy step back and take a constitutional position. Violence reaches as far as the White Palace itself, the residence of the royal family, forcing King Alexander I to proclaim a constitutional monarchy.
Haile Selassie is proclaimed King of Ethiopia.
Stanley Bruce’s National Liberals win the elections in Australia.
1929:
The Vatican and Italy agree to establishing the Vatican as an independent nation within Rome.
An electoral deadlock in Britain, disappointment in the performance in the Irish-British War plus the recent growing popularity of Fascism due to rally’s from Labour Deputy Leader, Sir Oswald Mosley leads to a fascist revolution. Fighting quickly ends within days, with the British Union of Fascists being formed after taking control of the country. The royal family decides to flee to Scotland, who declared their independence from Britain after Mosley’s victory. The National Party of Scotland win the snap election. Remaining nations apart of the commonwealth all leave the British Empire, besides South Africa. This quickly leads to a revolution in which the African National Congress takes power, destroying apartheid. Mosley decides not to pursue or go to war with any of these nations.
Italy and the new fascist UK form the Stresa Front, a new military alliance.
The Afghan civil war ends with the Khanists winning.
The INC wins the first Indian elections, with Jawaharlal Nehru becoming Prime Minister and Subhas Chandra Bose becoming his Deputy.
1930:
A coup in Argentina committed by the Argentine Patriotic League on the Radical Civil Union (leading party of Argentina) fails.
The SPD narrowly wins government in Germany, after the 1930 elections.
That’s everything so far
Strasserists will get in power in Germany next
The situation is desperate, Germany is on the brink of defeat being pushed on all sides.
BUT WAIT, WHO IS THAT!? IT'S STEINER FROM THE TOP ROPE!
RKO OUT OF NOWHERE AND HE IS READY TO DO THE ULTIMATE COUNTERATTACK OF WW2!
But in HOI4 Multiplayer, this is the biggest comeback you have seen from Germany in Hearts of Iron 4!
This game might as well...
does anyone know the mod used in this video
and some good multiplayer mods
historical
LW
You have a space in the desc line between Von and Stauffenberg
oh shit thanks
No prob
do you know how to give him bonuses?
Like traits?
yeah
I assume it would be the same as the coding for Hitler’s traits, just change the Hitler’s name to von Auffenburg and then find the name of the traits you want in the traits file
thats it?
link?
no my hands are broken
my condolences
Yep should be
Anything happening with Australia? :)
Ah wtf is that formating
Do it like this
focus = {
# all this before
ai_will_do = {
factor = 10
}
completion_reward = {
# Your reward here
}
}
Not this:
focus = {
# all this before
ai_will_do = {
factor = 10
}
completion_reward = {
# Your reward here
}
}
Also here you're missing a "}"
i alredy fixed that
Also also pls put prerequisite in one line and not just the ending bracket in a second one
that way works
but i will change that
Of course it works, but it's not easily readable and looks bad
and I still have no idea why I don't see those goals except the first one
its works now
thanks dude
Use relative_position = focusID and the the position to x = 0 and y = 1 to have positioning a bit easier
@pale sparrow you work on rt56 right? ive found a bug where as you annex cuba as monarchist honduras you dont get cores besides the focus stating you do
Im busy rn, if you dont mind report it in our server instead
oh right you got a Server
Planning on having Jack Lang (my fav ever politician) lead the country, and having Bob Katter snr in the opposition
Hm, interesting to see how the Lang Plan will affect Australia as a whole
What is "legacy id" ?
is there any mod like primo victoria but that doesn't require the dlcs?
why wont the focus show up?
y coord
So how do i fix it
???
make the y coord not negative
but the other one is negative and it shows
then you did something wrong, focus coords are never supposed to be negative.
Positive numbers makes a focus appear lower in the focus tree and negative numbers makes one appear higher
so what did i do wrong
.
show me
prerequisite must exist also
it does wdym
afaik you can actually push focuses below 0 for the X-axis, and it pushes them all to the right, idk about y
CRU_abolish_the_monarchy must be correctly configured, as the focuses that require it will otherwise hide
is this configured right
is it fitting to make an universal basic income law/policy (as an idea) give off communism drift ?
how?
yes
lines dont matter, only brackets
if you wanted you could have the entire file in 1 line, its just a matter of readability
welp seems like i missed the activity
im still gonna ask for help tho
im tryna change some parts in the greek focus tree and i wanna make it so king george the 2nd of greece becomes a general
in theory, this should make him available.?
\
(please ping me if you find any errors or you are responding to me)
I shan't 🧐
whaaat why not :c
Whats road to 56
The road just before the road to 57, but after the road to 55
wise words spoken by a wise man.
Then you take a detour onto the highway to hell
got a link?
In all seriousness though, it's a neat mod
I'm not personally big on the expanded tech tree, since I personally finish most of my games before 1945
But different strokes and different folks and all that
It does a lot of things that I wish the base game did though, like have Slovakia be a releasable tag outside of Germany making it one
Looks like alota content
how do i make a focus add popularity to a specific party, like non-alligned?
lol me wanting to add new focuses and tech with my mod will never amount to anything even close to that
In your case: ideology = neutrality
alright thank you
does anyone know how to see another mod's files? so for example, if i wanted to see kaiserreich's mod files, what do i see to get a peak of that?
in your launcher when you hover over a mod theres the 3 dots and you can click show in folder in the little drop down menu to see the mods files
why does cold war iron curtain have so many things to research but only 4 research slots for SU?
version="v1.12.2.9"
tags={
"Map"
"National Focuses"
"Technologies"
"Gameplay"
}
name="Independant Koreas"
supported_version="1.12.11"
remote_file_id="2959139285"
what do i do with remote file id
its the ID of the Steam page
If you upload a mod with a remote_file_id it updates it
whats the european union color code? (rgb)
{ 0 51 153 }
is it the rgb
yes
it made it black
So this in theory SHOULD make it so when "Compromise with the monarchist" focus is completed, a general by the name "George II" shall appear.
I made it so George II would have 2 additional portraits, one in army and one for being the byzantine emperor, yet for some reason it is not really working and George II isn't really becoming a general in the greek army.
Whoever Wants a Modding Job or to help DM Me so my Boss/Colleagues in The Great War: AML, can Start Our Mod Process
i set yugo ai to do this
but it keeps doing its vanilla focus path i think
or random
i dont even know
i checked and all the focus tags i use are correct when i hover over each focus in debug
i redid a ton of ai focus orders and none of them work
i have no idea why
i put it in the ai_strategy_plans folder under common
True heavenly graphics my friend
its j a shitty steam screenshot
it doesnt capture my 144htz, 2800xwhateverthefuck resolution my monitor is and my 2060RTX graphics
A screenshot being 144htz 🤔
Your GPU doesn't really matter when it's a still image
any mods to enable achievements without checks? just like Achieve It! in Cities: Skylines but HOI4 version
no
:(
#Communism
focus = {
id = DPR_communism
icon = GFX_DPR_communism-426
x = 6
y = 1
cost = 5
search_filters = {
FOCUS_FILTER_POLITICAL
}
prerequisite = { focus = DPR_political_effort }
completion_reward = {
add_popularity = {
ideology = communism
popularity = +1.4
}
idk if it will add communism
is it communism or communist
same here
#Democracy
focus = {
id = DPR_democracy
icon = GFX_DPR_democracy-427
x = 8
y = 1
search_filters = {
FOCUS_FILTER_POLITICAL
}
prerequisite = { focus = DPR_political_effort }
completion_reward = {
add_popularity = {
ideology = democracy
popularity = +1.4
}
aaaaaaaaaaaaaaaaaaaaaaaaand these
#Facism
focus = {
id = DPR_facism
icon = GFX_DPR_facism-262105
x = 10
y = 1
cost = 5
search_filters = {
FOCUS_FILTER_POLITICAL
}
prerequisite = { focus = DPR_political_effort }
completion_reward = {
add_popularity = {
ideology = fascism
popularity = +1.4
}
}
}
#Neutrality
focus = {
id = DPR_neutrality
icon = GFX_goal_generic_neutrality_focus
x = 12
y = 1
cost = 5
search_filters = {
FOCUS_FILTER_POLITICAL
}
prerequisite = { focus = DPR_political_effort }
completion_reward = {
add_popularity = {
ideology = neutral
popularity = +1.4
}
tell me if they are correct ideology's
i wish i knew how to code lol
1,4 is adding 140 boost
@thick pumice fact or cap
I want to have military police add compliance gain for garrisons, can someone help me?
Ideologies are: neutrality, democratic, communism and fascism
Also tf is that long number at the end of the icon?
Also also it's add_party_popularity and popularity needs to be between 0 and 1 (for example: 0.1 = 10%)
Also also also no + in front of the value (you can do it but don't need to)
Like a modifier for faster gain speed?
Ah, haven't done anything with compliance / resistance and could only help in a day
sry
Hello, I am a first time modder and I am attempting to setup a shine for a new focus tree for brazil, however I keep getting this error: [17:54:18][texturehandler.cpp:216]: Couldn't find texture file: 'gfx/interface/goals/focus_BRA_keeping_our_ways' and my focus does not show up when I complete it. Thanks for the help.
I have this defined as it works for the base GFX. (Precompletion/Focus Active)
Watch The Iron Workshop's video on creating focus trees, he talks about the focus shine
do you need to add file type?
Damn
name = "focus_BRA_keeping_our_ways_shine"
texturefile = "gfx/interface/goals/focus_BRA_keeping_our_ways.dds"
effectFile = "gfx/FX/buttonstate.lua"
animation = {
animationmaskfile = "gfx/interface/goals/focus_BRA_keeping_our_ways.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_BRA_keeping_our_ways.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
}```
I have all .dds defined that need defining.
You normally shouldn't need to
Hm okay I'll try removing .dds.
(if not creating custom shine)
You restarted the game?
I just did the reload command, I'll reboot game now.
When handling textures it's advised to restart the game
I did focus trees too one time and followed The Iron Workshop's video, but didn't have this issue
I don't know what it means by [18:01:01][texturehandler.cpp:216]: Couldn't find texture file: 'gfx/interface/goals/focus_BRA_keeping_our_ways'
is it actually called that
It's named gfx/interface/goals/focus_BRA_keeping_our_ways.dds'
I've tried it with and without .dds
Can't help much more sry
in your file explorer also?
i was right
Damn
Does Cold War Iron Curtain: A World Divided have JFK?
Hi, need some help
followed a tutorial online, and this was supose to appear
It didn't
Can anyone help me? thank you
I want to have military police add compliance gain for garrisons, can someone help me?
i keep getting an error which says that the "Character does not exist" even though i've clearly added it to my mod.
Excluding icons, does this look alright?
sure it looks alright
Does mutually exclusive not use the icon anymore?
Or is it half the dotted line that get's filled?
there should be an icon there
it should look smth like this
so in your instance
it should be in both
BRA_invest_in_the_civillians
and
BRA_invest_in_the_millitary
so basically in order for "mutually_exclusive" to work you must place it in both of your focuses
focus = {
id = BRA_invest_in_the_civillians
icon = focus_BRA_keeping_our_ways
#prerequisite = { }
x = 0
y = 1
relative_position_id = BRA_freedom_for_the_people
prerequisite = ( focus = BRA_freedom_for_the_people )
mutually_exclusive = ( focus = BRA_invest_in_the_military )
cost = 10
ai_will_do = {
factor = 1
modifier = {
has_completed = BRA_freedom_for_the_people
}
}
available = {
}
bypass = {
}
cancel_if_invalid = yes
continue_if_invalid = no
available_if_capitulated = no
completion_reward = {
add_political_power = 100
}
}
}
focus = {
id = BRA_invest_in_the_military
icon = focus_BRA_keeping_our_ways
#prerequisite = { }
x = 0
y = 1
relative_position_id = BRA_trust_in_the_citizens
prerequisite = ( focus = BRA_trust_in_the_citizens )
mutually_exclusive = ( focus = BRA_invest_in_the_civillians )
cost = 10
ai_will_do = {
factor = 1
modifier = {
has_completed = BRA_trust_in_the_citizens
}
}
available = {
}
bypass = {
}
cancel_if_invalid = yes
continue_if_invalid = no
available_if_capitulated = no
completion_reward = {
add_political_power = 100
}
}
}
}
}
shouldn't it be focus_BRA_invest_in_the_military
no
i have no idea what i'm talking about
im bored and i wanna do portraits and icons for mod makers
can i have the prerequisite codes for both of your 2 stuff?
is it free?
cause im broke
yeah
can you make an advisor icon with a specific portrait i can send you?
ok
an image?
im also experimenting with mods
those graphics are sick ngl
the freedom for the people is like
"freedom_for_the_people" right?
make Brazil bigger
yes
and "trust_in_the_citizens" is the same?
Make brazil huge
the syntax and name corrolate
im enhancing the forgotton countries
not OP'ing them.
im making them fun to play
not op
Oh ok that's fun too!
:D
Are you going to do that for the other south american countries?
ye
one minute
@spark flax i think i have found your little problem
m?
it was a random }
between the code
and it was confusing your mod with thinking that was the end
oh weird
shoots
