#modding

1 messages · Page 79 of 1

stuck quarry
#

In the allowed = {} block

#

Should work i think

patent linden
#

was thinking about that too, but i want the national focus to say "unlocks category xy upon completion" or whatever that text was

bronze rover
#

guys i’m actually so happy im starting to understand it

#

i’m gonna do a post treaty of versailles interwar mod as a beginner project

#

starting with uk focus tree 😇😇😇

charred abyss
#

if finished

#

dm me

#

with mod

#

pls

bronze rover
#

just started

#

but it’s been something i’ve always wanted

#

i got a lot of free time rn waiting for some jobs to get back to me

#

so why not have a go at it

#

ill release it when its semi playable

stuck quarry
#

Are icebreaker boats a thing i hoi, and if not would it be possible to add them

patent linden
#

well, what exactly is the point behind the ice breaker?

inland wharf
#

What language does modding happen in)

#

?*

wicked echo
#

hi guys could anyone check if this code is okay? im trying to make it so you have to be in volunteer only to take this focus but im finding it hard

#

or if i can make a requirement where the number of soldiers must be under 200k

#

something like that

stuck quarry
stuck quarry
patent linden
stuck quarry
#

In my mod im gonna be freezing some of the icean and i was hoping ice breakers would be possible to teaverse the frozen waters

patent linden
#

is the "frozen ocean" a region category?

stuck quarry
#

I have no idea

#

I havnt looked into that yet

patent linden
#

well you could create a "Frozen Ocean" strategic region category, and then give it like 50% speed debuff, and then you can add Ice breaker ships that, if they are present in a fleet, reduce the debuff by 40% or something

stuck quarry
#

Hm ill look into that

indigo jay
#

whats the best ww1 mod?

wicked echo
#

yo guys

#

i wanted to add a focus tree for the uk and to add 1 civ to southern england state

lofty plaza
#

Okay

jade roost
#

would this work to create a war at the start of the game

jade roost
grim laurel
#

is there any possible way to make hoi4 divs move dinamically without the tiles

timber zenith
#

and what file/folder is that in?

jade roost
#

history/countries

timber zenith
#

Yeah that should work

jade roost
timber zenith
#

Yeah

jade roost
#

kk

timber zenith
#

There might be a better way to do it but I can't remember how Italy does it in vanilla atm

#

you also don't need the wargoal since the war is being immediately declared

jade roost
#

btw does me being full on onedrive matter?

opal rune
#

how do i change the date of the tech, im making a 1933 mod but the tech starts in 1936

timber zenith
jade roost
#

because im full on onedrive storage (which is bs cuz they want you to buy more)

#

it has a x

timber zenith
jade roost
#

i just am i guess

stuck quarry
#

this may not be possible, but does anyone know a way i can make the water here look fully frozen over instead of just the edges

warm cedar
#

Can someone tell me if there is something wrong with my code?

spring holly
#

Anything I could add to this focus tree? (I am gonna add preparation focuses to the "to Leningrad" focus and add an Otto Strandman cabinet focus)

wintry geode
#

how to turn off all ai/player made guarantees?

#

the usa is guaranteeing all the hre states

#

is there a rule for that?

#

or making them cost 239623862pp

wicked echo
#

why does add_ideas remove half my focuses

wicked echo
grim laurel
#

how do I create provinces and states?

mortal token
#

Has anyone ported over Imperator /vic3 tech trees to HoI4?

obtuse condor
#

I am playing on mods with my friends, but we dont have the same version. How do i switch versions?

worn gust
#

can someone help me with the error?

cobalt harbor
#

is there a custom scenerio maker

#

not talking about toolpack

#

one that modifies game files

cobalt harbor
#

idk

wintry geode
#

is there a way to make so countries cant guarantee eachother?

stuck quarry
obtuse condor
stuck quarry
#

If you have a older version you gotta unsubscribe and resubscribe to the mod

#

I dont think (tho i could be wrong) theres any way to do it otherwise

obtuse condor
stuck quarry
#

If everything is exactly the same

#

There might be something locally on either side changed

#

Usually in the local paradox folder in documents

#

Or just your game files for some reason

#

Basically anything chan change the checksum

wintry geode
#

is there a way to make so france doesnt declare war on austrias puppets?

#

i make so france declares war on austria in the french history file

magic bay
jade roost
#

what is wrong

#

this is the portrait file btw

vague relic
#

Hey will be doing a mod where the white movement is alive in 1936 on the Crimean peninsula

#

If anyone wants to help in the project either gfx coding or writing it would be nice

vague relic
vague relic
jade roost
vague relic
#

Yes but what happens

#

the image dosent show?

jade roost
#

it shows a default image

vague relic
#

can you show me a debug file?

jade roost
#

one sec

jade roost
vague relic
#

dosent matter

#

also the character works right?

#

its just the image that dosent work?

jade roost
#

yeah the character works

#

it has the name and traits

jade roost
vague relic
#

yeah get me the debug

jade roost
#

how do iget the debug on vscode

vague relic
#

also make sure that the picture is actually DDS but I doubt you have missed that

vague relic
#

in -debug

jade roost
#

kk

jade roost
#

wait i think i found something

jade roost
#

thank you for the help tho

vague relic
jade roost
#

it is supposed to be AFZ but ealier it was AFG

vague relic
#

damn

#

happens

jade roost
#

most of my mistakes are stupid syntax stuff

#

like not having dds/tga file

vague relic
#

Yeah dude it happens

jade roost
#

focus tree's and ideas are so easy

#

its impossible to mess up

vague relic
#

yeah I am having some shine problems with gfx

#

mf is always messing shit up

vague relic
#

or at least in the case of Prussia

maiden steeple
#

hi im building a hoi4 in ww2 based around russia

#

any ideas

#

