#modding

1 messages · Page 27 of 1

keen parrot
#

how is the other name

#

for

#

puppeted states

#

subject?

quick latch
#

puppet states are called subject in code, yes

keen parrot
#

also, how do i create a city and move the capital there

quick latch
keen parrot
#

okay

pale sparrow
#

Regardless of who receives the event, the events are usually defined for one side

indigo yoke
#

Really good to know, tysm

keen parrot
#

i need to replace xxx with controller area id?

quick latch
#

XXX -> state id

keen parrot
#

for instance

#

this is 84

quick latch
#

The states you want in available = { ... } are the states that you want to core

#

Not your own

keen parrot
#
            controls_state = 82 # Do this for every state that you need to control
            controls_state = 78
            controls_state = 80
            controls_state = 83
            controls_state = 77
            controls_state = 79
            controls_state = 46
            controls_state = 76
            controls_state = 81
            controls_state = 766
            controls_state = 84
            controls_state = 155 #hungarian
            controls_state = 43
            controls_state = 154
    }```
#

so

#

if i do this

#

(all ids are ids for romanian territories and hungarian ones)

#

the decision is available only if i control all the states listed above

#

right?

quick latch
#

yea

keen parrot
#

okay thanks

quick latch
#

Now for Romania's name and color to change. Go to yourmod\localisation (create folders if neccessarry) and create yourmod_localisation_l_english.yml (also change encoding to UTF-8 with BOM)
In there write:

l_english:
 ROM_dacia_democratic: "new Romanian democratic name"
 ROM_dacia_neutrality: "new Romanian non-aligned name"
 ROM_dacia_fascism: "new Romanian fascist name"
 ROM_dacia_communism: "new Romanian communist name"
#

Now go into the Hoi4 files and copy the cosmetic.txt from Hearts of Iron IV\common\countries into yourmod\common\countries.
Open it and at the end of the file write the following:

ROM_dacia = {
    color = rgb { XXX XXX XXX }
    color_ui = rgb { XXX XXX XXX }
}

Replace the XXX with the RGB values you want

keen parrot
#

_l_?

#

is that L?

quick latch
#

yes

keen parrot
#

can i

#

change the name of dacia_neutrality

#

after doing a focus?

#

for example

quick latch
#

You'd have to create a new cosmetic tag for that

keen parrot
#

i ll skip it then

#

[14:38:25][pdx_entity.cpp:323]: Failed to find entity "ITA_mechanized_vehicle_1_entity" for attachment in vehicle
[14:38:27][persistent.cpp:48]: Error: "Unexpected token: fire_only_once, near line: 3" in file: "common/decisions/categories/Dacia_formables_category.txt" near line: 3
[14:38:27][persistent.cpp:48]: Error: "Unexpected token: cost, near line: 4" in file: "common/decisions/categories/Dacia_formables_category.txt" near line: 4
[14:38:27][persistent.cpp:48]: Error: "Unexpected token: complete_effect, near line: 25" in file: "common/decisions/categories/Dacia_formables_category.txt" near line: 70
[14:38:27][persistent.cpp:48]: Error: "Unexpected token: ai_will_do, near line: 72" in file: "common/decisions/categories/Dacia_formables_category.txt" near line: 74
[14:38:27][parser.cpp:932]: Error: unexpected token in file: "common/decisions/categories/Dacia_formables_category.txt" near line: 76 ( } )

#

i should have places comas

quick latch
#

? you placed a , ?

keen parrot
#

i didnt

quick latch
#

show me your code

keen parrot
#
        icon = generic_form_nation
        fire_only_once = yes # fire_only_once makes the decision work only once
        cost = 0 # cost is the political power required, normal you'd use 0 for formables

        visible = {
            original_tag = ROM
        }

        available = {
            controls_state = 82 # Do this for every state that you need to control
            controls_state = 78
            controls_state = 80
            controls_state = 83
            controls_state = 77
            controls_state = 79
            controls_state = 46
            controls_state = 76
            controls_state = 81
            controls_state = 766
            controls_state = 84

    }

        complete_effect = {
            set_cosmetic_tag = ROM_dacia

            add_state_core = 82 # same state IDs as in "available = { ... }"
            add_state_core = 78
            add_state_core = 80
            add_state_core = 83
            add_state_core = 77
           
        }

        ai_will_do = {
            factor = 0
        }
    }
}```
#

i deleted some of the cores bcs the text was too long

#

new error log

[14:45:58][persistent.cpp:48]: Error: "Unexpected token: fire_only_once, near line: 3" in file: "common/decisions/categories/Dacia_formables_category.txt" near line: 3
[14:45:58][persistent.cpp:48]: Error: "Unexpected token: cost, near line: 4" in file: "common/decisions/categories/Dacia_formables_category.txt" near line: 4
[14:45:58][persistent.cpp:48]: Error: "Unexpected token: complete_effect, near line: 25" in file: "common/decisions/categories/Dacia_formables_category.txt" near line: 70
[14:45:58][persistent.cpp:48]: Error: "Unexpected token: ai_will_do, near line: 72" in file: "common/decisions/categories/Dacia_formables_category.txt" near line: 74
[14:45:58][parser.cpp:932]: Error: unexpected token in file: "common/decisions/categories/Dacia_formables_category.txt" near line: 76 ( } )
#

after modifying some of the mistakes

quick latch
# keen parrot i deleted some of the cores bcs the text was too long

Why would you ever wan to do that? Use a custom_effect_tooltip if the text is too long for you.
Put your add_state_core lines in a hidden_effect = { ... } codeblock and before the hidden_effect = { ... } write custom_effect_tooltip = ROM_dacia_core_tt
Go into your localisation file and add ROM_dacia_core_tt: "Cores some Hungarian states"

quick latch
keen parrot
quick latch
#

Then you did something wrong

keen parrot
#

i only removed some of the cores when pasting on discord bcs of character limit

quick latch
#

ah

#

what's going on with that bracket?

keen parrot
#

igh

#

fml

#

it's not c

#

im not used to notepad

#

mb

#

i still get the erros though

quick latch
#

You need to place ROM_form_dacia inside of ROM_dacia_formable

#

Like this:

ROM_dacia_formable = {
    ROM_form_dacia = { ... }
}
keen parrot
#

oh

#
[14:53:40][persistent.cpp:48]: Error: "Unexpected token: ROM_form_dacia, near line: 2" in file: "common/decisions/categories/Dacia_formables_category.txt" near line: 77
#

the brackeys are closed correctly

quick latch
keen parrot
#

sorry for wasting your time

#

i ll try this another time

#

maybe i should start with something easier

obtuse condor
#

Does anybody now how i can like "replace" all of the Vanilla HOI4 nations? So its empty for my mod

#

i want to like have an "own" world,with new Nations

pale sparrow
#

you add replace_path entries to your mod definitions, so it doesnt load the relavent vanilla folder

#

for the map, idk if its supported yet to have no owner

obtuse condor
#

ah okay. But wont i then like have 10.000 error stuff cause of events?

edit: it will

pale sparrow
#

yup

obtuse condor
#

is there a mod that lets me make sure that countries dont go a certain path

#

