#modding

1 messages · Page 80 of 1

high root
#

the province should be transferred to ukraine, but it isnt

hidden widget
#

Any mods simular to magna europa?

high root
#

why doesnt my country have a flag and a leader? i have all of the files in the mod folder

timber zenith
#

and can you show the character file code?

#

and is the flag in a .tga format?

timber zenith
high root
timber zenith
high root
timber zenith
# high root

the picture has to reference an interface file

high root
#

the portrait is a .dds file

timber zenith
# high root how is that
SpriteTypes = {
  spriteType = {
    name = "GFX_portrait_oun_andriy_melnyk"
    texturefile = "gfx/leaders/OUN/portrait_oun_andriy_melnyk.dds"
  }
}```
#

Needs to be put in a file in the interface folder

#

then you'd use that name as the picture

high root
#

like, make an interface forlder in the mod file, and paste the code?

timber zenith
#

You'd be better off creating him as a character instead of using the create_country_leader effect, though

timber zenith
#

in the interface folder

#

look at the vanilla code you can copy off that as well

high root
#

is the interface folder supposed to go into gfx folder

timber zenith
high root
#

like this?

high root
timber zenith
#

it has to have GFX_ in front

#

i think?

high root
#

like, "GFX_portrait_oun_andriy_melnyk"

#

as the name?

high root
#

but the flag isnt

timber zenith
#

yep that works too ig

timber zenith
night mirage
#

@supple sable

timber zenith
#

what program are you using for flags

high root
high root
night mirage
#

@atomic pebble

#

@light crystal

#

@dry blaze

#

@obtuse condor

timber zenith
#

chill mate

night mirage
#

@austere pivot

timber zenith
night mirage
#

@oblique garnet

high root
#

mods, i guess this guy is really asking for it now 💀

timber zenith
#

lmaoo

timber zenith
high root
#

like this?

timber zenith
#

Yeah

high root
#

do i have to compress it

timber zenith
#

No

timber zenith
#

fix the file name tho hahaha

high root
timber zenith
#

No

high root
#

i will try the one i made in 32 bits, if it wont work, i will try yours

#

IT WORKED

timber zenith
#

Nice

high root
#

thanks for help FBKong 👍

timber zenith
#

No worries

#

I would recommend using the character system in the future, but it's up to you

high root
#

is there an easier way to make a focus tree

timber zenith
high root
timber zenith
#

it's a website

#

but the result casues more bugs than it's worth fixing

high root
#

how can i make focuses then

#

i use a program

timber zenith
#

but you'll still have to do most of it by hand

high root
#

Like, the program is just for placing and naming the focus, then to edit it in notepad++

timber zenith
#

(which is at the start of most vanilla focus trees)

patent linden
#
            {
                limit = { has_dlc = "Man the Guns" }
                add_tech_bonus = 
                {
                    name = DDR_schon_heute
                    bonus = 1
                    uses = 3
                    category = ship_modules_tech
                }
            }
            else =
            {
                add_tech_bonus = 
                {
                    name = DDR_schon_heute
                    bonus = 1
                    uses = 1
                    category = naval_equipment
                }
            }``` is this the correct syntax for an if/else statement or does the else go inside the if block
timber zenith
patent linden
#

splendid, thanks

patent linden
timber zenith
#

I haven't done much modding in that aspect so i'm not too sure

patent linden
#

yeah, seems simple enough

#

there are COUNTRY_TAG = {} blocks, so that should work

#

How do I swap country leaders? I am trying to replace one Country leader that I have for the communist Ideology with another, also communist.

flint sail
#

just wondering on how to fix this, i have been trying with different ID's and none of them worked except infantry_equipment_0

west trail
#

If you want higher teir guns for this day 1 production you need it to be researched in the countries history file

flint sail
west trail
#

in the history file

flint sail
#

ohh in the history file but where?

#

also it says that there is no variant for both support equipment and arty

west trail
flint sail
west trail
#

Find the country under history/countires then find "set_technology" and add infantry_weapons1

west trail
#

infantry_weapons1 = infantry_equiptment_1

flint sail
#

along side that the divisions doesnt have equipment (arty and support)

distant island
#

dude why isnt it putting my portrait

pale sparrow
distant island
pale sparrow
#

It should have the exact same path as the base game one

distant island
#

the path

obtuse condor
#

is there a guts and blackpowder mod

distant island
#

its the same path and both vanilla and my file are gimp dds

#

i might have found the solution

pale sparrow
#

you dont need to do the DLC path

#

gfx/leaders/GRE suffices

distant island
#

oh ok ill give it a try

distant island
#

i think paradox hates me

#

ok i think i made something wrong which ill fix now

edgy solar
#

anyone know what exactly this error entails?

#

i can't tell what is really missing and what to try fix

#

im also assuming that this casued a crash since the game crashes around that time

distant island
#

ok thats a start

#

so basically the top focus will be completed with an event

#

and the option you choose will complete one of these

wintry geode
#

uhhh has hoi4 changed the railway system?

#

uhhhh all the railways combined themselves into one

eager holly
#

Is there a Attack on Titan mod

high root
#

Does anybody have a template with the scripts that give you something upon completion of a focus, like giving 100 pp for example

native tartan
distant island
native tartan
#

apo pou?

distant island
#

athina

native tartan
#

aigaleo h akribos athina

distant island
#

den mporo na po

#

alla eimai kapou sthn athina

native tartan
#

ok

#

ti einai auto to mod p ftiaxneis

distant island
#

rework gia ellada