so far i have 1. russia lost civil war and colapsed into itself, sibera and other states declared independance. 2. russia won lost worse in ww2 and is a dysfunctional state but not in peices

#

my idea of 1.

#

perhaps america never joined ww1 but germany still lost?

#

looking for ideas with russia

maiden steeple
#

ooo i like that

worn gust
sand locust
#

how do i remove a national spirit in the history files

#

i removed it from under here

#

but when i load up the mod, the national spirit is still there

#

i also tried changing starting war support, but that didn't work either

#

lmao i put it in the wrong folder

#

i'm good now

lofty plaza
#

Yeah you sure did

patent linden
#

If I load an oob file, can i somehow force the troops that that file loads to be volunteer forces, or is there a way to force AI to send a certain amount of volunteer forces to a specific country

lament osprey
#

I'm trying to find out which tasks annoy modders the most and which tasks eat away most of the time, if you would like to help me with this "study" please fill out this form and maybe share it with some friends, if you want to see results, dm me a short message saying so. I'll provide the results once the study has reached at least 100 participants or more. Currently 5 people have filled out the form:
https://forms.gle/FSrUjgkapKjz5imT9
Please and thank you :3

lament osprey
#

Depends, I dont know everything. What errors are you getting?

tall hare
#

So my icons for national spirit isn't working

#

and now the icons for characters and stuff dissapered

lament osprey
#

Do you have any errors in regards to those files in the error log?

tall hare
#

Many

lament osprey
#

what do they say?

wintry geode
#

how do i peace out puppets with a country in a startdate?

#

i dont want the austrian and ottoman puppets to be at war with france

#

diplomatic_relation = { country = TAG relation = war_relation active = no

#

every_country={
limit={
or={
has_autonomy_state = autonomy_protectorate
has_autonomy_state = autonomy_hre_subject
}
}
diplomatic_relation = { country = PREV relation = war_relation active = no
}
}

#

This?

tall hare
lament osprey
#

I had a similar error a while ago where custom icons for national spirits didnt show up, but for me it didnt break any other pictures. Maybe try undoing what you did when the errors occured and then go from there. If you want you can send me the error log.

tall hare
#

could I have like a template?

tall hare
lament osprey
#

I didnt lmao, I just let it use the default image, as the specific spirit was made for a country which was not supposed to be played by a player anyway

#

You can find templates online though

#

Also check the HOI4 modding wiki

lament osprey
#

In theory yes

#

if everything works except the icon then maybe some file name or file name refference or something is wrong

#

or maybe the file isnt a supported type?

#

there are many possible issues

obtuse condor
wintry geode
#

has_start_date=1800

#

this vode valid?

#

or do i have to include < and >?

#

uhhhhh why didnt the event trigger

#

huh?

#

ahhh no .1.1

#

ah good it works they peaced out with all the ottoman and hre puppets

tall hare
#

@lament osprey Why is this error?

lament osprey
#

what does your idea code look like?

tall hare
#

ideas = {

country = {
    hyper_inflation = {
    picture = GFX_ideas_hyper_inflation
    modifier = {
        consumer_goods_factor = 0.80
        stability_factor = -0.30
        war_support_factor = -0.20
        factory_output_factor = -0.25
        construction_speed_factor = -0.30
        political_power_gain = -0.10
    }

}

}

}

tall hare
#

I fixed the other icons

#

@lament osprey

lament osprey
#

one sec

tall hare
#

ok

lament osprey
#
ideas = {
    country = {
        hyper_inflation = {
            picture = GFX_ideas_hyper_inflation
            modifier = {
            consumer_goods_factor = 0.80
            stability_factor = -0.30
            war_support_factor = -0.20
            factory_output_factor = -0.25
            construction_speed_factor = -0.30
            political_power_gain = -0.10
        }
    
        }
        
    }
}
#

This is how I would do it

#

but technically theres no difference to yours

#

which indicates, that the issue does not lay in this file

#

I've tested this code and it works for me

#

@tall hare

tall hare
#

Ok

#

Idk were else the issue might be

lament osprey
#

did you properly declare the GFX file in your sprite file?

#

did you add it to the country properly?

#

did you link all files? are the names correct?

tall hare
#

I can send you the thing

#

Dms

lament osprey
#

sure

wintry geode
#

regarding sub ideologies

#

can you make them do anything in an event?

#

can you do every_countr={} for a specific sub ideology?

dark portal
#

and then allow it for only the ideology

#

also what is the idea token for advisor

#

i dont understand why i texists

dark portal
#

looking for testers

#

hmu if your intrested

pale sparrow
dark portal
#

thats cool ig

pale sparrow
spare crest
#

Japanese Battleships

#

left to right: Hizen 40 BB, Yamato SHBB, Musashi SHBB, Shikishima 44 BB, Satsuma SHBB

unreal cliff
#

are there any mods that do ace auto assignment

#

massive pain in my a*s istg

jagged tide
wintry geode
#

Bourbon Belgium Mogs

vague relic
vague relic
#

maybe also an idea or event that directly tells you this

vague relic
#

make them not be puppets

wintry geode
vague relic
#

if it works

#

It will look a bit sloopy

#

but if it works

#

also cant Austria call them in again?

wintry geode
#

nah

#

made so they cant

vague relic
#

Hey if it works

#

dosent have to be pretty

patent linden
#

more of a balancing thing than anything else really

vague relic
#

that just sounds like bad design

patent linden
#

volunteer support

vague relic
#

you either give the player more troops or less troops but you dont make it frustrating

#

it either is more difficult or less difficult

#

but not frustrating

patent linden
#

how are volunteers frustrating

vague relic
#

They will do whatever the fk they want without taking into account anything you do

patent linden
#

paradox moment

vague relic
#

I cannot say the F word in a game that is supposedly +18

patent linden
#

yea i realized that too

#

but in my case that frustration is a feature not a bug

vague relic
#

my bad its actually +12

#

Then its a bad one

#

To be honest I dont know what you are doing

#

and I dont know the context

#

but you dont make players frustrated

#

you either make them feel miserable

#

or make them feel good

#

or make them feel however you want

#

but not frustrated

#

or enraged

patent linden
#

its a 3 way civil war and i want to give each country some help in various shapes and forms

#

volunteer forces in my head buff their numbers without those troops being used so effectively that the power that receives them can steamroll the others

vague relic
#

Well there are a couple options

#

the first one is to make those troops worse

#

the second one would be if you really wanted make it so the AI has a reason to send units

#

I am not the best at codding and there might be a way to force a country to send volunteers but not from what I know

#

and definitively not start with them

patent linden
#

I know one mod where volunteer forces are always received by a certain country from other countries, always the same country and same number of troops involved which is why i assume theres some way to script this

vague relic
#

there must be

#

I just dont know how and I dont think it is worth it

#

but might be wrong

patent linden
#

I would just assume there is some kind of ai desire to send volunteers thingy

white plover
#

peru is op in kaiserreich

obtuse condor
#

Good mods for vanilla+?

vague relic
#

If anyone wants to help in the project either gfx coding or writing it would be nice

sand locust
#

how would i have a different focus tree load depending on if a nation is player-controlled or not

#

like i assume this is how to make it a player focus

#

but how do i make the ai one

vague relic
#

the AI would say they are an AI and the player would say they are a player

#

and get one or the other focus tree

sand locust
#

interesting

warped wing
stuck quarry
sand locust
#

it didn't work, sadly

dark portal
#

how do i make ai chose x decision

#

i mean option in a event

vague relic
#

or changing the base to whatever

dark portal
vague relic
plucky crystal
#

i have probelm with uploading my mod

#

my mod like is empty

#

when i upload it

spice cradle
#

are there any better states mods

#

?

dark portal
dark portal
vague relic
vague relic
vague relic
dark portal
#

it doesnt show for yiu

#

it shows for others thi

#

tho

vague relic
#

I dont quite get what you are trying to say

lament bronze
#

are there any toolpack mod that can spawn specific ship that player design rather than the base design?

spice cradle
dark portal
#

other people see it as it shoulf br

lament bronze
vague relic
vague relic
plucky crystal
vague relic
unreal forge
plucky crystal
plucky crystal
unreal forge
#

Like add it to the correct playset?

vague relic
#

are you sure the file you download and the one you use are the same?

vague relic
#

Please show me both files

plucky crystal
vague relic
#

the one you download and the one you have

plucky crystal
#

i play on this and

#

wait

#

and this is it

vague relic
#

No no no show me the inside of the file

plucky crystal
#

but if i play on this then dont work

plucky crystal
#

im sure its the same

vague relic
#

just by seeing the size of both files you can see that they are not

plucky crystal
#

but i uplaoad

#

this

vague relic
#

are you sure you are uploading the correct file?

plucky crystal
#

athey are the same but it seems that my mod for the workshop is not fully loaded

plucky crystal
vague relic
#

please double check

plucky crystal
vague relic
#

Check the inside of the file

#

check if both are the same

plucky crystal
#

I had the same thing before

plucky crystal
#

steam was changing my files

vague relic
#

Steam dosent change your files usually speaking

#

You might have uploaded the wrong one

plucky crystal
#

I mean, I don't know how to say it

plucky crystal
vague relic
#

You mean you uploaded the correct file you are 100% sure but Steam changes it?

plucky crystal
#

yes

vague relic
#

I want you to go to upload the mod again

#

this time double check if its the same file

#

and triple check

plucky crystal
#

I need to download it again from the workshop or make it available to the workshop again

vague relic
#

make it available again

plucky crystal
#

ok

vague relic
#

lets try that

plucky crystal
#

ok i made it

#

and

#

i try]