so i can make it so that britain goes any path other than communist

#

and doesnt destroy my potato cpu

pliant reef
#

is there a mod that allows people to send lend lease while at peace

timber sparrow
#

Alright, maybe someone here can help me out. Has anyone worked with modding new aircraft and tanks using NSB and BBA? for some reason I can't get the chassis modification screen to show up.

keen parrot
#

im happy that i made it work partially and just wanted to share this with you guys

timber sparrow
#

but that's awesome

keen parrot
#

i need to set the icon straight

#

but it's fine

timber sparrow
#

chassis shows up in the production menu, but when clicking on it to create a variant I get this(same issue for both tank and plane, but for ships it works fine.)

#

error.log has no errors related to my mod at this point, so its gotta be something I'm just completely missing

keen parrot
#

is it possible

#

to add focuses to an existing focusing tree

#

without replacing it

quick latch
#

not as far as I know

keen parrot
#

so i have to copy the existing focus tree

#

and modify it a little bit

#

and replace it

quiet umbra
#

The amount of Oil that the game is giving Turkey is completely unrealistic. Can someone make a small mod to fix this? https://forum.paradoxplaza.com/forum/threads/pls-fix-turkey-its-beyond-stupid.1575792/page-2#post-28915893

keen parrot
#

DDDDDDDDDDDDDD

#

turkey guardian of oil

keen parrot
#

i have a problem

#

i would be grateful if anyone could help

#

i tried creating a new country

#

that has the cores and territories of romania

#

but only has a different tag

#

and this happened

pale sparrow
#

whats wrong here

keen parrot
#

i chose romania

#

and i got instantly annexed by the country i created

dim bronze
#

how do you rename ideologies for one country?

chilly field
#

how would i go about creating a mod that simply takes an already existing leader in the game a putting the leader as the head of another already existing country

#

i basically want to put the pope pius 12 as the non-aligned leader of the releasable papal states

keen parrot
#

how can i make my country change its color when i switch political ideologies

obtuse condor
#

is there a mod that lets you scorch cities but like your enemies cities as in how the bri🤮ish burned down the white house?

keen parrot
obtuse condor
#

is there a mod that lets you make frontlines over multiple countries

#

i cant be asked to search for some kind of weird names

keen parrot
#
                ideology = fascism
                long_name = ROM_fascism_party_long
                name = ROM_fascism_party
            }```
#

i found this in focuses text file

#

might help you somehow

keen parrot
chilly field
keen parrot
#

set up a fallback line and when the war starts delete the fallback line and create a frontline

#

or create the frontline after creating the fallback line (without assigning anyone to the frontline) and plan your attack. the general will still be planning the attack

#

and when you start the war, delete the fallback line and assign them to the frontline

obtuse condor
#

it only lets me do one country

#

unless its puppets

chilly field
keen parrot
#

replace ROM with your country tag

keen parrot
#

can someone help me with the syntax

quick latch
dim bronze
quick latch
#

Copy parties_l_english.yml (SteamLibrary\steamapps\common\Hearts of Iron IV\localisation\english) into your own localisation folder (remember: yourmod\localisation\english\parties_l_english.yml) and there you see all countries' political parties, you can easily rename one

keen parrot
#

hello

#
        name=ROM_CHARACTER_CODREANU
        portraits={
            civilian={
                large="GFX_portrait_romania_cz_codreanu_large"
                small="GFX_portrait_romania_cz_codreanu_small"
            }
            
        }
        country_leader={
            ideology=gen_nazism
            traits = { dictator }
            desc = ROM_CZCODREANU_DESC
            expire="1965.1.1.1"
        }
        advisor={
            slot = high_command
            allowed = {
                tag = ROM
            }
            available = {
                has_country_leader = {
                    ruling_only = yes
                }
            }
            traits = {
                army_infantry_3
            }
            cost = 100
        }
        corps_commander={
            traits={ infantry_officer }
            skill=1
            attack_skill=1
            defense_skill=1
            planning_skill=1
            logistics_skill=1
            legacy_id=0
        }
    }```
#

this is the character

#

that im planning to use as a country leader (later in the game)

#

how can i give him the corps commander (make him general) through a focus?

#

what's the syntax i should use

#
                    name = "Barbu Paraianu"
                    gfx = GFX_Portrait_romania_barbu_paraianu
                    traits = { infantry_officer }
                    skill = 2
                    attack_skill = 1
                    defense_skill = 1
                    planning_skill = 3
                    logistics_skill = 2
                }``` i have a similar syntax of how this could work from another focus but this one is for creating a character and also assigning it
obtuse condor
#

is there a mod that makes it so that like after the end of a long war your army is weaker for 3 months or sum

lofty plaza
#

Not that I'm aware of

lost inlet
#

hello, can someone tell me how to edit the loading screen font

#

im making a mod and i dont like the default loading screen font, i wanna replace with my own

tribal osprey
#

How would i mod in supply? Like modding in how much supply you either consume or not

chilly field
#

how would i go about creating a mod that simply takes an already existing leader in the game a putting the leader as the head of another already existing country i basically want to put the pope pius 12 as the non-aligned leader of the releasable Papal States

keen parrot
#

you want to release the papal states

#

and have the pope as the leader?

#
        name = ITA_papa_pio_xi
        portraits = {
            civilian = {
                large = GFX_portrait_ITA_papa_pio_xi
            }
        }

        #COUNTRY LEADER ROLE IS GIVEN LATER
    }

    ITA_papa_pio_xii = {
        name = ITA_papa_pio_xii
        portraits = {
            civilian = {
                large = GFX_portrait_ITA_papa_pio_xii
            }
        }```
#

one of these is the pope

#

what you can do is copy the country file of the papal states

#

documents/paradox interactive/hoi4/mod/yourmodname/history/countries/<papal states tag> - Papal States.txt

#

or however is it named

#

search for the recruit_character list

#

and put recruit_character = ITA_papa_pio_xii on top of the rest

vocal sage
#

hello guys

#

i want to make a mod

#

where a zombie apocalypse starts

obtuse condor
vocal sage
#

fr

#

i will make hitler fighting off the zombies

#

and weird shit

#

there is not a zombie nation but

#

they is de militarized zones

#

they will be no cure

#

and is gonna be a fungus

#

but

#

everyone is infected

gritty plume
#

advise mods for mp games to optimize communication with players to make the ping more stable

obtuse condor
#

ok guys so imagine if there was a mod that gave countries new focus trees in 1939 start date
like germany could have historical but also a civil war tree like the soviet union or france could cut off ties with britain
maybe you could help austria/czechia revolt against hitler

copper salmon
#

this is a file of a mod i made, but it doesn't get loaded where do i need to put it so it does get loaded?

pale sparrow
copper salmon
#

why not

pale sparrow
#

you need some kind of thing triggering the script

#

either you put it in an on_action, a focus, a decision, a character, etc.

copper salmon
#

on_action = {on_startup = {}}?

#

would that be ok?

#

@pale sparrow

pale sparrow
#

almost

copper salmon
#

what am i missing then

pale sparrow
#

its on_actions

#

and in the on_startup there needs to be an effect scope

copper salmon
pale sparrow
#

yes

