#modding
1 messages Ā· Page 9 of 1
nazism i think
yea
and other nations with nazism have a different definition
so the gen might stand for generic
i guess
who knows
wats the file with the ideologies names?
idk off the top of my head lemme check-
in localisation*
found, parties
oh ok
Correct
iM qUiTe tHe HoI eXpErT mYsElF
yes
hey a helper, can u help me?
With what
oh, theres not one without need for a scope?
Well what exactly are you trying to do
the wiki, i found dat one, but i wanted a general one, to check for any country guaranteing any country
Scope
Oh yeah just do some dynamic scoping
idk if its even possible, but im doing a diplomatic action dat removes guarantees
from AI countries
like i ask france to rmeove checoslovakia guarantee
and they do
those work as scopes? i thought they were weird triggers breh
The wiki has a seperate page for scopes
im not the master of modding, nor english lol
Well any_country are triggers, but PREV is a valid scope yes
hm
You ask any AI countries that are guaranteeing to remove guarantee?
By event?
diplo action
Ah
i made already one to make enemy surrender during war so
i have small experience, but have experience
ohhh ye, talking about my previous diplo action, is there any way to make the modifiers go away when they are not needed? lemme gib example
u see the ones with a 0?
is there a way to make them go away when they are 0?
Idk tbh I dont touch AI
If its a button, Ig you just need to check is_ai = yes and also within target country scope
any_other_country = { is_guaranteed_by = PREV }
im also checking for it to not be ai, cuz i dont want myself in the list
^^
ah
im a fan of horizontal code, surely not because of this
š
Wow that looks awful
i couldnt rly make it vertical...
If I was caught dead writing that I would revive myself
it would take hundreeds of lines
Scroll wheel
That looks like 150 tops
Theres even a website to indent for you
tbh, im only horizontal coding for extremely long code lines, i do normal verticality in smol code
ship oobs are horizontal
cuz they are FREKIN long
That just makes it even harder to edit
i tested dis, no work, it checks if the country i click is guaranteed by itself
š š
oh wait a minute, i got it