native tartan
#

kai ego ekana ena greece modern expansion pack alla to stamathsa gt eithele poli douleia kai to hoi 4 olo mou krasare

distant island
#

relatable

high root
#

what other commands like these exist

#

if add_party_popularity exists, what to add next to add ideology

high root
#

Thanks dude, now i can make any focus i want 👍

grizzled sandal
patent linden
patent linden
#

How do I assign Airplane models to a country? I want to give a custom tag both the 3D models of Germany and the Icons

timber zenith
patent linden
#

yes, that

timber zenith
#

(idk about models tho lol)

patent linden
#

i cant find the file

#

or more likely, files

#

ok i think i found it

#

C:\Program Files (x86)\Steam\steamapps\common\Hearts of Iron IV\gfx\interface\equipmentdesigner\graphic_db

#

there are files in there that seem to regulate it, ill try it out

#

It did work!

patent linden
#

the only thing it doesnt seem to change are the blueprints...

slow spear
#

Paradox gonna make my mod obsolete 😭

sullen furnace
#

Hey guys so I'm kinnda new to modding and I know like a fair bit of C++. Anyways so I have it hard to find the required folders all the time and I have to wonder if there is a simpler way.

patent linden
#

tldr, reverse engineer other mods

timber zenith
#

I made an Austrian focus tree with like 250 focuses that I basically abandoned after it was 90% done but oh well

keen cloak
#

I hope it's not going to take ages to update everything with all the new mechanics being added

sullen furnace
#

Imagine having a german mod. That whould become obsolete in the next months

sullen furnace
#

Yeah they will switch to Tanna Tuva

keen cloak
#

see what's lacking in the original and add that in

sullen furnace
#

I hope they add ss mechanics, for historical accuracy

#

I think paradox is to strict with Japan and Germany in the no no zone department

keen cloak
slow spear
#

Reichskommissariats Plus will be turned to Kazakhstan Plus and includes puppets for the entire world for Kazakhstan

patent linden
timber zenith
#

racism

sullen furnace
#

I belive that games should stop being such pussys with these topics. Its part of our history for bad and for good...

keen cloak
sullen furnace
#

Like i dont say it in a bad way dont get me wrong

patent linden
timber zenith
#

especially with such an already "radical" sect in the fanbase

sullen furnace
patent linden
#

that would be hilarious

keen cloak
sullen furnace
patent linden
#

child soldiers!

#

how ingenious!

sullen furnace
sullen furnace
patent linden
sullen furnace
timber zenith
sullen furnace
#

I hope we get flying dorito chip next update

timber zenith
#

i hope we get skibidi toilet next update

sullen furnace
#

The ho-229, If we don't il just mod it in

sullen furnace
patent linden
#

I want a mechanic where half the german military budget gets used by Görings Buffet

#

I could add that to my mod...

timber zenith
#

immersive germany

sullen furnace
sullen furnace
patent linden
#

Napoleon Victory in 1804

timber zenith
#

sick

sullen furnace
patent linden
#

no

sullen furnace
#

Or its a diffrent one?

#

Is it done?

patent linden
#

Not really

#

i started like a month ago, map almost done, 3 countries have content lol

sullen furnace
#

Dis you uplöad it

patent linden
#

no because i wanna wait till it's finished before uploading it

#

maybe a closed beta

#

but i dont wanna throw some half baked stuff out there

patent linden
#

should be automatically applied once it's installed

#

depends on which one you installed

#

you can view the tree in game

#

Well, the updates are real time, so just have the game open while you work on a tree and use alt-tab to switch between windows, or get more monitors lol

#

I can't tell you what it does, the notes don't say what it does

stuck quarry
#

You need hoi4 modding utilities

#

Hoi4 modding utilities lets you preview alot of things

#

Gfx and gui files, focus trees, event trees (see how events and their options interact with eachother)

patent linden
#

it can do that

#

how does that work

#

i didnt even know lol

sullen furnace
#

Expansion pass available now to purchase: https://pdxint.at/EP1Store

This expansion pass for Hearts of Iron IV includes two expansion pass bonuses, one expansion pack, one country pack and one unit pack. Content in the pack invites you to write exciting new histories of Germany in a greatly reworked focus tree, survive as a minor Asian power u...

▶ Play video
#

Man

#

No way

patent linden
#

Yeah I saw that

#

Would be a shame if i were to use my vpn to go to piratebay instead of paying for it

sullen furnace
#

Lol

#

Same

#

I mean, me never

stuck quarry
#

I use it a ton for scripted guis

heady dust
#

me when im modding but I spilled on my computer frown ):

austere summit
#

Hey I am brand new to modding and I have one quick question, when I add new ideologies, usually in the bar to display the amount of support an ideology has (the one near the pie graph) can only hold 5 ideologies. Is there a simple way I can make a scroll feature?

patent linden
#

doesn't that appear automatically

austere summit
#

Not for me at least

#

I have around 8 ideologies and only 5 are in visible range on that line

#

I’ll get a photo of what I’m talking about soon

austere summit
stuck quarry
#

I cant quite remember how to do it

#

But theres a way to change the base ideology frame into a scrolling one

#

I had to do it with my last mod bc we had something like 12 ideologies, but i could never make the first ideology be at the top of the scroll

austere summit
#

Ah

austere summit
#

It’s much better than me trial and erroring it 😭

pine nymph
#

what is generally better? VSC or NTP++

obtuse condor
#

Notepad

patent linden
#

I'd say VSC

#

try out both and see which one you like more