vague relic
#

Wont work either

#

Clearly they are not the same file

#

I have no idea why

#

but they are not the same file

plucky crystal
#

Still

vague relic
#

Yeah duh

#

they are not the same file

#

I have no idea why

#

but they are not

plucky crystal
#

I Understand

keen adder
#

(sorry for russian language) I have a new problem, not every state and victory points names are edited.

vague relic
vague relic
#

do the other ones work?

keen adder
vague relic
#

weird

#

close the game and open it again

keen adder
#

that's the same thing

vague relic
#

will check in a couple minutes

inland sandal
#

got event to work
Event pops but doesn't give me the national spirit
Fix it
National spirit works
Event doesn't pop ip
Man.

vague relic
#

Man

#

I feel you

inland sandal
#

I don't even understand what I did wrong, I just converted it to a text file

#

😔

vague relic
#

probably somewhere there

timber zenith
inland sandal
#

only way i could get the event to fire

patent linden
#

How do i make an event where one country sends a specific amount of a certain equipment type to another country?

#

is it as simple as deleting equipment in stockpile A and adding new equipment to stockpile B or is there a more elegant way

vague relic
#

that is actually quite fine

#

a lot of mods do it

#

could also be a decision in the background that fires automatically

patent linden
#

I remember reading something along the lines of "old equipment goes first" in some of those decisions and i am wondering how exactly that can be achieved

patent linden
#

so with an "add_equipment_to_stockpile", a negative amount, and a "priority = oldest" somwhere in the block

patent linden
#

i was trying to search for transfer_equipment

#

no wonder i didnt find it

#

I presume i can use the "priority = oldest" here too?

stuck quarry
#

Yea i thought it was transfer too at first

stuck quarry
#

Looks like you can supply a generic type or a specific type

patent linden
#

yea ok, priority = "" doesnt do anything, but old ones going first seems to be the default