just needed to add a NOT TAG = prev and it worked
and use any_country insted of any_other_country
idk why it didnt work before, cuz to me any other country would be every country except prev
Can you send me good video trutorial for creating countries
i gess there isnt, iw tutorial is outdated
I'm new to modding
but should work, i did 8 countries in my mod
in 1.11 tho, the only problem would be oobs, cuz now theres planes
I had tried to make country according to trutorial i sent before and all of the colours were mixed
dats a common newby erorr, i had it alot
u just messed something in the color file
And my country didnt show up
oh, dats new
u sure u did every single step there is to be done?
I think so...
except flags, u dont need to do country flag till the end, it doesnt affect the country
I'll try one mor try
Time*
The trutorial was for version 1.8, so I thought it was that problem
u did it?
yes, now I'm trying again
is var: needed?
ayo why cant i send my diplo action, all i did was use a variable t set the cost, it works if i put a specific value
@pale sparrow can u answer at least one of these 2 questions?
Yes because it lets it know it's using a variable
and about the other thing, why cant i use my diplo action when im using the variable?
Not sure, send your code
both the cost and the code dat sets the variables?
well cost is this
the variable set is in on_actions, this is inside on_actions = {}
if this helps my diplo action doesnt have any effect or ai desire yet
i tested with the other one i did and it looks like it is a var problem, i cant use the other one either, and that one is complete
I dunno if thisāll fix it but on_startup would mean released nations and countries that become majors later on have weird pp values
so should i check like daily?
Nope, daily checks should only be used for highly important things
so wat do i use?
I figured my mistake
I figured it, it's quite embarrassing, I don't have the pp to send it
Im new to modding, and i have a medium/big sized project in mind that i want to make but im not really sure where to start. anybody want to be my partner in crime on making it?
If ure new to modding, u shouldn't start big projects, wat do u have in mind?
i wanted to make a mod that was like a very british civil war but american civil war
ik kinda dumb and kasierreich already did it but
Ah, it's doable I gess
Did u look in game files to see how usa civil war works?
Iād keep that mod on the backfoot before diving deeper in
Iād suggest thinking of a smaller idea for your first mod
Yes that would tend to do it
after hearing that little advice from both of yas
yeah ill probably do that
still want help though
My suggestion for a first mod thatās a bit complex but not too tough is a custom country with focuses
Well just drop a message if you need help
yeah
For starting, perhaps try to make a ez civil war, with the civil war effect, then go gradually up till ure redy to make a complex civil war
k
And remember; reading the basegame code is your best friend
And not being stupid like needing 50 pp to send a diplo action and not having it and pointing to the var as the guilty one
True, itās better in Stellaris but itās still a good idea in most cases in HOI4
The civil war effect?
Hm?
Wats inconsistent
Base game code
Oh
Eh, it's just complez
Idk how many times HoI4 used the civil war effect, I think for German vs kaizer civil war
For that yes, but for most of the time for more in-depth ones like the British and Soviets there is far more going on
i wanted to do that but im lacking on inspiration i just dont know what to do and the ideas i do have are already mods
I didn't look at the usa civil war, but I can safely say Dat Spanish Civil War is the most complex one
Or was
Not really that just has a lot of events, it's a predetermined location every time
I wouldnāt let that stop you. Just because the idea has been made before doesnāt mean you canāt put your own spin on it
It's the Soviet one by far
Is there any new civil wars?
good point
Soviets have a civil war?
They have like 4
God I never played soviet without being commie
It makes heavy use of dynamic modifiers, state flags, decisions and scripted effects
Dynamic modifiers? Wots Dat? Never worked with those
Also never used state flags, but I do know to use them, kinda, the problem would be the condition to choose the states
i made a single scuffed mod https://steamcommunity.com/sharedfiles/filedetails/?id=2875939154
And scripted effects are just big effects compacted into a simple code line like effect_war
It's basically like a national spirit but acts more like a variable that can be changed dynamically
It's very handy to just have an effect on hand without having to copy and paste some large amount of code every time
Ahh good, a sign to never usethen
It's only really good if you have a large national spirit that can change a lot or needs to be robust
The Soviets make heavy of them since their modifiers change so much
Makes sense
So dinamic modifiers are just variable modifiers?
Pretty much
It's to prevent having like 50 if's to swap ideas
Scripted triggers : D
.
Ye ik, was just pointing out scripted triggers are just scripted effects, but triggers
Yeah ok
Scripted localisation in the other hand...
And scripted gui š
Scripted localisation is probably the easiest out of all of them
Huh?
No?
Scripted Triggers and effects are the easiest, then diplomatic actions, then loc and then gui
All you need for localisation is just a trigger and a loc key
Tho if I knew to use scripted loc, loc and diplo actions would switch
@lofty plaza is there a way to make these modifiers with value 0 vanish and apear when value changes to something different than 0?
I am making erich von manstein as germanys leader.
What should i do in localisation
isnt manstein already in game?
Yes but as general
so u could just edit him right?
I want make him country leader
edit him in the character file?
Yes i did it
and is localisation needed?
Yes
for wat?
It is not working
when u say its not working, wat do u mean, does he show up like SOMETHING_NOT_HIS_NAME or doesnt appear?
Yes nothing happens when i open the game
Its the vanila hitler portrait with name
I mean no change was seen
im not 1000% sure, but i think generals can be leaders, maybe check game files form Mao, cuz hes a leader and general
field marshal actually
who tf is dat
But its not for germany
ik, just check if ur code looks like the mao code
Romania
Ok
so, did the code match?
Is there a way to set default missions for each ship task force? For example set it to patrol an area, but from the get go
like:
task_force = {
name = "Aegean Patrol"
location = ID
mission = "Patrol" AreaID
**Ships**
}```
I don't think so, I don't recall anything like that being used anywhere
Visible
wut
var:whatever < 1
Then probably not
theres no way to make it go away? srsly pdx why do u have to hardcode everything dats pretty and us modders need to content with the modifier showing 0 :/
This is for a diplomatic action right?
ye
This is probably a dumb question but is 8.8.8.8 BGRA 32 bpp. The same format as 8.8.8.8 ARGB 32 bpp. I'm looking in NVIDIA Texture Tools and can't find the latter but I can find the former.
im dumb so i cant answer for sure, but if it was the same, there wouldnt be different names imo
it looks like the inverse
is there any way to trigger a gui window in a diplomatic action
cuz i heard of send_scripted_gui or something similar
like when u click on guarantee or justify war, a window pops
Yeah probably
send_scripted_gui:
when:
justification = true
Thatās not it but I assume itāll be like that
You need to make the country files have Erich con manestein iirc
With his name and portrait name for the party (I assume fascist)
Are there any (German) national focus mods out for the new version?
If so what is it called? I have veen looking for mods to try
My brother in christ the vanilla focus tree is the best one. The other ones are just unbalanced wehraboo larp mods
Is there any parameter I can use to check if I own the state in order to apply army or air wings on this state (with a mod)?
or basically another question
if I use a file in 2 mods
does it merge?
or one takes priority over another?
Ok i'm brand new to modding but when I add in a new leader for a party, it deletes all of the other leaders and advisors. Can anyone link me a thread where someone has had the same issue or explain what i'm doing wrong?
I followed the Iron workshop video and I'm not entirely sure what I did differently other than being on the newest version
Did you delete the other recruit_character lines from the history file? Alternatively, does your character file hold the blocks for the other leaders?
<@&846894118219022336> another invite
I deleted all the other recruit_character lines and my character file doesn't hold the blocks for the other leaders. But even if I add them back in I can't access the Advisors
I can send my files rq if it would help
The leaders wonāt show up ingame if they are not recruited in the history files. And yes, you can dm me the files
ok
how to do scripted localisation
read wiki
wiki has scripted loc? were?
Localization page I think
ye i read it there, didnt understand shet
What about that
some_loc?
can be anything
and dat some loc is wat needs to be written in ur code right?
like this green thing
this is my some_loc?
yes
ah oke
do u have decent knowledge of diplomatic action coding?
no
cuz i was using the IW template, and i found this
reset_send_effect, wat would it affect? hmm
i found this in another mod
a mod dat uses scripted gui
these 2, idk to use them
Spent 2 days trying to add a simple character to a country. Anyone have any suggestions?
I've
- Added my character. A character with the same properties and a different name actually appears for Germany if I give it to them instead.
- Used recruit_character in the history file.
- Removed all countries from the /general/ advisor generation script, so now Serbia doesn't get any automatically generated advisors. But they still don't get my custom one.
When I added a leader for Serbia in their file, that seemed to work fine. No idea why this particular advisor isn't working.
uhh?
@spark mural Maybe you also need to add the name to the common/names/00_names.txt under the corresponding country?
guys, how do i create a mod file in the new hoi4 launcher?
oh nvm
i was in playsets and not All Installed Mods
I'm not overriding the names.txt file so the standard one should already be working, and that version contains a 'SER'. In fact, names are generating for Serbia.
Ok so I made 2 new advisors, but when I select one the other one dissapears
i'm not getting anything on the error log
heres a screenshot
Ok, just thought that maybe the names you chose for your new recruit must exist in that file too
so maybe you should override it and just add the name you want
what do the x and y stuff mean in units?
figured it out, i didn't give totoro his own id
new recruit? This is a political advisor
i feel like it would be pretty cool if someone made a mod that added ammunition that you could produce
what's the difference between every localisation definition for each country?
is there any general hoi4 modding server nearly every one i found had an invalid invite
That was on the frontpage like a week ago
oh
Can you elaborate? Which definitions are talking about?
So is it possible to create focus trees with the balance if power stuff?
guys
why is all of my countries now random colours
[07:27:54][countrytag.cpp:112]: PIR - is not in the tag list
[07:27:54][history.cpp:257]: Unknown history file in country database - history/countries/PIR - Pirate Federation.txt
[07:27:56][gamestate.cpp:2852]: Invalid Country Tag - PIR
[07:27:56][gamestate.cpp:2852]: Invalid Country Tag - color
[07:27:56][parser.cpp:932]: Error: unexpected token in file: "common/countries/colors.txt" near line: 3 ( { )
[07:27:56][gamestate.cpp:2852]: Invalid Country Tag - {
[07:27:56][parser.cpp:932]: Error: unexpected token in file: "common/countries/colors.txt" near line: 3 ( 38 )
[07:27:56][gamestate.cpp:2852]: Invalid Country Tag - 38
thats the error
anyone know what im doing wrong?
hoyl shit i fixed it
idk what i did but i fixd it
Hi
you were missing an end bracket
hello
In the countries localisation file there are a lot of different things for each country and I'm not sure what each one is used for
Like the TAG, TAG_adj, TAG_def?
yes
So where would I Start in order to stop the AI from researching some techs?
Can i create a country with event?
I had same problem
not i wasbt, i just forgot to press tab before color = whatever
me and my friend are trying to make a mod together and publish it together but we don't know how if we even can.
guys
when im makign a national focus, how would increase the production speed, construction speed and stability?
One uploads, then just adds the other as contributor on the Steam page
oh wait
i figured it out
add_stability = value
ok now im confused
ive made a second focus, but it isnt showing
the previous focus id was 'uprising_of_the_pirates'
@pale sparrow can you help?
Usually focuses not showing up are bracking issues
i dont think i have a bracking issue
i can send the script
id = pirate_focus
country = {
factor = 0
modifier = {
add = 10
tag = PIR
}
}
default = no
continuous_focus_position = { x = 50 y = 1000 }
focus = {
id = uprising_of_the_pirates
icon = GFX_goal_generic_major_war
x = -28
y = -1
relative_position_id = AST_empower_the_workers
available = {
}
bypass = {
}
cost = 1
cancel_if_invalid = yes
continue_if_invalid = no
available_if_capitulated = no
completion_reward = {
add_stability = 0.15
add_war_support = 0.20
add_political_power = 80
}
ai_will_do = {
}
}
}
focus = {
id = go_with_germany
icon = GFX_goal_generic_major_war
x = 1
y = 1
relative_position_id = uprising_of_the_pirates
available = {
}
bypass = {
}
cost = 1
prerequisite = { focus = uprising_of_the_pirates }
cancel_if_invalid = yes
continue_if_invalid = no
available_if_capitulated = no
completion_reward = {
add_political_power = 40
}
ai_will_do = {
}
}
}
you have three brackets after ai will do
the second one is to close of focus = {}
there should be only 2 since the thrid one closes the entire focus tree
and the 3rd one is for the first line
yeah so you closed the entire focus tree
after the focus
either way, i removed one and it still hasnt appeared
oh
my
bad
i thought you meant after the 2nd focus
thank you!
no problema
you've gotta make localisation
localisation/focus_l_english.yml, yeah
you'd do it like this uprising_of_the_pirates:0 "My super cool focus yay!"
Yes, needs to be in qoutes
š
bracketing was indeed wrong
yeah but gotta save the focus file so it realizes it has localisation
the .txt in national_focus?
yes just press space and save and it should update
nope
strange, anything in the error log?
how do i check the error log again?
In the game there's an doggo in the bottom right corner that you can click on
hes gone
i'll just send this
its from uh
me typing in error in the command console
[16:41:50][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 48" in file: "common/national_focus/pirate.txt" near line: 75
[16:41:53][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 48" in file: "common/national_focus/pirate.txt" near line: 75
[16:41:56][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 48" in file: "common/national_focus/pirate.txt" near line: 75
[16:43:08][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 48" in file: "common/national_focus/pirate.txt" near line: 75
[16:43:30][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 48" in file: "common/national_focus/pirate.txt" near line: 75
[16:43:58][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 48" in file: "common/national_focus/pirate.txt" near line: 75
[16:44:33][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 48" in file: "common/national_focus/pirate.txt" near line: 75
[16:44:43][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 48" in file: "common/national_focus/pirate.txt" near line: 75
[16:44:54][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 48" in file: "common/national_focus/pirate.txt" near line: 75
[16:45:05][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 46" in file: "common/national_focus/pirate.txt" near line: 73
[16:45:32][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 46" in file: "common/national_focus/pirate.txt" near line: 73
[16:47:32][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 46" in file: "common/national_focus/pirate.txt" near line: 73
[16:47:54][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 46" in file: "common/national_focus/pirate.txt" near line: 73
[16:49:12][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 46" in file: "common/national_focus/pirate.txt" near line: 72
[16:49:27][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 46" in file: "common/national_focus/pirate.txt" near line: 72
[16:49:31][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 46" in file: "common/national_focus/pirate.txt" near line: 73
[16:53:46][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 46" in file: "common/national_focus/pirate.txt" near line: 73
[16:54:10][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 46" in file: "common/national_focus/pirate.txt" near line: 73
[16:54:27][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 46" in file: "common/national_focus/pirate.txt" near line: 73
[16:55:23][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 46" in file: "common/national_focus/pirate.txt" near line: 73
[16:55:33][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 46" in file: "common/national_focus/pirate.txt" near line: 73
[17:05:01][ConsoleCmdImpl.cpp:5927]: ======== show errors from console ========
****```
This is before the bracketing issue was fixed yes?
Then it cannot help us.
so what do i do
You can restart the game that forces the error log up again
alr
there is nothing but stuff about characters
[17:08:40][effectimplementation.cpp:5123]: history/countries/PIR - Pirate Federation.txt:9: recruit_character: Unknown character
[17:08:40][effectimplementation.cpp:5123]: history/countries/PIR - Pirate Federation.txt:10: recruit_character: Unknown character
[17:08:40][effectimplementation.cpp:5123]: history/countries/PIR - Pirate Federation.txt:11: recruit_character: Unknown character
[17:08:40][effectimplementation.cpp:5123]: history/countries/PIR - Pirate Federation.txt:12: recruit_character: Unknown character
[17:08:40][effectimplementation.cpp:5123]: history/countries/PIR - Pirate Federation.txt:13: recruit_character: Unknown character
[17:08:40][effectimplementation.cpp:5123]: history/countries/PIR - Pirate Federation.txt:14: recruit_character: Unknown character
[17:08:40][effectimplementation.cpp:5123]: history/countries/PIR - Pirate Federation.txt:15: recruit_character: Unknown character
[17:08:40][effectimplementation.cpp:5123]: history/countries/PIR - Pirate Federation.txt:16: recruit_character: Unknown character
[17:08:40][effectimplementation.cpp:5123]: history/countries/PIR - Pirate Federation.txt:17: recruit_character: Unknown character
[17:08:40][effectimplementation.cpp:5123]: history/countries/PIR - Pirate Federation.txt:18: recruit_character: Unknown character
[17:08:40][effectimplementation.cpp:5123]: history/countries/PIR - Pirate Federation.txt:19: recruit_character: Unknown character
[17:08:40][effectimplementation.cpp:5123]: history/countries/PIR - Pirate Federation.txt:20: recruit_character: Unknown character
[17:08:40][effectimplementation.cpp:5123]: history/countries/PIR - Pirate Federation.txt:21: recruit_character: Unknown character
[17:08:40][effectimplementation.cpp:5123]: history/countries/PIR - Pirate Federation.txt:22: recruit_character: Unknown character
[17:08:40][effectimplementation.cpp:5123]: history/countries/PIR - Pirate Federation.txt:23: recruit_character: Unknown character
[17:08:40][effectimplementation.cpp:5123]: history/countries/PIR - Pirate Federation.txt:24: recruit_character: Unknown character
[17:08:40][effectimplementation.cpp:5123]: history/countries/PIR - Pirate Federation.txt:25: recruit_character: Unknown character
[17:08:40][effectimplementation.cpp:5123]: history/countries/PIR - Pirate Federation.txt:26: recruit_character: Unknown character
[17:08:40][effectimplementation.cpp:5123]: history/countries/PIR - Pirate Federation.txt:27: recruit_character: Unknown character
that syntax looks correct
gotta make sure its the right encoding and location then
Did you make the yml. or copy it?
ah you forgot l_english at the end of pirate focus
ahh
it should be pirate_focus_l_english
You probably have to restart the game for it to regonize new files
epic
how would i increase the divisions attack/defence in focuses?
ok
just wondering, what number should i put, if i dont ever want the AI to research some thing?
would assume 0
odd land_doctrine = 100.0 is at 100
Probably since land doctrine is researched via army experience now instead of research slots
dang. theres no Modern tank, didnt want them the Ai to research modern tanks either
i guess generic is all the other nations?
then you'd guess correctly
i've recently created a mod "fast war" and whenever i use it in multiplayer it says that my friend has another version of the game
which he dosent
we got same everything and im 100% its my mod because i've tried my mod only and other mods togheter
how did you give it to your friend?
Its posted on the workshop
Are you both playing with the workshop version?
yup
Is your mod still in the hoi4 mod folder, the one you program in that is
yes
then move that and its descriptor file out of the mod folder it's making the game confused since they both have the same id
alright let me see
Nope did not work
Then, sorry I do not know. One of the epic helper folks gotta take over.
I have a question, does your mod things appear in the game when you start it? Like rn
yup
very strange
I fixed it, i just had to update the mod
thank you anyways
have an epic gamer time
TAG and TAG_ideology are the country names, e.g āUnited Kingdomā and āGreat Britainā
TAG_adj and TAG_ideology_adj are the adjective, e.g āBritishā
TAG_def and TAG_ideology_def are a bit hard to explain, but look like āthe United States of Americaā. Basically they are both the full name and also put in the if needed
where are the defs used?
Doesn't Defs add the "The" Infront of a country if it needs to be or is that a different one?
When referring to it in sentences, like āThe United States of America has declared war on Germanyā
Yes, I tried to refer to that though I could probably have made it clearer
Maybe or I'm just bad at reading
How many mods are there for increasing the number of support companies in a division?
The ā12 support divisions modā that was popular breaks the game with the latest dlc
Honestly donāt yāall feel 5 supports is way too low?
hello
i made a mod that changes france flag and it worked when I first tested it but it doesnt now
can anyone help me?
What do you mean, if it worked it should still work
I tested it now and it doesnt
Did you change something?
No
i made folder gfx>>flags>>medium, small, FRA_democratic
medium>>FRA_democratic
small>>FRA_democratic
and it doesnt work at all
@sacred monolith ?
Can anyone help my with some modding?
I want a event to trigger day 1 (when the game starts) for only the 1939 start date, how do I do that?
Thanks if anyone can help
You need to make an on_action
How do I do that
The event fires right now but I only want it to fire in the 1939 start
ah you gotta put the trigger has_start_date > the date (I can't remmember)
Iāll try
Also I donāt want it to trigger in the 1936 starts so if I set for example >1939.8.1 I donāt want it to fire for the 36 start when the game gets to that point
How do I do that
The good way is to check in on_actions on game start for start date then fire the event if >1939
I'll let real helper man take over, I'mma go sleep good luck!
Setting as trigger would mean it keeps checking throughout any 1936 game, so you should just check once then decide whether to fire in on_action
I also go sleep
Itās my first time using on action so can you tell me how exactly and where to use it
Plz
common/on_actions
Ok thanks Iāll keep trying#
anybody can help?
Are you sure you didn't change anything?
well i thought I fixed something
by replacing the FRA_democratic files because I thought that was the problem
i edited them in paint.net
and saved as
compression off
32 bit
So after you saved them it broke? What does it show now just the vanilla flag?
yeah
for normal and small flag it shows default
but medium works
@south folio sory for late response
how do i replace the main theme (loading song) with a different song?
um im new to modding and im not sure why but like the colors for the world are all wonky
like the country i put there has the color i intended
but the normal vanilla countries just have random colors
Is there a way to reload files without restarting the game?
Itās really annoying and reload command doesnāt work for some files
i fixed it š
not sure why my leader wont show up ingame tho
hello guys, does anybody know what the syntax is for a reasearch bonus for guns, ships and planes?
can anyone help with me as to why my leader wont show up ingame? have i done something wrong here
did you save the leader file as a .png?
i thought it was meant to be a .dds
yeah
and you used the correct format thingy
made sure it was the same frame and all that
yeah
i used uh
lemme double check
B8G8R8A8 (Linear, A8R8G8B8)
yeah
well it unfortunately doesnt
and change it to your file names and stuff
ok
name = "leader"
desc = "description of leader"
picture = "leader_portrait.dds"
ideology = ideology_thing
traits = {
#
}
}
wait this might be a dumb question but
Can anyone help please
Thanks
should the image NAME end with .dds
no
ok good
the file extension
should be .dds
the name can be whatever
make sure that your leader portrait is in these files, obviously mine is different
it is
it will open autmatically
when you laucnh the game
in debug mode
or in vanilla idk
the leader isnt there š¦
send me the error log
it should be a .txt
in the files of the mod or the game files or what
i searched the word error and i only found the image for the error log button
how do i launch it in debug
eh whatever screw it
go to Manage, then do Browse Local Files
scroll down until you find hoi4.exe
then right click on it and create a shortcut
the shortcut should be on your desktop or in the folder
ok
open the properties of the shortcut
and you should see something called
Target: directory of hoi4
go to the very end of it
and type
- debug
with a space after the "
alright
if you have the game on your D:/ i can send you the full name
"D:\SteamLibrary\steamapps\common\Hearts of Iron IV\hoi4.exe" -debug
got it
but you just type - debug
after wards, click apply and ok
then launch the game
you'll no if it worked if you can see the button called
Nudge!
got it yeah it worked
yeah
send me it
if you closed it just relaunch the game
ah
did you create an image for democratic small?
no
if not
just duplicate one of the other small images
change the ideology to democratic
and you can either leave the flag as it is or you can just make a new flag or democratic
alright done
ok now try
if it doesnt work, im gonna be honest with you
i dont know whats wrong
yeah sorry
How to reload events file in game? Plz help
I can reload focus
Reload localization etc
But not events why is that?
Just cant
You can probably use portait_path or make the leader a character which is what most if not all of the in game leaders are.
Is there a mod that would allow your puppet to become a new formable nation?
You can probably look the wiki on effect for the effect. For the categories look at common/technology_tags iirc
I found out that reload asset reloads the events but what about resources?
Doesn't events/national_focus/loc reload on save whilst in debug mode? State resources can probably be reloaded in nudger.
.
im using a scripted gui to send a diplo action, anyone know wat i need to add to it to cancel/sendthe diplo action in the gui window?
currently i juts have a background
How and where do i put the "replace_path"?
in the .mod file that corresponds to your mod.
the descriptor?
The one outside of your mods folder if that makes sense
ok wait...
and which program is suited to open it, a movie program cant open it of course
you can open it in notepad or probably the one you code in
oh dear could have thought that, thank you š
anyone knows how to add this part of scripted gui in our custom scripted gui in sending scripted diplomatic actions?
there should be a way to do it without creating it, this mod does it, and they dont mention the gui name of that window anywere
i dont wanna add it manually cuz i want those buttons to work normally
why is this setting the party back to democratic?
hey guys, i am looking for a napoleonic wars mod on the paradox website, but cant find any
does anyone have one or perhaps a zip file for it to manually install
my question is, is there even one?
Not an active one as far as I can find. There's an old one from 2017 but that one is very much dead
Also a newer one but none seems to support the current version you'll have to rollback most likely
1.10
could you send it
i dont have hoi4 on steam :)
R.I.P
Is it that one or redux, redux is even older
its not redux dw
There must be someone with this knowledge in this server, I rly need the answer, my mod depends on it
There must be a way, or the mod I downloaded wouldn't be possible
I don't know but I would assume those buttons are there automatically when you use a diplomatic action.
The buttons do show up normally when u don't have a scripted gui, but when I use my scripted gui, there's no buttons
There should be a way to add them somehow
I looked almost everywere in the mod, I can't find anything
Also I comented out the whole gui in the gui file, so it should be activated somewhere outside the gui file
If you have the GFX of the file can't you just bulk search for that?
I searched for the gfx Inn the whole mod, no results
Is it possible to hardcode something in game with a mod?
There's no extra files in mod Dat idk tho
Which mod is it?
Umm I kinda forget the name, I think it's enhanced diplomatic actions
Ye
From all of those, the one Dat I care about is the send peace deal one, u need to be in war with the country u want to send the diplo to see it
does anyone know how to fix this?
So basically in the picture with the code you can see greece, oman and tibet etc in the bookmarks as minor nations. But when i open the bookmark after saving and restarting it only shows greece, turkey, and hungary
Every minor country needs a custom focus tree
Umm...
U doing a bookmark but u don't know to make a focus tree? Bruh
This lesson will explain how to create/edit a new focus tree in Hearts of Iron 4.
Timestamps for this tutorial/lesson:
00:00 - Lesson beginning
01:24 - Creating mod file
02:01 - Creating file and folder structure
06:55 - Assigning focus to a country
10:07 - Rearranging focus syntax
23:27 - Creating focus icon
30:40 - Assigning localisation
32...
thx
ye im kinda new to this
and stupid at the same time
Also u removed the other countries thing at the end wich let's u choose other countries in the map
U can still choose one of the countries I have in ur bookmark and then change when u get into the map, ut
U know everything and answer everyone lol, are u like monitoring this channel constantly?
Also did u find anything in the mod Dat could enable the bottom gui thing with the diplo action buttons?
I found the roots of the diplo_popup_bottom and that the scripted_gui interfece file has nothing to do with it at all
I removed all the code in it and was left with this
is your gui also triggerd via diplomatic action?
So is it supposed for it to apear by default when u trigger it Tru the scripted diplo actions? Maybe I'm triggering it wrong
I'm literally using the command in scripted diplo actions, so the problem probably would be in the scripted gui file I supose
I was thinking that but this mode also uses send_scripted_gui
Dats the command u need to use
It also has receive_scripted_gui but Idk if that's relevant
This mod also works for aĆ, so that one is if aĆ sends u the diplo action
It's something like dat
I think
What is your gui supposed to do?
I just want the buttons to pop so I can close or send the window, cuz my current gui, wich is just a background, doesn't have anything, while Dat one has the buttons
But I wanna do a gui to select countries to remove guarantees from
Wiki doesn't talk about scripted diplo actions, let alone scripted guis in scripted diplo actions
Let's see if I got this right. You want a diplomatic action that asks for removal of guarantee akin to non-agression pact but the outcome will be removal of guarantee.
Yes, I ask the country, I select the countries to remove guarantee Inn the gui im doing, hmthey accept and remove them
And also I was thinking of adding aĆ strategy to not have ai reguarantee them instantly after
The only mod I've seen do something simular is toolpack but it doesn't use diplomatic actions and dosen't ask consent.
Ye, but my only problem is the buttons
I can do everything else
I JUST NEED THE DAMN BUTTONS
can you send me the gui, if you don't want it here you can send it in dm
My gui?
yes if possible
There's a problem, I'm off my PC rn, I'm asking this for quite a long time,l
And also as I said, it's just a background
It's the Iron Workshop template
I'll do mine after I figure how to get the buttons
can't you take the ones from the one that has buttons and try to remake it to fit your criteria?
U mean copy the buttons gui from the game files?
no from the mod that shows the buttons
U've seen the mod
There's no sign of the thing Dat pops the buttons
U mean grab the mod files and slap my gui there?
If possible
I can try I gess
Tomorow when I get on my pc
I'll use the IW template still
If it doesn't apear, I gess I can conclude the problem is with the IW gui
I'll try it right now
Rly?
Nvm idk howš¤¦
It just had the normal gui so I was like "idk what I'm doing so maybe I shouldn't"
I've only worked with scripted gui in the context of decisions
Hm, I'll try tomorow, perhaps I can make it work somehow
And hopefully understand from were is the mod puling the gui of the buttons
Bye and thx wise dude with Jorji pfp
Also regarding my activity, I've two screens so usually I this chat opened on my other monitor, so I can help when I can.
Damn 2 monitors, my monitor is 2k lmao
You mean in money or in pixels?
2k is a quarter im pretty sure
Does anyone know of any good interwar mods?
My cosmetic tag file isnt working, it is set to say GroĆgermanisches Reich in the cosmetic tag file but still says Greater German Reich ingame
Do you mean the localisation file or the one in common cause you need to do it in the localisation.
Localisation
Probably a localisation issue. Does it have _l_english the yml localisation file.
Yes
Did you copy paste it from previously existing localisation?
Yes
Can I see the file?
Even if you do set_cosmetic_tag GER_greater_german_reich in the console?
Yes
This is probably the first you tried but just in case have you just tried to restart the game to reload the files and is the error log to any help?
Iāve has issues with localisation overwrites before
I have restarted the game and the error log doesnt help
Iāll check whether load order might change it
Real helper man, you take over I need sleep. Have a good day!
I donāt see anything on the wiki talking about load orders. It is possible you might need to overwrite the whole file but I deem that unlikely. Is this the only part that doesnāt work?
Yeah, other cosmetic tags work like reichskommissariat britannien
Is this the only one where you overwrite a localisation?
What do you mean by that
The greater german reich is the only one that overwrites
This is happening to my custom USA_CSA cosmetic tags too
From what I can tell localisation requires a full overwrite of the file judging by what I just tested, unless some other modder can refute that
Do you take a decision to change the cosmetic tag?
If you want the name to set like that in the beginning of the game you can use on_startup action
how long does it take to make a mod with a new country, focus tree, generals and ideologies?
i swear
this game makes me want to pull my hair out
trying to mod it is frustrating for a dumbass like me
i wanna make a small custom country for my own use, i managed to do that but i cant get the flags into it and i cannot set a leader picture, two of allegedly easiest things to mod
i wanna comit ded, no one knows the answer to my frekin problem im trying to solve for 3 days now
Yeah I have seen that and I have no experience in scripted gui unfortunately
noooooooo
what is the working road to 56 mod?
whenever i run it i get a crash report
If you rollback your version too 1.11 it should work since it hasn't updated to work with current patch.
Moo
anyone got the peacedeal freeze?
Depends on scope. Could be a week. Could be months. Focus trees are massive things if you make them massive and is the main determiner of length, alongside the effort you put
Not sure about leader picture but flags night have issues with compression. When exporting flags, make sure to untick anything that mentions compression
anybody know how to add the new balance of power thing to other nations?
I don't but you can probably look at the game files common/bop and see how they did it and learn.
alr ill do that
thanks it makes sense now
i can mod it :D
Anyone know a fix for factories acting like they dont exist?
whenever I try to add factories in thru a focus tree, they show up in the state but they dont show up anywhere else
I love just straight-up lying to my playerbase :)
...what do you mean?
hey guys, I'm trying to add a country leader for Kalmykia, but it doesn't show. I tried everything (And looked it up on the internet!) but still nothing. Do you know how to help me? Sending pic's for you
here localisation
Is the portrait in .dds
Well BOP files are just defining the ranges and the actual things are decisions iirc
^ Most (Not all though) dds files donāt have previews in file explorer
Anyways you should just use Spainās definition for the leader portrait, it should work due to how they overhauled the system
yes
Like I have it like that
I mean I donāt see why this shouldnāt work but really itās just a waste of space
I can send you my mod, it's a mess cuz I'm replacing a lot of things in game
Yeah I might check out whatās happening in a but
Why would anyone take a focus that gives negative effects? Even if it actually gives good one, if the players don't know they'll never takes it
I'm currently trying to change the starting chinese leaders portrait, this is the CHI.txt in /common/characters/ in my mod. pooh is located in /gfx/leaders/CHI/pooh.dds
From all i've seen online this is all you need but every time I load it up it just defaults to a generic asia portrait.
its funny cuz same is happening to me, idk try straight recruiting him in history/country file
like recruit create a leader like them in the history file? since they are already recruited there immediately
nono, I mean like create country leader
create_country_leader = {
name = name
desc = desc
picture = pic.dds
expire = "1965.1.1"
ideology = despotism
traits = { }
}
that does work ig, feels real jank tho lol
create_country_leader = {
name = "NRS_YEVGENY_KHALDEI"
desc = "NRS_YEVGENY_KHALDEI_DESC"
picture = "gfx/leaders/NRS/yevgeny_khaldei.dds"
ideology = stalinism
expire = 1997.10.6.12
}
it works for me fine tho
but characters are wack
idk
it pisses me off
idk if their portrait file locations are hardcoded or somethin
idk, like if I do it this way, everything is fine, when I try to add it through characters it's just not showing anything
problem is if i wanted to edit the portraits of other characters like generals or admirals then it would be pretty fked/jank to just create them all
it didn't work for any of the chinese field marshalls either
no i did not...
question
yea?
the field marshall swapped from a generic portrait in base interface to an actual one in waking the tiger
so it's defined in two different places interface wise
would it just work with the mods interface
or do i need to name it something like tiger_leaders.gfx
try the second one
At this point im not sure, but I would rather make it like you said
Also, if anyone know how to get rid of this :D
Unknown countrytag for FRA owner-change in TODO
didn't work rip
oh
https://forum.paradoxplaza.com/forum/developer-diary/hoi4-dev-diary-modding-changes.1495215/
https://hoi4.paradoxwikis.com/Character_modding
Hello, and welcome back to another Dev Diary for No Step back and 1.11 Barbarossa. Today we will be pulling back the veil a bit and show you how modders can affect and use the new features coming in 1.11.
For those of you who do not get...
try these
ok i got the field marshall portrait to work
i got the leader portrait
working as well
changing to the full path makes it work
can you send it to me as text? I'll try if it will work for me
"gfx/leaders/<TAG>/<filename.dds>"
i mean character file
literally only thing i changed in this file
was making large="gfx/leaders/CHI/pooh.dds"
a.k.a
"gfx/leaders/<TAG>/<filename.dds>"
one question, is there anywhere in the logs where i can see why my country leader isnt showing?
the name shows just not the leader's photo
thanks ā¤ļø
Remove all references to the FRA tag in every file, or just keep the tag in the tag list
Oh okay
[15:30:06][virtualfilesystem.cpp:252]: Could not open file: common/countries/Novorossiya, error: not found
hmmmm
That focus branch is about attempting to kneecap a major political rival and removing him from the center of power by assigning him as Viceroy of Civil War Torn Land, Bumf- Nowhere. It's intentionally trying to screw ovee a destabilizing influence on your government
how do i know if the image is fine since i dont see any errors about it in my errors log
is it in .dds?
it is yes and the filename is the same as i put in the text file
then it should work
is NOT = { <scripted_trigger> = yes } the same as <scripted_trigger> = no ?
@pale sparrow
thats why im rn confused
Someone drop me that Millennium dawn 1.7 file
i got few photos i have been trying tons of things
btw sorry for lightmode
legacy lazy load mby
ok thanks, ill try that
i did and i tried to removing it and nothing changed
Are u trying to make her a leader?
yes i am the name does though appear just not the picture
Oh I had an idea about the problem, but it's not wat I was thinking...
Do u have an error log?
no i just get a generic picture
No error? Hm
the only error i have is not related to it which is [17:54:07][pdx_entity.cpp:323]: Failed to find entity "ITA_mechanized_vehicle_1_entity" for attachment in vehicle
Does the pic have all the right parameters? Like any vanilla portrait?
yeah and i made sure even using the vanilla pictures being the backround and making my photo way smaller
Lukly for me I never found a generic portrait problem, bad for u tho, as idk wat to do
Did u define her pic in a gfx and all?
what do you mean by define?
Just add her into a gfx file, like GFX_hername and the path
yes i have
path should be correct and the name was copy pasted
There's. dds at the end?
Gut
Bruh
Nah
Is Dat Gfx the exact gfx entry in gfx file?
Also show me the whole character in a pic
sure
Ska? Is Dat one tag idk or u made a country?
The name needs to be GFX_portrait_SKA_harpa, like the rest
Needs GFX
the name of the photo?
needs GFX in the gfx file
Before portrait
Dats why game doesn't recognize ur pic
Probably
The leader portraits gfx file, not the dds file
is it missing in a document that has posted?
GFX_ misisng
in the name?
Yes, do it like the rest of them are done. Itās not a difficult concept
GFX_portrait...
And the portrait part idk if it's even needed, the only important part s GFX_
Nono, capital
And with _
GFX_
Just Do It like the others are done in the vanilla file
Look at one gfx before Urs, or after, u need to use same struxture
Do it like this
oh oops i feel so stupid rn
im confused its still this photo
@obtuse condor @quaint sundial
there are some duplicated focus names but i keep forgetting deleting htem
and errors from the country flag
and the italy thingy
Country flag literally or country_flags?
Try using a direct path to the photo in the character file.
Ye u could try
[18:19:27][flagtextureatlas.cpp:524]: Error loading flag for country SKA : Ideology democratic : Path gfx/flags/ : File not found
[18:19:28][flagtextureatlas.cpp:203]: Error loading country flag overlay: gfx/flags/medium/SKA_democratic.tga : Unsupported format. Expected 32bpp, uncompressed, no color palette
[18:19:28][flagtextureatlas.cpp:203]: Error loading country flag overlay: gfx/flags/medium/SKA.tga : Unsupported format. Expected 32bpp, uncompressed, no color palette
[18:19:28][flagtextureatlas.cpp:524]: Error loading flag for country SKA : Ideology democratic : Path gfx/flags/medium/ : Unsupported format. Expected 32bpp, uncompressed, no color palette
[18:19:28][flagtextureatlas.cpp:203]: Error loading country flag overlay: gfx/flags/small/SKA_democratic.tga : Unsupported format. Expected 32bpp, uncompressed, no color palette
[18:19:28][flagtextureatlas.cpp:203]: Error loading country flag overlay: gfx/flags/small/SKA_democratic.tga : Unsupported format. Expected 32bpp, uncompressed, no color palette
its this
If that does not work then the issue is with your picture
I think I did dat
yeah ill try that
like this?
Ur flags are totally wrong, copy vanilla flags and paste Urs above and save in ur mod, u need a large, medium and small one
Yes
yeah those are super wrong they even are in png
Breh, u need tga lol
yeah i forgot about the small and medium flags
Add the "" and try
yeps i did that
I donāt think you absolutely need that, i donāt think i have it in my mods