austere summit
signal tangle
#

Is there a way to make it so a puppet of yours can have a puppet of their own?

#

Like they are your puppet, but they also have their own puppet

honest zodiac
#

is there a place to mod the new mechanic

#

like this thing

cobalt knot
#

Hey there, can anyone suggest a place to hire someone to make a custom heart of iron 4 mod? with custom map and nations [dosent need custom focuses]

late wagon
late wagon
prisma marten
timber zenith
#

only cause i had a bad experience with vsc where i accidentally deleted my whole mod

patent linden
edgy solar
timber zenith
edgy solar
#

The weirdest part is that it's normal scopes like "FROM" and "Controller"

patent linden
#

Does anyone know how I can assign specific Blueprint Images (see picture) to a specific tag?

eager holly
#

Hope there could be a mod that plays an animation or short movie after the capitulation of a nation. Like playing the new DLC trailer after conquering SSR or USA

wintry geode
#

hmmmm i didnt make france powerful enough

limber geyser
#

What are som good mods that doesn't change the gameplay but more like the UI, graphics or other nice to have mods etc.

stark cloud
#

🫃

orchid osprey
#

Where are ports defined at? theyre crashing my game.

#

oh found it

wintry geode
#

Uhhhh im having troubles with this event

#

i want to make so russia becomes the controller of this state if they controll it

#

but it doesnt work

#

would anyone know how to do this?

#

i made so france can establish lithuania and courland even if they dont controll them

#

but if they create them and the states controlled by russia dont get returned to Russia that would break the focuses

orchid osprey
wintry geode
orchid osprey
#

Nice

wicked echo
#

my focus tree does this after adding a change party effect

wicked echo
#

why is this

wicked echo
twin sigil
#

except taking place in 1936 lol

sand locust
#

ok so this code

#

is giving this output

#

why is it only doing australia

#

the code below it is running too

magic bay
sand locust
#

wat

#

the bottom screenshot is from in game

#

i know what it says

#

i am asking why

#

i messed up the scope rip

timber zenith
#

don't bother questioning it hahahah

loud oasis
#

what are some good smaller (in popularity, not necessarily size of mod) mods?

cerulean field
clear steeple
#

Do you guys have a good Poland mod?

patent linden
#

2 Questions:

  • How exactly do variables work in modding? I need an integer variable who's value is affected by both focuses and decisions, i remember someone mentioning that you can create global variables, but i don't know how
  • How do i integrate said variable into localisation? I need it to show up in the description text of a decision category, how would I do that?
patent linden
#

fair enough

wintry geode
patent linden
pale sparrow
patent linden
#

on a side note, how can I display the value of a variable as seen in this image

#

I cant find anything in the HOL decision file about it

#

nevermind its in the decision category file

pale sparrow
#

yup

patent linden
#

ok, 2 things, DDR_veb_budget_counter_display:0 "The current VEB budget is: $H[DDR.veb_budget_counter]$!" this does not give me the correct text output

    {
        tag = DDR
        value = DDR.veb_budget_counter
        desc = DDR_veb_budget_counter_display
    }```and this inside my decision category does not display the value in the UI, is this a scope issue? could this be caused by the value being non defined/null?
#

OK, i fixed the first thing, only the UI problem remains

patent linden
#

How do I create a custom tooltip with the checkmark infront of it

#

i cant find it on the wiki

patent linden
#

Nevermind i found it

ripe perch
#

Does anybody know the syntax for replace_unit_leader_trait? "replace_unit_leader_trait = { A B }" does not work.

patent linden
brittle pier
#

Nah mate i don't but should i get the seelow heights mod?

sonic obsidian
#

Say please who know, how to fix leader portrait?

patent linden
gloomy hornet
#

hello

#

how do I merge states?

#

when I add the provinces from one to another the old one is still there

#

say I wanted to merge Northern and Southern Silesia into just Silesia

sonic obsidian
patent linden
#

Show code

bitter apex
#

how do you add army_experience

bitter apex
#

thanks I see

timber zenith
#

or make the state with the highest number (currently 969) use that state's number instead

#

there can't be gaps in the states so that number needs to be replaced

willow trench
#

does anyone know how to set a video or GIF as main menue background?

jagged tide
#

thank you for blessing us with this mod he needed it BAD

keen cloak
edgy solar
#

that may be causing it not to show the idea or even create it

crisp condor
#

fixed

#

but it still doesnt work

outer jacinth
#

Do you guys know if paradox changed the way army icons are used?

light token
#

How do I get rid of mutually exclusives in MIOs?

quick citrus
#

How do I make it so that a nation starts with a national spirit?

edgy solar
quick citrus
#

Yes

#

Its this right


}```
edgy solar
#

yeah

#

should work fine

quick citrus
#

Thats how I have it

edgy solar
#

if there is already an add_ideas for that country you can just slot your idea into it

quick citrus
#

There isnt

quick citrus
light token
#

Or is it possible to remove mutually exclusives in MIOs?

edgy solar
#

whats the idea in it?

quick citrus
#

As in

#

Its a national spirit?

edgy solar
#

yeah

quick citrus
#

Yes

edgy solar
#

its in the '00_generic_organization' file in common/military_industrial_organization/organizations
you can find all the ones that are mutally exclusive and remove the line for making them as such

quick citrus
#

So is there no way to fix it

edgy solar
quick citrus
#

One I made

edgy solar
#

are you able to add the idea via focus or decision?

#

it may be that idea isnt working right

quick citrus
#

Havent tried it

#