#
        {
            send_equipment = 
            {
                equipment = infantry_equipment
                amount = 100
                target = GER
                priority = newest
            }
            #add idea here
        }```
patent linden
#

Another question: regarding the ai_chance thingy, i did the following ```option =
{
france.1.a
send_equipment =
{
equipment = infantry_equipment
amount = 5000
target = BAY
}
ai_chance = { factor = 90 }
}
option =
{
france.1.b

    BAY =
    {
        add_opinion_modifier =
        {
            target = FRA
            modifier = unstable_alliance
        }
    }
    ai_chance = { factor = 10 }
} ``` What I assume this does is make it so there's a 90% chance the AI picks the first option, and a 10% chance it picks the second option. Is this a correct assumption?
timber zenith
#

so you can do 9 and 1 for the same effect

#

you have an interesting bracketing style as well

#

no hate I just haven't seen the line break before the scope open before

patent linden
#

I'm used to this formatting from other coding projects, so i just use it here too

#

either way: the "send_equipment" doesnt seem to work with the event i am making for some reason, is that intentional?

patent linden
#

from what i can tell, no, but i fired the event manually, and it still didnt work

timber zenith
#

and does france have 5k inf equipment spare? send_equipment doesn't go into negatives iirc

patent linden
#

i take everything back it works now for some reason

timber zenith
#

Huh, nice

patent linden
#

Schizophrenia based developement is my specialty it would appear

haughty crypt
#

Hello guys, how can i make country borders more transparent?

proper acorn
#

How do I change a country's party name through an event?

split badge
vague relic
#

pardon me

magic holly
#

Hi, I'm helping out on the mod empire and I told him to create a nation and focus. Could someone help me teach me please?

#

Could you help me? I'm from Peru and I need help so you can teach me, please.

vague relic
#

JESUS

stuck quarry
#

lol what

inland sandal
obtuse condor
#

how do I release a nation twice, once as like democratic and once as like communist?

jagged tide
#

U release them as your ideology i believe

obtuse condor
#

guess ill make a custom nation

pale sparrow
#

or a dynamic country

obtuse condor
obtuse condor
pale sparrow
#
    original_tag = GER
    transfer_state = 42
    transfer_state = 50
    transfer_state = 52
    transfer_state = 53
    transfer_state = 54
}```
#

for example

obtuse condor
#

thank you

pale sparrow
#

@patent linden@spring ibex@warm pastureKeep it on topic

spring ibex
#

mb

vapid gyro
#

yall know how to play modern day mod? i only need economy advise pls

patent linden
#

How do I add off-map factories to an idea

lofty plaza
#

You can't

stuck quarry
# lofty plaza You can't

You could in a very round about way using on actions i think, atleast i have an idea if how it would work

gilded harbor
#

is there a good mod that plays of during around 1800 (i want some napoleon gameplay)

#

but all the mods are super outdated that i can find

keen adder
#

guys, how to make the party names are showing up like in the second screenshot, but it changes after changing country's subideology?

#

it was supposed to be like a political parties from Millennium Dawn

#

but I guess it's hard work

stuck quarry
gilded harbor
#

ill already subscribe to it

patent linden
lofty plaza
#

They are added through an effect, the same way as actual factories are

wintry geode
patent linden
#

well then

warped nymph
#

is there a way that you can programm the AI to spamm divisions?

obtuse condor
#

The highly anticipated mod "Virtus Unita Fortior: the Andorra focus tree mod" will be releasing very soon! As a teaser, here you can see the 9 different possible monarchs for Andorra, available through the 4 different monarchist paths!

patent linden
grim laurel
#

how duh I create provinces

patent linden
# grim laurel how duh I create provinces

Welcome to the advanced modding tutorials!

In this lesson we will learn how to add a new province to the world map.

If you have a complicated questions that can't be answered here properly (for example if you want to attach a screenshot) you are welcome to use the topic on the Paradox forums, I am always looking there for questions:

https://f...

▶ Play video
patent linden
vague relic
jade roost
#

whats wrong here

wintry geode
#

Is this event valid?

wintry geode
#

HSE={country_event = { id = fra_1789_event.96 days = 30}}

#

This valid?

#

they got the event 1 day after not 30

#

it didnt work

grim laurel
#

the . { } = /

main grove
#

where can i find good templates

light token
#

How do I remove mutually focus trees? Here's an example, say I want to both take Strengthen Northern Industry and Modernize the Mezzogiorno at the same time.

sand locust
#

also i have a question of my own:

#

every_country = {
limit = {
is_ai = yes
num_subjects > 0
}
end_puppet = {
every_country = {
limit = {
is_subject_of = PREV
}
}
}
}

#

i tried using this code to have every nation abandon their subjects, but it's not working

#

every_country = { limit = { is_ai = yes num_subjects > 0 } end_puppet = { every_country = { limit = { is_subject_of = PREV } } } }

#

here is a better looking code block

light token
sand locust
#

yeah

#

crlt f for mutually_exclusive =

#

and then delete the line you want to remove exclusivity

light token
#

Okay, thanks.

timber zenith
#

I'll mock something up for you real quick

#
    limit = {
        is_subject = yes 
    }
    set_autonomy = {
        target = THIS
        autonomous_state = autonomy_free
    }
}```
#

if THIS doesn't work, try PREV

sand locust
#

ahhhhhhhhhhhhhhhhhhh

#

i did it manually, but thank you for explaining it to me

timber zenith
#

No worries

sonic bay
#

what should i make a mod about?

obtuse condor
dusty orchid
#

If they decide to migrate westwards all of Europe will be wiped out

patent linden
#

Question: I am trying to set an icon for my focus, however, this specific icon doesnt work and I can't figure out why

    {
        id = BAY_under_the_french_thumb
        icon = GFX_focus_cze_german_puppet
        x = 13
        y = 3
        cost = 5
        search_filters = { FOCUS_FILTER_POLITICAL }
        prerequisite = { focus = BAY_our_new_role }
        mutually_exclusive = { focus = BAY_together_as_equals }
        

        available =
        {
            always = no
        }
        completion_reward =
        {
            custom_effect_tooltip = bavaria_french_thumb
            country_event = { id = bavaria.3 hours = 1}
        }
    }``` this is the code block for my focus, the icon i am trying to use is in the image i attached