copper salmon
#

in common/on_actions?

pale sparrow
#

mhm

copper salmon
#

I'm trying it rn

#

thx it work now

#

🙂

topaz fjord
#

Any way to share a mod without posting it to Steam?

valid halo
#

how do you get rid of the generic fascist demagogue / communist revolutionary / democratic reformers?

valid halo
#

anyone know?

lofty plaza
#

Add the tag to the list of nations who doesn't get it

valid halo
#

thanks

pale anvil
#

I don't know how to explain thoroughly but when working on my mod, and adding a new country, I went through the process of choosing the color, the tags and then adding it to localization, now all of a sudden the name of my country I just made doesn't work, and the previous names of countries that once worked have stopped working and not appearing when selecting them, tho the flags and names of leaders still appear.

#

and thanks in advance to anyone willing to help!

vale condor
#

question, is there a mod out there where something happened to destroy much of earth/population and it's up to the few remaining remnants of society to pick up the pieces and put everything back together?

#

sorta like a fallout deal i guess

#

but not the fallout mod lol

quick latch
ocean prairie
#

I've got a question. What happens if i swap a timed idea? For example i have an Idea that goes for 180 days and in 30 days i swap the idea. Is the Idea then still going for 130 days? Now just changed?

quick latch
#

Never did anything like that, try it yourself

ocean prairie
#

okay!

vale condor
#

thanks btw!

ocean prairie
#

is it possible to create if statements in rewards? like if check variable then this happens etc.

pale anvil
quick latch
#

weird

quick latch
ocean prairie
#

okii thxxx

pale anvil
#

example state with WAM:

#

states show up with color

#

no name tho

#

then the name of a previously working country has stopped

ocean prairie
#

So the Country itself works but the Name doesnt appear?

pale anvil
#

Yes for the blue one, it used to appear as Jamestown Island, I recenlty added the second one, the green one, and now both of them dont show names but the blue one is still playable

ocean prairie
#

hmmm. Maybe try deleting the second country again and see if the first one works then. I can't seem to find an error in the code itself. It could be because the "-" in WAM- Williams needs to be like this:" WAM - Williams" with a space in between but i dont know if this is the issue if the first one worked. Maybe try this and if this doesnt fix the issue you could maybe just try fixing the first one again and if it works then just trying the second one again.

ocean prairie
#

So i got a problem:

I made a variable "ps" that if 0 with a focus is getting randomized and after this focus depending on the random number it set a specific focus is activated but i got the problem that a randomize between 1 and 4 in my case always sets it to 2.

Heres the code:

IF = {
limit{check_variable = { ps = 0}}
TYR = {
set_variable_to_random = {
var = ps
min = 1
max = 5
integer = yes
}
}
}

quick latch
#

make sure limit is:

limit = {
    check_variable = { ps = 0 }
}
ocean prairie
#

ohh yyes this could be the problem

pale anvil
#

@quick latch any idea on how to fix my problem? I liked over the wiki and its still persisting, I tried other options, but to no avail...

quick latch
#

Do you have debug mode enabled?

pale anvil
#

yes

quick latch
#

Do you get any errors that have to do with localization?

pale anvil
#

ill check

#

No localization errors...

ocean prairie
#

thats the completion reward....

quick latch
# pale anvil No localization errors...

change country localisation file to this temporarily:

l_english:
 WAM: "William and Mary"
 WAM_DEF: "William and Mary"
 WAM_ADJ: "William and Mary"
 TST: "Jamestown Island"
 TST_DEF: "the Jamestone"
 TST_ADJ: "Jamestone"

If this doesn't work then I don't know what could be wrong

quick latch
pale anvil
quick latch
#

hmm weird

ocean prairie
pale anvil
#

thanks for trying to help tho @quick latch

ocean prairie
#

Hey! Do you think it would be better if i just try with the random_list?
Maybe this will make things work

quick latch
ocean prairie
#

yes pretty sure

#

the last bracket is for the whole focus

quick latch
#

also why did you place the code so random? I mean I copied your code and mine looks like this:

#

(ignore integSer, keyboard did a little bit of trolling)

ocean prairie
#

hm might be bc im in Notepad xD

quick latch
#

why

#

Just use a normal text editor for coding like anyone else does

ocean prairie
#

yeah i do but i just thought "yeah its like just a small error nothing to open up a program"

quick latch
#

Don't know what you're talking about, I use VS Code for that and I always use it, even for just looking at something small because it's just better

ocean prairie
#

yeah thats not the point now i mean its 00:20 where i live and im tired but i want to fix that error before i forget anything xD

#

but the brackets should still all fit and shouldnt be an issue

quick latch
#

It's 0:20 for me too and still got things to do for school, so I shall do that now
Hope you fix your issue

ocean prairie
#

well thx anyways

lofty plaza
keen parrot
#

does anybody know how can i grant an existing character the corps_commander trait?

keen parrot
#

what

#

is there an actual wiki

pale sparrow
#

Ofc

keen parrot
#

thanks a lot

pale sparrow
#

However, just like other add role effects, they cant hide the role later

#

if you want that, you define it in the character file but hide the role until you unlock it by setting a flag or completing a focus etc.

keen parrot
#

yea

#

i wanted to have a focus

#

that grants that role effect to an existing character

distant saddle
slender brook
#

Banned for self-advertisement

keen parrot
#

and make it available for romania

#

=================================================================================================

#

how do i trigger an event via a focus

ocean perch
keen parrot
#

ty

fiery sparrow
#

Hi, I have a problem with modding. I can't delete generic advisors. Could somebody help me?

keen parrot
#

sure

#

i can try

fiery sparrow
#

i tried to add tag of country in generic_advisors file but it is not working

ocean perch
fiery sparrow
#

I want to do my own advisors to country without any advisors, only generic

#

SRL

keen parrot
#

you can simply

#

delete them

#

or go to the file where you have recruit_character = ...

#

and simply not recruiting them should make them unavailable

fiery sparrow
#

they are not recruited

quick latch
fiery sparrow
#

I don't want them

quick latch
#

You do only want the "ideology advisors" removed or also the military advisors?

fiery sparrow
#

I have a minor country that have generic political advisors and I dont want them

quick latch
# fiery sparrow ideology advisors

In the generic_advisors.txt file, go the the first three every_possible_country = { ... } code blocks and change the first NOT = { ... } (inside limit = { ... }) to include your country tag
aka this:

every_possible_country = {
    limit = {
        NOT = {
            OR = {
                tag = XXX # your own country tag
                tag = GER
                tag = ENG
                # and so on
fiery sparrow
#

it is not working

quick latch
#

Have you tried restarting the game / starting the game in debug mode?

fiery sparrow
#

yes

#

few times

quick latch
#

and the debug file, does it show anything?

fiery sparrow
quick latch
#

weird

#

is the folder structure correct?

fiery sparrow
#

no

#

XD

#

Thank you

#

it is all for now

quick latch
#

xd

ocean perch
#

lol

#

also

#

If anyone has any suggestions or concepts for the idea of a small mod, I would appreciate it if you could share them with me.

valid halo
#

how can i make it so that when a country does a focus they can no longer puppet countries

keen parrot
#

should be something about

#

disabling the can create puppets rule

#

should be something like

  can_puppet = no
}```
pale sparrow
#

yup

valid halo
#

thanks

carmine rain
#

how do i this

quick latch
chilly field
#

how do i change countries ideology name

quick latch
chilly field
#

no like country name, i wanna rename fascist ireland

quick latch
#

Create this folder structure: yourmod\localisation\english and copy the file countries_l_english.yml from base game files into your own folder.
Search for IRE_fascism and there you can change the name.

chilly field
#

alr ty

past zinc
#

does that work with puppet names or is that something else

spare crest
#

could someone who owns HOI3 send/show me where the model files are at?

#

i have seen that hoi3 has some interesting ship models

#

so i would like to put them into my "additional ship models" mod

quick latch
#

not related to modding, go into another channel

chilly field
obtuse condor
#

anyone got suggestions for bigger overhaul mods? I've played rt56 and KR/KX, along with TNO, I want some more variety to play (:

pale sparrow
#

Old World Blues, Equastria at War

jade mauve
#

how do you rename a city?

pale sparrow
jade mauve
#

thanks

cold plume
#

can someone tell me how flags work

#

the name needs to have the country tag in it to be assigned right?

#

it's not working for me

slender brook
cold plume
#

yes

slender brook
#

What programme are you using

cold plume
#

the flags have worked for me before

#

but now it's not

slender brook
#

Might have to do with RLE compression. I personally use GIMP which has a distinct Turn Off RLE compression option

cold plume
#

hmm

#

alright let me turn it off

#

epic thanks very much

vocal sage
#

downloaded hoi4

#

back

#

and gonna make a mod

vocal sage
#

breaking bad mod

#

and better call saul

#

i am gonna put gangs and dea in the game

plucky idol
vocal sage
#

and gonna make the gus focus tree

#

and salamanca

#

or walt

plucky idol
#

oh

#

if you are new to modding

#

its gonna take a long time

#

i think you should get a modder to help you

vocal sage
#

there is going to be jack welker gang

#

and many more

#

there will be drug lab building only for gangs

#

any modders?

#

ah cmon

plucky idol
#

just buy one

#

like from fiver or a freind

#

*friend

#

@vocal sage

vocal sage
#

buy what?

plucky idol
#

a moder

#

cause i tried to make a small mod that changes country names

#

didnt work

#

i tried everything

quick latch
#

You only need to change the localization file containing the country

plucky idol
#

Tried it

#

Nth works

#

@quick latch

quick latch
#

You sure you tried to change the country in the countries_l_english.yml file the folder structure was yourmod\localisation\english\countries_l_english.yml ?

plucky idol
#

Smth else

fiery sparrow
#

I have a question, in what file can i add new tank designers and etc. ?

chilly field
#

ive got a couple questions, how would i add a leader description and how would i add a country to the major powers screen?

pale sparrow
#

common/bookmarks for the 2nd question

chilly field
#

alr ive done that

#

how would i add a leader description tho

pale sparrow
#

desc argument inside the role

#

I forgot if its leader-exclusive

chilly field
#

ok ty

#

sorry i just got one more question, how do you add a formable nation to the game

pale sparrow
#

I get this question so often

#

usually its a decision that adds cores and a cosmetic tag

chilly field
#

how would i add the decision?

#

i dont mind about the cos tag just the decision and cores

pale sparrow
#

look at existent ones, its pretty simple

#

if you wanna make it fancy, check Road to 56 ones, you can highlight the required states there

obtuse condor
#

I need some help modding the Italian OOB

azure fern
#

anyone know what the "couldn't find dependancy" error is when trying to code in a national focus? i've done it before and i didnt have an error like this but now i have it

#

also, my game crashes as soon as i try to do a new game but i dont think this is because of the focus

jade mauve
#

how do you create a new city like this on an existing province?

obtuse condor
vocal sage
#

wait guys

#

how to make a potrait mod

vocal sage
obtuse condor
ocean prairie
#

I got a question. I made an Event with like 5 Buttons. The problem I got now is that the Fifth Button is bugging our of the event GUI and half of it is cut off. Does someone know how to fix that?

hollow snow
#

hey, how do i fix my game? i used debug mode to create two states and now hoi4 keeps crashing

#

nvm i fixed it somehow

zenith horizon
#

how do i change if a nation is released in the save file?

severe knoll
#

is there a way to make the target country of an operation not influence the operation duration with their counterinteligence, or is that hardcoded?

zenith horizon
quick latch
#

...

#

if a nation gets released, what supposed to happen?

zenith horizon
#

it becomes a nation

#

i mean how do i change if territory is released or not

quick latch
#

I don't understand what you mean

obtuse condor
zenith horizon
zenith horizon
#

yes: i want to play on a map with all nations released

quick latch
#

You're better off searching for a mod that has all nations released on game start

zenith horizon
#

yes but i can't find any

#

btw im on xbox gamepass

quick latch
#

why tf are you playing Hoi4 on Xbox

zenith horizon
#

i'm playing on pc but i use xbox gamepass

quick latch
#

??? Just buy the game on Steam
What does it even have to do with you wanting to release all nations

zenith horizon
#

how tf is that any of your business you don't know any of my financial situations.
It has to do with not being able to install Steam Workshop mods on it.

quick latch
#

skill issue
get a job or something

zenith horizon
#

bro i'm 15

quick latch
#

Then mow people's lawn or something

zenith horizon
#

also may i add that any of the questions you asked had anything to do with my question and werent needed for that question

zenith horizon
#

i'm not telling you to go to the frontline am i

quick latch
#

You are certainly pointing to it

zenith horizon
#

i'm not i need to get nations released to play a game with my friends a month before my exams

#

Do you even have the answer or are you just stretching it now

azure fern
#

anyone know how to fix this after a focus has been completed?

#

it kinda annoys me

#

and i can't find anything on it on the wiki

azure fern
#

seriously can't find anythign on it

pale sparrow
#

you cannot change it

#

As far as I know its hardcoded that effects hide

azure fern
#

and another problem, i want to swap ideas and all i get is this

#

which is confusing because i've made two ideas with different names, but same localization so i would get the modifying text

pale sparrow
#

👍 thats correct yeh

azure fern
#

???

pale sparrow
#

different names, same loc

azure fern
#

so what's the problem

#

why does it say that ideas are missing..

azure fern
#

still having same problems

#

can i please get some help on it

pale sparrow
#

Check error log narrow down the issue

azure fern
#

is there just a rough checklist i should be making sure to do while i do the swap..?

pale sparrow
#

-Try to not reload the idea file when testing this
-Make sure you didnt make any typos in the command
-Ensure all files are loaded correctly - Should be in the error log

azure fern
#

i doubt there's any typos here

pale sparrow
# azure fern

using dots in idea and picture names might be an issue

lethal steppe
#

Howdy folks... I am making a radio station mod, when it comes to updating it... what will I have to do? Is it a case of simply updating the version number? Want to keep on top of updating it so I don't get masses of "update pls" messages

#

also, what is the exact number I must put in for the current version?

#

must i include "avalanche" etc or just the numbers

azure fern
azure fern
#

im running into another problem myself though, my starting units get deleted as soon as they spawn..

#

anytime i slightly change it, it dissapears

lethal steppe
azure fern
# lethal steppe so 1.12.12?

well, it's gonna be updated so if you just do 1.12.x , no matter what the number is after 1.12 is, it's still going to be a valid version

#

atleast i think, works for me

#

but yeah, you could put 1.12.12

lilac pelican
#

hello i am working a country event and it keeps on firing although the requirements are not met
`
country_event = {
id = test.1
title = test.1.t
desc = test.1.d
picture = GFX_test

immediate = { add_political_power = -100 }

trigger = {
original_tag = ENG
has_country_flag = test
}
mean_time_to_happen = {
days = 2
modifier = {

    }
}

`
could anyone explain me why it is so?

#

i tried switching orginal_tag to tag and putting both requirements in AND = {} but it didnt help, it fires also when i play nations which are not the uk

lofty plaza
junior owl
#
        name = Submod.2.o1
        completion_reward = {
    custom_effect_tooltip = Yugo_tt
        }
    }```

why wont this work?
quick latch
junior owl
#

i know the text isnt displaying

quick latch
#

Oh

#

How does your localisation file look like?

junior owl
pale sparrow
#

looks correct, file encoding though?

lilac pelican
lilac pelican
junior owl
slender brook
#

All yml files must be encoded in that

#

Also hold on, options have completion_rewards?

junior owl
#

oh wait thats prb it

#

i was just thinking of it in terms of focuses and didnt bother checking if events are diff

slender brook
#

Yeah for options just use the name

#

You would use custom_effect_tooltip for if the effect of the tooltip should be different from what it says

junior owl
#

thanks!

obtuse condor
#

Somebody knows how to mod the Italian OOB? Seems that is hardcoded or something

slender brook
obtuse condor
slender brook
#

Show me the file tree

obtuse condor
slender brook
#

No, can you tell me what the file tree is. I guess folder tree would make more sense

#

Basically, show me all the folders needed to get to the file

obtuse condor
slender brook
#

No, like this

#

I mean that is the same folder structure it should use, so just tell me if it's the same (besides the KFP2, which should be your mod's name)

obtuse condor
slender brook
#

I see. What are the changes you are trying to make to the OOB?

obtuse condor
slender brook
#

Alright I'll start doing some more in-depth testing then

obtuse condor
slender brook
#

Oh, it's probably because you're editing ITA_1936 and not ITA_1936_NSB

slender brook
#

Same place

obtuse condor
limpid comet
#

Has anyone here played great war redux and gone the anarchist path

#

And if so

#

How

#

How does that wotk

obtuse condor
slender brook
#

Well, probably a code issue. Check for the brackets

obtuse condor
slender brook
#

Alright, send the file to me

obtuse condor
slender brook
obtuse condor
slender brook
#

Well, if there are other files in that mod I would check those.

#

What I sometimes do to find the bad file, is to move folders elsewhere one by one until it eventually stops crashing

obtuse condor
azure fern
#

my starting army / oob disappears as soon as i unpause, anyone know why this is?

spiral oxide
#

Is there a genocide mod?

lofty plaza
azure fern
#

i’ve never modified them before and it’s a first for me but when i did. modify the template, put amount of equipment

#

it just dissapears

lofty plaza
#

The issue may be is that you have no manpower to equip them, so they have no strength.

azure fern
#

and if so, is it to do with the oob or country files

lofty plaza
#

You can do it in the history file

azure fern
#

alright thanks

lethal steppe
#

hey folks how do i update the game tags for a mod (i.e. sound, history, etc) after it's been uploaded?

mild shore
#

i want mods to enhance my gameplay

lofty plaza
azure fern
lofty plaza
azure fern
obtuse condor
lofty plaza
quick latch
#

Which font file do I replace to change the font you see on buttons, loading screens, focus / decision descriptions, ... and so on?

obtuse condor
lethal steppe
#

I want to update this mod... is that possible or have things changed so much since 2018 that it is a moot project?

quick latch
#

I don't know what's weirder, that fact that you're using ModernizeFabrikalar as id or that the focus is op

lethal steppe
#

rather new to modding but want to sink my teeth into this specifically

quick latch
#

You want to update another's mod?

lethal steppe
#

yes, Wonderwaffe has not been online for years

#

I actually think he might be dead

quick latch
#

Don't think that's possible

lethal steppe
#

and I simply adore this mod

quick latch
#

You can always just reupload your own version of the mod

lethal steppe
#

why is it not possible? Is it because things have changed so much with HOI4 since then?

#

oh yes thart's what i mean

obtuse condor
obtuse condor
quick latch
#

fix id, it's weird af seeing that

obtuse condor
obtuse condor
quick latch
#

Use TUR_modernize_fabrikalar

obtuse condor
quick latch
#

Why did you sent the file?

obtuse condor
quick latch
#

You already told me, but what does that have to do with the file?
What am I supposed to do with it?

summer juniper
#

Does anyone know how to increase build slots in a state without needing to use the tech tree, like how to increase it in the files?

lofty plaza
#

If that want it on game start that is

summer juniper
#

yes, that is what I've been looking for

#

thx

dense egret
#

Anyone got any good overall rework mods like RT56, Looking for something new

nimble solar
dense egret
#

I’ve tried it, quite nice just takes an age for everything to set up

azure fern
#

is there a way to release something and puppet it as a decision? (basically formable puppets)

dim bronze
#

how do i get a focus icon?

quick latch
lethal steppe
lofty plaza
cedar thunder
#

guys whenever i select a nation in magna europa my game crashes

#

does someone know what happened?

mild shore
#

any cold war mods

#

without any problems + realistic

ocean prairie
#

I got a question. I made an Event with like 5 Buttons. The problem I got now is that the Fifth Button is bugging our of the event GUI and half of it is cut off. Does someone know how to fix that?

obtuse condor
#

is there a mod that stops britain from guaranteeing everybody

quick latch
obtuse condor
#

thank you

wheat topaz
cedar thunder
lofty plaza
#

Yes, through game rules as shown above

distant saddle
cedar thunder
#

ohh yeah

#

oof that sucks

quick latch
#

Go to SteamLibrary\steamapps\common\Hearts of Iron IV\gfx\interface\goals, there you can see every available focus icon.
Then go to Hearts of Iron IV\interface and open goals.gfx. Now search for the file name you saw in Hearts of Iron IV\gfx\interface\goals.
Paste the focus icon name into your icon field in your focus tree file

dim bronze
#

how do i fix this issue with troop flags?

quick latch
#

What's the issue?

dim bronze
#

look at the troop flag

#

its not the country one

quick latch
#

Where?

dim bronze
#

yes

quick latch
#

That's a PDX / base game issue, don't think it's fixable

quick latch
lofty plaza
#

Bit unnecessary

#

Also it checking every day is just going to take up processing power

#

You should just make it so they cannot do it

quick latch
#

tell me how, set_rule can only limit it to democratic nations

obtuse condor
lofty plaza
#

Wait no that isn't it

quick latch
obtuse condor
#

Im trying to fix it for 2 days

quick latch
#

Issue is wrongly placed brackets, lemme fix rq

obtuse condor
#

Okay

quick latch
#

Little question, have you misspelled "Crimea" or are you calling it "Crimae" on purpose?

obtuse condor
#

Crimae on purpose

quick latch
#

kk

obtuse condor
#

Bc if i name it crimea_focus it wouldnt work

#

the whole focus

lofty plaza
#

The indentation is terrible

quick latch
#

yeah

obtuse condor
lofty plaza
#

It's really poorly spaced

#

Honestly I would just say start from scratch and maintain proper indentation so you can spot potential issues very easily

quick latch
#

give moment for upload

obtuse condor
#

Thanks mate! Im gonna see if this works

quick latch
#

tl;dr of the issue: missing } at the end

fathom spindle
#

do i need to do anything special?

quick latch
obtuse condor
#

Found again a problem

#

lol

lofty plaza
quick latch
quick latch
obtuse condor
#

Yea

#

but they are mutually exclusive

quick latch
#

hold on

obtuse condor
lofty plaza
#

I think only one has it

quick latch
#

yeah, both need to have a mutually_exclusive with eath other in it

obtuse condor
#

ohhhh

#

okay

#

now it works

#

thanks

quick latch
#

👍

#

also, use a text editor like Notepad++ or VS Code pls

obtuse condor
#

I am using

#

Notepad

#

++

quick latch
#

try using tabs instead of spaces

obtuse condor
#

Okay

fathom spindle
#

i dont find any info on how to set the starting compliance of a non core state. anyone got an idea?

stoic ether
#

Ah, I dont think this is real

quick latch
#

hmm?

stoic ether
#

Combact Witdh

obtuse condor
#

Hey guys, Im looking for a dev team so that i can create my big mod! Alternative History btw. Contact pv for more information

past cape
#

hey does anyone know if there is a mod which allows you too rename nations?

cunning mauve
#

I wanna create a mod but I don't know what to do and I can't follow video guides because it's late at night

#

I already made an empty mod but that's it

quick latch
#

Watch The Iron Workshop's tutorials but if you can't rn then do it tomorrow

cunning mauve
#

goofy ahh nighttime

quick latch
#

it's night for me too: 2:54 am

cunning mauve
#

existing and making me irreversibly tired

quick latch
#

I'll be going to bed shortly

cunning mauve
quick latch
#

yeah

cunning mauve
#

I am in BST

#

and I don't know why

#

my alarm clock is 1 hour back

#

I mean I can watch/listen to it at low volumes it's just that I live next to an expressway

#

car go brr brr every 3 milliseconds

obtuse condor
#

how do you build a land unit skin can you sepparate a gun from the model?

valid apex
# obtuse condor how do you build a land unit skin can you sepparate a gun from the model?
fast onyx
#

Hello, I want to download the Millenium Dawn mod but I also want to play stock HOI4 every now and then

#

can I do that without having to subscribe and unsubscribe?

pearl stone
fast onyx
#

thank you

obtuse condor
#

hey guys does someone know how to add custom loading screen text for my mod?

obtuse condor
#

i did that already but how do i make only my custom text show up instead of game's text?

slender brook
dull maple
#

Is there a mod that is world war 1?

pale sparrow
#

One of the biggest ones is WW1 but its discontinued and kind of bad

#

Few focus trees and forced scripted peacedeals

dull maple
#

Ok thank you

indigo lance
#

Damn, someone should make a mod about a timeline where the Soviet Union never fell and the Cold War continued into the 21st century. Point of divergence where Gorbachev does Perestroika somewhere in the early 1980’s but not Glasnost meaning the Soviet economy transfers to a mixture between a market economy and state controlled economy. This allows the soviet economy to remain competitive and for the Cold War to continue. Glasnost never happens though, so the USSR carries on as an authoritarian state and keeps it sphere of influence in the eastern Block. (maybe Gorbachev dies before he can liberalise the USSR)
Anyone interested?

ocean prairie
#

Is there a statement which says like "do that to everyone in your faction?"

Like if i want to give all allies in my faction 10% stability for example.

severe knoll
#

does anyone know a mod like state transfer tool, but it also allows u to make a cuntry pupet of other country?

fast onyx
#

Hello does anyone have a good napoleonic wars mods for hoi4

#

im so sleepy

#

sorry for the bad grammar

severe knoll
#

is there any on_action like on_operation_completed, but allows u to tell wich operation was completed, so it doesnt do it for all?

obtuse condor
#

how do i download millenium dawn ?

sacred drift
#

can someone help me with some localisation stuff because I just wanna add some funny OP national spirit for fun and the description only said baller_the_baller, I did put "baller_the_baller:0 "Baller the Baller"" but somehow it doesn't work, note I did renamed the localisation file to blablabla_l_english.yml

quick latch
sacred drift
quick latch
#

Is your file encoded as "UTF-8 with BOM" ?

sacred drift
#

idk, I'm on mac so yeah, but still at least the modifiers are working as intended

sacred drift
#

that's what i meant

quick latch
#

What does the one thing have to do with the other?

sacred drift
#

also what does UTF-8 with BOM have to do with the localisation tho

quick latch
#

loc file encoded as anything other than UTF-8 with BOM doesn't work

sacred drift
#

rip

#

ima find away to encode it ig

quick latch
#

Open file -> save as -> encoding: UTF-8 with BOM

sacred drift
#

I'll find out soon

quick latch
#

this

#

You should be able to change it to UTF-8 with BOM there

sacred drift
# quick latch this

oh yeah, btw if I'm doing localisation, do i delete all the files in my mod's english localisation except the file that I'm intending on altering

obtuse condor
#

Could someone please help me? events wont work reason: Invalid Event with id: crimea.28 or crimea.29

summer juniper
#

does anyone know how to create a formable nation?

high hatch
#

Hi. How I can said a state is neighbor of a country?
I try this with Moselland and France, but return no (false):
42 = { is_neighbor_of = ROOT } # 42 is Moselland, ROOT here is FRA (France)

graceful finch
#

There should be a Russian civil war mod

quick latch
# obtuse condor
  1. Change the description to a localisation string
  2. Put the whole in text one line, use \n instead of paragraphs
lethal steppe
#

well finally cracked map cosmetics, uses parts of bits here and there:

quick latch
#

also for the love of god please use tabs instead of spaces and use proper indention

quick latch
quick latch
#

You want to check if a state is a neighbor of a certain country?

high hatch
#

Yes. I found this to fix:

any_neighbor_state = {
is_controlled_by = ROOT
}
}```
quick latch
#

Why did you write the code like that? Why not like this?:

42 = {
    any_neighor_state = {
        is_controlled_by = ROOT
    }
}
#

You might even want to check if FRA owns and controls the state

high hatch
#

In my case, not ^^'.
About the code, just forget to do tabulation when I write here ^^'.

quick latch
#

ah

wicked forge
uneven dawn
#

Any tutorials to making the Orignial Map smaller / limiting it to a certain place like the balkans

light geode
#

Is there a way to add the "can_be_parachuted" tag to a battalion through an effect?

lofty plaza
#

To a specific unit? No.

light geode
#

How about to the battalion itself, thus affecting all units that have it?

#

or is that also impossible

sacred drift
#

Finally did it

long venture
#

Hey everyone I'm finally looking to start playing hoi4 after all these years and I'm looking for realistic historical overhauls

#

I've heard bad things about BICE and RT56 so I'm looking at darkest hour atm

#

Does anyone have recommendations?

slender brook
long venture
slender brook
#

I haven't heard those specific complaints before

#

There's a reason it's the most popular mod, is what I'll say

obtuse condor
#

Somebody knows why Hitler's face is darkened when I use my mod?

sacred drift
coarse cloud
#

Where can I get a Cold War mod?

obtuse condor
#

guys can someone show me or tell me how to put my sub ideologies icons fom my custom ideology in my mod?

lethal steppe
#

is it //comment// to add comment to code on HOI4 mods?

quick latch
lofty plaza
#

Or if you just want to ommit something

#

Comes in handy

obtuse condor
#

Is it possible to optimize fashion better? Magna Europa Reloaded

grim egret
#

Does this still work in the current patch?

lethal steppe
lofty plaza
#

Definitely not

spiral flax
#

Hello
im new to the game and I have all the dlc's
can you guys suggest me some mods to download pls?

obtuse condor
#

Are there any fashions for the year around 1500-1700

pale sparrow
#

Id get a cheat mod to fix peace deals too, and any graphic mods you might like

pale sparrow
#

pusheennoodles Am just kidding, I dont wanna advertise

spiral flax
arctic garnet
#

How to make a music mod?

#

as in

#

add custom radio stations

#

thought of making Kaiserreich Music Mod but in Vanilla

#

so same songs but it actually works

#

if someone could give a tutorial, it would be greatly appreciated

#

as in also

#

certain songs play only when you play a specific country

obtuse condor
quick latch
# arctic garnet How to make a music mod?

https://youtu.be/XWUhe70ue6A
Next time search for an already existing tutorial 👍

This Hearts of Iron IV modding lesson will explain how to introduce new music stations into the game, along with graphics and localization.

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.

Music...

▶ Play video
quick latch
#

isn't

arctic garnet
#

has to be made at the very least in September 2022

quick latch
#

works fine

arctic garnet
#

nah

quick latch
#

It does

arctic garnet
#

2021 too early

quick latch
#

Used it last week

arctic garnet
#

at least at 2022

quick latch
#

Worked fine

arctic garnet
#

any tutorial that isn't made in 2022 or 2023 is outdated for me

quick latch
#

for you, not for anyone else

arctic garnet
#

when i created the mod file, it didn't even have the descriptor file

#

@quick latch how i get that

quick latch
#

Should automatically generate

arctic garnet
#

last time it did not for some reason

#

not discord

#

the server

#

im on server where i can freely say the f word

quick latch
#

not related to the conversation

arctic garnet
#

did not really f up

#

did everything that was supposed to be done

quick latch
#

create another mod, it should be there

quiet escarp
#

lets not bypass the filter :)

copper pond
#

can the great war mod work on version 1.12.1?

spiral flax
#

Hello
which mod allows me to play during WW1?

quick latch
#

Depends on opinion, tho mine (overhaul mods) are:

  • The New Order: Last Days of Europe
  • Red Flood
  • Kaiserreich (non-redux version)
lofty plaza
#

The original has been barely updated since like 2019 or so, it's only really kept up-to-date for modern versions but not much new added.

naive mantle
#

does anyone know how to change what states a country starts with?

#

say i wanted germany to control danzig

#

how would i do that

naive mantle
#

don’t play the original version, it’s very old

#

redux is still getting content updates too

safe plank
#

is it just for me or is the millennium dawn mod taken down?

naive mantle
#

no it’s there

spiral flax
naive mantle
#

by J12

spiral flax
#

ty

naive mantle
#

yes yes yes

#

im trying to make an interwar period mod 😎

naive mantle
#

oh baby

quick latch
#

Don't think the Weimarer Republik was ever this big

slender brook
#

It was only that size for a very small time between the collapse of the German Empire and the Treaty of Versailles

crisp radish
#

What are some mods that add small features but are great

naive mantle
#

ez new state

#

just need to move that danish division

#

i forgot memel lol

naive mantle
#

yes yes yes

real storm
real storm
naive mantle
#

i would usually use the state transfer tool, but i just used the command console that time

high hatch
lethal steppe
#

@lofty plaza how feasible is it to make a graphical mod that displays land forts as icons on the map, similar to previous versions of Hearts of Iron?

naive mantle
#

🙏

#

oh thats not good

#

nah ez fix

pale sparrow
naive mantle
#

like the tile?

#

it probably is, but im not gonna mess around with them

pale sparrow
#

Nvm actually, the Saarland was that small

#

Almost

naive mantle
#

oh

#

much better

#

now i need to completely change the rhine states 😀

#

you know what, thats a job for tomorrow

rain aurora
#

a good start to my mod? (it isn't about Serbia, its about Croatia but I am planning to add a Serbian and Slovenian focus tree)

#

mod is basicly "What if Croatia never declared independance in the form of State SHS but a fully independant Croatia during WW1"

lethal steppe
#

something similar with forts, so you don't need to have 3D buildings on to see if there are forts in a territory

#

but can be seen by all nations, not just the player who put them down

lofty plaza
#

Not sure to be honest

#

I would say it's probably possible

lethal steppe
obtuse condor
wheat topaz
#

how do i make new states?

obtuse condor
#

mod it

wheat topaz
#

that's not helpful

obtuse condor
#

fine

#

umm

#

look on youtube

#

best info

wheat topaz
#

how do i make a province smaller

#
state={
    id=909
    name="STATE_909" # Eupen Malmedy
    manpower = 64000
    
    state_category = rural
    
    resources={
    }

    history={
        owner = BEL
        victory_points = {
            3488 1 
        }
        buildings = {
            infrastructure = 3
            industrial_complex = 1
            air_base = 0
        }
        add_core_of = BEL
    }

    provinces={
        3488
    }

    local_supplies=0.0 
}``` also i added this state but it doesnt work, game crash
#

how do i fix

#

or am i doing this wrong

#

tbh idk what im doing at all

quick latch
#

If you want to make a province smaller / divide it into smaller pieces, you'd have to modify the one texture file with every province I think
(Never did anything like that tho)

#

afaik there's a program that can edit the map for you but I neither know where you can find it nor how it's called

tight birch
#

Does anyone know a mod that adds a Mongol Empire formable?

arctic garnet
#

@quick latch sorry again but I can't even find the music template mod

quick latch
#

skill issue, should be linked in the video's description

arctic garnet
#

i would have to relog in because it doesn't take me to the app

quick latch
#

Then login on Steam in your browser, isn't that hard

arctic garnet
#

did

#

sorry

wheat topaz
#

the drive folder has my files

quick latch
#

... Check the error.log file

wheat topaz
#

ohh smart

#

"[21:49:56][state_effect_implementation.cpp:1951]: common/scripted_effects/POL_scripted_effects.txt:62: start_resistance Danzig already has a resistance"

#

what does that mean

honest eagle
#

Danzig already has resistance

wheat topaz
quick latch
honest eagle
#

So you can’t start resistance if they already got it

wheat topaz
#

the only state in poland i edited is bialystok

quick latch
honest eagle
#

If it doesn’t impede the game play dw about it

wheat topaz
honest eagle
#

Then worry about it

wheat topaz
wheat topaz
honest eagle
#

That’s why probs

#

Change it back and see if that fixes it

wheat topaz
#
state={
    id=97
    name="STATE_97"

    history={
        owner = POL
        victory_points = {
            11301 3 
        }
        victory_points = {
            3393 3 
        }
        buildings = {
            infrastructure = 3
            industrial_complex = 1
            air_base = 3

        }
        add_core_of = POL

    }

    provinces={
        290 347 11247 11274 11301 11329 11357 
    }
    manpower=957200
    buildings_max_level_factor=1.000
    state_category=rural
    local_supplies=5.000
}
``` normal state
#
    id=915
    name="STATE_915"
    
        history={
        owner = POL
        victory_points = {
            3254 1 
        }
        buildings = {
            infrastructure = 3
            industrial_complex = 2

        }
        add_core_of = POL

    }
    
    provinces={
        400 3254 
    }
    manpower=200000
    buildings_max_level_factor=1.000
    state_category=town
    local_supplies=5.000
}
``` new state
#

did i mess up something

wheat topaz
#

💀

honest eagle
#

Damn

#

You sure you didn’t do anything else?

wheat topaz
#

i did

wheat topaz
#

i didnt say others

#

i made a few other states

#

but as i said

#

i have no clue what im doing

#

thus im here for help

#

first error

#
state={
    id=735
    name="STATE_735"

    history={
        owner = FRA
        add_core_of = OCC
        add_core_of = FRA
        add_claim_by = SPM
        victory_points = {
            778 1 
        }
            }

        }

    }

    provinces={
        764 778 3764 6609 6975 9603 9736 9745 11573 
    }
    manpower=907500
    buildings_max_level_factor=1.000
    state_category=town
    local_supplies=0.000
}
#