Tho I set up the idea exactly like the HoI4 tutorial said

#

Just with a couple alterations

edgy solar
#

try adding it to a focus reward and see if it pops up

#

if not take a screenshot of the idea and send it in

quick citrus
#

I'll try

#

Tomorrow tho

quick citrus
edgy solar
#

no problem and goodluck on getting it working

light token
sonic obsidian
sonic obsidian
deep pagoda
#

Anyone down for a game of hoi?

timber zenith
# sonic obsidian

You can put all the sonya characters into the same scope since they are the same person

#

Are you also recruting them initially in the country's history file?

nocturne zodiac
#

Anyone knows which define is responsible for base trade cost? I want to increase the base amount of resources per civ from 8 to a higher value

cursive atlas
#

Hello. How do you change the leaders of other ideologies? (For example if my country turns communist that I have my custom leader)

orchid osprey
#

trying to add units for crimea but i cant, does anyone know? (I created the CRI_1936.txt, file, it is set as units file for Crimea but they still dont appear)

loud oasis
#

which mods most help increase game speed and performance in vanilla?

timber zenith
bright viper
#

it says there are 30,000 errors and every country disappeared can anybody help 💀

sonic obsidian
bright viper
#

of the game?

timber zenith
#

yeah

bright viper
#

okay let me send it

#

here

sand locust
#

For a nation, how would i make 1 focus tree for a player, and another for an AI

patent linden
sand locust
#

i tried doing like this, but

#

it didn't work

patent linden
#

maybe this?

sand locust
#

hmmm

#

i guess i could make an event

patent linden
#

You could check for the specific Tag on startup

sand locust
#

ye, make like an event to check if it's a player, then assign focus tree

#

i will try that and report back

patent linden
#

use an on_action

sand locust
#

i do not know how to do that, could you elaborate

patent linden
#

one sec

#

Theres a file called "00_on_actions.txt" in the Your_mod>common>on_actions folder

#

in there there is a block that starts with "on_startup"

sand locust
#

ahhhhhh ok

#

and then in there, i add a "load focus tree" if_ai = no

patent linden
#

you can try inserting something along the lines of TAG = { if = { limit = { is_ai = no } load_focus_tree = player_focustree } else = { load_focus_tree = ai_focus_tree} } }

sand locust
#

i will do that

pine lagoon
#

Why doesnt my 2nd focus appear

patent linden
#

Probably because there's a problem with the code for either it or a for the code above it

#

a missing "=" is enough for it to break

pine lagoon
#

The error thing says "near line 35"

timber zenith
#

could you send a screenshot?

patent linden
#

send your code

pine lagoon
timber zenith
timber zenith
timber zenith
# pine lagoon uh

if you use notepad++ you can select a bracket to see if it's closing/opening where it's supposed to

sand locust
#

i added this to on_actions, and when i select the nation, it spits out a generic focus tree. soviet_player.txt is in common/national_focus so i thought it should work....

timber zenith
patent linden
timber zenith
sand locust
#

and now i remember what i did wrong for the other thing

timber zenith
timber zenith
timber zenith
#

and decision categories are a section in the decisions wiki page iirc

#

lol

patent linden
timber zenith
#

it would be an entry in an interface file

sand locust
#

well it works but my gui is gone

timber zenith
#

what's your gui

sand locust
#

you know how focus trees have arrows and stuff

#

they are gone

timber zenith
#

is that in game?

sand locust
#

yes

timber zenith
#

I've never seen that before

#

could you send the focus file? I can look at it when i get home

sand locust
#

i think i can fix it by copying the other file and changing the id

timber zenith
#

yuh that might work

bright viper
timber zenith
#

what was the cause?

bright viper
#

does anybody know why i cant get the goal_generic_support_democracy icon to show up on my focus?

bright viper
timber zenith
timber zenith
bright viper
#

that is the name for it

#

but its still not working

timber zenith
timber zenith
sand locust
#

it won't even let me do the focus

#

well then

bright viper
#

i just had to get rid of the generic

#

thanks

timber zenith
#

all good

bright viper
#

and one more thing, how do I make the focus name not look weird

timber zenith
bright viper
#

okay i think my tutorial vid gets into that at the end so thank you

timber zenith
#

no worries

sand locust
#

and this is my on_startup

timber zenith
sand locust
#

it definitely loaded my player focus

#

like the default one

#

i just copied the base one and added my code into it

timber zenith
#

the on_actions file I mean

#

what else is there

sand locust
#

ohhh in my mod

#

nothing else

#

just the 00_on_actions.txt

timber zenith
#

I'll check when I get home

orchid osprey
#

added Great Horde to my mod

#

context: im making an alt history mod

orchid osprey
#

?

orchid osprey
#

oh wait a second

#

its a comment

#

lol

bright viper
#