#

for some reason this is the only icon that doesnt work, all others i try to use with this focus work

dark portal
#

why doesnt my mod work when i sub to it

jagged tide
dark portal
#

i enabled it

#

when i sent it to my friend it worked correctly

#

it is a issue purely with mods that i have uploaded

pine lagoon
#

How do you make it so that en event fires on a specific date

patent linden
#

I'm certain there are way more effective ways to do this though

timber zenith
#

in this case it's GFX_focus_CZE_german_puppet

stuck quarry
timber zenith
patent linden
light token
#

How do I remove Stalin's paranoia system in the game while keeping my generals?

timber zenith
#

instead of making like a 20 line available scope in a focus you put a single line, which is that scripted trigger

#

and you move those 20 lines into the scripted trigger file

#

they're pretty damn good but not really useful unless you're using the same set of triggers multiple times

patent linden
timber zenith
#

there is also

#

the gitlab one has preexisting icons

patent linden
#

who stole them

timber zenith
#

i took them 😈

timber zenith
#

There are plenty of portrait mods on the workshop, i'm sure there are some that have free use for credit

patent linden
#

ill try and find something then, thanks

sonic obsidian
#

how to make an event with a referendum like Hungary in my mod?

sonic obsidian
patent linden
#
    {
        name = asutria.a
        annex_country = { target = HUN transfer_troops = yes }
    }```
#

as an example

patent linden
sonic obsidian
#

okay, thanks

patent linden
#

just make sure you dont do the whole "option" thing when in a focus

patent linden
#

theres one for modifiers too

sonic obsidian
#

thanks, that really help

patent linden
#

is anyone willing and able to teach me about how MIO modding works? i cant properly figure this out

sonic obsidian
#

sorry for asking again, but how to fix that?

fast valve
#

Would it be possible to change supply hubs to a tiered system a la forts? It seems they’d share a lot of the same base code but idk how accessible they are

timber zenith
sly pier
#

what modding tool are you guys using?

#

i want to use ms visual studio but i m not sure

stuck quarry
#

Theres multiple extensions to help with modding to speed it up

patent linden
#

I'd say VS code is a bit more versatile, but at the end of the day you can choose between the 2

#

or regular notepad if you're a masochist

pale sparrow
#

VS code has good plugins

#

Notepad++ has a much better search function

sly pier
#

and this is the best extension for vs code?

#

this is the most popular i have found

pale sparrow
#

theres multiple for different things

#

I got CWtools, mod utilities and Paradox Syntax Highlighting (latter probably unneeded, overlapping with CWtools)

patent linden
#

How can i make it so that one of my decisions requires another decision to have been clicked first

stuck quarry
#

Could use a country flag as a requirement for the second decision which is set by the first one

patent linden
#

I havent fully understood Flags yet, seem like boolean values to me, but i dont know if thats true

obtuse condor
timber zenith
#

it doesn't have localisation, though

patent linden
#

so a set_country_flag in the complete effect of decision 1 and a has_country_flag in the available block for decision 2

timber zenith
#

the tooltip won't be accurate so you'll have to make a custom one

patent linden
#

seems simple enough

#

cant wait to fail miserably

timber zenith
#

you can do a global flag as well, it doesn't really matter if it applies to one nation

patent linden
#

so basically a "public/private" boolean

timber zenith
#

pretty much

#

there is also set_state_flag but that's a different matter

patent linden
timber zenith
#

triggers have their own tooltip scope

#
    tooltip = my_tooltip_tt        
    has_country_flag = austrian_aid
}```
#

you can use loc or " in the tooltip part

patent linden
#

i used ", localisation seems a bit overkill, but it works, thanks mate

timber zenith
#

No worries

#

loc is easier if you're making multiple languages or planing on using scripted loc

#

but yeah generally qotations are easier

patent linden
#

I am contemplating translations, but i dont think i care enough lol

timber zenith
#

that's valid

patent linden
#

one more thing, I copied the italian events file into my folder and cleared it, from my understanding, if I assing new events with the same name space as in vanilla, my events should override the vanilla events, however, it doesnt. Is using a different name space the better option or can i force the override somehow

timber zenith
#

i would recommend using a new namespace and different file name

patent linden
#

well then, thanks again

timber zenith
#

any time

wintry geode
#

anyone know any niche focus effects one could use?

timber zenith
#

very useful

#

possibly the most useful effect in the game

sand locust
#

you deserve an award for your skill

timber zenith
#

helping others is my reward ♥️

sand locust
#

does hoi4 have any variant of an if statement

#

like "if any nation is not in a faction, then X"

#

or would it just be something like

#

any_country ={not_in_Faction = yes}

