#modding

1 messages · Page 107 of 1

shut dawn
#

I’m not sure what you’re asking there.

quasi hollow
shut dawn
#

I don’t get what you mean. Why can’t you make them? You don’t have ideas?

quasi hollow
shut dawn
#

I’d suggest looking into the organizations of the time. There must’ve been some labor, monarchist, and other movements in the country during the period leading up to Mussolini. Read up on them on Wikipedia to start and dig into the reference sources if you want more details

quasi hollow
#

I have Two Sicilies, Venetia Reoublic and Libya

shut dawn
#

You’d probably want to look up the history of those regions you’re covering and see what you can find

#

Then think “ok how would this govt act in this time”

shut dawn
#

No problem

pseudo crescent
#

woow

ruby abyss
#

Polska moment

frail sapphire
#

Does anyone know, how to Highlight a state, like a dmz, for a Holy Roman Empire Effect?

#

Try to write 193_revolution. Don‘t leave a space there

lapis axle
#

ty

wild pawn
pale sparrow
wild pawn
#

So.. how do I update?

pale sparrow
wild pawn
#

DLC release? the mod is becoming DLC?

pale sparrow
swift field
#

not mine btw

#

i wanna add a LOT of NEW SHIP TYPES

#

like LHAs lhds etc

silent zephyr
#

Guys I have no dlcs what mods are nice to play with even though I have no dlc?

shut dawn
silent zephyr
#

What is it

#

Like vanilla+ or?

stoic garnet
#

guys help the equipment part of my script is not working

shut dawn
burnt vigil
pale sparrow
tall hare
#

so if germany complete a focus

#

they send it to France

#

is this right?

#