set_building_level = {
type = infrastructure
level = 5
province = {
all_provinces = no
id = 25, 31, 19, 806
}

#

why doesnt this work?

orchid osprey
#

yup i fixed it

patent linden
#

nice

orchid osprey
#

idk why the hoi4 devs left the OOB for crimea as an comment

patent linden
#

Im unsure how hoi handles history files specifically, potentially because if they left it in, the OOB would load without Crimea existing as a country

orchid osprey
#

yeah

#

hoi4 leaves an error message in logs if the oob is loaded but it doesnt exist

bright viper
sand locust
#

it's weird, some of the focuses do have the arrows

sand locust
sand locust
#

see, no lines

patent linden
patent linden
# sand locust

did you put the focus requirements in the "available" block or in the "prerequisite" block

sand locust
#

it's a copy-paste of the base soviet tree

#

just with some stuff modified

#

like removing the five year plan interruption thing

bright viper
sand locust
#

it used to work when the focus tree just replaced the base one

#

but now that i am trying to make a player vs ai variant, it's breaking

bright viper
#

it still says the same thing

#

completion_reward = {
add_political_power = 25
set_building_level = {
type = infrastructure
level = 5
id = 25, 31, 19, 806
}
}

#

oh wait

sand locust
#

yeah when it's the ai focus tree, it looks and works fine

patent linden
bright viper
#

i need the Ids

patent linden
#

brackets that never close and such

sand locust
#

there's no typos, because when i had my focus tree just replace the soviet tree, it worked

#

but the moment i changed the id from soviet_focus to soviet_player_focus to do the startup action, it broke

#

so i'm thinking there's a gfx interface thing that sets up how the soviet tree is setup, and i just have to copy it and change it for soviet_player_focus

#

but i don't know where that interface is

patent linden
#

see what happens when you change that line back

sand locust
#

i mean, it would just replace the base soviet focus again

#

changing it back is just where i started from, so i know it works

patent linden
#

yes, but if it works you know for sure that it's that line that causes the error

sand locust
#

ok lemme try it

#

well

#

i made a focus tree for the ai, and changed the id to "soviet_ai_focus" instead of "soviet_focus" and then did that on the on_startup block

#

and now the ai tree has the issue

#

it's almost definitely an interface thing

#

but idk where to look

patent linden
#

If you remove the load_focus_tree from on startup, and load each of the files seperately, what happens?

bright viper
#

how do i make all 3 mutually exclusive

patent linden
#

you need to add an "mutually_exlusive" entry for both of the other 2 focuses in each of the 3 focuses

#

or foci?

#

i dont know the plural form of that

bright viper
#

thanks

fossil light
#

how do i check if a game rule is active?

sand locust
#

imma just dump my code here

arctic moss
#

can someone explain to me why is the game pulling icons that are not specified in the pool? 🥲

sand locust
#

i already know what is broken

patent linden
#

the on_startup seems to break it, or rather loading the focus tree doesnt seem to work proerply

#

there exists a "mark_focus_tree_layout_dirty" which takes a boolean

#

it refresehes the focus tree, maybe adding that underneath the load_focus_tree helps fix it

sand locust
#

hmmm

patent linden
#

this is more of an educated guess than anything else really though

bright viper
#

how do i make it so a focus can only be completed if they have a certain leader

patent linden
#

in the "available" block

#

don't know if that works

arctic moss
patent linden
patent linden
#

if there is an X or a ✔️ with a "has country leader your_country_leader" then it worked

bright viper
#

how do i know the id because its a custom leader

patent linden
#

did you create him in the history file or in the character file for your tag

bright viper
#

history

patent linden
#

i dont know if there is an "id =" option for the create_country_leader

bright viper
#

also im trying to change his name and its just going blank

bright viper
#

set_country_leader_name = King Anthony I

#

this is making his name go blank

patent linden
#

right now the game is looking for a variable named "King" and then gets confused by the rest of the statement

bright viper
#

still didnt work

patent linden
#

anyway, ABK_kirilli_bechvaya = { name = "Kirill Bechvaya" portraits = { civilian = { large = GFX_portrait_Kirill_Bechvaya } } country_leader = { ideology = stalinism expire = "1950.1.1.1" id = -1 } } i dont know if "Id" is the correct name for it, but the "id" here is "ABK_kirilli_bechvaya"

patent linden
bright viper
#

yeah i think thats what i have to do

sand locust
patent linden
#

half of the answers are "stupid question/I don't know" and the other half is completely made up bullshit that has nothing to do with your question

sand locust
#

perhaps

bright viper
#

bruh 200 errors

sand locust
#

maybe this has something to do with it

bright viper
#

@patent linden what do i put in localization

patent linden
patent linden
sand locust
#

as in delete the file from the game files?

patent linden
#

yes, delete one of them, load the remaining one

sand locust
#

ok

bright viper
patent linden
#

send your create character code and the localisation code

bright viper
#

create_country_leader = {
name = "Anthony Bongiovanni"
desc = ""
picture = portrait_ant_anthony.dds
ideology = conservatism
traits = {
#
}
}

#

l_english:
ANT_establish_anthonys_constitution:0 "Establish Anthony's Consitution"
ANT_establish_anthonys_constitution_desc:0 "The long awaited consitution formulated by our leader Anthony now must be voted on to be enacted! Glory to the Republic of Ant!"
ANT_reform_the_economy:0 "Reform the Economy"
ANT_reform_the_economy_desc:0 "Our ecnomy is in shambles and needs to be reformed. We need better buildings and infastructure to promote more business in our country."
ANT_gather_the_nationalists:0 "Gather the Nationalists"
ANT_gather_the_nationalists_desc:0 "Our country has been destroyed by the democratic swines. We must unite the true patriots of our country and overthrow their evil reign!"
ANT_encourage_the_unions:0 "Encourage the Unions"
ANT_encourage_the_unions_desc:0 "The working man earns nothing in our society. We must allow unions to maintain the economic prosperity and health of our workers!"
ANT_crown_anthony:0 "Crown Anthony"
ANT_crown_anthony_desc:0 "It is time that we crown our great leader Anthony Bongiovanni, so he can become king of our glorious country."
King_Anthony_I:0 "King Anthony I"

patent linden
#

do "name = ANT_anthony_bongiovanni" and in the localisation file do "ANT_anthony_bongiovanni:0 "Anthony Bongiovanni"

#

the token you do after the "name =" and the token you use in the localisation file need to be the same

#

If I tell you to go grab a box labeled "Screws" then you will try to grab a box labeled "Screws" and nothing else

#

same goes for the computer

bright viper
#

206 errors

patent linden
#

it looks for the box labeled "ANT_anthony_bongiovanni"

patent linden
bright viper
patent linden
#

try your event solution from before, if its still borked, the "load_focus_tree" should be the problem, if not, the on_action might be to blame

sand locust
#

aight

bright viper
#

[13:07:25][1936.01.01.12][effect.cpp:422]: Invalid scope type for effect set_building_level in common/national_focus/ant_country.txt line : 72
[13:07:25][1936.01.01.12][effect.cpp:344]: Error: "Unexpected token: id, near line: 76
Unexpected token: id, near line: 77
Unexpected token: id, near line: 78
Unexpected token: id, near line: 79" in file: "common/national_focus/ant_country.txt" near line: 80
[13:07:25][1936.01.01.12][nationalfocus.cpp:165]: Duplicate focus name will cause database problems: ANT_gather_the_nationalists

patent linden
#

lines 72-80 seem to be causing problems in your code

bright viper
#

type = infrastructure
level = 5
instant_build = yes
id = 25
id = 31
id = 19
id = 806
}
}