timber zenith
#
if = {
 limit = {
  is_in_faction = no
 }
 result_here
}```
#

if you're asking for every country that isn't in a faction then you can replace the if with every_country

#

the any scope is only used in triggers, and every is only used in effects

lethal portal
#

Custom focus tree isn't uploading on the steam mod

royal quartz
#

So im designing a german focus tree and want feedback before I finish it, is it any good?

#

you will need to open it in browser to zoom in

#

sorry

junior tangle
royal quartz
#

it should be the Kaiserliche Marine right?

junior tangle
#

Yep

#

Also what would Kaiser's council do? Like in this context that is the Kaiser's council? Is it the Reichstag?

royal quartz
#

all I know is that its based off the Austrian system

junior tangle
#

Hmmm

royal quartz
junior tangle
#

Also you could add small separate branches for constitutional monarchy and absolute monarchy

#

Like elect a chancellor and appoint a chancellor

royal quartz
#

but had no clue how like what focuses

junior tangle
#

Elect a chancellor could lead to a semi democratic constitutional monarchy

#

Give bonusses to stability and stuff

#

Whereas appoint a chancellor would mean that the chancellor only fullfills the Kaiser's will

royal quartz
#

I still need to do the communist path

#

but thats not really priority

junior tangle
royal quartz
junior tangle
#

The absolute monarchy path would probably be trying to secure the colonies, and more importantly to further humiliate the French

junior tangle
royal quartz
#

in my timeline the great war was a national catastrophe

#

and led to a horrible humiliation on the germans

junior tangle
royal quartz
#

lost the rhineland

#

and lost Schleswig-Holstein

junior tangle
#

Hmmmm

#

Well a "democratic" government would maybe be able to rearm quicker

#

And could do concessions to the victorious powers to regain some of it's old land

#

Whereas the absolute monarchy would be slower with rearmament because the victorious powers refuse to negotiate with it

#

But gets more war goals over time

royal quartz
junior tangle
#

That could work

dark portal
#

house

iron abyss
#

Why... Idk why nudge caused this error

dark portal
#

depends

#

remove all files that say history or map that are in documents/paradox/hoi4

mighty token
#

Greetings to all, my friend created a mod, and after that his checksum changed, the ways to clear the cache and reinstall the game did not help.
I ask knowledgeable people to suggest a solution to this problem.

patent linden
#

well uhh, did he disable the mod in the launcher?

silver zealot
#

i've made a national spirit. It worked completely fine when i added it so i removed it from the country file and decided to make it appear through national focus. But no matter what i do it just dosen't work.

#

i checked if there was a typo or something but it was good

#

i tried without the {} so it was just add_ideas = wild_spirit and it didn't work either

peak ravine
#

Are there any good mods for gaining more cores for a country? Not just free ones but if you get compliance high enough you can use pp to gain cores. Essentially replacing compliance government

patent linden
silver zealot
peak ravine
#

Thanks

silver zealot
#

how do i add a character through focuses? For example an advisor appears or smth

humble trellis
#

Hey all. I was curious on how people would think for a Warhammer 40k mod called "Cadia Stands" where you either play the forces of evil or the imperium of man in the fall of cadia. It would be a huge map with stagetic points and overtime the map would start to "break" which would be rivers/lakes so the naval system would become "spaceships" I think this would be a cool idea and im curious what others would thiink

#

You also may be able to stop abbadon from breaking the world and be able to close the warp

humble trellis
silver zealot
#

it is an idea

humble trellis
silver zealot
#

did i do something wrong (The name won't change to Stanley Bald it just stays as the tag)

jade roost
#

wiykd tge date for the event work

proper acorn
jade roost
timber zenith
#

date only uses > and < not =

jade roost
#

ok

timber zenith
#

just use on_startup instead and have a day delay of 1 day

jade roost
timber zenith
#

on_startup instead of on_daily

#

and you don't need the if scope

jade roost
#

kk

jade roost
timber zenith
#

just on_startup you don't need to mention the tag

#

and you can do

    id = fpw_afghan.1
    days = 2
}```
#

if you want it to trigger 2 days after start

#

wait maybe just 1 day

jade roost
jade roost
timber zenith
#

the namespace has to match the event title, so it would be fpw_afghan

jade roost
#

kk

#

alright ill test it and see if it works

wintry geode
#

what kinda debuffs do you all add to a country/alt path if you want to make it hard?

lofty plaza
#

Get creative

spring holly
#

Also I am making an estonian independence war tree and I am making a focus which has an event as a completion reward, but when I boot up the game, it shows "invalid event with id: est_allies_event.1"

wintry geode
#

do i add 2 traits to the prime ministers?

#

so you can only have one?

#

since i made them have whig tory conservative traits

#

also does anyone have suggestions what the prime minister trait should do and whig/tory/conservative traits should do?

wintry geode
#

traits = {
britain_prime_minister_conservative
britain_prime_minister
}

#

this works right?

tulip prairie
#

I'm going insane

#

please anyone help meh TwT

tulip prairie
gusty patrol
#

anyone knows a mod that changes gibraltar to 2 provinces and adds a block from land invading it through spain?

native tartan
#

yall idk how to mod but do u need to know css or any programming languages to make mods?

tulip prairie
#

just learn

#

scripting is piss easy

native tartan
#

so no proggraming language is needed?

tulip prairie
native tartan
#

ok

#

ty

tulip prairie
#

yw

wintry geode
#

ah okay adding 2 traits is the fix

plucky crystal
#

hello

#

in every other idea i need new file?

echo storm
#

yo

#

would anyone be interested in helping me make my mod?

desert pollen
#

does somebody know what is called localisation file for country flag?

timber zenith
native tartan
#

yall m new to modding js started and i wanna make a focus that u have to be in a faction i know how to do the opposite. just dont know how to make it that u have to be in a faction to get that focus

timber zenith
native tartan
#

from a video i saw this is how to do the opposite

#

idk if its correct

timber zenith
#

you can just do is_in_faction = yes

#

or no for the opposite

#

if it's general

native tartan
#

with the available?

timber zenith
#

inside the available scope, yeah

native tartan
#

aight

#

ty

timber zenith
#

no worries

desert pollen
timber zenith
#

a flag is just a boolean, meaning it's either on or off

#

so setting the country flag to POL_sanation_win just sets it to 1

native tartan
#

btw how can i make it so the country has to be the faction leader to have that focus?

native tartan
#

aight

#

again

timber zenith
native tartan
#

ty

timber zenith
#