what tf is wrong in line 20

#

or

#

"near line 20"

honest eagle
#

What does line 20 say

wheat topaz
#

provinces={

quick latch
#

Wrongly set brackets, fixing it rq

#
state = {
    id = 735
    name = "STATE_735"

    history = {
        owner = FRA
        add_core_of = OCC
        add_core_of = FRA
        add_claim_by = SPM
        victory_points = {
            778 1 
        }
    }

    provinces = {
        764 778 3764 6609 6975 9603 9736 9745 11573 
    }

    manpower = 907500
    buildings_max_level_factor = 1.000
    state_category = town
    local_supplies = 0.000
}

Here's your fixed code

#

Use proper indention next time

lethal steppe
#

IF a map mod has only graphical changes, and no code etc... it will be achievement friendly yes?

quick latch
#

should

wheat topaz
#

do i have to just add spaces between brackets and equal signs?

#

@quick latch

quick latch
#

no, you literally added like two } to much

wheat topaz
#

can u point out where

quick latch
#

compare your old code to the one I sent you, there's your answer

wheat topaz
#

hmm alr lemme see

arctic garnet
#

im basically adding the music files manually, is there any way to speed up the provess?

arctic garnet
#

Like

#

into the music asset

#

i add each song name manally

#

which will play (at first

#

how can I speed this shite up

wheat topaz
#
[22:17:44][persistent.cpp:48]: Error: "Unexpected token: add_core_of, near line: 16" in file: "history/states/852-Istria.txt" near line: 16
[22:17:44][persistent.cpp:48]: Error: "Unexpected token: add_core_of, near line: 17" in file: "history/states/852-Istria.txt" near line: 17
[22:17:44][persistent.cpp:48]: Error: "Unexpected token: add_core_of, near line: 18" in file: "history/states/852-Istria.txt" near line: 18**```what does this mean
#

what's wrong

arctic garnet
#

like here

#

can I speed up this process any way

quick latch
arctic garnet
#

that will paly

#

play*

wheat topaz
#
state={
    id=852
    name="STATE_852"

    history={
        owner = ITA
        buildings = {
            infrastructure = 3
            dockyard = 1

            }

        }
         {
        add_core_of = ITA
        add_core_of = YUG
        add_core_of = CRO
        add_core_of = LBV
    }

    provinces={
        11735 
    }
    manpower=25850
    buildings_max_level_factor=1.000
    state_category=rural
    local_supplies=0.000
}
``` fixed it partially
#
[22:19:06][persistent.cpp:48]: Error: "Unexpected token: =, near line: 16" in file: "history/states/852-Istria.txt" near line: 16
[22:19:06][persistent.cpp:48]: Error: "Unexpected token: add_core_of, near line: 17" in file: "history/states/852-Istria.txt" near line: 17
[22:19:06][persistent.cpp:48]: Error: "Unexpected token: add_core_of, near line: 18" in file: "history/states/852-Istria.txt" near line: 18
[22:19:06][persistent.cpp:48]: Error: "Unexpected token: add_core_of, near line: 19" in file: "history/states/852-Istria.txt" near line: 19
[22:19:06][gameitemdatabasehelper.h:150]: Error: "Unexpected token: provinces, near line: 22" in file: "history/states/852-Istria.txt" near line: 24
[22:19:06][gameitemdatabasehelper.h:150]: Error: "Unexpected token: manpower, near line: 25" in file: "history/states/852-Istria.txt" near line: 25
[22:19:06][gameitemdatabasehelper.h:150]: Error: "Unexpected token: buildings_max_level_factor, near line: 26" in file: "history/states/852-Istria.txt" near line: 26
[22:19:06][gameitemdatabasehelper.h:150]: Error: "Unexpected token: state_category, near line: 27" in file: "history/states/852-Istria.txt" near line: 27
[22:19:06][gameitemdatabasehelper.h:150]: Error: "Unexpected token: local_supplies, near line: 28" in file: "history/states/852-Istria.txt" near line: 28
[22:19:06][parser.cpp:932]: Error: unexpected token in file: "history/states/852-Istria.txt" near line: 30 ( } )
[22:19:06][gameitemdatabasehelper.h:150]: Error: "Unexpected token: }, near line: 30" in file: "history/states/852-Istria.txt" near line: 30```
#

still lots of errors

arctic garnet
thin chasm
#

Try this

wheat topaz
#

i have no clue what u changed but alr

thin chasm
#

Your brackets weren't set up correctly

#

Too many in one spot, not enough in another

quick latch
wheat topaz
#

EYYYYY

quick latch
#

gg

wheat topaz
#

istria errors gone

arctic garnet
wheat topaz
#
    id=910
    name="STATE_910"
    
    history={
        owner = DEN
        
        buildings = {
            infrastructure = 4
            industrial_complex = 2
            air_base = 1
        }
        add_core_of = DEN
        
    provinces = {
        332 11251 
    }
    manpower=57000
    buildings_max_level_factor=1.000
    state_category=town
    local_supplies=0.000
}
}
#

bracket issues here

#

i think

#

am i putting the wrong brackets

thin chasm
#

Put a } on the line after add_core_of = DEN

#

And remove the one at the end of the code block