patent linden
#

why did you add the "id =" entries

#

send the whole focus

bright viper
#

focus = {
id = ANT_reform_the_economy
icon = GFX_goal_generic_construct_infrastructure
x = 0
y = 1
relative_position_id = ANT_establish_anthonys_constitution

    available = {
    }
    bypass = {
    }
    
    cost = 5
    prerequisite = { focus = ANT_establish_anthonys_constitution }

    cancel_if_invalid = yes
    continue_if_invalid = no
    available_if_capitulated = no

    completion_reward = {
        add_political_power = 25
        set_building_level = {
            type = infrastructure
            level = 5
            instant_build = yes
            id = 25
            id = 31
            id = 19
            id = 806

}
}
ai_will_do = {
}
}

patent linden
#

remove the id entries and see if the error remains

#

in the set_building_level that is

#

don't remove id = ANT_reform_the_economy

bright viper
#

[13:14:15][1936.01.01.12][effect.cpp:422]: Invalid scope type for effect set_building_level in common/national_focus/ant_country.txt line : 72
[13:14:15][1936.01.01.12][effect.cpp:344]: Error: "Unexpected token: id, near line: 76" in file: "common/national_focus/ant_country.txt" near line: 80
[13:14:15][1936.01.01.12][nationalfocus.cpp:165]: Duplicate focus name will cause database problems: ANT_gather_the_nationalists

patent linden
#

do add_building_construction = { type = infrastructure level = 5 instant_build = yes }

bright viper
#

[13:17:52][no_game_date][effect.cpp:422]: Invalid scope type for effect set_building_level in common/national_focus/ant_country.txt line : 72
[13:17:52][no_game_date][nationalfocus.cpp:165]: Duplicate focus name will cause database problems: ANT_gather_the_nationalists
[13:17:52][no_game_date][effect.cpp:344]: Error: "Non assign effect is not enclosed in {}: set_country_leader_name, near line: 232" in file: "common/national_focus/ant_country.txt" near line: 233

patent linden
#

replace the set_building_level with what i send you

#

and add {} to the thing in line 232

bright viper
#

i did

#

okay i fixed the issue with that

#

but the name still doesnt change

sand locust
#

@patent linden it's the focus tree somehow

#

i did the event, and it fired and did change the focus tree

#

the new focus tree just has messed up lines

patent linden
bright viper
#

yes

patent linden
#

hmm

bright viper
#

[13:26:48][1936.01.01.12][nationalfocus.cpp:165]: Duplicate focus name will cause database problems: ANT_gather_the_nationalists

and i dont know why its saying this either

sand locust
#

before

#

after

crisp condor
#

guys

#

can anyone help me

#

with improving trade relations with focus tree

sand locust
#

can you be more specific

crisp condor
#

ok so

#

this is my focus

#

Fifth Focus

focus = {
    id = SOU_seeking_recognition
    icon = GFX_goal_the_confederate_states
    x = 7
    y = 4
    prerequisite = { focus = SOU_international_relations }

    available = {
        NOT = { is_in_faction_with = USA }
    }
    bypass = {}

    cost = 5

    cancel_if_invalid = yes
    continue_if_invalid = no
    available_if_capitulated = no

completion_reward = {
create_trade_agreement = {
target = ENG
}
add_opinion_modifier = {
target = ENG
modifier = SOU_ENG_opinion
}
add_stability = 0.05 # 5% stability increase
}

ai_will_do = {
    factor = 1
    modifier = {
        JAP = { has_government = communism }
        factor = 0
    }
}
 }

}

#

and this is the modifier

#

in modifiers txt

#

trade_opinion_modifier = {
id = SOU_ENG_opinion
trade = 200
}

#

but it just says this

sand locust
#

is trade the right one

crisp condor
#

0

crisp condor
#

i want to get trade opinion plus 100 between tag SOU and tag ENG

sand locust
#

and you don't need decay right

#

OH

#

i know why

#

trade is a boolean

#

trade = yes value = 200

#

try this

#

like this example

bright viper
crisp condor
#

like this?

patent linden
sand locust
#