all good

desert pollen
#

is there like custom trigger tooltip?

#

like effect has

timber zenith
#

Yep! like this:

    tooltip = tooltip_loc_tt        
    is_trigger_here = yes
}```
timber zenith
#

no worries

honest zodiac
#

guys my map section is bugging

#

help pls

uneven cobalt
#

what mod you have trying and how can I add one??

timber zenith
lament osprey
#

I’m conducting a study to understand which tasks modders find most frustrating and which tend to consume the most time. If you’re willing to participate, please fill out the form linked below and feel free to share it with your fellow modders. If you’d like to receive the results, simply send me a quick message, and I’ll provide them once we reach at least 100 participants. So far, 5 people have contributed.

https://forms.gle/FSrUjgkapKjz5imT9

Thank you in advance!

wintry geode
#

huh?

#

tf are the civs mil modifiers

#

hoi4 modding being a maze

#

whats effect for organization and entrechment n crew?

lethal igloo
#

bit of a weird question, but the modding discord has failed me.

does anyone here know how to change the modifiers that are provided by the tank designer roles? SPAA, SPG, AT, flame tank etc.?

(or if they can be changed at all.)

novel stump
#

im tryna create an alt hist map if anyone wanna help

bronze crystal
#

is there anything i can get on visual studio to help mod hoi4

lethal igloo
pseudo badger
#

anyone have any cool alt history mods besides the basics ive been out of the game for like a year now

opal rune
#

how can i change the shape of provinces (not states)

timber zenith
bronze crystal
#

hoi4 modding early on is just spamming blocks

spice cradle
#

is there a good updated states mod

#

or are those rare now

stuck quarry
#

Sometimes wish they just used lua for everything

#

Atleast then i could use template variables names

#

To dynamically change a variable name based on the scope

native tartan
#

where is greeces tech tree for artillery section?

#

i cant seem to find it

#

does anyone know?

stuck quarry
#

Usually how i find things that idk the location of, search what i know and discover until i find it

native tartan
#

i tried to find it

#

but

#

it just showed the basic

#

i wanna change the name of it

#

and some other stuff

#

and i cant find it

#

tried finding tutorials also

#

nothin worked

#

i found in teh game files it uses this

#

artillery_equipment_1

#

dunno where it is tho 😭

native tartan
#

ah

#

finally

#

i fixed it

#

i just had to change it in localisation

keen adder
#

that'd be helpful

lament osprey
#

I’m conducting a study to understand which tasks modders find most frustrating and which tend to consume the most time. If you’re willing to participate, please fill out the form linked below and feel free to share it with your fellow modders. If you’d like to receive the results, simply send me a quick message, and I’ll provide them once we reach at least 100 participants. So far, 17 people have contributed.

https://forms.gle/FSrUjgkapKjz5imT9

Thank you in advance!

pine nymph
#

Why does Romania still have the state after this?

#

I need help

patent linden
#

did you restart the game?

#

I have a decision category where in the allowed block i added the condition that a certain focus has to be completed for it to be available. However, even if I complete that focus, i dont get the category unlocked. What could be causing this?

{
    priority = 10
    icon = GFX_decision_category_generic_foreign_policy
    
    
    allowed =
    {
        #always = yes
        original_tag = BAY
        has_completed_focus = BAY_searching_for_allies
    }

    visible =
    {
        #always = yes
        original_tag = BAY
        has_completed_focus = BAY_searching_for_new_allies
    }
}


focus =
    {
        id = BAY_searching_for_new_allies
        icon = GFX_goal_generic_major_alliance
        x = 24
        y = 1
        cost = 5
        prerequisite = { focus = BAY_on_our_own }
        search_filters = { FOCUS_FILTER_POLITICAL }

        completion_reward =
        {
            unlock_decision_category_tooltip = searching_for_allies
        }
    }``` code for the focus and the category
patent linden
#

nevermind it's available not allowed i am simply dumb

wintry geode
#

uhhhh whats effect for dockyard construction

stray jungle
#

can someone help me with my mod

patent linden
stray jungle
#

Just wanna create custom country, but I don't know much about how to do focus trees and how to add more provinces to it

patent linden
# stray jungle Just wanna create custom country, but I don't know much about how to do focus tr...

This Hearts of Iron IV modding lesson will explain the basics of modding the game.

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.

Useful links:
Iron Workshop Discord server: https://discord.gg...

▶ Play video
#

this is a playlist

#

has everything you need

stray jungle
#

I watched it, But I'm not sure if he talked about how to do civil war on focus tree

#

I mean

#

You complete one focus and you have civil war

patent linden
#

these 2 give you a lot of information about "stuff" you can put in your focus = {} block

stray jungle
#

Okay, thanks

patent linden
#

ctrl + f to search for keywords

patent linden
# wintry geode

forgot to add, in the 00_buildings.txt dockyards are called "dockyard"

