#modding

1 messages · Page 26 of 1

dim bronze
#

"EUA"={
history = "EUA_GATHERING_STORM_DESC"
ideology = neutrality
ideas = {
economy_issues
}
focuses = {
EUAbuildempire
}
}

obtuse condor
#

what issue do you have

#

idea not being assigned

#

or

#

idea not working/registering

dim bronze
#

it isnt appearing or registering

#

its as if it doesnt exist

obtuse condor
#

Send me the mod and I will take a look at it

dim bronze
#

how do i add a formable through focus

quick latch
#

and maybe "spawn" news event

dim bronze
#

are formables really just cosmetic tags

quick latch
#

yes

dim bronze
#

can a countries color change with a cosmetic tag

quick latch
#

yes

#

that's like the whole point of a cosmetic tag

#

along with name and flag change

obtuse condor
#

what

#

[21:34:56][persistent.cpp:48]: Error: "Unexpected token: spriteTypes, near line: 1" in file: "interface/leaders_oms.gfx" near line: 26

faint lichen
#

its add_ideas

#

not ideas

lofty plaza
quick latch
light grail
#

does anyone know how the ethiopia government in exile work? specifically with sweden as the host nation

stark jungle
#

If I add on to existing naval bases in nudge does it give me more dockyards or just naval bases? I want like 90 dockyards I need to build a super kreigsmarine

slender brook
stark jungle
#

Thank you

faint lichen
#

anyone know why the name is not appearing in game?

#

I can not for the life of me figure it out

slender brook
faint lichen
#

it is just empty in game

slender brook
#

How did you create the yml file

faint lichen
#

by going into my file explorer and clicking create new file

#

and making it yml

#

it is UTF-8

slender brook
#

That's supposed to be UTF-8 with BOM

lofty plaza
#

☝️

#

That's why

obtuse condor
#

I think I fixed it

#

It switched to a different encoding

#

UTF with bom

#

Instead of utf

quick latch
#

Ah

obtuse condor
#

However it won’t read one of my gfx

#

Other spirits have the icon

#

Just not one

hushed lagoon
#

can someone help me

obtuse condor
hushed lagoon
vocal sage
#

can i make a what if soviet union and germany have a stalemate

obtuse condor
#

And for assigning the territory to your country, download find and replace tool for windows and replace Turkish tag with your new country tag in history/states

hushed lagoon
obtuse condor
#

how can I make an event fire on germany declaring war on russia?

pale sparrow
obtuse condor
#

something like the five year plan disrupted event

pale sparrow
#

Check the on_action files

obtuse condor
pale sparrow
#

Scope into Germany or the Soviets then do country_event = ...

obtuse condor
#

like on_war = if = { limit = { war_with =ger tag = sov} country_event = smth}}}}

pale sparrow
#

the default scope of on_war is the warring country so you can do

lofty plaza
pale sparrow
#
if = {
    limit = {
      original_tag = GER
      has_war_with = SOV
    }
    SOV = {
      country_event = 
    }
 }
#

something like this, except you might need a way to check that it isnt fired repeatedly if not wanted

obtuse condor
pale sparrow
#

If you only want it to fire for one country

dim bronze
#

i have an issue with my mod where when i complete a focus to apply a cosmetic tag it just wont do it and instead will do the country it already is, how do i fix

quick latch
#

"and instead will do the country it already is" what?

dim bronze
#

like

#

''germany will be known as germany''

quick latch
#

well, does it work?

#

apart from that

dim bronze
#

no

#

it doesnt change the name

quick latch
#

is your cosmetic tag correctly setup?

dim bronze
#

i think so

#

i have it in localisation

quick latch
#

(Enable dubug mode if you haven't already and) hover over your country flag, it should show cosmetic_tag: ...
Is the correct cosmetic tag shown?

dim bronze
#

when the focus is completed?

quick latch
#

yeah

dim bronze
#

yes it does

quick latch
#

what is your cosmetic tag? and also show me your localization file pls

dim bronze
#

i found the issue

quick latch
#

yeah? what was it?

dim bronze
#

turns out something didnt have an =

#

i double checked that before

quick latch
#

damn

dim bronze
#

also

#

do you know how to make it so a focus needs a certain amount of states to be completed?

quick latch
#

define "states"

dim bronze
#

land

#

like i have to take countries to do the focus

quick latch
#

You mean the country needs to own a certain amount of states?

dim bronze
#

yes

quick latch
#

lemme look through the wiki rq

#

This what you looking for?

dim bronze
#

yes

#

where do i put it?

quick latch
#

depends on what you want to do

dim bronze
#

i want it so its required for the focus to happen

quick latch
#

well, that's easy

#

moment

#
    num_of_controlled_states > X
}
woven sparrow
#

I'm kind of trying to make a focus 'invisible' and have it appear after an event.

#

"However, for some reason, it is not working."

dim island
#

place it at x 101001010

#

then you def wont have problems

upbeat anchor
#

Hi, I wanted to make one historical WW2 mod. But I'm just a begginer and I need team to make one. I just wanted to ask if someone would be interested in making project like this, because I have a lot of ambitions if it would work

pale sparrow
oak dust
#

How do you make a mod though

pale sparrow
oak dust
#

ok

dry cove
#

How do I change the gfx for later equipment? I created an expansion to train technologies and all the localization is correct but the images are just the base train images in the production menu (the image is correct in the tech tree)

dim bronze
azure fern
#

hi so ive tried to edit terrain.bmp and everytime i do, the urban graphics dont show and all urban graphics just dissapear off of the map
ive put the province i want with them to be urban in definition.csv too

vagrant herald
#

New to modding. Does anyone know if there is an updated guide to portrait modding? Everytime i try to place my new portrait in it still defaults to the natural leader in game. I have tried using an existing leader mod and just pasting my gimp file over it but it still just defaults to the natural leader. At this point I have spent several hours trying different things. what do??

pale sparrow
#

Sounds like it should work

dim bronze
#

does anyone know a way so i need to annex a country before doing a focus?

vagrant herald
#

yay, did it

pale sparrow
dim bronze
pale sparrow
#
  country_exists = TAG
}
all_state = {  #no core of the target country is owned by anyone else than the player (ROOT)
  OR = {
    NOT = {
      is_core_of = TAG
    }
    is_owned_by = ROOT
  }
}
pale sparrow
#

in the availability if you want that

sharp laurel
#

Is there any code to check the number of synthetic refineries, like num_of_synthetic_refinery?

dim bronze
#