try that

crisp condor
#

still the same

#

wait

sand locust
#

do you have -debug in your launch options

#

oh

crisp condor
#

is it test_trade_modifier or trade opinion modifier

sand locust
#

it's trade

crisp condor
sand locust
#

look at the trade thing

#

see if it added trade opinion

crisp condor
sand locust
#

in the trade tab

patent linden
crisp condor
#

is it 124

#

the trade opinion

sand locust
#

hmmm

sand locust
#

wait no

#

SOU_ENG_opinion = { trade = yes value = 200 }

#

try this

#

@crisp condor

crisp condor
#

wait

#

sh

#

i deleted trade opinion modifier

#

can u send please

sand locust
#

wat

crisp condor
#

like

#

this isnt how its supposed to look is it

sand locust
#

it is not

#

look at this example

#

and instead of test_trade, add in yours

crisp condor
#

this_

#

this ?

#

@sand locust

#

someone help fr

patent linden
crisp condor
#

but what is this

#

modifier

patent linden
crisp condor
#

oh right

#

i dont understand this

#

theres like 6 files

#

text

sand locust
crisp condor
patent linden
# crisp condor

the 3 letters infront of them are abbreviations for the names of the DLCs

#

use the 00_opinion_modifiers.txt

#

those are the base game modifiers

#

look for one which has the value you want, or create a new one

crisp condor
crisp condor
#

okay

#

thanks

#

@sand locust

#

still the same...

#

Is the focus right?

patent linden
#

I think you are missing a closing bracket

crisp condor
#

now_?

patent linden
#

should, yeah

crisp condor
#

still 0

patent linden
#

does the modifier "SOU_ENG_opinion" exist

crisp condor
patent linden
#

maybe this

crisp condor
patent linden
#

I cant figure out what the problem is, restast the game and see what happens

crisp condor
#

nothing still the same

timber zenith
#

wait im blind

#

but you should still remove the other modifier

#

it seems to be conflicting and loading both trees at the same time

#

so remove the on_action as well

wicked echo
#

what causes it to say zigfrids eizensteins????

#

and not actually do stability

timber zenith
#

that's probably what the localisation file says

wicked echo
#

but i havent gotten it localised

#

its new

timber zenith
#

is there any localisation

wicked echo
#

no

#

im just adding this rn

timber zenith
#

for anything

wicked echo
#

im new

#

the base game

#

but not my own

timber zenith
#

change the name and see if it stays the same

wicked echo
#

okay

wicked echo
#

did nothing, it still says ziegfrid

timber zenith
#

could you send your ideas file?

wicked echo
#

yeah

#

its a file made for beginners too so it has some shit but its at the bottom

timber zenith
#

That's fine

wicked echo
timber zenith
#

i've never seen that before, that's so strange

#

it's picked a random name from the names list

wicked echo
#

the file or the error

#

haha

timber zenith
#

the error

wicked echo
#

but it still shows theres no modification?

#

[14:57:54][no_game_date][triggerimplementation.cpp:9350]: common/scripted_effects/BLT_scripted_effects.txt:83: has_game_rule: game rule LIT_ai_behavior does not exist

does this mean anything?

timber zenith
#

Could you try create a new ideas file and put that inside it, then delete the existing one?

wicked echo
#

this is all thats in the ideas

#

is this correct?

timber zenith
#

Looks good

wicked echo
#

still says this for some reason

timber zenith
#

That might be too many zeroes for stability_weekly which is why the modifier doesn't show up

wicked echo
#

hmm mabye

#

ill try it again

#

stability_weekly = 0.025

#

put this

#

no change

#

ill force reload focus but idk if it will do anything

#

THERE WE GO

#

focuses change but the ideas dont?

#

on debug base mode

#

nvm

timber zenith
#

are you on debug mode?

#

as in enabling it on startup

wicked echo
#

yep

#

i had this issue the other day too

#

i was having to manually reset focuses

#

with reload focus

#

i have another question but i think it goes to localisation

#

if i kill the fascist and communist leaders with a purge and force them to die in the focus, would a randomly generated leader back them up or could i change the party and leaders to make it say banned

timber zenith
timber zenith
#

but you can create a leader named banned

wicked echo
timber zenith
wicked echo
wicked echo
#

-debug

timber zenith
#

hmm thats strange

wicked echo
#

thanks for the help

timber zenith
#

no worries

wicked echo
#

i appreciate it

#

btw what does hidden modifiers mean

sand locust
#

like if i want it to have one focus tree for ai and one for another

wicked echo
timber zenith
#

no question is a stupid question!

timber zenith
#

and is_ai = yes in the other

wicked echo
timber zenith
#

yep exactly

wicked echo
#

oh wow

#

so i make it in ideas and then one in history or jst in history?

#

bc i looked at france's victors of ww1 idea and it is in ideas

#

and its from the start too

timber zenith
crisp condor
#

Hey guys

#

How do i change this to Must be at war with USA

#

is it

wicked echo
# wicked echo

i changed the lat_independenceS to just lat_independence and it didnt do anything either

orchid osprey
#

tried to edit the provinces.bmp and resulted a pixel map lol

wild basin
#

yo guys, how do i set a countries flag with tlike the gfx n stuff,
its for a new country with a new tag so im not replacing an existing countries flag

patent linden
# wild basin yo guys, how do i set a countries flag with tlike the gfx n stuff, its for a new...

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 - ...

▶ Play video
wild basin
#

anywho now the game refuses to start

sand locust
#

well i haven't done the ai_yes one

