#modding
1 messages ยท Page 90 of 1
I legally cannot share pirated sites ๐
1.16 and above
1.16.1??
How do I make an OOB appear in an event for a specific country ?
You know what, I have been adding victory points everywhere while modding
And looking through vanilla to see what's changed after the recent patch makes me appreciate just how few are in the base game
Why do negative army modifiers (like speed or attack) not work through decisions? army_speed_factor doesn't seem to increase/decrease the speed
specially when applied to other nations
If you want another country to apply modifiers like to another country, it might be better to just give them a timed idea that follows the amount of time the decision is active for
So for example
France does decision "UK Navy bad" which lasts for 180 days
UK then gets a timed idea that lasts for 180 days, which then has debuffs
Said idea and decision end at the same time, making them effectively tied
yeah, but how strange. Even after adding an idea with army_speed_factor = 100 to another nation, it seems like it doesn't even work.
are there any mods that flesh out post WWII content?
I'm not talking about cold war mods that start years after
Road to 56
Theres more techs, Germany occupation stuff, cold war focuses for USSR/USA/Italy/PRC/Czechoslovakia and Iran
C:\Program Files (x86)\Steam\steamapps\workshop\content\394360\[mod steam id]
you have to add to every law other than free trade
it is better to add country flag like trade_law_blocked_at_game_start and add it to countries you don't want them to have diferent trade law
In nugde tool the map works but in game it crashes
without the bmp it works fine
(without the province.bmp)
nvm I fixed it
whats wrong with this code it crashes my game
@wanton holly
Looks correct at first glance
Been wondering how can I make a map "UI" mod. By that I mean change the opacity of colors, fonts, remove fog of war effect, remove shaders or the sun glare on the sea etc. Is there a hoi4 wiki page for this ?
Guys how I can start moding the game
https://hoi4.paradoxwikis.com/Triggers
has_country_leader needs a country scope
Look through base game files and figure out how other files structure similar events
Though, there are other errors with your code, but you'll figure that out quickly enough
Yeah the event is firing at game start
I canT seen to fix that
How do i fix the state part?
RUS = {
has_country_leader = {
character = xyz
}
}
O thanks
@spring pivot Question: why are you hardcoding names? Why not use loc_key?
For the event names is just easier to put then in the event
Also with the state is controlled by trigger, what is the problem? i have a event with the same structure but with russia owning the state and it works fine
why doesn't my code for ideas work? it keeps telling me the idea is invalid;
national focus txt:
focus_tree = {
id = anatolian_focus
country = {
factor = 0
modifier = {
add = 10
tag = ATL
}
}
default = no
continuous_focus_position = { x = 50 y = 2000 }
focus = {
id = ATL_foundation_of_the_anatolian_state
icon = GFX_goal_generic_major_war
x = 10
y = 1
#relative_position_id = AST_empower_the_workers
available = {}
bypass = {}
cost = 2
#prerequisite = { focus = AST_workers_paradise }
cancel_if_invalid = yes
continue_if_invalid = no
available_if_capitulated = no
completion_reward = {
add_ideas = foundation_is_set
add_political_power = 100
}
ai_will_do = {
factor = 1
modifier = {
}
}
}
}
idea txt:
ideas = {
country = {
foundation_is_set = {
picture = idea_foundation
allowed = {}
available = {}
cancel = {}
allowed_civil_war = {
always = yes
}
modifier = {
local_resources_factor = 0.40
stability_weekly_factor = 0.10
political_power_factor = 0.10
}
}
}
}
its hard to se without the color coding o VSCode what is wrong
but here is one idea i did that works fine, maybe try to copy the structure if its the ideia part that is invalid
how do i activate the colors in vsc?
I downloaded the paradox synthax
do ctrl + shift + X
and search for paradox highlight
is a life saver
How i make a general unavaibale at game start? i want him to be unlocked by a event
am i stupid? i installed it but theres still no colors
try this one
Not really
basic synthax appears to be right
with everyrting closed
weird
What exactly happens in game?
Maybe the modifiers are wrong
this is my error log and for the focus it says "add ." instead of the idea name
i triple checked them already ://
seem to be fine
try to clean the code
wdym
like your event has a lot of stuff empty
which mine doesnt have
allowed = {}
available = {}
cancel = {}
like this
i deleted all of that now and followed your layout but still faulty
.
o yeah
try to use copilot maybe
most time it murders your code
but the explain function is kinda helpfull sometimes
lmao alright thanks still
O if the problem is with add
maybe the problem is the focus tree part
make a simple event that adds the ideia
and test it
if it works being added by an event them the problem is in the focus code
my event code
I cant seem to find any problem with the idea code everything is closed right
lol what was the problem?
Like the only times it helped me right was with stupid things like this
is there a list for modifiers for focuses directly? because most modifiers only work for ideas and not for the focuses
how do i fix this?
What are the best mods for less lag as the game progresses?
how i make events that only happen if a previous one fired?
Need some help
Made a subtech of improved infantry weapons, and I added the generic infantry weapons 2 dds as its icon
its reading the file but its display is screwed up
this is what my mod's technologies.gfx looks like
spriteTypes = {
SpriteType = {
name = "GFX_austerity_infantry_weapons_medium"
texturefile = "gfx/interface/technologies/austerity_infantry_equipment_1.dds"
}
SpriteType = {
name = "GFX_austerity_infantry_equipment_1_medium"
texturefile = "gfx/interface/technologies/austerity_infantry_equipment_1.dds"
}
zamn that's funky
this is what my technologies folder holding the dds looks like
i was gonna ask what this bit of code does, specifically the part in the "OR" block
im copying code from the base game and i dont know what this does, i think it's just checking a list of states
but im not sure
my code for the technology I added
and for the equipment it unlocks
what did i do wrong
Why the game is saiyng that the event doesnt exist
look at the line it mention and check for missing value and bracket.
don't put your value in next line unless it is explicitly plural (like "add_ideas" in above example)
you added namespace at the top right?
yup
All my other events are working
this one is dead
you can
Let me try to change the options to loc
Documents\Paradox Interactive\Hearts of Iron IV\logs\error.log
thanks
search for file name. I think windows inbuilt notepad doesn't have word wrap search enabled by default, remember to enable it
real
that i cant find mine
Man even with the error log i cant make sense of this
but thanks
error log helped me in other events
if anyone can help this is the final code i am trying (also yes you dont need to put option names in loc and events work fine)
OR = {
has_government = totalist
has_government = radical_socialist
}
remember to fix back the picture line before you test it
chatgpt cannot phrase hoi4 doc real
Nevermind, fixed it.
I put my gfx file in the wrong place
chat how do i fix this
errors
what did you change?
nothing from the original post
what is "original pos"?
Hey guys I'm stumped by something again
I added this so that the new subtech I added would have a unique icon for the UK, but it just makes it invisible ingame
look nothing wrong. I mispelt file name last week and got same problem lmao
were you able to fix it?
just fix the spelling? xd
I mispelt my file name so it didn't work
did you actually save your dds in gimp/paint net/photoshop? not rename the last three letter right?
does someone know how to solve the error? 1742716011.pr (1)
why isnt the country name showing
see the wiki on country creation
Hey! I'm making a small czechoslovakia focus tree rework, and I'm trying to make CZE the owner of sudetenland. How do i do that?
in like the completion reward sector
what commands do i have to use?
how would i go about adding a time requirement for a focus?
i dont know what tag to use and dont know of a focus that has it
available = { date > 2025.03.23 }
date < also work and you get it
does somebody know an answer to this question?
Those R56 have any plans to improve its AI?
yo how do i make a national spirit slider like in ww1 mod
(when you have many national spirits instead of them becoming smaller all of them are on a line but u gotta scroll)
I'm pretty sure that's how it used to be in vanilla way back but then it got changed
Like that?
FIN = {
OR = {
...
}
}
or = tell the game it triggers whether one of them is corect
try it
noted
how about you copy over already working events and just copy each code over
and yeah remove the event first if you do that
Yeah i cant seen to find a event that do that i need
what pisses me off is that the event at least should be fired by console
even if my effects are wrong
I hope that was the problem
will test now
Maybe i need to have the kaiserreich ideologies in my files
i put my mod as dependant on Kaiserreich, but maybe the game doesnt get that?
or i am grasping at straws and this is madness
did you put your kaiserreich as dependent in descriptor file?
real I mispelt a word three times
yup
Hi, I have a problem creating a mod. I made a map in MapGen, added the mod to the folder, started with it, and my game crashed. What could be the problem? Here are the logs:
God this event is driving me mad
I gonna sleep good luck fixing the mod
Btw make sure the modname.mod file outside also have dependencies added
thanks
Both have
how do i fix this
i have all the code and info for these 2 states in the folders history//states but it doesnt work
nvm i forgot about a few brackets, or misplaced them
if anyone wants to give feedback for a new zealand mod (don't ask why) dm me, i lwk need suggestions ๐ญ
how do i make this focus tree visible to both Belgium and Luxemburg?
i guess i can just copy the code and post it in the belgian focus tree
Hi someone know where I can find the assets from the game like the divs symbols?
Most graphic assets are in gfx folder
once again i am stumped by something and once again i'll probably be ignored and come across some solution by myself tomorrow
trying to replace the art for prc_advanced_infantry_weapons.dds, and no matter what I do it still shows the old one instead.
i have it right here where it should be, named exactly how it should be
i did the exact same thing with chi_advanced_infantry_weapons.dds and it worked.
but for PRC it just wants to have the old one.
I even attempted to force it to load the one I want by adding it tomy technologies.gfx file by copying it directly from the waking the tiger DLC's technologies.gfx file and replacing the texturefile path to the dds that I want it to load, but that didnt work.
yea it was 2 years ago
but then how come TWR and TGW managed to keep it
i cant find it anywhere in files
trust me i read everything im just too dumb for most advanced modding
What i need to do??
does anyone know a mod for the napoleonic wars?
how and where do i add building slots in this code?
you have to add a state_categorx
you add it under the state like
state_category=town
choose which ever you want
consider removing the ""
in the game files which are in steamapps
\steamapps\common\Hearts of Iron IV
consider using shared focus trees like used in the baltics
Idk how to do thats why I asked
I looked into that focus tree btw
ill look into it
Do yall by any chance know why the ai sometimes doesn't switch their equipment for new one? Germany has a new fighter model designed but still for some reason produces the old one
They are in the middle of the Air war currently
is someone capable to help me fix my mod
hey, me and some other people are currently creating a modern day mod and were desperatly in need of some writers
it doesnt matter of you never did that job before, we all are new ourselfs :P
any mods that change(hopefully improve) the focus tree of Japan and USA?
There is a decent US one that ISP showed not long ago
in the mod road to 56, uruguay has this. what is a deadlock
basically if no one receives a majority
or smth
idk
does anyone know whats causing my game to crash? it was working perfectly fine until I uploaded it to the workshop
have you tried to rename the file to something name instead
like prc_advanced_infantry_weapons_new.dds
I think paradox games have problem dealing with file with same name sometimes
just make small entry same size as large one, lol (vanilla vs great war code)
I guess great war doesn't have scroll bar but you can just add verticalScrollbar to do it
i play with a mod called VNR and there is a issue with the generic ship names, VNR base on historcal desing with Class names, so the isue here is everytime the player changes the name of the preset desing of the ship, where the ia goes againg in preset the you have the generic names again.
Advisors bug how to fix?
Okay so I have a problem with the country view screen( where you hire your advisors, change laws, upgrade MIOs etc.). The problem is that if I put same advisor slot types( so for example theorist ) in different rows then when I hire an advisor for one of these slots it hires the said advisor for both slots in different rows, now if the advisor slots are in the same row that bug doesn't happen, does anyone know what might be causing the issue?
have you tried to ask in vnr discord (and workshop comment section is open too and the dev quite active at answering questions)
if you use compatch ask in compatch workshop page instead (unless it is not open)
yeah the say that the issue with the names changes in ship with no major is due to something with the IA, for example if you try to have as Canada the Ottawa Class ( a F/G/H/I class vatiation) every time the ia actualize using preset the name changes
I don't really understand what you're trying to say, sorry
well what im trying to say if you want to roleplay history and change the standart names form the Ship (Advance crusiers,...) for less powerfull minors when the IA use the Preset the name goes Actually back to the standart name, forcing the player to check and change the name againg and is tedius. Also to notice that most Commowealth desing where brithis with slight name changes. a halfsolution will be a way to save the name.
theres like 60 copies of the error "Asking if SWI is a neighbor of other country tag before the latter country is initialized (or otherwise has no neighbors)." in my error log
nvm its like 100
Air production just stop existing due to factory efficiency, when they have dispersed factory, efficiency is higher and they change it sooner, but with concentrated and during war they wait for long.
how do i add my modded country to the country selection menu / what is the file and path?
Common/Bookmarks, there's a really good Iron Workshop video tutorial on how to add it.
thank you :)
Why is the event not giving me the options? i have everything in the LOC done and the game just gives me the generic "ok"
Modding states and modding focus trees >>> moding history files and modding events
got a question where do i find the files regarding to the nations decisions that pop up, like vichy france decision on germany when you cap france specifically
sorry for late reply but where to add it
like in those lines just
verticalScrollbar = yes
aw hell na it crashed after i changed it
verticalScrollbar = "right_vertical_slider"
That days shouldnt be there
what the hell is this error
I believe its unfixable
damn
im not a pro but i think orderscommand.cpp failed to create orders group
well it is something about the army group or
will be modding and making an Albanian mod, and i plan to put alot of effort in it
I will need some help from someone if possible to ask questions. I'd be very appreciative!
cuz i was testing polish-soviet scripted peace deal
Actually its easily fixed
dont believe marijn
let me ask chat gpt
in the meantime what am i missing here, in the start menu it says soviet union has "no commander", no leader, since i removed stalin (its 1920) and i wanted to add lenin
i have the picture, i put this in the spritetype
it seems you cannot add scroll bar to national sprit gui, unless you find a mod that does it I can check code on lol
damn thanks for help anyway i learned something
very kewl what did he say
the problem is the container contains all elements next to national spirit (an exemption is the party pie which has its own container so you can make it scrollable), so you it will try to scroll all shit at the same time
NVM
FOUND IT
i completely forgot about a folder when i started the mod
The error message in Hearts of Iron IV (Failed to create orders group) usually happens due to one of the following reasons:
Possible Causes:
- Mod Conflict โ If you're using mods, one of them might be causing an issue. Try disabling mods and see if the issue persists.
- Corrupted Game Files โ The game files might be corrupted. Try verifying the integrity of game files via Steam:
- Right-click Hearts of Iron IV in Steam
- Click Properties โ Installed Files
- Click Verify integrity of game files
- Outdated or Incorrect Game Version โ If youโre using an outdated or beta version of the game, it may cause issues.
- Permissions Issue โ If the game lacks permission to write files, try running it as an administrator.
- Bug in the Game โ Some patches introduce new bugs. Check the official Paradox Interactive forums or Steam discussions to see if other players have reported similar issues.
Possible Fixes:
- Restart the game and your PC.
- Disable all mods and test.
- Verify game files on Steam.
- Try a clean reinstall of the game.
If the issue persists, could you provide more details? Are you using mods? When did the error start occurring?
see
quite useless imo
it didn't know the context that he is making a mod
very useless
I don't think Lenin has a heart of steel
Wait...
Steel is like iron
Heart of iron
wow ๐คฏ
๐ฑ
its a hoi4 reference
WTFFFFFFF
YOOO
bro discovered nuclear bomb
The true hoi4 is the Stalins we made along the way
mustache man #2
Yes.
there's 2 mustache mans wait whay
There's two moustaches and one bald
Hiler and Schmitler
since when is stalin bald
2 mustachemen and 1 baldmen
YES
please go ethiopia yourself in 1936
Yes.
suck UKs dicck?
HUUUU
justify war goal annex eerything
its okay i will guarantee your independence anyway
i think an improve relations will do
right..?
+100 (-2/month)
this lenin portrait
wheres waldo ahh lenin
idk if i should create country leader or recruit him as a character
what kind of mod are you trying to make
1920 SlavicRedux
in short ww1 went the same but the slavs had alot of problems
the main characters for now are poland, Soviet, and White Russia in siberia
Is there something that makes congo automatically spawn in
cause
they dont own those states in my mod files
but whenever I load up the game they are suddenly there
anyone know why this is happening?
In these states files there is line of code to give it to Congo
thanks a bunch!
can someone help me where i find the event to make vichy france as germany?
like i cant seem to find it in the event folders for germany
but i can find the option for france to pick out if he goes vichy or free france
thats what it is
the france events are where germany gets it
also
this is the first time ive gotten this error
no styles scripted...
thanks
anyone know what this is
nah g im sorry
what is the differnce between the great war and the redux version?
hello people, i would like to ask for advice on how to fix my mod, since after i published it to test it, the contents of the mod dont show up
the redux is probably a more refined, edited, and finished mod
i think i found the root of the problem
how do i make pookie have less numbers
Fix errors
does converting a png to a tga file make it unusable as a country flag?
I got my 3 sizes of flag, all named as the country tag, gfx folder is in the right place
here is the large
What if i pirated all dlcโs and the most errors are from there
Fixed that, still the event options dont appear
Jesus i dont know why but every event that i am doing with the trigger involving having certain characters is going kaput
i dont know if i am writing the effects wrong or something
bruh
now option B is showing but not option A
you do know has_character means the character exists and not the character is hired?
Yes
the character existis somewhere already
i dont know really how
but copilot fixed
so it was monkey synthax that made then invalid
but now its the option thing that is killing me
Also is this how i transfer characters?
why the event is only giving the effect if i trigger it while playing as Finland and not while playing as Russia, also he is not being demoted when he gets into russia
the character = inside the hidden effect is wrong
and, if you transfer the leader you can possibly no longer scope into him, forgot if thats the case
How do i fix that?
So this should fix that?
If youre transferring him, makes more sense to do the effects to him before you transfer him
so now i need the event to set the character as availabe to Finlad and at the same time transfer him
Afaik, I forgot if it actually matters whether you have the character on your scope
Yeah but its a kaiserreich submod so i dont want to mess with finland events
if possible
will see if i can work around by making the event affect finland also
Maybe something like this will work
Is there a mod that adds the navy task-force system to the army?
Like, the automatic reinforcement and saving task-force compositions that you can do with navy would be pretty neat with the army.
Same with the "split into balanced groups" button, that would be neat too.
-# i am in no way a modder just some guy asking to see if anyone knows of a mod that's this or similar
God i give up on character transfers, i solved my problem in the most monkey way possible
Are allowed to advertise mods here
I believe thats not the intention
unless someone asks for like mod suggestions
All good just wanted clarification
If i want a event to change the name and flag of a country, do i need to have that country history in my files? Or i can have only the things i want to add up to it
no
you just need a new cosmetic flag
do you wanna change it to something existing or new
for some reason the game crashes when I add a 1023rd state
how did you add it
manually without the nudger
it worked for other states
funnily enough it doesnt work if i use the nudger
look into the mod files and send a screenshot
the state file should be in the /documents file in paradox
i dont have the paradox extention thingie so dont question why it looks like that
i see
but tell me how many states the original game has
and if the id are clashing/provincea
New
no you have to make the state exactly the next id
or the game will crash
yes
i already looked in the error log and there's not a single mention of that state
okay than are you sure this state is the problem?
ok
i also forgot to mention something important
the game only crashes when I try to start a run
so i can still access things like the nudger
the nudger also cant find any problems
it works just fine without any changes
add the things 1 by one
youll find the proboem lke this
alr
you found it?
ye
where was it?
does anyone know why my friends games seas other version when they launch the game with road to 56 and mine doesn't, so we can only play vanilla?
try to redownload the mod, maybe it didnt update itself for some reason. This usually fixes it
Hi all, what is the name of the mod where you can put more than 15 military factories to produce gear? For example, put 100 factories for airplanes
I can help if you don't mind,you can kindly inbox me I can be of help
Bruh, why i this event is invalid. All my other events are working and events with owned states are working, but this one is not firing
After a certain patch everyone can do that, without mods
Check the error log
i cant make sense of this
it doesnt seem to have anything broken between 365 and 388. Its probably some really dumb synthax error, this game drives me insane sometimes
Unexpected token is almost always a typo/bracket error
You go to the first error of that type, and the line it mentions or the line before should have the issue
rip
If the event above this one is broken will this one be broken too?
JESUS CHRIST ONE EVENT HAD [ INSTEAD OF { AND BROKE EVERYTHING AFTER IT
playing kaiserreich, anyone know why I have no supply in france even though all my allies do?
we're all at war with the union of britain so we should all theoretically have supply or no supply
trying to rebuild my navy but getting green waters has no effect on my supply issue
they all get supply in ireland just fine
I assume this is a hoi4 issue and not a kaiserreich issue
or it could be a me issue
Is it possible to create an modifier that i can just put in like this for the effects to occur?
add_state_modifier = { my_modifier }
or at least something similar so i only have to change the modifier itself and not needing to edit in in every state it is in
Anyone know a mod that adds Mussolini like missions to other countries or expands the italian missions?
how to do it? i changed the max_military_factories parameter in the game files for self_propelled_super_heavy_artillery_equipment, but it didn't help, for super heavy artillery i can only put 5 factories
Does anyone know any mods that reduce focus times to likeโฆvery fast?
No, unless you go into the mod files and change them yourself.
Yeh theres a few that speed up focuses
Came you named them? The only one I have found is one that cuts the focus time in half, Iโm looking for an even faster one.
Sorry I only know of those
Is there any code that exists that changes the way country names are displayed?
Or are country names forever funky because of the smaller map size
Okay, thanks.
Iโm having a bit of trouble with the portraits, does anyone know of a tutorial for them?
Also, if I make a mod will it be compatible with other mods?
Sorry probably rookie questions Iโm new to modding๐ญ
Depends what files you change
That depends completely what mod youre comparing to
Road to 56?
I'm trying to give cuba a national focus tree and for some reason, whenever I open the national focus screen, it crashes
also my localization file isn't working
and I can't seem to modify history files to add starting national focuses
these are my localization and focus tree files, I know the issue must be in one of them
my history file is the exact same as cuba's vanilla history file except with elections turned off by default and this line:
add_idea = CUB_unstable_government
ideas = {
country = {
CUB_unstable_government = {
picture = generic_disjointed_gov
modifier = {
stability_factor = -0.2
political_power_cost = 0.3
drift_defence_factor = -0.5
}
}
}
}
which is defined like this
ok as it turns out:
add_ideais not a valid function, onlyadd_ideasis, which makes the fact that the base game tries to call it concerning- I defined relative position wrongly
ok even when fixing all of these the game STILL crashes
the idea does show up though but its name localisation isn't there
oh my localisation file is in the wrong encoding
the crash is an EXCEPTION_ACCESS_VIOLATION that is occurring in PHYSFS_swapULE64 but I don't know how that has anything to do with the changes i made
What mod helps with the issue that AI spams millions of planes, making any sort of air superiority (no matter the technology) or AA ineffective
There are plenty of mods for division caps, but planes are more annoying than the divisions
It gets so bad 20 years in the game, that it doesnt matter if you have 3,000 planes in the air
what should I do if the game crashes because it believes that there is no one province?
Error: "Malformed token: 5287, near line: 5" in file: "history/states/1499-Dorset.txt" near line: 7
fixed
.
can someone help me with interpreting the code for the likelyhood of an event?
its about the "Carve up the congo" Focus in the german alt history branch. its in WUW_Germany.txt ; i want the congo or the Uk to decline the offer, but i dont know how i can achieve that, they only declined it once in my tries and i cant figure out why
According to the event code, they have an AI chance of 75 to accept that event if it fires, multiplied by 2 if their opinion is greater than 55, and divded by 50 if you've caused at least 30% world tension
Meanwhile, their AI chance for refusal is 25, divided by 2 if their opinion is greater than 55
You want refusal to be higher than acceptance
But I believe relative army strength also plays a factor in this sort of decision making, though I don't know how
ใ๏ผใ(๏ผยดโฉ๏ฝ๏ผ)ใ๏ผใ
Side note: they left this cool emote in the comments for the event refusal code
So Iยดm trying to code a focus to my country. Iยดm following the tutorial step by step. The code is the same as in tutorial, but the problem is that the focus doesnยดt show up. Iยดm new to this, so I donยดt see any error with it.
I would appreciate any answer thatยดs going to be fast.
Remove everything from the focus block from available onwards
Add things back until you find what's causing the focus to disappear
Thank you!!! It worked on the first time.
Just for future reference, don't copy code that obviously only works in another focus tree and expect it to work
๐
thanks a lot ^^
does anyone know what this means? it keeps crashing my game
[20:26:30][1936.01.01.12][containerwindow.cpp:842]: interface/frontendmainview.gui(line 280): Could not find "subscription_size" in window "mainmenu_panel_bottom".
it only crashes once I start the mod senario
I HAVE FOUND THE PROBLEM
somehow, checking for the current national leader is a specific guy in focus conditions doesn't work
never mind it wasn't that
somehow, set_politics is the problem
is this not a correct call?
set_politics = {
elections_allowed = yes
}
Hey guys
hi
why the hell is the history of cuba so hard to find sources on I'm trying to make a historically accurate mod here but can't find very much about said history
Been there
there's one guy where every documented thing he did has at least one source saying it was actually started a few years earlier when he was not in power
For those who like total conversions, Second Sengoku updated recently. We even have a trailer! Which means that it must be good, right?
Second Sengoku is an alt-history mod focused on a balkanized Japan.
https://www.youtube.com/watch?v=KhOZpuAQcVs
A complete description of the update here:
https://www.reddit.com/r/hoi4/comments/1jn2xir/second_sengoku_update_the_great_navigators/
THE GREAT NAVIGATORS
After a long time and lots of work, the newest "DLC" for Second Sengoku is ready! The Great Navigators reworks all the previous content for Kyushu, Portuguese Nagasaki and Dutch Hirado, among other additions.
We planned to launch The Great Navigators mid-2024 but unforeseen factors - like me getting a new job - delayed thi...
im trying to make a decision that lets you release a new country, i have made the tag and added the decision (nothing else, this was just to see if it would show up) but it just wont show up in the decisions tab
icon = generic_form_nation
available = {
controls_state = 126 # Southern England
controls_state = 125 # East Anglia
controls_state = 127 # Essex
controls_state = 128 # Wales
controls_state = 129 # Northern England
controls_state = 130 # Scotland
}
}
cost = 25
complete_effect = {
release_puppet = BRI
# Transfer states to the new puppet
BRI = {
transfer_state = 126
transfer_state = 125
transfer_state = 127
transfer_state = 128
transfer_state = 129
transfer_state = 130
}
# Puppet gets division templates of master
hidden_effect = {
BRI = {
load_oob = "BRI_1936"
copy_template = yes
}
}
}
ai_will_do = {
factor = 0
}
}```
oh no thats not right
idk how to make it look nice ๐ญ
HUZZAH
got it right this time
its not the avalibale thing right? that just means that its able to be clicked then
well thats something atleast
Is RT56 just a nice overhaul or does it add too much complexity? Hoi4 is plenty complex for me as is so I donโt want a thousand new mechanics and metas that I need to understand just to play sp and not get shit on
suggestions for what effect a public health national focus should have? currently have a manpower increase
what am i doing wrong ๐ญ
more monhtly popularity
small consumer increase and popularity to the ruling party/stability
you can just do release = BRI
Check formatting/encoding maybe?
If it's in the wrong format/encoding then the game won't read it properly
Consumer goods and maybe some stability
Like 1-3% consumers
And 5 stab
hey how would I create a new character (Country leader/field marshall, for example)? Would I have to make a .tga file for the portrait or what (I am extremely new to modding sorry if im not making sense)
Which overhaul mod offers the best Germsny experience? Thank you!
hi
I just spelt it wrong, needed to be contry_tag, not countries_tag
can someone help me with my mod?
In what way?
hello, I came here to recruit anyone interested in modding with my team. if so, dm me.
thank you in advance
how can i edit this to all cas and naval bomber types?
not only inter-war
in MIO
hello
Wait how you make custom map
Also what will the mod be called ?
Hello
forman chronicles
Thx I'll look forward to playing it when it comes out it looks like you guys are doing a great job
thank you!
I'm working on getting the Vic3 to HoI4 converter to support 1.16, and I'm getting a lot of errors of the form
[12:52:17][1936.01.01.12][character_manager.cpp:188]: Failed to generate a portrait for a character of origins , of gender male and portrait type army
I can hunt down the offending countries and thus the offending characters. An example is
ARG_3075 = {
name = Juan_Manuel_de_Rosas
portraits = {
army = {
large = GFX_Portrait_Europe_Generic_land_4
small = GFX_Portrait_Europe_Generic_land_4_small
}
civilian = {
large = GFX_Portrait_Europe_Generic_land_4
}
}
country_leader = {
ideology = despotism
traits = { }
}
field_marshal = {
traits = { career_officer harsh_leader }
skill = 2
attack_skill = 2
defense_skill = 2
planning_skill = 3
logistics_skill = 1
}
}
At first glance I can't see anything wrong. The civilian ones seems to be fine, it's just army and navy that are giving errors (I think). Any ideas on how I can fix this?
Can someone help me with updating a mod Iโve tried multiple tutorials but for some reason the mod never updates
I made a country and a leader, flag, it has territory but it's name won't appear
hey, i just got back to hoi4 today after a LONG break, and wanted to ask for some up to date QOL mods or mods you consider essential for current game state
i already have Player led peace conferences
i was thinking about playing road to 56 or black ice, but im not sure if it is a good idea after such a long break to be honest xd
does anyone know if theres a mod that gives nations like theyre full names if that makes sense? for example the soviet union would be the union of soviet socialist republics and the uk would be the united kingdom of great britain and northern ireland
it is~
RT56 wouldn't be horrible just getting back in, honestly it'd probably be good if your wanting a lot of content for free, in terms of QoL I know I've used mods like "Demand it" and "Core it" just to make things easier in terms of A). gaining war goals and B). expanding when I'm bored. Outside of that though I haven't used a ton of QoL stuff lately (I haven't played mods in general for a while tbh)
demand it is poorly balanced making it a blatant cheat, nah?
I had that same issue at one point, I honestly ended up restarting everything (I didn't have a ton) and followed Iron Workshop tutorials and it ended up working for me
mind sharing this mods you talk about? cant find it on workshop
also, do you know any resource balancing mods that actually work?
im kinda pissed on how much shit africa and china has
I like these QoL mods
its totaly not worth fighting over them
That's sorta the fun of it, I enjoy screwing around in my games rather than being serious about them. Also, it takes a crap ton of PP to make a demand but whatever.
Also the AI chaos is fun.
I also use toolpack to fix peacedeals instead of PLPC
and I dont just say that to advertise
I can't rn, sorry
oh
how can one turn 70 focues into 35 days?
theres premade mods for that
In the game code, in the focus, there's something that says "cost = 5" or "cost = 10". Basically, that nuber*7 is the amount of days, so if it say's 10, then that's 70 days. Just change it to 5 and it'll be 35
(stupid fingers sends the message prematurely)
Changing the FOCUS_POINT_DAYS define can change the duration of all focuses
all i can find is ones that effect Everyone
Oh yeh then, what zomboss said
one needs to make a mod file for doing this instead of editing files direct?
Absolutely, never directly edit the game files
why?
It affects the base game, without mods, which can be really screwy and a huge pain if you mess up or want to change it back.
ah guessed that kind off lol
Also, it makes a bunch of things, such as achivements, permanantly unavailable until you manually reset the entire game, and I believe it f's up multiplayer
would i need to copy P all the focus trees to a new folder then just edit the one i want? or do i only need to copy P the country i want to edit?
Just the one you want to edit
Make sure you make all of the folders though (common/national_focus and all that)
how would I add a country leader role to a vanilla character? I tried defining only those parts in the mod but the game doesn't see them
CUB_fulgencio_batista = {
country_leader = {
ideology = conservativism
traits = {
CUB_political_strongman_1
}
}
country_leader = {
ideology = rexism
traits = {
CUB_political_strongman_2
}
}
}
this is what's in my files
CUB_fulgencio_batista={
advisor={
slot = army_chief
idea_token = CUB_fulgencio_batista
allowed = {
original_tag = CUB
}
traits = {
army_chief_offensive_2
}
cost = 100
ai_will_do = {
factor = 1.000
}
}
# TODO[ PORTRAIT LARGE ]: Missing large portrait please check!
name="Fulgencio Batista"
portraits={
army={
small="GFX_idea_generic_army_south_america_5"
}
}
}
this is the base game's definition
[14:05:12][1937.03.05.24][effectimplementation.cpp:781]: common/national_focus/CUB_focus_tree.txt:179: promote_character: Character does not have a country leader role
and this message is what's showing up in my logs
thank you very much sir/madam
Is the trait and it's effects defined where it's supposed to (00_traits.txt I think iirc)? (I don't know a whole bunch about leader traits yet I haven't done a ton on those, so if so then sorry I'm not gonna be much help ๐ )
@somber thunder (forgot to reply to the message whoops :p)
trait is defined in the same file as my other, functional traits
I don't think it's a trait issue
Shoot I think I misunderstood what you were asking for, my brain swapped "role" with "traits" for some silly reason
I believe so, 20/7 is ~ 2.86, so if you change the cost to that it might work (maybe I don't play around with decimals a whole bunch)
35 is fine ๐ thank you zomboss
hmm wonder why no one has done this before. lots of people ask for Player only
๐
Decimals work for focus times
Tho it'd be easier to simplify
Ight, do they work for anything or just focuses (not that I'd make such an amalgamation...
)
Since for example 50 days is just 7.2
I think just focus times
GUI and such work on only exact numbers
So if you use a decimal it'd just round up/down
Ight, makes sense
For playing with RD56, would anyone reccomend all vanilla focus tree, all modded, or a mix?
TFR discord exploded
fr idk what happened
Some of the leadership got greedy and wanted to keep pushing for new ways to make money, and began banning anyone who resisted it
So the vast majority of the mod team has resigned
And supposedly the mod files + steam page has been wiped
im still able to subscribe with it
theres just no info
Can you try to launch the mod? I'm interested to see if you can play it still
Well that's good ig
its just the steam page and the discord server that got nuked
theres legit no channels
I heard it got raided and there was a bunch of gore and shit being spammed
I got banned a couple weeks ago so maybe it was a blessing
ong the focus icons were peak
Yeah, I heard rumors of a redux being made but it seems the damage has already been done
so i just found out why its uh gone
theres a yt link abt it if u wanna see it in dms
Yeah I think I saw the vid
Ayden george posted the link to the new tfr discord btw
On his youtube
can u send link to dms
where is the link? i cant find it
i come back from vacation to find out my fave mod has been destroyed from the inside out
nvm i found the link
Guys I have some confirmation that TFR will be back
They're forking the mod files to a new steam page and will probably make a new server
why?
also I decided to do a 2 in 1 and make a vanilla hoi4 mod adding more balkan states + reworking Karelia ultimatum (truly a combo of all time)
Yoo can someone suggest some good mods for me and my friend, we like to play co op
the game crashes when i open my mod without debug mode ๐ฅถ
go to all installed mods
Can I get some help? Iโll be busy for a few hours so can anyone drop by in DMS and tell me whatโs happening wrong here? No map name despite me editing it properly and I have all the flags but itโs not working either
How do I change the ruling sub-ideology from game start?
How hard is it to learn modding? i dont know anything about those languages and stuff
It was really just pateron and merch, which is sort of a normal practice like what kasier cat does, apparently there was accusations of doxxing with no proof
Itโs just stupid
The funniest thing is when another mod started advertising there own in tfr discord
sub-ideology depends on the country leader if I remember correctly, so if you want to change that, change the current rulers sub-ideology or make a new ruler
I want to make Christian X (despotism) the country leader for Denmark, currently itโs Knud Bach (oligarchism) when I change to neutrality from the original democratic
Depends on a few things like your patience, your background knowledge in similar things, and the type of mod you are trying to make
which ruler is selected upon ideology change has some hierarchy which i haven't figured out myself yet how it actually works, is "Knud Bach" a generic ruler?
yeah ok i looked at the history file, he's not
Both are in the vanilla files
well, you can either try to remove or comment out the lines in the history file for denmark in which He gets recruited, or you can remove the country ruler bracket in the characters file for Denmark
probably not the most elegant solution but as I said, i haven't figured out the way the game selects which character to use as ruler either
Alright, thank you
if Knud isn't available, it should default to Christian X
as long as he is recruited somewhere
and there are no other non aligned rulers recruited of course
Thank you
you're welcome
Hey guys, I wanted to play anarchist spain but really hate the time and cost for coring the lands. Is there a mod that would reduce the cost/time ?
What mod is it?
Modifier icons mod
Yeah but the bigger thing I think was him firing the lead dev without consulting anyone else
And just behaving like a dictator
i just wanted to ask if its possible to make a focus bypass if a player is on the country the focus affects
for example if 1 country would annex another with the focus
but if theres a player it just bypasses and does nothing
Why isnt the flag showing?
problem with your code
make sure the name of the flag image is the same as the one in your code
Wdym the same as in the code
What is the command to set a flag?
I thought it automatically sets the flag by the tag of the country
Like in the tutorials
nvm i might be wrong then i was doing portraits for a while so i thoguht it was similar
They are
Otherwise they won't work / crash the game
I even have different ones for each ideology
They are
There should also be a small and medium version
Maybe it's the .tga in the name making it not work
Also
The communist ideology in modding is plural
So instead of Communist
It should be Communism
@glass acorn is this possible?
I do recall there being a check for a player being a country
Lemme see
If you do is_ai = no
Then it'd only happen if it's played by a player
So you can prob do an If_Else statement to do what you want
So example being:
If = {
Player_country = yes
Do_Nothing
Else = {
Do_Action
}
}
Hello guys
i need help for ai strategy
it doesnt work
i observe ai and it never boosts ideology in czechoslovakia
instead it send spies to usa, france and soviet union
Does the error log say anything
Maybe another AI Strategy is taking priority?
Not too familiar with AI tho
i dont think so
i checked other files for germany but couldnt find anything
How
What app did you use
I can make it 32 bit
You usually wanna make sure RLE Compression is off
I don't use Paint.Net so idk how your display looks like
But if it says RLE or Color Space Information then disable either of them
Nice
Like this?
Wait what do you want changed
Their names as a puppet or just their names in general
The puppet status
I think?
Hoi4 modding wiki is confusing
Ima just make danzig a polish puppet and add a LoN guarantee. Also an event for the poles to annex danzig
Yes
How do i make a protectorate
You want to make a puppet tier with a fairly restricted allowed block, that way it does appear elsewhere
Does anyone know what the little box that pops up when you hover over something is called?
its the only thing you cant use the GUI command to hover over
you mean tooltips?
I assume if you wanna change it, its called something close to tooltip in the code
Does anyone know how to use an effect as not a set number but percentage wise? So i can apply it to multiple states, ill have it limited to states with steel but then add onto those states 20% of the steel that it already has for example a state with 20 steel will go to 25 steel while another state with 140 steel can go to 168
I have never encountered this issue before, what is it and what does it mean?
sorry
ะiะบiัะฐ,ะฝะฐั ั ะปะพะฟะตั
I just came across this event in tfr about someone called "The Czar"
I was wondering if anyone could help me turn this map into a map in hoi4
i saw a video and the youtuber had a mod or a DLC that when you are in the peace treaty you can demand other things liek resources too, does someone know the name?
bait
Does anyone know how to demilitarized a state in the code. I am trying to demilitarized the polish corridor for alt history mod I amworking but I can seem to do it
at the start of the game or as an effect through a focus/decision/event?
At the start
Yes
Yes thx
:)
anyone know how to do this advanced effect?
Hey guys what is the best ai mod for not only vanilla but other mods as well
How do I add more ram to the game, in millennial Dawn cause alot of times my game crashes after some big popups
Is that possible?
player lead peaceconfrences?
its due to the tfr discord drama 2 days ago short side theres a new dev team and the old one is nolonger in charge due to wanting to monitize or smth along thoes lines
I will assume you meant recourse rights in that case I think itโs the dlc By Blood Alone that you need to take the navy, reparations demand etc.
How do i make custom states have custom cities, because if i set a victory point it just reads it as the name of the state
how
Hey
You guys know any mods that make vanilla gameplay feel more political with options that I can make for my country etc
victory_points_l_english.yml is what you're looking for
[18:08:24][no_game_date][statehistory.cpp:245]: State History Error: Province buildings being overridden for province 13578 in state 968. Combine the buildings into one block rather than adding multiple blocks for the same province ID.
how to fix this?
Can you post an image of the state file?
I was about to ask regarding the same issue
look for mods, most likely out there
oh I see the issue, nvm
Why is my loc and image not showing up in game
there seens to be nothin wrong with the code
Someone please ping me when you got it
does anyone know how to change versions
does anyone know how to change versions
if the version isnt listed on the hoi4
option
Normally you dont define a desc specifically, its just the name of the normal loc plus _desc
Does anyone know how to get custom country flags working? My Custom nations flags arent working at all.
A tool to create flags for Paradox Interactive games. - PlayerHOI/Iron-Workshop-Flag-Creator
Ill check this out
Thanks this helped alot in the process
i recently made a scripted polish soviet war that ends in a white peace if soviet captures 1 state, it works however its a problem when poland is in a faction, because it keeps repeating when i call them into the war
how can i make it happen only once
base game
it's in hoi4
I did the same thing on other ideas and they are working fine
For some reason this idea doesnt seem to be finding its loc and image
just the effects
Bruh one loc was missing the frist " and it broke everything after that
god i hate this game sometimes
i cant spot anythign wrong here, but the event gfx inst loading
Is the nudger tool just hugely broken for anyone else?
Especially after Gotterdammerung I've noticed:
- Supply hubs aren't shown in the supply map, and you can't edit them
- Modding an existing state/strat region duplicates the folder, so instead of "History>States" It's "History>States>History>States"
When making a custom focus tree, is it easier to make it from scratch or reusing base game files?
Id recommend starting from scratch
Yeah thats kinda what I thought, deleating things and changing things sounds like alot more work lol
Itโs usually not hard but if youre wanting large changes its just better to create it as you like instead of molding the current one into an ideal shape
I have spent 2 hours deleting and changing the Australian tree for my uses, nothing but the first focus is working
Uh oh
You probably messed up a bracket on one of the focuses at the top of the file, probably the second one if thats the first one that isnt showing
Code is very sensitive
I def did something wrong though lol
Is there anyone who wants to help us make a mod for our discord server dm me
Anyone have this issue too? And if so is there a fix cause man is it annoying
What is the nudge tool
It's how you edit the map in HOI4
Like add new states, regions, etc
oh ok that makes sense
First of all why do you want something based in Romania for the soviets
Secondly maybe increase the add value so it overrides the original
I figured it out for soviets but I'm struggling to do the same for countries with default focus
nvm fixed it but icon isn't rendering
If you are using vscode and dont hate it i HIGHLY recommend getting the bracket colorizer plugin
Itll color bracket pairs which makes it easy to find errors
And keep track of which brackets go together
I wanted to use it for these reasons, but its not insta saving after every line made, making it hard to see the focuses in hoi4
Making it hard to troubleshoot and make sure the focues are in the right position
Like I got 3 focuses working, but idk where to go from here, and what makes it worse is the fact the industry focus wont move its position on the X axis
Like will you be able to give any tips?
Hoi4 modding utilities
It has focus tree, event relation, map, gfx, gui, all kinds if viewers to preview things
You just open a focus tree file then click the hoi button and it opens the tree viewer and shows how itll look ingame
I dont use the nudge tool sl i cant help
does anyone know why all of my states have problems
i genuinely have no idea
it wouldn't be because hoi4 is currently insalling something, would it?
Question - in translation I need to translate month "may" - it's longer than this 3 letter, but in Core file there is missing Variable for may - for other translation it's added only in Combat file. Sadly I can't distinguish "long" and "short" version of month. Any workaround?
I think theres no workaround
I got a similar issue in my mod that puts numbers instead of the month names
I have a small mod that adds a few islands to the base game is there a simpler way to update the province/state/building/loc files to work with PDX map changes without doing everything manually?
not really its fine
i dont even use it tho idk what its for
not sure, i asked another dude a similar thing and he said there isnt anything automated and that doing it manually takes 2 mins
It doesn't take much time to do manually, no
You just have to have a good head for keeping the numbers straight
what really annoys me is when creating russian warlords theres just alot of states so i lose track of who owns what
If you don't use it then how would you know it's fine -_-
cuz i checked it when u asked
I don't mean I can't use it
It's just hugely bugged for me
I can't properly edit supply and editing states/strat regions is messy