completion_reward = {
CFA ={ country_event = { id = french_reperations.1 days = 1 }
}

pale sparrow
#

FRA = {
country_event = germany.1
}

#

That works too yeh

tall hare
#

okay nice

tall hare
#

option = {
name = french_reperations.a
add_political_power = 50

    option = {
    name = french_reperations.d
    add_political_power = 50

}

#

is this right if I want to add two options

#

and

#

how would I do if I want germany to get pp

pale sparrow
#

Brackers are wrong otherwise yes

#

just put a GER scope and put the political power inside there

#

OR

tall hare
#

so like

#

GER { add_political power = 50 }

pale sparrow
#

Yes, If Germany sent the event you can also do
FROM = {
add_political_power = 50
}

tall hare
#

ok

tall hare
# pale sparrow Yes, If Germany sent the event you can also do FROM = { add_political_power = 50...




    focus = {
        id = French_Reperations
        icon = GFX_surrender_tiny_flag
        cost = 5
        x = 33
        y = 0
        completion_reward = { 
            CFA ={ country_event = { id = french_reperations.1 days = 1 }
        }
    }
        ai_will_do = {
            factor = 10
        }
    
    
    }
    
        


add_namespace = Commune

country_event = {
    id = french_reperations.1
    title = french_reperations.1.t
    desc = french_reperations.1.d 
    picture = GFX_report_event_generic_read_write

        option = {
        name = french_reperations.1.a
    FROM = {
    add_political_power = 50
    }
}
        
        option = {
        name = french_reperations.1.d
        add_political_power = 50
}
    is_triggered_only = yes

}

#

do you know why this wont work?

pale sparrow
#

Also your 2nd event option should be b and not d

#

Otherwise itll overlap with your description

tall hare
#

ok

#

Also

#

what does name space even mean 😭

shut dawn
tall hare
#

how can I make one of the events trigger a event for germany?

#

do I use

#

from { }

shut dawn
# tall hare do I need it for every event?

You don’t need a namespace for every event. You should just have namespaces that a bunch of events use and then just have a number.

For example:

add_namespace = ZZZ_events

ZZZ_events.1
ZZZ_events.2
ZZZ_events.3

tall hare
#

ok

#

nice

shut dawn
tall hare
#

ok

#

from work too?

shut dawn
#

I’d really suggest checking out that wiki I linked. It has whole pages dedicated to effects, triggers, modifiers, and even extensive documentation on how different things work and what you need to do. I reference it all the time and I’ve been modding for years

shut dawn
tall hare
#

ok

tall hare
#

I am making like a event chain

#

its kinda annoying

shut dawn
#

If you want it to be a specific nation every time, better to use the country’s tag

shut dawn
#

My advice is to treat the code like a Genie. You need to be very careful about how you want it to do what you want it to do, or it’ll possibly mess everything up

tall hare
#

what would namespace for this be?

#
    id = GER_french_reperations.1
    title = GER_french_reperations.1.t
    desc = GER_french_reperations.1.d
    picture = GFX_report_event_world_news


fire_only_once = yes



trigger = {
    tag = GER
}

option = {
    name = GER_french_reperations.1.a
    add_political_power = 5
}
mean_time_to_happen = {
    days = 1
}

#

GER_french_reperations

#

?

shut dawn
#

Yeah. But just to clarify, the namespace for the events can be whatever you want. The only thing is you generally want it to be something easy to identify and not overlap with anything else

tall hare
#

ok

shut dawn
#

So when I’m making events for a focus tree I usually do TAG_nf_events as the namespace. But I work with new nations. If you’re working with existing ones, it might be better to have something else like GUS_TAG_something_events

Just so that you don’t conflict with another mod or anything in the base game

tall hare
#

Okay nice

#

also

#

-20% stability, -100pp and -10%

#

is it

#

add_stability = -20

#

and add_political_power = -100

shut dawn
#

No, it’s a little different. Here’s a list of every command https://hoi4.paradoxwikis.com/Effect

if you ctrl+f on the page you can usually find what you’re looking for real quick

tall hare
#

but if I want to remove

#

do I do

#

-20

#

or

shut dawn
#

You wouldn’t do 20 because stability is in percent

tall hare
#

yes

shut dawn
#

You’d do -0.2

tall hare
#

I thought about it

#

but it is -

#

right

shut dawn
#

Yeah, you’d do add_stability = -0.2

tall hare
#

ok

tall hare
shut dawn
#

ai_chance. I’d suggest reading the wiki’s page on event modding. It should be very helpful.

tall hare
#

ok thanks

shut dawn
#

No problem

tall hare
shut dawn
#

Pretty much

meager mortar
#

does fire rises have content for turkey

tidal gazelle
slender mason
#

how do i make a nation declare war with a focus tree without a war goal?

shut dawn
stoic garnet
fossil inlet
#

Hi, I'm interested in making a mod for multiplayer sessions with some friends that remove some tank modules, some technology and remove countries. Does anyone have any guides or tutorials they know off that I can use? I am quite new

robust gulch
#

Does anyone have recommendations for fun immersion nods similar to black ice,total war?

rare grove
#

russia has 9600+ guns but it says they dont?

#

how to fix

#

has_equipment = { infantry_equipment > 9599}

#

this code doesnt work for some reason

#

for russia

#

it works for every other country but not russia

proven sage
#

i mean i am suprised that you can even get that kind of stock, maybe delete most?

rare grove
#

i deleted 1.5m guns and now it works

#

thx

#

ill make russia have terrible arms factory debuffs

unique zenith
#

Does anyone know if there is a way I can get the total graphic redux mod combined with another custom portrait mod?

unreal sorrel
tall hare
#

I need a good image for this

vital ice
#

question if i want to have 2 focuse trees for 1 contry can i somehow make a decision to swich them around or smt

burnt vigil
#

Check the Belgian shared focuses

lapis axle
#

how do i make a country totally annex the other one after winning a war

burnt vigil
#

Ngl, it's weird, its an AI thing but personally idk what the fix is

hot vine
#

Is there a way to find out what folder the image being used is contained in?

#

I am trying to track down where an equipment image is but I have no idea how to other than looking through everything manually

#

Would also be great if to find something that would tell what folder a technology or other things like that are stored in...

burnt vigil
#

Like the icon for techs and variants?

woven fossil
#

Is it possible to give an country provinces without needing to spawn troops in said provinces during a war/civil war?

#

How?

burnt vigil
burnt vigil
woven fossil
burnt vigil
#

No, provinces cant be shifted

#

You grant X the state, but you'd need to spawn units on the specific provinces to give them specific ones

woven fossil
#

Hmmm

burnt vigil
#

Idk if you can modify thr occupation of specific provinces, I haven't gotten there just yet

woven fossil
#

I swear that I saw some starts at game start with some provinces without the full states without troops on them

#

Ahhh, you are pretty new to the modder

burnt vigil
#

Nope, just never had to deal with that

#

Most civil war stuff i deal with is on such a large scale that I can do full states without issues

woven fossil
#

Civil wars are so hot

#

At release, my submod will have three civil wars

burnt vigil
#

On release.. i'd have to count for mine

#

I might keep it simple like no LaR spain

#

But I might also go right ahead with adding all 20 smth civil war member

#

@hot vine you can find technology GFX that you'd see in the tech tree under root\gfx\interface\technologies, and technologies themselves in root\common\technologies

woven fossil
woven fossil
#

I love it

burnt vigil
burnt vigil
woven fossil
#

PRetty

#

The largest civil war is between 8 members

#

9*

#

This is a outdated picture but the borders did not last

burnt vigil
#

Ngl im gonna enjoy playing that

woven fossil
#

SAme with the other two civil wars

#

The only coutry that will have content is Posada's Posadic Utopist Revolutionary North Zebrica

#

Am I doing a 1984? Yes, I am doing a 1984

woven fossil
#

even fighting the communists, the fascists (Kingdom of Wingbardy) and the Militarists alone

burnt vigil
#

Before the Civil war, would you say they held the majority of power?

woven fossil
#

AI

#

not player controlled

burnt vigil
#

Bc that'd be like, the perfect way to make that seem it

#

"Hey, these guys are the strongest of the people in the country, so have fun fighting the majority of power in the Civil war"

woven fossil
#

SO yea

#

They held all the power of the superstate before it collapses after Revolutionary North Zebrica also collapses into a civil war

burnt vigil
#

That makes sense then

woven fossil
#

but the differences are the opposition in the Zebrican Civil war are united in The Harmonic Front while the Griffonian Civil War is just a mess

burnt vigil
#

Its like the nationalists held majority of power, but not majority of the people

woven fossil
#

True

#

DId not have popular support

#

The lore and stuff around Revolutionary South Griffonia is non-existent cuz in base EAW, it has no content

#

and I have not thought up the inners of the civil and shit

#

I was like "I want big civil war in GRiffonia and I want it now!"

#

I do have a idea for another civil war and actually talked to myself about it in the submod's server about if it should be a threesome but I decided that it was too unrealistic for rebels to pose a big enough threat in the urban north of a surveillance state

burnt vigil
#

Reading 3sum gave me shell shock

woven fossil
#

A super secret state that not even the countries in the west of Zebrica or in Griffonia or Equus know the existence of it

#

Shadow state with a shadow cruel government

woven fossil
burnt vigil
woven fossil
burnt vigil
#

Hoi4?

woven fossil
hot vine
hot vine
woven fossil
#

Question

#

In which situation should I create a new tag over using a pre-existing tag?

ruby abyss
#

imo when multiple nations spawn from the same nation

woven fossil
#

Like a civil war?

burnt vigil
#

Sometimes

#

Depends on if they will have their own focus tree or not

woven fossil
#

I always struggled with this stupid question

#

Thats why there is a blue army group with the tag of The Hindian Confederation

#

WHen someone complain about Blue Terror not having alot of content for being in 2 whole years of development

#

my answer would be

#

civil war

fossil inlet
#

Instead of overwriting vanilla files and straight up deleting technologies, is there a way to "disable" them instead of just deleting the code?

proven sage
vital ice
#

question if i want to have 2 focuse trees for 1 contry can i somehow make a decision to swich them around or smt

proven sage
pale sparrow
#

Doesnt France switching back have all their focuses incomplete?

#

Thats the advantage of hide/unhide, you can store the progress

clear moat
#

What does this error mean?

LastRead: career_profile_6E36DF3501001001_v3.pr (1)

pale sparrow
clear moat
#

The problem turned out to be that the game crashes because of one country

#

Okay, I found the reason

teal belfry
#

how hard would it be to make a cyberpunk mod?

#

like, it takes place in cyberpunk 2077

burnt vigil
#

P hard

burnt vigil
stoic garnet
#

is there anybody that do art commisions here

#

i have a rather unusual request

proven sage
mild siren
#

okay im so lost, shouldnt this make an empty focus tree??

`focus_tree = {
id = israel_focus

country = {
    base = 0
    modifier = {
        add = 10
        tag = PAL#92
    }
}

}`

the palestine tag is PAL#92

#

im js gonna look in the ROOT folder cuz im too stupid for this 😭

#

wait doesnt the #92 just comment out the 92

#

why are there even numbers in it in the first place

pine nymph
#

Guys is there any way I could remove all content from the game?>

mild siren
#

and just doing PAL doesnt work either 🥹

pine nymph
mild siren
#

this worked before

#

even on the official tutorial it works but for me it just doesnt for whatever reason

pine nymph
mild siren
#

i dont even have any focus to add this on to tho

pine nymph
#

Just copy this

mild siren
#

copy what

pine nymph
#

lemme write

mild siren
#

oh oh alr alr

pine nymph
mild siren
#

`xxxxx`

#

you need those thingies before and after

pine nymph
#

focus_tree = { id = german_focus continuous_focus_position = { x = 100 y = 100 } country = { factor = 1 modifier = { add = 10 tag = GER } } dafault = no }

#

I think your tag was what was wrong

mild siren
#

but

#

eh whatever i gtg now 😭 ill try again later thank for help

pine nymph
#

just write PAL in, don't write PAL#92

mild siren
#

i did that

#

stil didnt work

pine nymph
#

hmm

#

So let me get this straight, you want an empty focus tree

pine nymph
#

If you right click on PAL are there any focuses?

mild siren
#

just replace the default with ab empty one

mild siren
#

the default one

pine nymph
#

And if you don't want any continuous focuses don't write that in

mild siren
#

okee will do later

#

tyy

pine nymph
#

np

#

btw

mild siren
#

ya

pine nymph
#

We modders have a community on discord where we help together so if you have any questions just ask that in the server, not here. Barely anyone mods here

#

I can't send the link I will just dm you

mild siren
#

ive modded a bit before but havent done so in months and it feels like they changed a lot of syntax i cant remember shit 😭

spark wedge
#

hey

#

can anyone help

#

i made my own mod but i have no idea how to add it

#

like there no drag and drop

#

or anything

#

and the file path says it contains characters not compatible with windows WTF

distant island
spark wedge
#

it says a directory already exists

#

because ive obviously added to the folder already through files

#

but nothing comes up

#

in the launcher

distant island
spark wedge
#

ig

#

its in my mod folder

distant island
#

ok go to playsets

spark wedge
#

i only just started playing hoi4

distant island
spark wedge
#

oh ye ik

#

its not there

#

thats what i mean

distant island
#

strange

distant island
spark wedge
#

ye

distant island
#

i would just make a new mod and copy paste everything on the new mod

spark wedge
#

should it all be in 1 folder

#

the mod

#

or

distant island
#

make a new mod as you did before and copy paste everything your previous mod folder had inside

spark wedge
#

what do i do with the descriptor

#

im new to hoi4 modding so mb

distant island
spark wedge
#

where do i put it

distant island
#

just delete the descriptor from the old mod after copy pasting everything else to your new mod folder

spark wedge
#

wdym

#

should i have the descripter in the mod folder and the folder

#

or the folder with the descriptor inside

distant island
#

ill just tell you step by step what to do

spark wedge
#

what does some active mods are not present on disc mean

#

rq

distant island
#

basically deleted mods

pale sparrow
#

Or the launching is glitching

distant island
#

then just delete the old mod if it works

spark wedge
#

so then what do i do with the descriptor

distant island
#

from the old mod?

spark wedge
#

yes

distant island
#

just leave it on the old mod's folder

#

also the descriptor file contains these so its not compatible with other mods

#

dont ever put a descriptor from another mod to another mod

spark wedge
#

wtf is going on

distant island
#

what did you do

#

pls dont tell me you did something to that folder

spark wedge
#

nah

#

ill show u

#

my folder

#

inside is this below

#

@distant island

distant island
# spark wedge

i meant copy paste everything inside "hoi4_100_construction_speed" not the folder itself

spark wedge
#

this doesnt work still

distant island
#

is hoi4 high or what

spark wedge
#

wdym

warm cape
#

click on the descriptor file

#

open it in a text editor

#

also what did you do

#

don't cover those into the mod folder

#

it doesn't matter where your mod folder is

#

you need to have a .mod file that links to the mod folder

#

put your mod files back into the folder

spark wedge
#

so this is wrong right

#

version="1.0"
tags={
"Balance"
"Gameplay"
"Quality of Life"
}
name="Construction Speed 100 - 10 Queue"
supported_version="1.14.*"
path="mod/HOI4_100_Construction_Speed"

#

thats what ive done

#

so far

warm cape
#

make sure the path points to the folder containing your mod

spark wedge
#

my discriptor is in the mod folder too

#

is that right

warm cape
#

yes

spark wedge
#

yo

#

why do these keep spawning in

#

a new one every time i launch

warm cape
#

ah

#

paradox launcher doing stuff

#

don't bother with it

#

does your mod load

spark wedge
#

no

#

ive done this

#

version="1.0"
tags={
"Balance"
"Gameplay"
"Quality of Life"
}
name="Construction Speed 100 - 10 Queue"
supported_version="1.14.*"
path="C:\Users\dreid\Documents\Paradox Interactive\Hearts of Iron IV\mod\myfirstmod"

spark wedge
#

wdym

warm cape
#

use /

spark wedge
#

done

#

still isnt showing

#

version="1.0"
tags={
"Balance"
"Gameplay"
"Quality of Life"
}
name="Construction Speed 100 - 10 Queue"
supported_version="1.14.*"
path="C:/Users/dreid/Documents/Paradox Interactive/Hearts of Iron IV/mod/myfirstmod"

warm cape
#

this file

#

needs to be in the mod folder

#

in the "hoi4/mod" folder

spark wedge
#

what one

warm cape
#

not "hoi4/mod/myfirstmod" folder

warm cape
spark wedge
#

thats everything in the mod

#

in that folder

#

are u talking about the descriptor

warm cape
#

because how the game catches your mod is that it goes through the /mod folder and read all the text files in there

spark wedge
#

so like this lemme show you

warm cape
#

then go through the path to grab your mod files

spark wedge
warm cape
#

yes

spark wedge
#

thats what happens

#

i cant enable it and it has no size

warm cape
#

name the file .mod

spark wedge
#

the descriptor yes

warm cape
#

then it should show up

spark wedge
#

or the folder

warm cape
#

descriptor

spark wedge
#

ok

#

its still the same

warm cape
spark wedge
warm cape
#

delete this

#

go to launcher

#

create a playlist

#

add mods

#

then you see your mod in there

spark wedge
#

ik

#

i cant even enable it

#

wait can u make mods

#

maybe i did smth wrong

warm cape
#

?

#

no

#

if you followed the steps exactly, you enable the mod

#

?

#

what's on your screen

spark wedge
#

i cant enable it

warm cape
#

ok did you do everything as I said

spark wedge
#

it physically has a circle crossed out

#

yes

warm cape
#

send a screenshot

spark wedge
#

it has no size

#

and no version

warm cape
#

or the whole window

spark wedge
#

its got a red triangle too

#

ill show u what it says

warm cape
warm cape
#

do you get to the correct folder?

spark wedge
#

what do i make the version

#

1 sec trying smth

warm cape
spark wedge
#

it works

#

i think

#

it just says its for an older game version

#

will it still work#

#

on latest

warm cape
#

yes

#

version is cosmetic

warm cape
#

then it should work

spark wedge
#

the mod just doesnt actually do anything

#

thats the problem

#

its still broken

#

but i have it loaded

warm cape
#

at least it loads

spark wedge
#

is it supposed to be 800 bytes

warm cape
#

that's normal

spark wedge
#

the mod is this for descisions

#

decisions = {
construction_speed_100 = {
name = construction_speed_100
desc = construction_speed_100_desc
picture = generic_production_bonus

    available = {
        always = yes
    }
    
    visible = {
        always = yes
    }
    
    fire_only_once = yes
    
    cost = 0
    days_remove = -1
    
    complete_effect = {
        add_ideas = construction_speed_boost
    }
}

}

#

ideas = {
country = {
construction_speed_boost = {

        picture = generic_production_bonus
        
        allowed = {
            always = yes
        }
        
        removal_cost = -1
        
        traits = { }
        
        modifier = {
            production_speed_buildings_factor = 1.0
            max_building_queue = 9
        }
    }
}

}

#

idk wtf is wrong

#

thats the whole mod

warm cape
#

which part is wrong

#

does the decision show up?

spark wedge
#

no

warm cape
#

can you add the idea with console?

warm cape
warm cape
spark wedge
#

yeah i have

vital ice
#

guys i knwo this a dum question but how do i make a code to add nuclear research facility in lux

warm cape
#

I copied your code and the decision does show up

#

did you add a decision category to common/decisions/categories folder?

vital ice
warm cape
#

add a nuclear_facility in the buildings

vital ice
#

im making so a focus does it

warm cape
#

hidden_effect = {
IF = {
limit = {
8 = {
is_fully_controlled_by = ROOT
air_facility < 1
land_facility < 1
naval_facility < 1
nuclear_facility < 1
}
}

                8 = {
                    add_building_construction = {
                        type = air_facility
                        level = 1
                        instant_build = yes
                        province = 6583
                    }
                }
            }
        }
#

ok i just copied from the italian focus

vital ice
#

k ty

warm cape
#

you just need the IF block in the completion_reward of your focus

vital ice
#

ty man

tall hare
#

How can I make focus tree backgrounds for my mod

unique zenith
#

Does anyone know if there is a way I can get the total graphic redux mod combined with another custom portrait mod?

pale sparrow
hot vine
#

Where are ship name lists stored?

pale sparrow
pale sparrow
#

Not a direct copy but its good to know which files to modify

tall hare
#

Ok

#

Imma look at it

modern granite
#

Running into the classic problem of me not understanding event modding (it's been 2 years since I've last modded)
The first two flag changes fire, the rest of them just don't work

tall hare
pale sparrow
#

Wdym reduce

tall hare
#

like if we say

#

its -0.4 recruitable population

#

and I want a focus to make it -0.3

#

is there a way to simply reduce it

pale sparrow
#

You set the value to a variable in the dynamic modifier and add 0.1 to that variable in the focus

#

Check Soviet/German army tree

tall hare
#

I want to use it for a state modifier

pale sparrow
#

I think those work the same though not sure

tall hare
#

so

#

this is my dynamic modifier

#
austrian_resistance = {
    enable = { always = yes }

    icon = GFX_modifiers_conscription_exemptions_granted

    resistance_growth = 0.2
    recruitable_population_factor = -0.4
    local_factories = -0.4
    state_resources_factor    = -0.3
    
}  
#

so if you complete an event I want it to reduce it

#

how would I do that?

pale sparrow
#

See vanillas dynamic modifiers

austere wyvern
#

if you use a variable for the modifier

rare grove
#

Peninsular war being added to the Napoleonic Wars Redux mod

hot dragon
rare grove
hot dragon
rare grove
hot dragon
#

making like a re expansionist alt path would be really interesting

rare grove
hot dragon
#

like it would happen after napoleon invades egypt or smth

rare grove
#

Perhaps

hot dragon
#

i would love to see like a mod which is basically eu5 but in hoi4

#

in that time perioud

#

that would be so cool

rare grove
#

Anyone know how to remove any of these errors?

pale sparrow
#

Many of those are pretty self explanatory instances of references to non-existent content

#
  • has_game_rule errors aren't actually problematic if there's a DLC check on that gamerule and you dont have that DLC
  • Invalid radar trigger/effect is probably because of outdated references to the techs that vanilla renamed a few updates ago
  • Template error is because of missing division naming schemes
  • I presume the last errors are because of a missing names list
tall hare
pale sparrow
#

Ive only used dynamic modifiers in country scope, keep in mind you will have to store the starting value on every state scope you wanna use it on

tall hare
#

so I have to do stuff in states to?

pale sparrow
#

If youre making a state modifier, thats where the variable should be saved

#

That way you can use the same variable name for every state, and change the values you want by scoping into the state

tall hare
pale sparrow
#

I think we're having a bit of miscommunication, I suggest trying out a country one first

tall hare
#

ok

#

🙂

tall hare
pale sparrow
#

None

tall hare
#

oh

pale sparrow
#

Variables you simply set somewhere and the game stores them in memory afterr

#

For country dynamic modifiers, vanilla typically sets the starting values in history/countries files

tall hare
#

ok

#

I see how it is

tall hare
#

I created new ones in history

#

and now

#

I put them in dynamic modifiers

#

I put it like this

#

resistance_growth = Austrian_resistance_resistance_growth
recruitable_population_factor = Austrian_resistance_recruitable_population_factor
local_factories = Austrian_resistance_local_factories
state_resources_factor = Austrian_resistance_state_resources_factor

#

set_variable = { Austrian_resistance_resistance_growth = 0.2 }
set_variable = { Austrian_resistance_recruitable_population_factor = -0.4 }
set_variable = { Austrian_resistance_local_factories = -0.4 }
set_variable = { Austrian_resistance_state_resources_factor = -0.3}```
#

This is my variables

glad dove
#

Hello there, I want to make mod for joint focus tree for allies and axis, maybe anyone have any ideas for focuses? for now I think make short (14 or 35 day long) focuses with rewards in army\air or industrial research bonuses + army\air XP or bonuses for doctrines.

thorny shoal
#

Yo, my mod crashes when I add railways

#

Do you guys have an idea of what might be causing this?

stoic garnet
#

guys help code is not working im scratching my head hard

#

my leader both name arent appearing and the game says the election arent allowed

burnt vigil
#

Atp im so bored I'm down to do modding commissions for anyone

#

I js don't wanna work on mine rn bc its a buggier mess than TNO

thorny shoal
burnt vigil
#

No, shockingly

thorny shoal
#

I'm trying to upgrade magna europa, but that bug is preventing it from being playable @burnt vigil

burnt vigil
#

Oh, might be best to ask in there

#

Sweden prolly knows

thorny shoal
#

In where?

burnt vigil
#

The Magna Europa discord

#

Mb im hungry and tired

thorny shoal
thorny shoal
burnt vigil
#

Idk if I can send here

tall hare
#
resistance_growth = Austrian_resistance_resistance_growth
    recruitable_population_factor = Austrian_resistance_recruitable_population_factor
    local_factories = Austrian_resistance_local_factories
    state_resources_factor = Austrian_resistance_state_resources_factor
set_variable = { Austrian_resistance_resistance_growth = 0.2 }
set_variable = { Austrian_resistance_recruitable_population_factor = -0.4 }
set_variable = { Austrian_resistance_local_factories = -0.4 }
set_variable = { Austrian_resistance_state_resources_factor = -0.3}
burnt vigil
#

If i knew about variables, i'd be employed with a highschool diploma sorry man

tall hare
#

😭

#

This doesen't even make sense

pale sparrow
tall hare
#

I mean

#

By right scope

#

is that in the dynamic modifier?

#

inside of it only

#

and dynamic modifier is just added into the austrian states

pale sparrow
#

you gotta set those variables in every state it will be applied to

tall hare
#

how do I do that

#
state = {
    id = 4
    name = "STATE_4"
    manpower = 2297983 # was 2595983

    resources = {
        oil = 2 
    }
    
    state_category = large_city
    
    history = {
     add_dynamic_modifier = { modifier = austrian_resistance }
        owner = GER
        add_core_of = AUS

        victory_points = {
            11666 30 
        }

        victory_points = {
            732 10
        }

        buildings = {
            infrastructure = 4
            arms_factory = 3
            industrial_complex = 4
            air_base = 6
            11666 = {
                landmark_hofburg_palace = {
                    level = 1
                    allowed = {
                        has_dlc = "Gotterdammerung"
                    }
                }
            }
        }
        
        1938.3.12 = {
            owner = GER
            controller = GER
            add_core_of = GER
        }

        1939.1.1 = {
            buildings = {
                anti_air_building = 5
            }
        }

    }

    provinces = {
        704 732 3718 6552 6690 6723 6739 9527 11651 11666 
    }

    local_supplies = 0.0 
}
#

here is one state for example

tall hare
pale sparrow
# tall hare could you demonstrate?
  every_owned_state = {
    set_variable = { Austrian_resistance_resistance_growth = 0.2 }
    set_variable = { Austrian_resistance_recruitable_population_factor = -0.4 }
    set_variable = { Austrian_resistance_local_factories = -0.4 }
    set_variable = { Austrian_resistance_state_resources_factor = -0.3}
  }
}```
tall hare
#

and if I want it to show under the modifier

#

also where should I put this?

pale sparrow
#

itll automatically show the variable values

#

but not if theyre 0

tall hare
#

ok

#

so

#

where should this code be?

pale sparrow
#

(And unset variables are presumed to be 0)

tall hare
pale sparrow
tall hare
#

ok

#

Wait I found another way

#

an lets say

#

uglier way

mellow quail
#

map gen question
i am trying to use map gen to make a hoi4 map, but when i make a mod i also get a lot of these .mod files that are not in the folder and they seem to couse issues
where should they go?

#

i feel like they souldnt be here, and also the tutorial im wathing doesnt have tham, but when i jsut shove em in the mod folder they dont work

tall hare
#
on_actions = {
    on_startup = {
        effect = {
            every_state = {
                limit = {
                    is_core_of = AUS
                }
     add_dynamic_modifier = { modifier = austrian_resistance }
    set_variable = { Austrian_resistance_resistance_growth = 0.2 }
    set_variable = { Austrian_resistance_recruitable_population_factor = -0.4 }
    set_variable = { Austrian_resistance_local_factories = -0.4 }
    set_variable = { Austrian_resistance_state_resources_factor = -0.3}
              }
        }
    }
}
pale sparrow
#

I think more performance intensive, but I dont image thats gonna matter, 0.00001 seconds might be 0.00002

tall hare
#

I think I solved it

#

wait

#

actually

#

maybe

tall hare
#

how can I lower the debuff through a event

pale sparrow
#

Just modify the variable for the states you wanna modify it for

tall hare
#

I want to do it for all states

pale sparrow
#

Do the same as the on startup effect but instead of set_variable, you reduce/increase the values

grim bough
#

every_state = {

fast plover
#

does anyone know what map mod this is

lone hearth
worldly adder
#

Came with an idea for an insane schizo path where there is a guy who believes he’s a robot and he starts what is essentially a cult where its members also believe they are robots and it gains enough traction that they’re able to win an election or they start a civil war in their country. The goal of the people who believe they are robots is create a robot empire/republic.

tall hare
#

@burnt vigil how's spain going?

burnt vigil
#

Uhh, idk i haven't checked it in a hot minute

#

Been having a shyte week, and I won't have my pc with me from monday the 17th until 1 calender week on the 24th

slender mason
#

how do i make a sound play after an event/focus like in TFR or TGW

pale sparrow
twilit wave
#

I'm new to the modding. I created a test focus for an event in rt56. I put the txt in events but still the focus says invalid event.

#

Is there something that i forgot

slender mason
#

how do i make a super event like in TFR or TGW??

twilit wave
pale sparrow
#

Theres no namespace and no options in that top event

twilit wave
#

so what should i add?

pale sparrow
#

read the event modding page I linked

twilit wave
burnt vigil
#

finally gonna finish working on my map hopefully

#

that way my week away from my pc can be just coding in focus tree's and countries

#

but im gonna do it while under the influence, so who knows if ima do okay at making things look neat

#

Alsace-Lorraine mentioned?!

#

@tall hare

burnt vigil
#

making strat regions, how the hell do i get them to not explode the game? like i wanna have mine and not "LAND" and "SOUTHERN ENGLAND"

rapid lark
#

I am new to modding and the country I formed isn't showing up anywhere not even the cores it has states it's recieved or anything! if anyone could help me out here I'd appreciate it

rapid lark
#

I altered 2 states and every country on earth tried to own a new capital...

foggy aspen
opaque axle
#

Is there any way I can check if one mod is causing an issue? Like how can I check a savegame in which something is wrong which was caused by a mod in order to fix it?

tall hare
pale sparrow
#

Savegame is far too convoluted to find a mod-caused issue

opaque axle
#

okayokya thank you very much

opaque axle
# pale sparrow No

and how can you check if one country is lagging the whole game behind? Im facing this problem in a road to 56 game rn

pale sparrow
#

annex countries by console until it speeds up

#

but that seems like an unlikely scenario

opaque axle
#

okay thank you

swift field
#

how do i mod in more Special projects

acoustic dawn
#

does anyone have a guide on how to make custom Army/Army Group icons?

amber notch
#

I wanna try and make a mod lowkey

shut dawn
amber notch
#

maybe something with more Africa base?

amber notch
#

Am I able to do it on Mac?

tall hare
slender mason
#

how do i make a superevent in hoi4?

shut dawn
# amber notch Am I able to do it on Mac?

The main thing you need for modding is just a program for editing the text documents. That should be possible on Mac. I suggest Notepad++ since you're just getting started, but Visual Studio Code is another good one. It can just be a little overwhelming at first to people who haven't used it before.

slender mason
#

i only know how to do the sound

tall hare
#

probabl

#

y

#

scripted gui

amber notch
#

Anyone wanna try and make a mod with me

tall hare
#

I am making a mod

amber notch
#

What’s it bout

tall hare
#

If Germany and Russia won ww1

amber notch
#

Nice

tall hare
amber notch
#

Idk

#

Or smthin in Europe

#

Like what if the communist took over instead of the facist

amber notch
tall hare
#

Like a month

amber notch
#

Nice

#

Is it easy to mod?

tall hare
#

I mean

#

kinda?

#

depends

#

on what you want to mod

amber notch
#

I may try something easy to start

#

Anyone down to collab for a mod

median carbon
#

What's the best mod for Portugal?

supple junco
#

Yo can sm1 help me make a mod or just tell me how

shut dawn
signal gorge
#

HELP I CAN'T FIND LOCALIZATION FILE FOR AGUSTIN PEDRO JUSTO

burnt vigil
#

Root/localisation ????

rapid lark
amber notch
#

Aight

rapid lark
amber notch
rapid lark
#

Alr, africa definitely could be fun

amber notch
#

Independent colonies during ww2

#

Would be fun

rapid lark
rapid lark
amber notch
#

Yeah

#

You could have Egypt and Sudan thingy

#

Where this dude who claims to be a prophet of Ra takes over the Nile delta and fights his way thru Egypt and wins

#

Then proclaim the Sun kingdom of ra

#

That could be fun

rapid lark
#

ye

#

when do you wanna start?

wintry yacht
#

is there a modern hoi4 mod that basically only changes the date the countries, focuses and the research? millenium dawn runs bad on my pc

burnt vigil
#

I would say century of war or whatever its called, but that doesnt work afaik plus its laggy

worldly cape
#

Is there a mod where the american civil war ended with stalemate

burnt vigil
#

The CSA "wins" what they wanted, but the Union isnt like, annexed ir whatever

#

Could probably do the GCSA (new Mexico, Nebraska, Missouri, and Kentucky added to the confederate states) to represent the mix states siding with the confederates after the humiliation of Lincoln, presidents would be very difficult to do though

signal gorge
#

I searched in many codes but didn't find him

swift field
#

i wanna add NEW special projects

burnt vigil
signal gorge
#

I didn't find him

#

Even with cltr+shift+f

burnt vigil
#

Odd, idk personally then ive yet to get in that far for my own modding experience

#

Idek if ima get work on my mod whatsoever this week, hopefully I do bc ion wanna leave it to sit for a week and slow myself down due to needing a break from iso

abstract pier
#

When you use the nudge tool and edit states how do you save it? When I hit save it just goes back to how it was before, i saw somewhere else that it saves a file that you can put in your mods folder and use as the new map but I cant find it.

pale sparrow
abstract pier
#

and idea where ide find that on linux 😅 I got no idea what steam does with those folders.
and I have like 40 documents folders when i search my whole pc

#

omg i think i found it!

pale sparrow
#

IIRC dont use the loc folder, the nudger tends to mess it up

abstract pier
#

oh, so what do i do?

pale sparrow
abstract pier
#

oh ok so i am doing it right :) ty

high hatch
#

They have a way to create_equipment_variant a infantry_equipement, and to add directly bonus inside this? I think not, but in case someone found ^^'.

tall hare
#

@burnt vigil

#

NEVER

#

and I mean

#

never try gfx

#

I tried it

#

and its so

#

so

#

so

#

annoying

burnt vigil
#

I have done GFX

tall hare
#

Well

burnt vigil
#

It isnt that hard

tall hare
#

I tried to paint some eyes

#

and lets say

#

it went bad

#

bad bad

burnt vigil
#

OH, yea i 100% am not using my own work for portraits

tall hare
#

I did this

#

btw

burnt vigil
#

They look great?

tall hare
#

I cant paint eyes

#

He got blue eyes

#

😭

burnt vigil
#

Isn't hard to fix

#

You've basically got all the hard work done

#

Getting the skin colour right is the hard part

tall hare
#

How is it

#

when I paint eyes

#

it look

#

super painted

#

like super duper painted

tall hare
#

also

#

show your sweet gfx

burnt vigil
#

I aint got none for my mod, plus I am almost 400 miles from my rig

#

Sadly

tall hare
#

Its ´my first

#

and its fine

burnt vigil
#

Its great

#

Im prolly js gonna do a Darkest Hour and use black and white / yellowtone

pale sparrow
burnt vigil
tall hare
#

I might have to do that

#

😭

#

my skills in gfx is too bad

final tinsel
tall hare
#

snap?

burnt vigil
#

🤷‍♂️

ancient vapor
#

Ok is there any reason i cant play vanilla since i made my mod?

pale sparrow
#

The only annoying thing is that symbols that confuse the tool are becoming more common, but if you backup your tree you can just temporarily delete all problematic ones

acoustic dawn
#

is there a good guide that shows how to mod custom army group icons?

tall hare
#

@burnt vigil I need some stuff inbetween colonial upkeep
and french reperations
or remove colonial upkeep from branch fully
I need focus ideas

#

Pls

#

I need this

#

anyone

winged dune
# tall hare I need this

If it's for the germany you may take a look of what France did in the real life and not exactly do the same thing that they did but take inspiration of that, like France is humiliate by the germans (it's just an exemple it's certainly a bad idea because i give no effect of continuation)

tall hare
#

Yeah ty

woven fossil
obtuse condor
#

w dean guys

burnt vigil
#

But Canada is also legally a federation in the sense of the fact we are a confederation of the 13 provinces and territories

woven fossil
#

We dropped the Domination due to it no longer being accurate

#

in 1950

burnt vigil
#

We're both last i checked, we're the Canadian Federation, but since we are part of the british commonwealth (formerly known as the British Empire), we could call ourselves a dominion still, however that implies that we serve the british crown, not that we work alongside them

woven fossil
#

Not me due to me being a SOcialist

#

but yeah

burnt vigil
#

Yea, we're still a dominion under a different name lol, but we're also cooler than thay

woven fossil
#

No

#

We aint a dominion

#

Anyways, calling Canada "The Canadian Federation" would be better then "Republic of Canada"

#

Republic of Canada feels weird

burnt vigil
#

Yh

#

Commonwealth of Canada sounds better

#

But mot as cool as australia

woven fossil
#

That too

#

Way beter

#

and accurate

#

as...much I hate to admit it

burnt vigil
#

Why does Canada have to suck so muxh

#

I am actively a 10 hour drive from my house, and that is bc Ontario is so bloody massive you could fit the state of Texas in here almost twice over

#

You can fit the state of Texas inside northern Ontario, the scrappy part of our state

#

I feel like North America should be updated in one dlc, maybe the Caribbean too

marsh pumice
#

how good is better ai mod, and do the ai have any quirks

#

expert ai isnt compatible with other mods and sheeps ai is cracked

viral anvil
#

why does my game just crash out when im doing the defense of berlin mod (berlin: initial release)

#

it just freezes

#

and crashes

#

when i start

winged dune
# viral anvil

Of what i can read it seems that it crashs because it can't load the map so maybe the map files is corrupted try (if you hasn't did) to delete and reinstall the mod

#

And also try to verify your game files 'cause it can corrupt your vanilla files too, i already have this issue

woeful skiff
#

What mod is a good starter mod?

high hatch
#

It is normal in a target mission (ie with target_trigger, days_mission_timeout and timeout_effect), activation doesn't work well?

tall hare
ripe condor
#

hmmm

#

focus to affect french politics?

#

i assume they're going to flip facist or communist, so add something to lower/reduce that

#

either that, or add a mutually exclusive focus to french reperations to prevent them from flipping communist or facist

#

either that, or something to increase compliance in captured colonies and french lands in europe

karmic harbor
#

Since France is poor you can abuse that to make them economically dependant on you

tall hare
#

This is their politics tree

#

German

#

Branch

karmic harbor
#

Oh

#

Do industrial building focuses

#

That will hurt stability and such short run but help industry in the long run

tall hare
#

This is map

#

1936

karmic harbor
#

Why did UK loss so much and France so little

#

It should be kinda the opposite

#

Also Italy should recieve losses since they joined the allies in 1915

pale sparrow
karmic harbor
#

Not gains

#

Replace mittelafrika stuff with westafrika stuff

#

Like Germany takes French African colonies n shit

#

But Germany loses Papua because the British

tall hare
#

And Germany wasnt interested in Algeria

tepid canyon
#

is there a mod for the roman empire?

distant thunder
#

anyone know what mod adds the icons here

autumn coyote
#

Does anyone know how the files are called that store these rules?

winged dune
final tinsel
#

anyone knows the reason why national focus appears only six?

#

NOT idea problem, NOT modifier problem, but i dont know why this happened

kindred remnant
#

What's your guys's favorite mods? I'm looking for something fun to play

void ferry
pulsar steppe
#

Is there a hoi4 mod that set in the Napoleonic wars?

warped tapir
rare grove
upbeat forum
#

bah its you

lilac canyon
#

Does anyone know how I can access the documentation for modding guide of the update tomorrow?

pale sparrow
lilac canyon
#

No Pre-modding?

pulsar steppe
rare grove
pulsar steppe
#

make sense you legit got there discord in ya bio

#

ima join it

cinder hedge
#

ayo people, how can I loop through every ship owned by a country? is this even possible?

tall hare
pale sparrow
#

Road to 56 is gonna explode so only mildly

#

But generally, yes

tall hare
#

I am afriad my mod will

#

get destroyed

#

cuz I never fixed one really

#

but I like the new features

#

will be fun to add to the mod

high hatch
#

Good evening.

It is possible to see the ai_strategy with "reverse"? Because 2 options:

  • My strategy don't work (even if I was inspirate from the one with ZAI where I has a answer here)
  • Isn't possible to display

In case, I even try with put "always = yes", same result. And Ethiopia has him flag.

If you ask, I want Ethiopia justify on nation that owns specific state. The array was create on the begin of the game and work because claims successful add in game.

Second question, isn't possible to made a reverse with FROM. I mean, I has a random country get a certain flag, and this one should conquer all Africa. Without surprise, doesn't work, I get a error in the error.log. And in wiki, it seems isn't possible. Maybe for that, I need a hidding even simultate that, but I need to find how to "remove" this strategy when all the countries doesn't own Africa anymore (on a weekly?).

tall hare
#

@pale sparrow Is it like hard to convert?

#

from this version

#

to new dlc

trail yarrow
#

im considering making a mod called "PT Boats" and just adding a cheaper destroyer with 1 slot haha, tbh it would work a lot better then just a doctorine buff what yall think?

pale sparrow
tall hare
#

🙂

#

and some new countries

#

and a small focus tree

pale sparrow
# tall hare I have just done some states

If youre adding onto the statelist you either have to override the entire vanilla map so you dont need to port their new ones right away (its what Road to 56 does), or you gotta shift all your states when vanilla brings out new ones

trail yarrow
tall hare
#

and then add the states later

#

cuz I do have some custom states

pale sparrow
#

Though your idea of making PT boat a version of destroyer sounds solid

#

It greatly simplifies things over adding a whole new ship class

trail yarrow
#

so I was just like meh fine ill do it myself haha

#

u mind telling me which files store them so I can copy them to the mods Folder? :3

pale sparrow
#

Basically copy and rename ship_hull_light_2, then make it cheaper and remove some slots

tall hare
pale sparrow
pale sparrow
#

if you wanna work on DLC release you gotta set /map and /history/states in your replace_path for descriptor/mod and include all those current vanilla equivalents in your mod

tall hare
#

How?

tall hare
#

Will my custpm states break

pale sparrow
#

If you dont override the entire vanilla map, yes

trail yarrow
pale sparrow
pale sparrow
#

No you only changed the default equipment in the slots

trail yarrow
#

ohhh how do I set the slots?

pale sparrow
#

If I see correctly

#

Check planes/submarines, they got a lot more slot unlocking based on hull tier going on

cinder hedge
#

so how exactly do you make ship designer modules free? this mod already sets EQUIPMENT_MODULE_ADD_XP_COST alongside replace, convert and remove costs to zero. same for naval equipment base and ramp cost, but they still need xp to change

pale sparrow
trail yarrow
pale sparrow
#

Or set it as...

#

default = yes

trail yarrow
trail yarrow
pale sparrow
#

IIRC default = yes makes it available without tech but not sure

tall hare
#

Ay so Marjin to make things work

#

I need to replace

#

the map

#

and states

#

and then add my custom states agian

pale sparrow
#

That doesnt sound right

#

Just add in all the files you havent changed, shouldnt have to redo anything

tall hare
#

I never converted a mod 😭

#

to a new dlc

#

you think I'll be fine?

pale sparrow
#

Yes

tall hare
#

But if I want like the new states too

#

not only the old ones

#

what would I do?

trail yarrow
lament berry
#

can yall give me some good mods