#

i'll try it

#

it does not work

#

it defaults to whichever file is called soviet.txt

#

@timber zenith is it possible that i put it in wrong

#

like it should be under 1 modifier instead of 2 or

#

mmmm

#

it's reverting to the default treee

#

aaaaaaa

#

it's this thing all over again

#

it won't even let me take the focus

timber zenith
#

the ai is still getting it because the first modifier lets it

#

the second modifier is just saying "because i'm not ai i'll get it, with a higher priority"

#

it doesn't prevent ai from getting it

timber zenith
timber zenith
#

check the triggers wiki page

sand locust
#

of no lines and not being able to take the focus

timber zenith
#

what's the modifier for the other focus tree?

sand locust
#

it's just the base tree

timber zenith
#

change the modifier in that one to require the person to be ai

sand locust
#

i've also tried that

#

it still results in the line issue

timber zenith
#

did you put it as two modifiers, or just one?

sand locust
#

i tried it both ways

timber zenith
#

let me try something rq

sand locust
#

ok

crisp condor
#

i need help with one more tjing though

timber zenith
#

sure

crisp condor
#

ok so

#

this is my completion reward

#

completion_reward = {
# Add bunkers to the specified provinces
add_building_construction = {
type = bunker
level = 3
province_id = 873
instant_build = yes
}
add_building_construction = {
type = bunker
level = 3
province_id = 951
instant_build = yes
}
add_building_construction = {
type = bunker
level = 3
province_id = 11888
instant_build = yes
}
add_building_construction = {
type = bunker
level = 3
province_id = 6958
instant_build = yes
}
}
}
}

#

and this is how it looks ingame

#

but it doesnt add any fort to the province id when i completed it

timber zenith
#

as in like 111 = { }

#

oops wrong reply

#

but @sand locust i got no idea man

sand locust
#

it's so weird right

timber zenith
#

the focus tree appears correctly after reloading the game but it has these broken lines

#

which indicates a stacked focus or broken prerequisites

sand locust
#

weird

crisp condor
timber zenith
#

it's not?

sand locust
#

read

#

111 ={} for the forts

crisp condor
#

like this?

timber zenith
#

put the buildings inside that scope

#

111 means the state that you're putting them in

#

as in the state id

timber zenith
# sand locust weird

it might have something to do with all the focuses still having the same IDs as the regular soviet focus tree

#

are there any changes other than the cost?

wicked echo
#

im really starting to get a hold of this now

timber zenith
#

i'm glad to hear it 🙂

sand locust
#

it removes the majors disrupting third 5 year plan, makes the purge focuses have less of a forced time gap, and then makes lessons of war not wait a full year

#

i was pretty careful to not add anything new that would cause an error

crisp condor
#

@timber zenith completion_reward = {
# Add bunkers to the specified provinces
111 ={}
add_building_construction = {
type = bunker
level = 3
province_id = 873
instant_build = yes

                    }
                    111 ={}
                    add_building_construction = {
                        type = bunker
                        level = 3
                        province_id = 951
                        instant_build = yes
                    }
                    111 ={}
                    add_building_construction = {
                        type = bunker
                        level = 3
                        province_id = 11888
                        instant_build = yes
                    }
                    111 ={}
                    add_building_construction = {
                        type = bunker
                        level = 3
                        province_id = 6958
                        instant_build = yes
                    }
        }
    }
}
#

like this

sand locust
#

and it worked fine for a while until a friend suggested i make it fire only for the player while letting the ai keep the old focus

crisp condor
#

?

sand locust
crisp condor
sand locust
#

` 111 = {

#

yes yours

crisp condor
#

oh

sand locust
#

111 = { stuff }

timber zenith
#

don't actually use 111, use whatever state id your state is

crisp condor
#

all of them are in 1 state

#

tho

#

virginia

#

362

timber zenith
#

yeah that makes it easier

#

like i did

crisp condor
#

ah

#

ty for teaching me this

timber zenith
#

no worries

crisp condor
#

still it doesnt add any forts

#

: (

timber zenith
timber zenith
crisp condor
#

i did

timber zenith
#

could you show the code you used again?

crisp condor
#

completion_reward = {

                   362 ={ 
                    add_building_construction = {
                        type = bunker
                        level = 3
                        province_id = 873
                        instant_build = yes

                    }
                    add_building_construction = {
                        type = bunker
                        level = 3
                        province_id = 951
                        instant_build = yes
                    }
                    add_building_construction = {
                        type = bunker
                        level = 3
                        province_id = 11888
                        instant_build = yes
                    }
                    add_building_construction = {
                        type = bunker
                        level = 3
                        province_id = 6958
                        instant_build = yes
                    }

}
}

timber zenith
#

it's just province instead of province_id

crisp condor
#

ty bro i love you no homo

#

i was tryna figure this out for 1 hour

timber zenith
#

no worries mate

clear shale
#

Hello, I have a question that maybe only a dev could answer because its about the upcoming dlc. How much will Gotterdammerung effect the tech tree code? I'm doing a changed date mod and want to change the tech tree's dates and other things

sand locust
#

i'd imagine it just changes germany and the other nations

clear shale
sand locust
#

i think that would just be adding something new, not changing existing

bright viper
#

how do i change the leader of a party?

crisp condor
#

Can somebody show me how to make a custom general

#

for a custom nation

#

please?

#

tried this but it doesnt show up for tag SOU

#

can anybody help please

#

@timber zenith

timber zenith
#

recruit_character = SOU_robert_e_lee