#
dockyard = {
        show_on_map = 1
        show_on_map_meshes = 3
        base_cost = 6400
        only_costal = yes
        naval_production = 1
        icon_frame = 4
        only_costal = yes
        max_level = 20
        shares_slots = yes
        value = 5
        infrastructure_construction_effect = yes
    }```
lofty plaza
honest zodiac
#

can anyone help me create a custom map?

#

I tried like giga much but i still cant do it\

honest zodiac
#

please guys

#

help a brother out

pine nymph
patent linden
patent linden
#

I found the "create_faction = Allies" in the country history file for the UK, i want to create a faction like that for a different country, however, i assume that "Allies" in this case isn't a name but a reference to some kind of faction definition entry in some other file. Is this assumption true, and if yes, where is that file and how can i add a new faction in there?

keen adder
#

my script won't work

patent linden
#

Does this include adding/removing Political Advisors

native tartan
#

yall how do i change the national focus left side size so i can add more focuses

#

whatever space is left on the right side is used so i cant make it there

patent linden
#

I think all you can really do is move every other focus to the right

#

i dont think you can use negative coordinates

#

I was wrong

#

you can use negative coordinates

native tartan
patent linden
#

Take this example focus here: focus = { id = test x = 0 y = 0 } the x and y are the position of your focus, in this case 0 and 0, the top left corner. If you set x to -1, the left side of your focus tree window expands.

native tartan
#

aight

#

thanks

#

i should have thought of that ngl

#

ah

#

it works

#

ty

patent linden
# native tartan ty

This Hearts of Iron IV modding lesson will explain the basics of modding the game.

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.

Useful links:
Iron Workshop Discord server: https://discord.gg...

▶ Play video
native tartan
#

i try to watch it but i get bored after like 3 minutes

#

at the start it was fun but now its just boring

#

i dont know why ngl

patent linden
#

doing things is fun, learning how to do them often is not

native tartan
#

yeah

#

btw

#

why isnt the continuous focus moving

#

im changing the margin

#

and it ownt change

#

lemme send a pic

#

i changed the margin and position

rapid ice
#

anybody know what "abbreviation" does?

patent linden
rapid ice
#

alright, I'll test it once i get to that part

#

i beleave its nothing important, so it might just be that

keen adder
stuck quarry
native tartan
#

yall why aint my continuous focus moving 😭 im lit channging the margin AND the position and it does not move

#

i changed the position value btw i just took screenshot before change

patent linden
patent linden
plucky crystal
#

How to know what the tag will be during a civil war? maybe I want to do something that after the civil war a given country becomes a subject of another country, please help

latent finch
native tartan
#

because i need to make a new focus and it blocks the focus

#

i found a way eventually to move it

#

but

#

the focuses that the continuous window had were covered by a gray screen

#

so

#

yea

stuck quarry
#

You moved the entire continuous focus container right

#

Or did you move everything individually

#

You should just be able to edit the main containers position and everything (including the grey screen) will be moved

keen adder
#

i've finally added a scrollable party chart

native tartan
#

i made a focus and then the completion reward added free trade + set_country_leader but i got a error and it just didnt work

#

and i registered the leader in countries since he was custom and not 1 from the game

tulip fulcrum
#

Ahem, does anybody know much about Hoi3 Modding?

gleaming edge
#

I.e. not worth it

#

Playtest and make sure it's fun to play

tulip fulcrum
#

I wanted to make a custom map, but it seems like thats hard coded into the game

warm anvil
#

I'm searching for Notepad++ user-defined language and auto-completion of HoI4

patent linden
#

Are there predefined "namelists" for the randomly generated advisors and division officers and if yes, can I assign a specific Tag a specific list

glad lynx
#

Guys, do you know any guide for BlackICE mod?

#

I've been looking for it as I have recently installed that mod but I haven't found any guide

high root
#

am i doing something wrong? i want to make a Eastern Europe mod, but whatever i do, i cant set the owner of my custom state

#

please help

#

and please tell me what could i do to prevent this from happening

high root
#

I guess you and me have the same problem 🫤

#

I made a new state and transferred it to ukraine, i wanted ukraine to have the city of lwow, in which the OUN had a headquarters in 1935 (year the mod will be in)

#

The thing for me is, that i followed a tutorial

#

Yeah

nimble solar
#

There already is a Danzig tag

#

Idk what it is, but it already exists

native tartan
#

how can i run a mod without needing the paradox launcher?

nimble solar
#

You need a launcher to do anything but run base game I believe

#

Unless... you don't have a launcher because reasons

native tartan
#

and immaking a mod and i want him to try it out

#

so

#

ye

nimble solar
#

I think it is a "There's nothing we can do" moment

native tartan
#

lol

#

alright

#

thanks anyway

#

!

high root
#

The same thing as mine, i set the already existing UKR tag, and it did nothing, same as the other new states.

#

please somebody help

loud oasis
#

is there a good mod that MASSIVELY expands on historical germany? i appreciate the current ones, but theyre easily learned and i want a challenge

grim laurel
#

steamcmd

burnt elbow
#

Hello everyone. Is it possible to create more than one flag for one ideology? Its to change it depending of the story moment.

high root
#

Uhh, alr

nimble solar
high root
#

Like, when making a mod, i have to make a Common, and History folder in the mod folder, and then i make the provinces. Random and validate in state that a i changed and around it. After that, in the script, i copy the things in script into the file that is new? (Change around the id’s and manpower) is that how to do it?

timber zenith
abstract hawk
#

Yk

#

Someone should make a mod for TNO to add in Fallout content

#

Like an ability for different countries to go down paths similar to their Fallout counterparts

#

Maybe have a good explanation for Fallout tech

#

Etc

#

If anyone is interested

#

I can elaborate and explain

high root
#

i messed up the mod so bad, its easier for me to remake the mod from scratch

abstract hawk
#

It'd take inspiration from FPW

#

Anyways if anyone is interested just ping me

#

It'd be a commission

patent linden
#

The whole thing when they changed doctrines so that instead of researching them you "buy" them with xp, was that part of a dlc or part of an update?

abstract hawk
#

If anyone is interested ping or DM me

pine nymph
timber zenith
#

look at the contents of another state file and copy/edit it for your needs

gleaming atlas
#

which one of yall did this? lol

patent linden
#

not me

#

should've been me though

oblique silo
#

no piracy please

summer trout
#

so i’m playing road to 56, it’s gone totally unhistorical, UK declared on iceland, greece declared on albania, hungary joined the comintern, and finland joined the allies, idk what happened. I think it has something to do with me having historical focuses on?

magic bay
summer trout
#

It probably should’ve been the first thing I did (sorry for the bad grammar)

#

but it’s also funny so I shared it

high root
#

please help