#modding
1 messages · Page 96 of 1
or can i just make a focus tree that i give to everyone?
well you can edit the generic one
Gustav IV is your mod public, even if it's just beta I would love to play a Napolianic era mod
yeah its public its in beta
"Napoleonic wars 1789-1836 redux"
on steam
lol
Im working on one that is aftermath of a napoleonic victory
what a coincidence
Thank you
this, to me, implies that you have to tell the game that your countries dont have focus trees somehow
Could you somehow set the basic focus tree to be nothing?
yes
More guesswork than anything, but
focus_tree = {
id = afghanistan_tree
country = {
factor = 0
modifier = {
add = 10
tag = AFG
has_dlc = "Graveyard of Empires"
}
}
}
You probably have to create the national focus tree file for all your countries and then use an effect/trigger, whatever that is always false
i made chatgpt do it
i copied the countries focus trees from the hoi4 modding national focus page
and asked for the id
the generic focus tree is stored in "generic.txt" in the common/national_focus folder, you can edit that to be whatever you want
I wouldnt rely on that
your call, but i personally have made the experience that LLMs are highly unreliable when it comes to stuff like this
this code doesnt work
xibei san ma raj iran etc still have their focus trees
ah you need to add it for each country
chatgpt helped me out
common/country_tag_aliases/tag_aliases.txt:76: has_focus_tree: country does not have a focus tree
ah great more errors
at least no crashes tho
yes
I cant find anything that does precisely what you want
"https://hoi4.paradoxwikis.com/Triggers"
Depending on what you want to do, i would just check if the country you are targeting has capitulated, germany controls the capital state, and some country_flag has been set like "can_be_robbed" which you can attach to the "on_capitulation" on action
i figured out how to change basegame loading screens
how to change dlc loading screens tho?
how do I add more models to the gfx lineup on plane designer?
is there a way to make a idea that limits the army to 100k manpower?
and how to make dynamic ideas
any polish people who can help me?
whats the problem if it works
did you do "add_namespace = new_pt" in the top part of the file?
try restarting the game
i did it 3 times already
hmm
you're welcome
I would advice trying to use the wiki for this as much as possible, saves you time
ik but it to conveluted sometimes
nie ogarniam az tak ale moge pomóc
anyone knows how to change the start date?
Kinda easy, go for common/define/00_definition.lua
Search the base game files for more detail
Idk if that's enough, but certainly should be
do i need to make a bookmark?
By the way, I happened to see those definitions while I was looking for something else, but you should be good with them
??
Well... You can do it
does it change anything?
Idk, but depending on what you see there, it can
The define files will work as well, as it is what defines the start date, and the ending date (1949)
Well, I have to go now, ping me if I can help you in any way
I will see it later
okay bye
i changed the start date and it works but there is just one issue
@sleek terrace
its 1 january 1932
How to add a dynamic modifier to an idea ? With a decision effet
state_of_the_prussian_army_dynamic =
{
icon = generic_war_preparation
enable = { always = yes }
remove_trigger = { always = no }
army_attack_Factor = prussian_army_attack_factor
army_org_Factor = prussian_army_organization_factor
army_morale_Factor = prussian_army_morale_factor
initiative_factor = prussian_army_initiative_factor
conscription_factor = prussian_army_conscription_factor
if =
{
limit = { has_country_flag = GER_prussian_army_reform_finished }
experience_gain_army = 0.3
}
}```
I did this a while back so my meory is a bit fuzzy, but this is an example. It's in the common/dynamic_modifiers/0_dynamic_modifiers file, although the filename is irrelevant, build similar to a regular idea
add_dynamic_modifier =
{
modifier = state_of_the_prussian_army_dynamic
}
Added like this in the countries history file (history/countries/country file here)
"prussian_army_attack_factor" these are variables
set_variable =
{
var = prussian_army_attack_factor
value = -0.10
}```
set like this, also in the history file.
although i noticed that my icon isn't loading, so take this with a grian of salt
yes but how to modify an idea with that ?
its a standalone thing that replaces an idea
add_dynamic_modifier =
{
modifier = state_of_the_prussian_army_dynamic
}
If you do this, it shows up in your idea tab
so frontend looks the same as ideas
ok I will try thank you
I need help
I need help,Somehow game doesn't recognize my Country Tag whenever I give it a state using setowner
Structure is like that
Yeah that's all
@patent linden can you help me?
I'm currently busy, tell me what you want to now and I'll get to you when im back
I need help,Somehow game doesn't recognize my Country Tag whenever I give it a state using setowner
Here
Here 2
Here 3
try creating it again and see what happens
I dont know how the game handles the research stuff
try using the original countries file in the country_tag folder instead of the new one you created and append your country to it
maybe the game doesnt like the name of your file
@patent linden I did that
Yet It didn't work
I can send you the project If you want to take a look
its probably some miniscule detail
what is the error exactly
It says Invalid tag whenever I give it a state by using setowner command
graphical_culture = eastern_european_gfx
graphical_culture_2d = eastern_european_2d
color = { 144 0 32 }
capital = 49
ideology = neutrality
ideology and capital dont belong it that file
can you set some state in the history/states folder to be owned by that tag
Is it necessary?
no, just want to see if that works
alr
makes the country spawn on game start
to the states right
history/states/random state file
doesnt matter which
just to see what happens
if the country spawns, the tag should work
if it doesnt, the error log might hold more information
let me try
I doubt
that error would give Info since It covered already that tag doesn't exist
@patent linden Is there any mis typos?
Ankara is still owned by Turkey (STATE ID 49)
show me the state history file of Ankara
state={
id=49
name="STATE_49" # Ankara
manpower = 810284
resources={
chromium=11 # was: 16
steel = 28
}
state_category = town
history={
owner = TNF
victory_points = {
11747 15
}
victory_points = {
804 5
}
victory_points = {
3951 1
}
buildings = {
infrastructure = 2
arms_factory = 2
industrial_complex = 2
air_base = 3
}
add_core_of = TNF
}
provinces={
804 909 3907 3951 6808 6908 6925 9806 9901 11747 11784
}
local_supplies=7.0
}
btw. did you activate the mod?
though if you did that, and the tag is invalid, the state should be unowned and a map error should occur
turkey still owning the state seems odd
Shall I give a shot
oh
wait
@patent linden Is it important that
where shall I put their priority like 19
It doesn't work again
Yeah
I can see it too
KIT WORKED
@raven hedge
@patent linden
@patent linden I changed
Mod playet
playset
some miniscule bullshit
Wait
the mod quite literally wasnt loaded
Why doesn't my flags show up?
l_english:
TNF:0 "Turkish National Front"
TNF_DEF:0 "Turkiye"
TNF_ADJ:0 "Turkish"
so Is this
tnf_countries_l_english.yml
Shall I put them to original
I thought It didn't even need
one
It can be when It's TNF It's known as casual flag
TNF only
copy a flag from another country and overwrite it with a differenc tpicture
You're welcome
This lesson will explain how to create a new country in Hearts of Iron 4.
If you found this video helpful and want to help the channel grow you can use the super thanks button above, any amount helps the Iron Workshop improve and continue to make more videos like this one.
Timestamps for this tutorial/lesson:
00:00 - Lesson beginning
02:00 - ...
just incase you dont know this guy
his tutorials are great
a bit outdated
I know him
but useful
I watched him
well fix it then 
It wont tell me what causes it 
I assume its something in common folder
Most of it is just effects and stuff
From overhaul
[effect.cpp:352]: Error: "Unknown effect-type: GER_set_consumer_goods_war_reparations, near line: 145" in file: "common/scripted_effects/FRA_scripted_effects.txt" near line: 146
[06:17:49][no_game_date][gameitemdatabase.h:747]: 2 errors.
[06:17:49][no_game_date][gameitemdatabase.h:759]: =============================```
could be this?
[06:17:49][no_game_date][effect.cpp:439]: Invalid effect 'GER_set_consumer_goods_war_reparations' in common/scripted_effects/FRA_scripted_effects.txt line : 145
the 2 lines above the error line
and please tell me the Timestamp is PM
Removed this error
Added like 8 more
classic
Altho my log did get smaller
Still crashes tho
Wtf does
[06:47:54][no_game_date][gameapplication.cpp:870]: Could not display logs/error.log: The parameter is incorrect.
mean??
probably "f you"
Guh
its no longer displaying the error log
Wtf did I do
Holy shit
My log is now 4100kb
😭
My reaaction
the little tiny elves in my computer that write the error logs are gonna be doing some heavy overtime tonight
Sigh now I know to not
replace_path = "common/national_focus"
just yet
have you tried sacrificing a goat
Hm not yet
Rahh managed to reduce errors to under 900 lines
So
I stil ldont know why its crashing

So, you want to change the month or something?
Or there is an unwanted technology that is researched automatically as well?
I'm outside, in an hour or so I'm back home and I can help you properly
me neither
at this point running it through an LLM could reveal the error
maybe
I'll just drop the log and hope some kind soul spots the game breaking error, ngl idk why it straight up lies about malformed tokens when I can clearly see they are fine 
"Muh malformed token!!!"
Have a sneaking suspicion this might be the new reason why
I dont uh, see the malformed token tho
I need help on .png to .dds conversions. I always lose quality when doing it, and get some weird artifacts. I would appreciate some help
yo does anyone know how you can modify ideas in the game?
like for example making a decision which makes the great depression a little bit less worse
try different online converter sites and see what gives you the best result
maybe AI upscaling
The game can handle this in 2 different ways:
See picture one, https://hoi4.paradoxwikis.com/Effect, You effectively replace your idea with a different one that has different values for the things you wanna modify, so instead of 20% consumer goods, the second idea only has 15%, the other is with dynamic modifiers and variables
see my schizo ranting for the dynamic modifiers here
in your case you can probably just modify the different depression modifiers in the commmon/ideas/<whatever file they are in> file
ty bro
it always gives me some weird artifacts
I've already tried using like... 12 different sites
hmm
have you tried using gimp
see if you can save your file as a different file type
maybe that works better
look at the difference
it does not have the .dds option
you can somehow add that
the artifact
gimme a sec
compare the original with the artifact (the white background I've added myself to improve sight)
thank, lemme install it real quick
im not the artistic type, i dont really see any noticeable difference 
look at the quality
the first one has saturation, it is "health", and the second one if we can compare, would be that unhealth pale patient in a hospital
It worked! Thank
Well, the link didn't, but your idea did
youre welcome
wanna see the results later?
sure
I'm doing a new vp selection
I just need to change the colors of the last vp icons, and it will be done
It is kinda lame ngl, but that's all I can do
Thankfully I am good at programming, because if I was to live on the art, I would be broke
but looking at the image, you can notice the hierarch between vp icons, right
that's what matters
that's awesome
yeah
finished the last icons. Now I'm going to convert and launch
then, as Austria, I'm going to test if the new victory point tier works properly or not
when has anything ever just worked
Life could be a dream
need to get to the austria part in my mod too
dont feel like it right now though
yeah lmao
But I made it!
you can count, there are 5 different vp icons
when in the base game there's only four
that's quite like how everyone feels
btw, I marked the vps to make it clearer
forget this shit, I've got something better
Hello is it me your looking for
I'm not sure where to put this question, but is there a reason why terrain buffs inside technologies are only able to be applied to specific units instead of to categories of units?
i need help with this, i basicly guessed how i would logicly do this and it didnt work lol
I believe you want it like if = { limit = { NOT = { has_tech = 422 } } set_technology = { para_tech = 1 } }
i'll try, how does it work so i can learn, what does limit do/mean?
it's what has to contain the {NOT} to act for the {if}
a ok i think i get it
thx
does anyone know where the combat tactics for Preferred Tactics are stored? Not the combat_tactics file itself but like, the controller for those tactics in the unit/country view
I looked at countryofficercorpview but that's one step above what I'm looking for
Heyo im trying to make a joint focus tree and this error just pops up every tick tbe focus is open, pls help
I need some help. The localisation for this wont show for some weird reason. The file name is TFC_decisions_l_english
is the encoding in UTF-8-BOM?
No
do so
How do I do that
Just copy a vanilla file and replace that localisation with yours
Ight thanks
or if you have notepad++ it's on the topbar in a dropdown menu
Im doing it on visual studio but ill check afterwards
according to microsoft, go to File->Save->Save As-> select the save dropdown box and select Save with Encoding
<@&916727971820240976> , is anyone can help me for modding? I've problem for event
Is there anything wrong?
mismatched namespace
How to fix it? and wdym by its mismatched?
I got it
What does major do ?
Idk, maybe make it a major event
I saw it usually on news event
So when Im making a event, how do I make the option trigger another event two days later?
It sends the event to every country if any country receives it
So, basically a major news
^ <@&916727971820240976>
"help this guy"
Look at the message i replied to
"our friendly and motivated staff will gladly assist you"
the friendly and motivated staff:
Is that a centura mod in hoi4???
Sheep is staff too
Hes friendly and motivated im sure

Is it formatted properly? I haven’t ever done scripted stuff so idk if it is
I haven’t seen u for some time huh
Haven’t really been in a hoi4 mood for a while 🥀
Yea it is, i also tried doing it without the scripted but it had a similiar error, i thought maybe scripted would fix it cus its used in basegame but well it didnt
Does it work in game or is it completely broken?
It works its just the errors that appear every tick like i had around 10k same errors after 1 minute
That is incredibly odd
Hoi4 modding just be like that sometimes
I prefer this over shit not working and the error log refusing to tell me why
Also after reloading it magically fixes itself so maybe its something with how its loaded but idk
Yea thats annoying
Amen
Much better to have it show an error but work
It might be
Idk what else it could be
Its literally just this on the right side, i also dont get why u can use other triggers like is_in_faction_with for the joint-members
anyone know how to do the: 10 % chance of getting [event]. after a decision timer. like with strikes
immediate = {
random_list = {
10 = {
Country_event = { id = #the event id }
after the trigger I think
maybe nobody knows a solution?
uh
do you even know anything about modding though
oml thank you
Hi I have a question. Could anyone help me understand why the portrait for my general isn't showing up? The last portrait keeps showing up even though my image is a .dds file and has the correct size of 156 × 210.
the name is different in the gfx file and the character file
huh thx but Doesn't the dds have to be there? and what is the correct name? (sry I'm new to modding)
there is an error in your gfx file. you uses 2 time spriteTypes, but the second one is just spriteType without the "s" at the end
and the name in the gfx file should be the same as large pic in your character file
thx but I did something wrong :-:
the focus im coding isnt working, the effect is meant to add a political advisor to the government
Code screenshot?
Gfx file has double extension
And IIRC spritetypes inner one should be spritetype
im relatively new to hoi4 moddin so atm im jus making a custom one for me and my friends
Because we don't know the answer
No need to be rude about it
oh
I have made a custom icon but in game it's distorted.
Help, my superevent is not working
does anyone know any map or mod or anyway that you can get a bunch of nations the same size all with 1 civ factory so everyone has to build up from scratch
Can you show us your super event text? I think I can’t help but everyone need this to help you
Nvm, I got it, but I have 1 problem
The image isn't changed depend on the global flag
and I guess this the one can change the image. But I want someone explain how to use this "properties"
Oh, it was complicated than my expectation. Can you show us all of your text for your super event?
I will send scripted gui, scripted local, .gui file and .gfx file, plus .yml file
Can you show us the super event
sure
Uhh, I can't record it
wait
I'm just gonna screenshot it -_-
This is the first superevent and it using wrong image
and this is the second superevent I made and it using the correct image
nvm
I got there is something wrong with the .gui
there is misspelled name
Nice
thanks
i need help about deleting a mod
like a file mod
that can't be remove which i dont understand why it cannot be done
how do i make the complete_effect come after the days_remove on a decision and not when i click the envelope?
use remove_effect = { ... }
I just noticed the 200,000 + errors
If it Broken and it works it ain't broken
Wdym
So I made a new tech folder and such, how can I make these technologies use the small icons instead of the large ones?
How hard is to make a Research tree from scratch?
Is it possible to make a mod that never gets uploaded to the steam workshop?
mods are created locally, you don't have to upload it
did anyone else ever faced the problem when giving a custom country a starting country's capital, ex; Belgium's, the game crashes while loading in. I tried looking it up, asking AI, but nothing seemed to do the trick.
maybe your country history file is broken
Its not really hard to make research stuff but it takes a while to make an extensive one
Everytime I check PDX's update logs I get a bit hopeful
But then it never says they fixed the nudger 🥀
Does anyone here play TNO and if so can they answer a question for me?
are there any tools that make creating a focus tree easier?
Are you using VScode?
If do so, you can use Hoi4 Mod Utitles
Don't worry about it, it's just bunch of ideology error which the nation in game doesn't have
Oh ok
Do you mind if you want help me for the mod? You can just add more idea
does anyone know the name of the mod that tommy kay uses in his tournaments?
the allies vs axis one
@wise cradle
Very nice also great music
Thanks
I'm gonna add focus tree and decision
Also, do you know how to disable justify and declare war features?
question guys, my rise of nations mod keeps crashing when i open the game, and the download size shows as -800 something mb so whats up with that
nvm guys it works now??
can some one help with sounds? i am trying so the when i click on my nation flag then on select focus then select the focus and start the focus it play 4 diffrent sound for the 4 diffrent action
why doesnt this event work?
Dope
Hey, is it possible to modify the state provinces? Like... Transfer one province to another state
Via focus or via decision
I have a plan to create more states throughout the gameplay and not static
i dont think thats possible
Really? Well...
People said that adding a new victory point tier was impossible, even the AI said that, and I managed to do it
By the way, I teach it for free, I refuse to let the 5 hours of research I did vanish
Soooo, If you are interested...
DM is open
I think you are using the "OR" block wrong, it should look something like this:
trigger =
{
OR =
{
tag = ITA
GER = { controls_state = 907 }
GER = { controls_state = 447 }
ITA = { controls_state = 907 }
ITA = { controls_state = 447 }
BUL = { controls_state = 907 }
BUL = { controls_state = 447 }
ROM = { controls_state = 907 }
ROM = { controls_state = 447 }
}
}```
I would also assume the option block also has the be outside the trigger block, i also dont understand what you are trying to do with the IF block in there
thanks for the offer, but i dont think ill need that knowledge for my projects
also im glad if i understand the stuff i need to understand at the moment
That's a nice thing to know bro
u have to include the GFX just like the file name
Why?
promote_character
how do I fix this
Sacrifice a goat
elaborate
i wanna add LHDs LHAs LPDs assault ships LCUs LCAs and etc landing craft ships to my hoi4 multi mod
how do i do colored text in the tooltip (for event options specificly)?
So I tried replacing Hitler's portrait with another image but his portrait is still in the inner circle. Does someone here know where can I find the inner circle folder?
Oh nevermind I found it lol
is it possible to make a technology require a focus before researching?
I don't think that would be possible. technology is global for all countries, but a focus is country specific.
but you can make a hidden technology and unlock it via a fokus
Mmm.. Not really as far as I know
If its a division you "spawned in" using focus/descision it might be bc you used a wrong name for a unit in the division, at least thats what happened to me once... I think I wrote "infantry battalion" instead of just "infantry"
Anyone have any ideas why this is happening?
This is happening with any icon I use.
what are some of the best mods for back in time?
this is the error and nothing about maps in error.log
i even launched the game with debug
Depends on what you were doing, could be from Airzones, buildings, unassigned/Double assigned provinces, Just check nudge tool, there it is usually visible what is wrong
it's buildings 😭
thanks though
I have sinced learned about nudge
basically I was trying to create a new tag, a city state, in America
and somehow the division that I gave it has 0 manpower
even though it should have 40% of its manpower (that should be 800 people)
can some guy make me some focus tree art? i suck at making art soo
um guys how do i get taboritsky in power? i mean i maneged to get igor shafarevich but idk if i messed up big time or no? also if i did how can i make taboritsky's party more popular?
<@&916727971820240976>
Try ask in TNO discord server
Why my ideas icon is not visible??
Can anyone help me?
ideas icons are specific, read the wiki to understand it
is it working now?
Still not
Idk what is the problem
The image was in the folder
both of them is not working
post your ideas
wdym
the code of the idea with the wrong icon
ok you did not read the wiki 😜
picture is without GFX_idea_
its just picture = RSR_the_new_Tsar
it adds GFX_idea_ automatically
@pastel isle is it working now?
Wait
Does anybody know an application that lets you edit the province.bmp file and saves it in the definition.csv? because doing it in GIMP or another Program that I used crashed my game
how do i do paragraphs in the event localisation?
since when hoi4 has an anarcho-communist ideology in the game(no i am not talking about the anarchists in spanish civil war, they are under the non-aligned branch)
i think its \§
how does it work exactly, does it have a wiki page or smth?
is there a mod that releases all releasable nations in hoi4?
you can (kinda) do that in vanilla, in custom game rules befoe you click start
if im correct it dosnt release all nations but most of them, they are called something like "split up" or "balkanise" [continent of choise] i cant remember really sorry
what is the name of the tab?
thats fine
wait a min and ill check
ok cus I cant find it
I believe it is the communists for anarchist Spain. It is just you never get enough communist support to get past the non aligned
u sure?
What DLC do you have
ye
no dlc? damn
Oh yeah, some options are behind DLC
I dont play that much hoi4
so I dont think id be spending any money
a ok but its maybe behind GDR or how you spell it
feels like a teen spirit, you will eventually
Spain balkanization is behind la resistance, same with France
göttedamerung
thx
American colonization status I think is also Man the Guns
Also Trials of Allegiance
If you want native nations
American colonization status?
That's man the guns I'm pretty sure
ToA just gives you the native ones
okay
25 bucks
Wait for summer sale
Or buy subscription for a month or so
Why do you want to decolonize the world
fun ig
Like to a crawl if your PC is bad
there is nothing I can do else
best name tbh
Have you ever won a game as a major?
Basr game hoi4 has improved over the years
ive never won a game legit
Go to #ask-for-help-here
Lots of people willing to help and teach you how to play the game the most optimally
isnt that just for like problems with game?
Huh
You can't uncompleted focuses and what do you mean by command structure
Like did you click the wrong general trait?
no
you can
in a mod gwr there was an event that makes you "uncomplete" the completed focus
i thought it is a vanilla thing too
bruh
https://hoi4.paradoxwikis.com/Effect
this exists, see if this does what you want
I have ideas for some mods that I want to create, But I don't know how to mod or program. I want to see if anybody can make these mods and will get credit when posted.
so you want a slave to make mods for you and then release it like yours?
go learn yourself bud.
I don't think you will find anybody willing to work for you unless you are willing to pay them in cash for their labor.
well no shit, they'll get paid.
they'll get most of the credit.
I mean if they will get paid i see no problem in his request. Movies work the same too, a director pays people to do an idea of his, he gets credit? Yea he does but not as the actors that made the movie happen.
But I recommend you to learn a little bit too, it is not programming it is having logics and just changing files in its entirety, maybe adding something more, but like programming programming? Nah
Right, They will get 99.9% of the credit. The only part that I will get the credit by is probably having the idea.
Yeah I will try. But the reason why I'm asking cuz I doubt I will be able to. I can't even make a mod that changes the flag of a country.
Let alone changing the mechanics.
But I understand how big a question is.
Hahaha no worries, if you are interested check on youtube, or if you are not interested find the portraits, flags, try making the lore, maybe even a map with the borders you want, concept for focuses
That'll help the modders
Also if you have reddit post it on there
its on sale rn lol
Where do I find Millennium dawn because the one on paradox mods is for 1.14 and isnt the latest apparently. Im confused.
thanks!
looking for some graphical help expanding the inner circle
so where exactly do you see that?
Sorry to bother you all with a question I bet you get a lot, but...
I decided to try and follow the modding beginner modding toturial that the Hearts of Iron VI youtube channel presented, and it seemed to go fine until I got these error messages.
Example: title is unexpected in country_event
Do anybody here know what the error means and how I fix it?
your events folder is in the wrong position, it should be a subfolder of your main mod folder not within common\ideas
Thanks, I'll look into trying to fix that right away.
Wait, so this is wrong?
yes, move the events folder into myfirstmod folder
Wow. That seems to have done it. Thanks.
the folder structure in your mod need to be the same as in the game folder otherwise it will not work
Words to live by.
Does anyone know how to make the AI choose equipment icons for the designer? Sick and tired of the AI design icons being random biplanes
Ruins mah mod's immersion
Or at least to change the best match to actually fit equipment types
its a bug with the biplanes since By Blood Alone was released
Yuh but is there just no way to go around it? Thought maybe making the AI pick icons when making the templates should work
Or perhaps editing that "best match" feature
in the template you can choose the role icon, but not the 2d/3d model
I mean in the ai_equipment folder
yes you can set role_icon_indexin the ai_equipment, but not the 2d/3d model
Wiki says it's only for ships
But thanks Im gonna try it
I have played on this safe file for a long time and built up a strong nation but right now i am getting run over in a war i need a mod that can allow me to just remove them or take controll of them XD. I dont care how OP it is or how cheaty it is i just want this gone.(btw i play multiplayer)
yay dynamic modifiers more braincells lost
Still no
Do terrain-buffing and need = technologies have to be applied on a per-unit basis, or is there some way to make it apply to an entire unit category that I'm missing?
post again a screenshot of your GFX file and your IDEAS file
in your GFX file it need to be name = GFX_idea_XXX and in your ideas file it is just picture = XXX, this is very special for ideas icons
Oh
Alright
it works!
Do you have ideas for more focus tree and how to make a good focus and ideas icon
Maybe you could add economy tree which gives player some factories and something
I think it’s quite bad idea, but you could copy and paste icons from other mods and change a bit to practice you skill to make icons
That's already in decisions
4 of them is from other mods
i am trying to make a simple mod just to see if i can (and open the door for further attempts) but for some reason the game is unable to find the mod
what do you do to get that message?
simply open the mod, the game still loads in, but its just vanilla
why debug nuking not work
create the mod via paradox launcher, then create a playlist and add your mod. before starting the game select your playlist
i am not an idiot (trying to sound cool not sassy or rude)
i already did that, the files should be correct (after the tutorial i followed)
ok, so tell me what do you do, that you get that error message?
why debug nuking not work
nuke system changed with götterdämmerung dlc
firs topen launcher, i have debug and crash report on
then i, as you said, have the mod (which was created via the launcher) in the playset, and i select the playset, i launch game. after a few seconds, this pops up, which i assume means the mod wasnt found
thanks
i guess it has something to do with onedrive. did you activate onedrive after installing the game?
i am not sure what you mean... other mods, which are saved in the same spot, work so i dont see how that should be a problem. if i am mistaken by such an assumption, how do i check if its activated?
if your mod has an error it tries to open the error.log file, which causes the error you see, because it cannot find the path where the file is located
so any error breaks the mod?
if you are in debug mode it automatically open the error.log during game start
i see... but why does it not find it?
because it does not know the path, that happen when you activate/deactivate onedrive after installation
... can you explain this to me as if this was my first time using anything else than youtube o my computer?
including how to activate it
I don't know how to fix it, but others had the same problem
you can open the error.log manually, it is in your documents folder under Paradox Interactive\Hearts of Iron IV
ahhh, so you are saying that there is an error, but it doesnt pop up while launching the game, and i shoudl manually check the error file to see what is wrong?
correct
where after hearts of iron?
error.log
acticate only one mod, start the game and check the error.log
so all errors belong to your mod
almost all the errors were about equipment, and i have not touched equipment in my mod
post the error.log here
i don't know, looks like you have two corrupted mods, see line one and line two
yeah, i too saw that, but i dont understand why it refers to those mods when they are not in the playset
these are steam mods, I guess your mod is locally
thats right
are you sure you have the right playlist selected?
did you subscribe your own mod, because it does not work it you have the same mod twice
no, i have also not uploaded it. omly the local version
I don't know, there could be 1000 reasons why your mod is not working
well, i guess i will jsut rewatch the tutorial
do you have all dlc? the errors could be because you miss a dlc
there is no major error in your error log
all except south america and the middle east, i rarely play vanilla so i saw no need to buying them
i guess something is wrong with your folder structure in your mod
what do you try to do with your mod?
as for now, just make an event
eventually tie a national spirit to the event
i was planning on learning these thigns today, then learn about focuses tomorrow
events are complicated, many mistakes can be made
I can recommend the events wiki page https://hoi4.paradoxwikis.com/Event_modding
may i ask, why is there an error for name?
its a yellow error, so maybe its not in the localization file
when you hover your mouse over the error it shows you a tooltip
i see it, for some reason i wrote "test.1" instead of "test 1"
How can I modify ideas through NF without replacing my idea
How do you get yours to look like that?
Nvm I got both of them working
It would help to see you full coding
As i said later, i wrote "test.1" instead of "test 1"
of course, if they are preexisting ideas that you want to modify, you will have to stick to the method the game used to implement them, if you made the ideas yourself, you can choose which version you like better
swapping ideas is easier, but modifiers are more versatile and allow for more cool shit
guys how do i pick which one of these i want on a division template?
As far as I could find out, thats not possible
though take that with a grain of salt, me not finding it doesnt mean it doesnt exist 
template_counter = X, the file names are GFX_div_templ_X
i put it in here?
and also
to make division templates locked
i just do locked = yes
?
guys help it says the id is invalid what do i do
Is_triggered_only and mean_time_to_happen cant combine IIRC
do you know which /interface/ file defines them?
ah nvmd
found it
subuniticons.gfx
hello hoi4 community, i need help whit a iberia cosmetic tag, i made a flag and reverse engering the
KPB_kingdom_portugal_and_brazil but idk how to link the flag whit the code here is mine codes:
POR_iberian_union_category = {
POR_form_iberia = {
icon = generic_decision_icon
cost = 150
days_re_enable = 99999
fire_only_once = yes
allowed = {
tag = POR
}
visible = {
tag = POR
}
available = {
controls_state = 165
controls_state = 166
controls_state = 167
controls_state = 168
controls_state = 169
controls_state = 170
controls_state = 171
controls_state = 172
controls_state = 173
controls_state = 174
controls_state = 175
controls_state = 788
controls_state = 789
controls_state = 41
controls_state = 790
controls_state = 791
controls_state = 176
controls_state = 792
controls_state = 793
controls_state = 794
}
highlight_states = {
highlight_state_targets = {
state = 165
state = 166
state = 167
state = 168
state = 169
state = 170
state = 171
state = 172
state = 173
state = 174
state = 175
state = 788
state = 789
state = 41
state = 790
state = 791
state = 176
state = 792
state = 793
state = 794
}
highlight_color_before_active = 2
highlight_color_while_active = 3
}
hidden_effect = {
set_cosmetic_tag = IBR_POR_iberia
every_state = {
limit = { is_core_of = SPR }
add_core_of = POR
}
}
complete_effect = {
custom_effect_tooltip = POR_form_iberia_tt
change_tag_from = POR
set_country_flag = form_iberia
set_cosmetic_tag = POR_iberia
add_stability = 0.25
}
}
hello, im trying to create a country and this error has come up, anyone know a fix? [1936.01.01.12][character_manager.cpp:255]: Failed to generate a name for a character of origins Durgen and for country Durgen
Is there a debug command to leave a faction
the file name of your flag should be the same as your cosmetic tag
you need to define names for you country tag within common\names
i put this in common/names: DUR = {
male = {
names = { Durgen }
}
female = {
names = { Durgen }
}
surnames = {
Durgen
}
callsigns = { Durgen }
}
Ok brb
maybe try it with more than one name
damn that worked thanks
would you perhaps know how to fix these errors? [no_game_date][effectimplementation.cpp:14781]: Invalid Decision ID for activate_mission AFG_radical_students_countdown
[no_game_date][effectimplementation.cpp:14483]: Invalid Decision ID for unlock_decision_tooltip AFG_move_the_capital_to_delhi_decision
[no_game_date][effectimplementation.cpp:14483]: Invalid Decision ID for unlock_decision_tooltip AFG_sikh_recruitment
[no_game_date][effectimplementation.cpp:14781]: Invalid Decision ID for activate_mission AFG_radical_students_countdown
how do i make a mod anyway
how does this work🙏🙏
Is there anywhere you can read the TNO lore without having to play the game?
Anyone who know how to fix millenium dawn crashing in the loading
Official wiki probably
controller = { is_subject_of = GER }
Is there any compiled history or do I just have to put the pieces together myself?
is it possible to get older versios of mods?
there are youtube videos for that
but tno changed lore a lot of time by adding/removing content so might not be accurate.
thx
is it posssible to make an event unlock a decision?
why does the game say that there is no such evetn when i try to trigger it?
you can set a flag within your event and check if the flag has been set in your decision
Anyone know how to mod, looking for a collaboration in here?
what mod?
Doesn't exist yet
where does new map definiton with provinces go after publishing the mod? my old one got renamed to "definition.csv.old" and now i've got problems like "province 13380 has no continent", "Bitmap and province definition disagree on whether or not province 13378 is coastal", etc.
Is there any mods to make the game easier?
Js learn the game man
Just asking no need to put that emoji
have you tried putting the difficulity to rookie? if that doesn't work i would suggest a mod which makes you able to integrate any state
The game itself i easy like the wars i just find all the menus confusing to look through
ahhh, then you should have asked for overlays or something
i think there is a mod which gives different colours to all the menus
Thank you
i am once again asking for what i did wrong:
is your events folder in the right place? its in the main folder not within common
that is what i also thought
but when i write "event britain_test.1" it pops up that there is no such event
is your mod loaded, did you use the correct playset
of course
i saved the files, i opened the launcher, and started the game with the mod loaded
send a screenshot from your mod folder structure
looks good, whats within events
idk, everything looks correct
do i have to do something other than just saving the files before opening the game?
no thats fine. what you could do is loading the game in debug mode, so you can do changes and dont have to reload the game
i have opened it in debug mode always
but that doesnt help if i cannot see what is wrong
hi chat
i'm trying to download OWB via the launcher and this keeps happening. I have done all of that and also uninstalled it and resubscribed
anyone have any idea how to fix it?
does it work with other mods?
yeah i have kaiserreich installed
i'm still fairly new to downloading mods for this as I still feel like i have so much to do in non modded version, but I've dabbled in Kaiserreich a bit and that works fine
and is still installed
Can anyone help me why my units oob is not working? (For units block)
How do i get rid of invalid decision id for AFG without replacing the decisions path?
Hi people. does somebody know, what is causing the crash issue after I updated the states and corresponding provinces? I mean, I understand that the problem is within a state code, but are there any ways to check, which state exactly is causing the issue?
did you check error.log?
hi, does anybody have an idea of how to play as a nation without land without using the exile mechanic?
would being a puppet work? Or perhaps being in the same faction?
programmatically written hoi4 mods are certainly an interesting concept
this is just the hardcoded bits of automatically creating a music mod, i wonder how implementing the rest of the scripted language logic will go
Is each part after "as const" one song?
yes the music = ... line is for each song
https://github.com/emberglazee/yt2hoi4 in fact here's the source code
Does
Does anyone know how to modify state info ui and add it a button which opens another ui?
I have done the UI button adding and other UI window creation part,but I doN't know how to make it show the other ui window.
Add an empty AFG.txt file
uh
See parent_window on the interface wiki
No see the wiki pages on interface modding and search parent_window
oh ok
is there a possibility the game doesnt recognise a mod if the mod picture isnt done properly?
It shows modding where you attach stuff to pre-existent GUI
No, I dont imagine so
You need to own a state to stay existent afaik
well then i have no idea what is wrong. after failing at events time and time again, i just tried to change the ownership of northern ireland to ireland... but nothing happened... so do anyone know why the mod isnt registring?
Probably easiest to just upload your mod to google drive to let people take a look
Yeeeahh...I just deleted all states with errors and readded them, that seems to have worked
do i then do both the folder and the mod file?
Yeh probably put both within a folder on your drive which you share
I forgot if drive supports reading HOI files, might not even have to download them to check the code
https://drive.google.com/drive/folders/1hNwB8EBCc_qxdNlHgZbTW2nZNBqvO_1l?usp=drive_link
here it is. i have checked the codes many times and asked a lot of people for help, neither have worked, so i do think its a problem with the game not realizing this is the mod?
Access Google Drive with a Google account (for personal use) or Google Workspace account (for business use).
do you have two mods with the same name?
i am not sure what yo are reffering to? are you saying there might be another mod in my collection wtih the same name?
you cannot have two mods with the same name, it loads only one
i sent the mod folder and the mod file isnt there supposed to be one of both?
your google drive is hidden, make it public
fixed it i think
I couldn't find anything useful
I search parent_window to hoi4 paradoxwiki
ed*
searched
yet I could only find something which is not related at all
is anything in your mod working?
nope
that is why i think its the game not recognising the mod
i am not sure, but I think the space in your folder name could be the problem
Does anyone know how to modify state info ui and add it a button which opens another ui?
I have done the UI button adding and other UI window creation part,but I doN't know how to make it show the other ui window.
replace the space with a underscore in your folder and in your .mod file
... it might be...
the game cannot even find the mod now
you need the change the path within your .mod file as well
i did
shoudl the path lead to the mod folder or the descriptor file inside the mod folder?
to the folder
it cannot track the path
you can copy the path in the windows explorer to see if it is correct
i did
and this works?
nope
i think i will make a new mod from the paradox launcher, and just copy all the files from the first one
Does anyone know how to modify state info ui and add it a button which opens another ui?
I have done the UI button adding and other UI window creation part,but I doN't know how to make it show the other ui window.
yes try a new one and avaid spaces in the folder name
you can set a flag when you click the button, and the new window is visible if the flag is set
hmm I will give a shot I guess
No like
where and how can I define the button click event
scripted gui
uhhh yeah but
I'm using the
state info UI
you know what that is right?
It doesn't have any scripted gui
when I looked at scripted_guis section
still doesnt work
you can create one for your window
uhh yeah but It gives strange error
It generates another state info UI when I do
it
it seems like the files themselves still believe they are in the old mod folder...
I am not the ui expert, could you not check existing code how this opens a new window like collaborations or mio
Alright let me research more then
maybe clean your mod folder, and start with a new one
take the files themselves in another safe spot and then add new organisation folders, or start from scratch?
alternative c: make new files, but copy the contents from the old ones
delete (or move) everything within the mod folder, then verify the hoi4 files via steam and then you can create a new mod with the launcher
do you mean the hoi4 mod folder, or the flder for this mod?
the hoi4 mod folder, looks like something is in there which causes an error and your mod is not loaded
so just delete all my mods
or move it somewhere else, you dont have to delete it
i was refering to my downloaded mods
i think somesthing is broken with your other mods
they have all worked fine...
steam should re-download it
i do get an error mod which refers to two other mods when i try this mod.. i should sheck what they actualy are
so its safe to delete all the mods as long as i do not unsubscribe?
they instantly reappeared
close steam
done
now verify hoi4 game files in steam
ok now create a test mod within the launcher
Does anyone know how to modify state info ui and add it a button which opens another ui?
I have done the UI button adding and other UI window creation part,but I doN't know how to make it show the other ui window.
Yeah I still couldn't find an answer for my question.
Like,I have done the button
I just need it to function
Does anyone have an Idea?
@pale sparrow May I ask to you If possible
I think scripted gui is the only way, check these examples: https://steamcommunity.com/sharedfiles/filedetails/?id=1678247250
what do you mean? an empty mod?
I'm using an already existing ui
not the one which is made from scratch man
i have made an empty AFG decisions file and an empty AFG decisions categories file , yet they remain
that does not matter, your botton has a container name and you need the scripted gui to define what should happen if you click it
yes, create an empty mod, make a tiny change and check if the mod is loaded
Thats what you need
Debug_nuking is deprecated
You can nuke with toolpack but that doesnt target a specific province
its a mod?
Yes, Alternatively use a console command to unlock the special project(s)
Nah toolpack is a mod