focus = {
id = EUAdeclarenewempire1
icon = GFX_goal_tfv_strengthen_commonwealth_ties
x = 58
y = 15

    cost = 10
    prerequisite = { focus = EUAbreakthetrucehungary }
    mutually_exclusive = { focus = }

    available = {
NOT = {

country_exists = KOH
}
owns_state = { 155
OR = {
is_owned_by = EUA
}
}
}

pale sparrow
#

no

#

owns_state = 155

#

is all

obtuse condor
#

I have a question about modding in hoi4. How to add political advisors to a country?

prime dagger
#

so does anyone know a good ww1 anime mod. I need it for reasons......

strange tinsel
#

how do I delete unused state IDs?

#

aaand I just forgot to clear the nudge outputs

#

nevermind

#

ok, without states I can finally do some good stuff

#

was tired of deleting stuff all the time

#

there is a gamerule for that

strange tinsel
#

does manpower in states indicate population?

#

I suppose so

dim bronze
#

i have an issue where my units dont have my countries flag and instead has random countries flag on it, how do i fix it?

azure fern
#

can someone help with localization? ive put it into an english folder and still my description of events are something like this

dim bronze
azure fern
dim island
#

desc = "text"

azure fern
#

it has a limit as it would cut off

dim island
#

doesnt matter

azure fern
#

im trying to get a longer paragraph into the event description

dim island
#

as long as its not an enter press it counts

#

notepad auto new lining at 1k characters dont matter

azure fern
#

its not even 1k characters

dim island
#

to my experience atlesat

azure fern
#

not on a new line

#

it just shows to cut off

dim island
azure fern
#

its in the middle of a sentence

dim island
#

odd

azure fern
#

okay it works now

obtuse condor
#

I decided to make a small mod that gives Artillery a positive org. After awhile of scouting through the code and wiki the main source I've been finding is Common/units/artillery_brigade but the max org in the file is set to zero and editing that does not charge the org on the unit. any ideas?

obtuse condor
azure fern
#

if there are two decisions on an event, hwo can i make seperate events for both of them? small assistance please , thanks

quick latch
azure fern
#

like you’d have option 1 and 2

quick latch
#

something like this?

azure fern
#

mhm

#

that

#

how could i make news events for both separate

#

i’ve looked at triggers and

#

i can’t find what i want

quick latch
#

I don't really get your issue, just make the first decision call your first news event and the second decision the other news event

azure fern
#

the trigger page gives me nothing

#

and i csnt find out how

quick latch
#

and you really just want news events to fire? only that?

azure fern
#

yep

quick latch
#

...
lemme open vs code rq

azure fern
#

if you’d help me with just one news event that would be great as i could add it but modify for the next ^^

#

i’m rlly sorry for this i’m just

#

i’ve started coding on hoi4 like yesterday

#

and i’ve consulted the wiki alot

quick latch
#

everyone starts somewhere I guess

#
country_event = {
    id = yourevent.1
    title = yourevent.1.t
    desc = yourevent.1.d
    picture = GFX_XXX

    is_triggered_only = yes

    option = {
        name = yourevent.1.a
        news_event = {
            id = yourNewsEventID.1
        }
    }
    option = {
        name = yourevent.1.b
        news_event = {
            id = yourNewsEventID.2
        }
    }
}

Do you understand this?
The event has two options, the first calling the news event yourNewsEventID.1, the second calling yourNewsEventID.2

azure fern
#

ohhh okay

#

thank you!

#

thank you a lot

quick latch
#

If you have any questions you ask, always open to help

azure fern
#

that’s about the last of my concerns

#

thank you

obtuse condor
#

Hello! I have a little gfx problem, the portrait of my leader doesn't want to appear. Can anyone help me please?

quick latch
#

your image file is a .dds file?

obtuse condor
#

yes

#

I used a default portrait as a template

#

and placed my image above and kept the proportions

quick latch
#

and your image has this "encoding"? (or whatever it's called)

obtuse condor
#

lemme check

#

(thanks for the help btw)

#

So I just checked

#

and it is

#

maybe it's a synthax problem?

quick latch
#

show me your code, I'll look at it

obtuse condor
#

what file

quick latch
#

hmm, what exactly have you done? Have you overriden an already existing portrait?

obtuse condor
#

yes

quick latch
#

ah

obtuse condor
#

but I put the file into my mod's folder

#

I didn't override the original portrait into the base game folder

quick latch
#

You sure the folder structure is correct?

obtuse condor
#

I think

#

wanna see it to be sure?

quick latch
#

sure

obtuse condor
#

do I send it here?

quick latch
#

Sending a screenshot of the file path is sufficient

obtuse condor
#

is it good?

quick latch
#

What tag is that? RKN?

obtuse condor
#

yes

quick latch
#

Don't think that's in the base game, you making a sub-mod?

obtuse condor
#

No

#

why

quick latch
#

what country is RKN supposed to be?

obtuse condor
#

A new one

#

But i'm not creating a sub mod

#

for another mod

#

it's a standalone one

quick latch
#

so a new country?

obtuse condor
#

yes

quick latch
#

How do you create the country leader?

obtuse condor
#

like that?

#

idk if the synthax is correct

azure fern
#

ah

#

you have to have the prefix i think

#

it worked for me with it

obtuse condor
#

oh

quick latch
#

Have you made a file in yourMod\interface?

obtuse condor
#

hum

#

no

quick latch
#

that's the problem

obtuse condor
#

I only have a gfx/leaders/RKN

quick latch
#

go to yourMod\interface (create the interface folder if it doesn't exist) and create the file yourMod_leaders.gfx
Open it and type this:

spriteTypes = {
    spriteType = {
        name = "GFX_portrait_Joubert"
        texturefile = "gfx/leaders/RKN/Joubert.dds"
    }
}

This should work

obtuse condor
#

Damn bro

#

Imma try this out

#

if this works

#

you gotta get a raise

quick latch
#

xd

obtuse condor
#

Alr i'm starting my game

#

Alright so

#

For some reason, the name's here but not the photo

quick latch
#

lemme think for a moment

obtuse condor
#

okay

quick latch
#

You sure the portrait's resolution is 156x210?

obtuse condor
#

how do I check that

quick latch
#

What image editor do you use?

obtuse condor
quick latch
#

perfect, open the file and look at the bottom-right

obtuse condor
#

oh I see

#

yeah it's 156x210

quick latch
#

hmm

#

Would you send me your mod files so I could look better at what might be the issue?

obtuse condor
#

Alr

lofty plaza
#

@quick latch @obtuse condor I'm pretty sure that texture files for portraits do not work on the old assign country leader code. Also make sure it's saved a DDS, think that wasn't mentioned.

#

If you want to do that, then might I suggest using the character system instead. Otherwise link to it's portrait path directly instead of using texturefiles, as I do believe it's redundant.

#

If you haven't already figured it out that is

quick latch
proven hatch
#

Help, All my Desert/Arid Coastlines are Cities 💀

quick latch
#

What? xd

iron abyss
#

what the

#

help me

dim bronze
#

How do you rename a city?

lofty plaza
#

Change the victory point name in localisation

#

Or if it's mid game, then you can use this effect as an example:

set_province_name = { id = 11561 name = "Kryvyi Rih" }

#

Obviously adjust the province and name to what you want

lofty plaza
iron abyss
lofty plaza
#

So what did you change

iron abyss
#

Caucasus Strait

lofty plaza
#

Your file probably isn't correctly formatted

#

Or you have used a wrong colour somewhere

#

I couldn't say for sure though, the error log should have something to say about that

iron abyss
#

thx

lofty plaza
#

No problem

dim bronze
#

is there a way to make a country annex another at the start of the game?

azure fern
#

was starting on another focus tree for a different country but the icon in the focus tree didnt load, but it would in the info box
any idea why this is? (it worked for another country)

obtuse condor
azure fern
#

i did that

#

in the files

#

it linked the corrected file

azure fern
#

you mean this right?

obtuse condor
# azure fern

top line should be "GFX_unlikely_proposal_shine" instead of "GFX_unlikely_proposal"

azure fern
#

ohh okay ill try that out

obtuse condor
azure fern
#

also, game says that there is a country with my tag already (SOB) but i can't find it in country_tags

untold wave
#

how can i change the thumbnail of my workshop item ?

strange tinsel
#

is it mandatory for me to assign every province to a state?

spark flax
#

Hey all.

#

Are there any country history files without all this DLC stuff added in?

#

or is it needed

#

to have them?

spark flax
#

Hey all!

#

Started getting this error.

#

[20:18:07][flagtextureatlas.cpp:203]: Error loading country flag overlay: gfx/flags/ASR_democratic.tga : Unsupported format. Expected 32bpp, uncompressed, no color palette
[20:18:07][flagtextureatlas.cpp:525]: Error loading flag for country ASR : Ideology democratic : Path gfx/flags/ : File not found
[20:18:07][flagtextureatlas.cpp:203]: Error loading country flag overlay: gfx/flags/medium/ASR_democratic.tga : Unsupported format. Expected 32bpp, uncompressed, no color palette
[20:18:07][flagtextureatlas.cpp:525]: Error loading flag for country ASR : Ideology democratic : Path gfx/flags/medium/ : File not found
[20:18:07][flagtextureatlas.cpp:203]: Error loading country flag overlay: gfx/flags/small/ASR_democratic.tga : Unsupported format. Expected 32bpp, uncompressed, no color palette
[20:18:07][flagtextureatlas.cpp:525]: Error loading flag for country ASR : Ideology democratic : Path gfx/flags/small/ : File not found

#

Any tips?

feral valve
#

would any1 like to do my german hw please @here

brave elk
#

Why my news event doesn't fires?

quick latch
brave elk
#

oh

quick latch
#

That shows that you misplaced a bracket or on is missing

brave elk
#

yep

#

I will try again

quick latch
#

In this case after date < 2023.5.1 there's a missing bracket

quick latch
#

Now upload / reupload the mod to Steam and it should work

wary kelp
brave elk
#

didnt worked

#

I changed some codes too but still not firing the news event

feral valve
quick latch
brave elk
#

didnt worked it too

quick latch
#

what

#

wait

#

red bracket

brave elk
#

it finishes at right point

quick latch
#

put a bracket after the trigger = { ... } block

#

red bracket = not good / something's wrong

wooden spoke
#

yea i hoped you wont say that

lofty plaza
#

Try remove it

#

Oh and also I'm pretty sure 'tag = ROOT' doesn't mean anything, you're going to need to put the actual tag in

#

You also don't need and if it's not an or statement

faint lichen
#

accidentally made a new state in nudge tool, deleted it and returned it to base game

#

now map wont load

#

how do I fix this?

twin kite
#

anyone know some good utility mods?

slender brook
orchid quest
#

Who know working instant war mod?

pearl stone
#

instant_wargoal command no mod needed

neat turret
#

im wondered

#

why this focus changes icons when it highlighted

obtuse condor
#

man i wish endsieg was updated

honest eagle
honest eagle
#

No clue

#

It’s cool tho lol

neat turret
honest eagle
#

Oh

#

Yea I have no clue how you would do it

obtuse condor
#

tsar line

#

Western defensive line

#

???

orchid quest
lofty plaza
obtuse condor
obtuse condor
#

hello

#

im gonna make a Mod which adds a custom nation designer

quick latch
#

do that

obtuse condor
#

what

#

@quick latch

quick latch
#

make your mod, nothing holds you back. Have fun while modding

obtuse condor
#

alr

#

ill make it when ive learned modding and coding

#

Good luck

#

thx

#

@obtuse condor

strange tinsel
#

how do I fix this?

#

these countries do not exist

#

so ofc they do not have a history file

#

like, they do not even have tags assigned techincally

quick latch
#

They exist

#

They all have history files

obtuse condor
#

I have a question. If I want to add an opinion modification in another country, I have to add an opinion change only in the 00_opinion_modifiers file?

quick latch
lofty plaza
#

And these countries do exist if they need history files

pale sparrow
#

If not on the map then still by code ^

lone hearth
#

@obtuse condorMany of Soviet focuses/ideas have normal and alternative localization. Normal localization is used when Soviet Union/Russia is communist and alternative is used when you go non-communist path. Here's example from nsb_focus_l_english.yml: SOV_improve_the_stalin_line_name_default:0 "Improve the Stalin Line" (normal)
SOV_improve_the_stalin_line_name_alt:0 "Strengthen the Western Defensive Line" (alternative)

ocean prairie
#

Hey! I made a Map with MapGen and exported it into a mod. I went into debug mode and wanted to start the game. It crashed obviously but whats the real problem is, is that i didnt get a crash (feedback report) and in Documents the Crashes Folder was also empty. So i can't figure out whats the problem. Does someone have an idea why it crashes but theres nothing in the crashes folder? The game basically just closes.

rancid jewel
#

Hello

#

Can someone help me with making a mod

#

Or a tutorial

#

Which would be helpful

#

Pls and thank you

slender brook
rancid jewel
#

But I need to work on the basics

slender brook
#

Search for the Iron Workshop on YouTube, he makes a ton of tutorials for this

rancid jewel
#

But it's all outdated

#

Do I need to revert?

slender brook
#

No, that's a worse choice. Read the HOI4 wiki modding section then

#

It's less intuitive but it's up to date

rancid jewel
#

Btw when I'm trying to create a new mod now what does it mean by version

slender brook
#

That usually means the version the mod is for

rancid jewel
#

Oh

slender brook
#

E.G. my mods are all for 1.12.12 because they are for that version

rancid jewel
#

So what is the current version rn?

#

And what does it mean by directory?

#

(Sorry if I'm asking too much questions)

slender brook
#

Directory is the folder name for the mod, it only matters on your own device so you can name it literally anything

#

Well, literally anything that works as a folder name

rancid jewel
#

Got it thanks!

#

So

#

I finished making the mod

#

What do I do now?

#

Since I have the base done

slender brook
rancid jewel
#

Do I go watch his videos?

slender brook
#

Yeah, I would do so

rancid jewel
#

Alright thanks Anker.

#

You're really helpful

slender brook
#

Well I don't have the Helper role for nothing

rancid jewel
#

Lol

#

I guess so

#

I can't find hoi4 in files'

#

For some reason

#

@slender brook

#

I can't find the hoi4 game in my files

#

For some reason

slender brook
#

What is the tutorial telling you to do

rancid jewel
#

I need to do the -debug

#

The game

#

But idk how to find the game

#

I've searched it in my hotbar

slender brook
rancid jewel
#

Ohhh

#

Wait

#

This u mean right?

pale sparrow
#

thats it

rancid jewel
#

Thanks

#

So I just write -debug

#

Why the hell does it have to be so hard

#

Lol

slender brook
#

Things like this come with time

rancid jewel
#

Alright

#

Oh shit

#

I messed up something

#

So badly

#

I open my folders not with NotePad ++

#

But with Media Plyer

#

Player

#

How do I change that

slender brook
#

Although I think most of us use VSC

rancid jewel
#

Thank you so much

#

Wait

rancid jewel
slender brook
#

Visual Studio Code

rancid jewel
#

Is it recommended I use it?

slender brook
#

NotePad++ is fine, although VSC is just a bit more commonplace and has better extensions

#

And a dark UI by default

rancid jewel
#

Alright

#

Is there a Visual Studio Code ++?

#

Oh wait

#

Nvm

#

I've used VST before

#

VSC*

#

So

#

@slender brook

#

I set it at VSC

#

When I open it right?

slender brook
#

Yeah, keep going

#

Oh wait that's it, yeah just have it open with VSC and it should be fine

rancid jewel
#

Alright thx

ocean prairie
#

Hey! I made a Map with MapGen and exported it into a mod. I went into debug mode and wanted to start the game. It crashed obviously but whats the real problem is, is that i didnt get a crash (feedback report) and in Documents the Crashes Folder was also empty. So i can't figure out whats the problem. Does someone have an idea why it crashes but theres nothing in the crashes folder? The game basically just closes.

rancid jewel
#

Holy crap

#

Bro this is so confusing

#

The nudge thing

#

When u debug

slender brook
#

Yeah I wouldn't recommend doing map stuff as a first project tbh

#

I would recommend doing country stuff

rancid jewel
#

Ah

ocean prairie
#

ok so i basicly did everything in hoi4 modding thats possible. From Countries to states to national focuses etc. This map thing is like the last thing i can learn in hoi4 modding and its like the hardest thing. I basically have some mayor knowledge in hoi4 modding. But now being stuck at such a stupid problem must have happend xD

slender brook
#

Yeah for your issue I would have no idea since I've only done fairly rudimentary map editing

rancid jewel
#

Bro why are the videos so confusing

#

I'm having another aneurysm from this

ocean prairie
#

Hoi4 Modding isnt easy i can tell you. I mean i started with this website (https://edge.hoi4modding.com/) This website does the dirty work for simple things but you have to know that there are also very complicated things in there like country modding etc.

And from there it only got more complicated as i started to add variables, functions etc. Things which aren't possible in this website. Maybe this helps a bit but I can tell you that it won't replace the coding ;D.

dim bronze
#

how do you make a country annex another at the start of the game

dim bronze
#

is there a way to hide an effect

pale sparrow
#

hidden_effect block

strange tinsel
#

any way to just delete those tags somehow?

lofty plaza
#

No, just keep the history files

#

Then you wont need to pay any attention to the tags

dim bronze
#

how do you make it so a country has to accept annexation or decline through event?

strange tinsel
#

you would have to edit every annexation event and focus

strange tinsel
#

anyone know what in all of this causes the game to crash?

#

around 10k errors

#

modding moment

lofty plaza
#

You have a lot of map errors

strange tinsel
#

yup

#

but in the nudger it works like a charm

lofty plaza
#

Well, it's definitely that

#

Work through them

strange tinsel
#

I'll try

#

one error fixed

#

how do I change a tile to coastal?

#

nvm figured it out

#

should have fixed all the map errors

azure fern
#

(probably a really dumb question)
but does anyone know how to make a seperate branch require to have another focus done?
a bit like this?
(using imperial nostalgia as a reference)

#

is it just normal prerequisite?

ocean prairie
#

probably just make it like you want to connect a focus to another focus. Im not sure if the connection line still appears but you can try it out. In this example i think it goes like this:

In "Premier Lenin" there goes in:

prerequisite = { focus = TAG_the_great_industrialization_drive }

Hopr this helps

azure fern
ocean prairie
#

yes

#

it needs The Great.... to do Premier Lenin

rancid jewel
#

Holy shit

#

I'm getting sick of this ngl

#

I don't even know basic coding

#

Lol

#

I'm so stupid

ocean prairie
#

i can tell you Hoi4 Modding is its own programming language

#

so no worries

#

its hard

#

i can tell you

rancid jewel
#

Why can't they make it easier

azure fern
azure fern
#

if you showed it to someone with no knowledge they might understand it somewhat

ocean prairie
#

it just needs some time to understand it

rancid jewel
azure fern
rancid jewel
#

But like where should I start off?

#

If I want to make a mod

#

Like what are the first steps?

#

The map?

#

The focus tree?

#

The political??

#

The researches?????

ocean prairie
#

i would start with something like events

#

or create a focus

rancid jewel
#

Also btw how do u use the app thing

#

U sent me

#

Earlier

ocean prairie
#

yeah

rancid jewel
#

And show me

ocean prairie
#

sry but i dont have time rn :I

rancid jewel
#

Oof

#

Alright\

#

One of the PDX ppl should make a full tutorial

ocean prairie
#

true

rancid jewel
#

Or make a thing to make it easier for us

#

Because only people with medium to high skills in coding can do this.

#

And average player can not

#

And will spend hours on end just to get no where

ocean prairie
#

i think i will someday make a video which explains everything xD

rancid jewel
#

Thank you

ocean prairie
#

what we could do is if i got time i can explain you focus trees and the connection to the ✨ code world of Paradox✨

rancid jewel
#

Or

#

We can beg the PDX team to make a actual video

#

About how to make mods

#

Or show loopholes of how to

ocean prairie
#

the video be like:

How to make Hoi4Mods:

12:59:59

rancid jewel
#

Idrc

ocean prairie
#

part 1 xD

rancid jewel
#

I just want a video

#

To help me

#

Alright

#

Time to go into -debug mode

#

And cry

ocean prairie
#

good luck xD

rancid jewel
#

I don't even know what I'm going to do

#

Prob just give every country 2000000 mils

#

And if anyone even judges me

#

I swear to god

#

Wait

#

@ocean prairie

#

Is it possible to give more than 25 factories to someone in NUDGE!

ocean prairie
#

ehhh i dont think you can do that in NUDGE

#

but you could do it with the cheat console

rancid jewel
#

How

ocean prairie
#

with instantconstruction

rancid jewel
#

Like over 25

#

OH WAIT

ocean prairie
#

25

#

hmm

rancid jewel
#

I SHOULD MAKE A MOD THAT GIVES LIKE INFINITE SLOTS

#

But like only 25 will show up

#

Wow

ocean prairie
#

oh god chill

rancid jewel
#

It's now Sunday for me

ocean prairie
#

xD

rancid jewel
#

I'm never chill

#

Until I can figure out this stupid HOI4 code

ocean prairie
#

oh i know it

#

you can like

#

make a mod

rancid jewel
#

Yes

ocean prairie
#

and then modify a state and add 25 military factories in it within the file

rancid jewel
#

No

#

I want to make it like infinite slots

ocean prairie
#

oh god i dont know how to do that xD

rancid jewel
#

I'll do it

#

Or I can find it

dim bronze
#

i added about 5 countries and since i have the game wont open, can someone tell me why? and in error.log it tells me errors that didnt effect the game

rancid jewel
#

Uh

#

Idk

azure fern
#

anyone know why this is?

#

ive created both ideas for the idea swap but

#

it says they're missing

ocean prairie
#

are you sure that the idea is called like that?

azure fern
#

im sure

dim bronze
#

someone help im getting errors

#

[17:26:01][pdx_entity.cpp:323]: Failed to find entity "ITA_mechanized_vehicle_1_entity" for attachment in vehicle
[17:26:02][effect.cpp:425]: Invalid effect '=' in history/states/735-Savoy.txt line : 11
[17:26:02][persistent.cpp:48]: Error: "Unknown effect-type: =, near line: 11
Unexpected token: =, near line: 13" in file: "history/states/735-Savoy.txt" near line: 13
[17:26:02][parser.cpp:932]: Error: unexpected token in file: "history/states/847-Western Swiss Alps.txt" near line: 3 ( 158 )
[17:26:02][gameitemdatabasehelper.h:150]: Error: "Unexpected token: 158, near line: 3" in file: "history/states/847-Western Swiss Alps.txt" near line: 3
[17:26:02][parser.cpp:932]: Error: unexpected token in file: "history/states/847-Western Swiss Alps.txt" near line: 3 ( = )
[17:26:02][gameitemdatabasehelper.h:150]: Error: "Unexpected token: =, near line: 3" in file: "history/states/847-Western Swiss Alps.txt" near line: 22
[17:26:02][effect.cpp:425]: Invalid effect '=' in history/states/851-Var.txt line : 24
[17:26:02][persistent.cpp:48]: Error: "Unknown effect-type: =, near line: 24
Unexpected token: =, near line: 28" in file: "history/states/851-Var.txt" near line: 28

azure fern
#

maybe you missed a } somewhere?

hidden raptor
#

hey i am trying to change the franco-british union's color but someone know the cosmetic tag of it ?

#

cuz it didn't work

stoic ether
#

Does someone know how to fix it?

obtuse condor
stoic ether
#

Lol, is the Red World mod

#

"USSR woned the cold war"

#

NOW HOW I FIX THIS:(

pulsar rune
merry sandal
#

which mods should i use and what country should i choose to max out enjoyment

dim island
#

set the max to 2000 and then make a modifier that gives 2000 slots

obtuse condor
#

How's this look?

honest eagle
#

Pretty damn good

#

Gg

honest eagle
tiny coral
#

guys im completely new to modding and i just wanna make a mod thats like the east vs west 1v1 multiplayer mod (that TommyKay used) but about a fued thats going on with my friends, any suggestions how to even start? haHaa

tiny coral
#

this is the mod im talking abt btw

pale sparrow
#

map modding is like, the hardest thing

#

Id stick to the vanilla map, possible crop it with a map tool

real ember
#

Is it possible to form the Roman Empire in road to 56?

quick latch
quiet umbra
#

I have the files.

celest dust
ancient moat
#

How do i change the cw of terrains?

ancient moat
brave heron
#

does anyone know about a mod that allows you to get the research of a country when you annex it? this is for when two countries unify

#

there's no reason for their research just disappearing

quick latch
#

Don't know a mod but I should be very easy to make on yourself, all the code required would be inherit_technology = XXX (XXX being the country getting annexed). With the on_actions thing it should be possible.
(inherit_technology may override existing research but don't really know)

#

it's literally just

on_actions = {
    on_annex = {
        effect = {
            ROOT = { inherit_technology = FROM }
        }
    }
}
coarse cloud
#

Anyone got Millenium Dawn mod discord?

quick latch
honest karma
#

how to make my own mod

obtuse condor
quick latch
rare idol
#

So I got bored and decided to try to figure out how to make Karelia a starting nation with some additional cores.

#

Let's see how long I spend

#

I could just CTRL+C CTRL+V their country info into the file

quick latch
#

I mean, all you need to do is copy the states you want Karelia to have / want to have cores on and modify them. Should only take a few mins

rare idol
quick latch
#

what

rare idol
quick latch
#

ah

rare idol
#

I may try to make it a custom country tag.

quick latch
#

?

rare idol
#

Given it starts as a Kingdom and I'll try to spend like 5 hours making the name on the map say Kingdom of Karelia

quick latch
#

isn't hard either, you just need to change it's name in the localisation files

#

aka countries_l_english.yml

rare idol
quick latch
#

Why would you want to modify it into something it already is?

hallow mortar
#

guys, what do you all think about Ai Behavior Expansion for road to 56

#

is it a good idea

quick latch
#

AI in general is weird af and does questionable things, so sure have fun making that I guess

rare idol
#

I just realized, in my base HOI4 files, Kosovo gets an entire Country tag file to itself

#

lmao

quick latch
#

yeah? It always does that?

#

I don't see what's so special about it

rare idol
quick latch
#

okay?

rare idol
#

but I also wonder why it is seperate

quick latch
#

now that's a good question

rare idol
#

So far I've gotten the capital working

#

Got them to own all the states at the start

quick latch
#

and also core?

rare idol
quick latch
#

kk

#

That looks weird xd, never actually saw a Karelia this big

rare idol
#

Now I need to figure a way to make it so it starts as Non-Aligned under the party name 'King's Loyalists' until I can make something else

#

then hurl down some shitty div templates, Frontier Guard, Karelian Rangers, Armored Brigade, Capital Infantry

quick latch
#

also easy, in history file search for set_politics = { ... } there you can set the starting ideology (should be neutrality if I remember correctly).
And for the party name you need to create a localisation file. In it write:

l_english:
 TAG_ideology: "party name"
 TAG_ideology_long: "party name long"

in your case:

l_english:
 KAR_neutrality: "King's Loyalists"
rare idol
#

For some reason I can't get the localization working

quick latch
#

Is your file encoded as UTF-8 with BOM ?

rare idol
quick latch
#

is your file name also xxx_l_english.yml ?

rare idol
#

[09:27:46][gameapplication.cpp:766]: The game has loc key collisions. Check logs/text.log for more details

quick latch
#

What exactly did you do?

rare idol
quick latch
#

is your file placed in yourmod\localisation\english ?

quick latch
#

no it isn't

#

\localisation\english\countries_l_english.yml

#

there needs to be a folder called english

rare idol
#

ah\

#

Now to figure out the party

quick latch
#

what has that to do with my message

rare idol
#

Would it be in this section?

quick latch
#

I meant this

rare idol
quick latch
#

Create one yourself, call it whatever, I usually call my own files modname_base_game_file_l_english.yml
Call it yourmod_parties_l_english.yml

#

Will be gone for the next 3 hours, have fun figuring things ouit on your own

rare idol
#

trying to figure out the OOB now

#

how the hell

#

do I get the OOB working

#

ah

brave heron
#

Also Thanks

obtuse condor
quick latch
quick latch
sage osprey
#

can someone tell me what is best mod for graphic

quick latch
civic berry
#

guys, what is the program everyone uses for making mods?

#

and what coding language is it?

quick latch
faint lichen
#

so I have deleted almost all my game files, but when I redownloaded them and relaunched the game the map was still broken. Context, I accidentally messed with the nudge tool and made a new state, then deleted it and returned it to base game

quick latch
#

That should fix

faint lichen
quick latch
#

Nudger things aren't stored in the Hoi4 files in your Steam Library

faint lichen
#

oh jeez

#

thanks

quick latch
#

Go to youtube, search "The Iron Workshop"

upper badge
#

Is there a mod that allows me to form the German Confederation?

#

and an updated WW1 mod?

vocal sage
#

how to make a mod where putin time travels

vapid canopy
#

anyone know good mods for the netherlands?

deep sentinel
#

Hey, would someone be interested in making an economy mod in hoi4? i have no experience tho... 😥 But I am learning! Text me if u are interested and i can explain more deeply

bright fog
#

Hello! I have a big boy question for anyone willing to hear me out for a moment.

Unless you're France, Russia, Germany, Britain, Japan, or America you get 0 fun tank models. Is there a way to give countries like South Africa a nicer model?

balmy lichen
#

Im making a chaos mod, can some give me the stupidest leader for Tennessee in your mind

balmy lichen
civic notch
#

is it possible to create a submod for hoi4 xbox game pass as all the tutorials i have watched all use steam and i dont know how find mod names and stuff

balmy lichen
quick latch
#

nice

brave elk
#

Is there any modern day mod?

#

except millennium dawn and rise of nations

sage osprey
#

Novum vexillum

obtuse condor
#

guys how civilian factories are called in modding

#

??

lilac pelican
#

Is it actually possible to add custom tank roles to the tank designer?

quick latch
quick latch
lilac pelican
#

only thing i was able to do is modify the existing ones, and even that with limited success

quick latch
#

nah, didn't find anything except equipment.gfx (SteamLibrary\steamapps\common\Hearts of Iron IV\interface) where the role things gfx is assigned.
literally just:

inner forge
#

is this supposed to be japans focus tree in rt56? because it looks like the vanilla one

inner forge
# pale sparrow yes

oh, i've seen videos where they have another focus tree idk, what mod should i use for japan focus tree then

dense moon
#

someone make this a reality

#

arizona breaks free then goes on conquests with the pheonix soliders

quiet escarp
tidal gorge
#

Anyone play novum vexium and if so are u also having issues plsy ing

#

Meaning lag out like 3-4 years in then never being able to finish

deep sentinel
#

Hey, would someone be interested in making an economy mod in hoi4? i have no experience tho... 😥 But I am learning! Text me if u are interested and i can explain more deeply

bright fog
#

Hello! I have a big boy question for anyone willing to hear me out for a moment.

Unless you're France, Russia, Germany, Britain, Japan, or America you get 0 fun tank models. Is there a way to give countries like South Africa a nicer model?

quick latch
#

damn

gloomy marsh
#

rip germany

gloomy marsh
edgy solar
gloomy marsh
proud bane
#

i made an even more balkanized Germany

dense moon
#

should be good enough

#

wish i could have all the areas on the map but provinced

cursive pulsar
#

This go to all the tnobros out there

#

I turned rfk death off but I still got the event

#

Is this a bug?

inner forge
#

how do i remove this resource rights tool from rt56 rp

pale sparrow
#

Do Console command gui then hover over that bar

#

Then mass search the interface folder of the mod for any tokens you find

solemn charm
#

Why

thin chasm
#

Because of the way it is

obtuse condor
#

i made my own modded focus 🙂

bleak cedar
#

Hello everyone, I have created a custom world and a color water map for it. But the color water map which is 5120 x 2560 (the custom world is the same size as colormap) wont appear. I know the 2816 x 1024 works I but want change that value and I don't know how. Any ideas?

full bramble
#

Hello folks,

Is it possible to change how the scroll button works while on the focus page - I wanted it to scroll down (like the EU4 mission page and like the tech page or the decisions window in HOI4 itself), rather than zoom out.

I tried editing the ContiainerWindow called "tree" in the "nationalfocusview.gui" file - but had no luck. Can someone please help me out?

halcyon jungle
tight birch
#

Does anyone know of any mods that increase casualty numbers?

acoustic crypt
#

Hello, I am currently working on Russia for my mod and I would like to remove the paranoia system for my non communist ruler. How to do it ?

sharp iris
#

hello , I need to ask what folders the state modifiers and their gfx are written to and how to localize them

gloomy marsh
#

how am i supposed to come up with a whole focus tree for 1 state that has never been independant or wanted to be independant

sharp iris
#

what year , what world ( mode ) , nationality of the state , leading personalities / forerunners of the theoretical state

#

?

gloomy marsh
#

heard of it?

#

it’s only on Wikipedia in German

sharp iris
#

i Live near cca. 300 km

#

but in czech republik

#

it was part of our state for hundreds of years ( 300 years ago the Habsburgs lost it ) it was part of our state

sharp iris
# gloomy marsh just normal 1936 and the country is Oberschlesien

after the First World War the Poles who were preparing the Plebiscite became interested in it , there was an uprising of the Poles living here but Entate stopped it but Katowice (until then 200 years part of Prussia / Germany ) left the Poles ( who were a bit more peaceful ) got the Hlučín region ( approx. 9000 inhabitants ) , basically only Czechs lived there , the whole Silesia was very industrial , three states sought it: Poland (ethnic law), Germany (ethnic law and power) and slightly Czechoslovakia

#

if you want to invent the future, you must know the past, start with the period after the first war, go through the region and talk mainly about the three states

pliant reef
#

how do i not have all the colours get changed when i make a country a different colour

obtuse condor
#

is there a mod where u can swap sides like romania

quick latch
pale sparrow
#

cosmetic tag

quick latch
verbal swift
#

I tacked on a focus to Japan's tree to enable a new piece of equipment and a new subunit, but unfortunately, only the subunit is working properly. I've tried a few different things, but this is what I settled on

        id = JAP_supra #LOCALIZE THIS
        icon = GFX_goal_generic_army_artillery #CHANGE THIS
        prerequisite = { focus = JAP_army_expansion_law }
        x = 3
        y = 1
        relative_position_id = JAP_army_expansion_law

        cost = 10

        ai_will_do = {
            factor = 1
            modifier = {
                factor = 1.5
                has_completed_focus = JAP_support_the_kodoha_faction
            }
        }

        available = {

        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no


        completion_reward = {
            set_technology = { supra_motorized = 1 }
            set_technology = { supra_equipment = 1 }
        }
    }```
#

The technologies file I made has this instead. I tried to cover all bases so when supra_motorized didn't enable the equipment, I made a second technology entry specifically for the equipment, but that hasn't worked either


        allow = {
            always = no
        }

        research_cost = 1
        start_year = 1936

        enable_subunits = {
            supra
        }

        enable equipments {
            supra_equipment
        }
    }

    supra_equipment = {

        allow = {
            always = no
        }

        research_cost = 1
        start_year = 1936

        enable equipments {
            supra_equipment
        }
    }```
#

the focus unlocks the unit correctly, it just doesn't work with unlocking the equipment

#

what is funny is that when I set "active" to false in the equipment file, it's like the equipment isn't even in the game. Instead of being inaccessible because of the focus, I just can't access it at all. I try to add equipment to my stockpile through the console and the game says it doesn't recognize the equipment name

#

if I make it "active" then my equipment shows up, but it's the bigger issue of it being available to everyone

verbal swift
#

I found the issue

#

enable_equipments

civic raven
obtuse condor
#

guys what is the code that cancel the demilitarizion of the rheinland?

dim bronze
#

how do you rename ideologies

quick latch
deep parrot
#

how apply custom icon for focus?

pale sparrow
pale sparrow
#

check ideas.gfx in the game folder

#

simply add that sort of file to your mod, remove all the vanilla icons and use a different file name

deep parrot
#

Thanks

wooden spoke
#

anyone have a link for a working mod for mellenium dawn on paradox .com

surreal peak
#

Anyone know if there is a mod that is from the 550BC time period or something like that? Maybe even 1000AD is fine too just ping me to let me know

obtuse condor
quick latch
#

What?

surreal peak
slender brook
#

HOI can't really even represent anything pre-WW1

surreal peak
#

the oldest i've found is 719ad

slender brook
#

Right, and there's little interest going further back because the division and economic systems make no sense going that far back

surreal peak
#

eh

#

i can work with 719

#

thanks anyway chief

slender brook
#

But yeah, if you really want to play anything that far back a different game is the most likely option

surreal peak
slender brook
#

Uh, I think Great War or Great War Redux are as close as it gets

#

But I wouldn't know of anything that starts further back and is meant to be played until WW2

modest prairie
#

hello, after I added the oob file, the game started to crash.

sweet mason
acoustic bay
#

how do i edit a steam mod for personal use? Im on MacOS

lofty plaza
#

Absolutely no reason to do so, however

deep sentinel
#

could someone help me, i watched this tutorial https://www.youtube.com/watch?v=EYFnYyOzU6U&list=PLt_7vUaEvaGTJ0ISBqY2v4EyfmPALiVS7&index=11 and in 7:42 that he was going to take the building file but there are 8 building files for different countries. Should i take all of them or wth does he mean

This lesson will explain how to create new buildings in Hearts of Iron 4.

Timestamps for this tutorial/lesson:

00:00 - Lesson beginning
01:23 - Important notes/things to consider
04:37 - Creating mod file
05:18 - Creating folder/file structure
08:01 - Editing the buildings.txt file
11:58 - Creating building Icon
20:55 - Creating localisation
2...

▶ Play video
tall breach
#

I love how my modds range from modern to alt history to equestria at war

rose gulch
#

Hi, I have an idea for a mod, but I'm not a very good modder, so I want to ask if someone can make a mod where bunkers can be upgraded or modified.

pale sparrow
#

theres already tiers, so what is upgraded and modified

deep sentinel
severe knoll
#

guys im having trouble with mod order. how can i make sure my mod loads after all other mods, in order to overrite all necessary files for my desired fixes?

pale sparrow
#

if youre making a submod you have to specify a requirement, otherwise you need to tweak the launcher settings file to un-hide the load order option

severe knoll
#

its not a submod, its simply a mod that edits something already edited by other mods, and i need to make it overrite those other mods files

pale sparrow
#

``Go to the launcher-settings.json file and open with a text editor: (where launcher is installed X:.....\Steam\SteamApps\common\Hearts of Iron IV\launcher-settings.json) and find this line:
"modLoadOrderDisabled": true,

Change it to
"modLoadOrderDisabled": false,``

severe knoll
#

and then?

severe knoll
pale sparrow
#

Higher number should be later, and so best to override

severe knoll
# pale sparrow Higher number should be later, and so best to override

i tried lowest in the list, then highest in the list, and nothing. the mod i wanted to overrite still loaded on top. In case the information is pertinent, the desired targets for replacement are 00_operations and a denies file with like 10 defines, 4 of wich are defined in the mod i want to overrite

vale condor
#

is there any mod that's ESI compatible for more formable nations?

frigid sluice
#

Hey, do u know where to find the India portraits?

#

I don't see to Savarkar.dds

pale sparrow
#

try the Together for Victory DLC folder

frigid sluice
#

found

#

thanks u

tribal osprey
#

How do you make an event go off once you complete a focus? I've been trying to figure it out

tribal osprey
#

Nvm i figured it out

indigo yoke
#

I can't for the life of me find where in the game files are* the modifiers that the AI uses to determine a response to an event, can someone point me in the right direction?

deep sentinel
#

when making a new state the tutorial said that i sould move the map, localisation and history folder to my mod folder. do i need to move them everytime i make a change because it always comes newones when i make a change

pale sparrow
pale sparrow
keen parrot
#

can someone help me create a custom mod

#

i have no clue what im doing

quick latch
#

Sure I guess?

#

What do you want to do?

limber torrent
keen parrot
limber torrent
#

Let him learn

#

More fun

#
  • he can create whatever he wants
quick latch
#

Watching the tutorials is the same thing as me telling him, just a different person that talks

keen parrot
#

i want to add a few focuses for an existing country
a decision to form a nation that has a few cores and claims
to rename the country after that decision
keep the existing focus tree
change the name/image of leaders, assigning an existing leader to another existing political party

quick latch
#

"a decision to form a nation that has a few cores and claims" A new country or formable as in the original country gets a different name and cores?

keen parrot
#

a formable country

#

from an existing one

quick latch
#

I see

keen parrot
#

that gets cores on other countries' territories

#

should i make a new country

quick latch
#

nah

keen parrot
#

and make it replace the existing one?

quick latch
#

that'd make it just more complicating

keen parrot
#

i should start from the third one

#

and proceed to the one in the left?

quick latch
#

Just watch what you need to watch

keen parrot
#

im not sure what i should watch exactly tbh

quick latch
#

let's start with the decision first, you want to create the following folder structure: yourmod\common\decisions\categories

keen parrot
#

i dont know what should i make and what i shouldnt

#

so i should stick to an existing country

quick latch
#

yes

keen parrot
#

ok

#

should i add that respective country in the mods folder?

#

with all the files from hoi4 game

quick latch
#

For now you don't need to

keen parrot
#

so i can add only the

#

decisions

#

that will be like an "addition"

quick latch
#

You can add everything you want, I only want to start with the formable because it's the easiest

keen parrot
#

sure

#

can i call you to facilitate the communication?

quick latch
#

vc call?

keen parrot
#

yea

#

and i can share the screen

#

if that's ok for you

quick latch
#

Wouldn't really want that, writing is good enough for communication

keen parrot
#

ok sure

#

i want to add decisions for romania

#

now i should take this file

#

copy and modify it

quick latch
#

In categories create a text file. Call it yourmod_formables_category.txt
Write this:

ROM_formable_nation = { # for example: GER_greater_german_reich_formable
    allowed = {
        original_tag = ROM
    }

    visible = {
        
    }
}
keen parrot
#

GER_greater_german_reich_formable
i should replace this with

#

a name that i want?

quick latch
#

yeah, you could call it ROM_greater_romania_formable for example

keen parrot
#

can i use a different tag?

#

or should i keep the same tag

quick latch
#

You want the formable be for Romania, right?

keen parrot
#

yes

quick latch
#

Well, what do you mean with "can i use a different tag?" ? Where would you want to use a different tag?

keen parrot
#

idk

#

i just asked

quick latch
#

If you mean original_tag = ROM then no

indigo yoke
pale sparrow
#

search for ai_will_do blocks

keen parrot
quick latch
#

for the category file? yes

keen parrot
#

now i have to make decisions_categories?

quick latch
#

What do you mean exactly?

keen parrot
#

uh

#

is the category file enough?

quick latch
keen parrot
#
    allowed = {
        original_tag = ROM
    }

    visible = {
        
    }
}```
quick latch
#

ah, replace ROM_formable_nation with ROM_dacia_formable

#

make it look like this: ROM_dacia_formable = {

#

text after a # are just comments

keen parrot
#

oh ok

#

where is the icons default folder location

quick latch
#

You mean SteamLibrary\steamapps\common\Hearts of Iron IV\gfx\interface\decisions ?

#

In decisions create a file and call it yourmod_formables_decisions.txt
Write this:

ROM_dacia_formable = { # Or whatever you set the category ID in "yourmod_formables_category.txt" to
    ROM_form_dacia = {
        icon = generic_form_nation
        fire_only_once = yes # fire_only_once makes the decision work only once
        cost = 0 # cost is the political power required, normal you'd use 0 for formables

        visible = {
            original_tag = ROM
        }

        available = {
            controls_state = XXX # Do this for every state that you need to control
        }

        complete_effect = {
            set_cosmetic_tag = ROM_dacia

            add_state_core = XXX # same state IDs as in "available = { ... }"
        }

        ai_will_do = {
            factor = 100
        }
    }
}
indigo yoke
# pale sparrow search for ai_will_do blocks

That helped a bunch, turns out my problem was expecting the AI response to be governed by something in that nation's event txt file, but the AI response is baked into the event itself, which seems to be in the Hungarian event txt

keen parrot
#

so for available

#

i have to enter bunch of states that i need to control in order to be able to make the decisions

#

for the core states, can i add cores that aren't currently in my possession?

quick latch
#

yeah, every state that you want Romania to habe under control to be able to form dacia

quick latch
keen parrot
#

okay thanks

#

also