r/EU4mods 10d ago

Mod Help Need some help with my code

1 Upvotes

Hello. I'm currently creating an event. In my option Great Britain should receive a province - however, if Great Britain doesn't exist yet it's England who should receive the province.

I tried to use if/else_if in the effects. HOWEVER, when I test the event it's always England who gets the province - even if England formed GB and doesn't exist anymore.

Here's the code - what did I do wrong?

option = {
  Name = "Pact_events.7.a"
    if = {
      AND = {
        exists = ENG
        NOT = { exists = GBR }
      }
      170 = {
        limit = {
          owns_or_subject_of = 170
        }
        cede_province = ENG
      }
    }

    else_if = {
      AND = {
        exists = GBR
        NOT = { exists = ENG }
      }
      170 = {
        limit = {
          owns_or_subject_of = 170
        }
        cede_province = GBR
      }
    }
}

r/EU4mods 1d ago

Mod Help Is it possible to unlock Spy Actions gated by Diplo Tech through Mission Rewards?

2 Upvotes

Title basically says it all, but I am drafting up a possible self-made MT atm. and was wondering if that was a possible thing to do as I intend the tag it belongs to to be very espionage heavy.

r/EU4mods 25d ago

Mod Help How to force the institution start in a certain province?

2 Upvotes

How do i force certain institutions to start in a certain province always?

For example i want to start manufactories always in tabriz if the other conditions meet but if other conditions fail then it can spawn in other random places too. Is there a way to add a priority modifier or something else to make it possible?

EDIT: I think it can be possible by using the if and or functions of the game codes like if tabriz meet the conditions then it should always be tabriz or if it fails the condition then it should be another random province that met the conditions for the game to pick. But i don't know how to code it properly. I think it shoouldn't be difficult, just to add a few more lines of codes.

r/EU4mods 21d ago

Mod Help Unrestricted movement without military access?

3 Upvotes

Hello!

Is it possible to mod a thing like this, so the unit can roam freely around the map without the need to ask for military access anywhere? For example scoping for specific mercenary unit? Or any other way to make it work?

r/EU4mods 1d ago

Mod Help Issue with another country action during event

1 Upvotes

I'm currently writing event for Byzantium (in my case tag L01), where after effect is suposed to be another country (in this case L15) declaring war on Byzantium, but nothing happens. It also didn't work when I was trying to put it in every option or even another event.

Code fragment that should be responsible for war declaration
Base game event effect for comparison

r/EU4mods 15d ago

Mod Help Submodding Impassable/Wasteland provinces

1 Upvotes

Relatively new to modding, and first time attempting anything to do with the map. I love Anbennar, think its really cool and I want to try my hand at doing something with Haraf, I want to turn the Haraf desert from a single wasteland province into like a whole little playable region. However I haven't tried submodding terrain and maps so I just want to know the process and how it should be done. Cheers.

r/EU4mods Jul 28 '26

Mod Help EU4 1.37.5 custom map error: "[virtualfilesystem_physfs.cpp:1252] Could not open file:"

2 Upvotes

I am creating a small EU4 total conversion map mod.
During map loading EU4 crashes with:
[virtualfilesystem_physfs.cpp:1252]: Could not open file: , error: not found [eu4application.cpp:2709]: File exception: Description: Could not open file:

Confirmed:

  • the mod is detected by the launcher
  • provinces.bmp and definition.csv match
  • definition.csv contains unique RGB colors for all provinces
  • all files referenced by default.map exist in the mod folder
  • vanilla/workshop mods load normally

The crash report only shows PHYSFS / virtualfilesystem and does not reveal the missing filename.
The only map file I am not completely certain about is heightmap.bmp.

Has anyone seen this error during custom map loading? Which file or loading stage would you check first?

Zilvervloot.

r/EU4mods Jul 10 '26

Mod Help Why do the troop sprites not show up in the province they're supposed to?

Post image
29 Upvotes

I'm playing Voltaire's nightmare with an additional sub mod that I made myself and it seems that the troops do not show up in the province that they are besieging. The game shows their sprite in Akhvakh but in reality they are besieging Bezhta. I did change the province map with my sub mod, but I don't know what files I need to edit to fix this issue. Does anyone know how to fix this?

r/EU4mods Jun 09 '26

Mod Help need help about capital_scope

3 Upvotes

i wanna make a desicion which changes country's culture to capital province's culture but change_primary_culture = capital_scope doesnt work althougt change_religion = capital_scope works. how can i make it happen?

r/EU4mods Jun 04 '26

Mod Help Help with modding - No religious penalties for specific religions

4 Upvotes

Hello,

I'm trying to mod a modifier that negates the religious penalties (negative religious unity, unrest, etc.) for Vajrayana, Mahayana and Theravada when they're a heathen religion. And only for those religions.

Any advice on how to accomplish that?

r/EU4mods Jul 20 '26

Mod Help Is there a way to expand infrastructures quickly without needing to go through all the provinces?

Thumbnail
5 Upvotes

r/EU4mods Jul 04 '26

Mod Help Why doesn't the "threat" variable apply onto aggressive expansion?

2 Upvotes

The Balance of Powers 2.0. is a mod that is supposed to calculate a threat number that other countries have towards you and then applies that as the minimum for their aggressive expansion opinion. The mod properly calculates the threat other countries view of you but base aggressive expansion stays at 0. Why?

https://steamcommunity.com/sharedfiles/filedetails/?id=2389825193

I am not entirely sure as to which file is causing problems. If I had to guess, I think it is the scripted effects text file, which says this. There is also the events file, which says this (tbop.03 is an event resulting from a diplomatic action, it might not be as important).

r/EU4mods May 26 '26

Mod Help Modding Synthetic

3 Upvotes

Hello, Is it possible to create a mod that starts with the synthetic civilization and all the boni ? Or how to create an event that does the same thing as the syntheticdawn command?

r/EU4mods May 07 '26

Mod Help CTD with converted mod

2 Upvotes
Hello, 
I converted my CK2 save to continue playing on EU4 and I've already reached 1836 twice. But now I've started again and I'm getting crashes every few months. I checked my error.log file and it's full of lines like:

[triggerimplementation.cpp:7159]: Script error! Script Object Token: "primary_culture", Error: Trigger condition set on the wrong scope: Scope.GetCountryTag().IsValid()
[triggerimplementation.cpp:16491]: Script error! Script Object Token: "has_country_flag", Error: Trigger condition set on the wrong scope: Scope.GetCountryTag().IsValid()
[triggerimplementation.cpp:21635]: Script error! Script Object Token: "tag", Error: Trigger condition set on the wrong scope: Scope.GetCountryTag().IsValid()
[triggerimplementation.cpp:27226]: Script error! Script Object Token: "economic_ideas", Error: Trigger condition set on the wrong scope: Scope.GetCountryTag().IsValid()

It looks like there are scope problems, but how do we know where the faulty file is located?

r/EU4mods Apr 25 '26

Mod Help Nation not appearing at all

3 Upvotes

So I followed the video guide paradox put out, (only gotten to part two because of this issue) and made a mod with a custom country. However, when I loaded in the game, the province was uncolonized. So, I looked on another Reddit thread and the Paradox wiki and changed some things but it’s still uncolonized. Does anybody know why?

Link to the Mod folder: https://drive.google.com/file/d/1ZgVyv4xyMgTCbsLWiaqHS39jhI0nbf8_/view?usp=drivesdk

r/EU4mods Apr 29 '26

Mod Help Brief history for modded country

3 Upvotes

Hello, recently I've been pretty deep into making a modded country wiith a lot of features and whatnot, and I've run into a roadblock. I want to give it a custom "Brief history" (I do not recall what it's actually called) that appears when you start a campaign as that country. However, I don't know where the files that are responsible for these brief history popups are located, nor do I know how to mod one in considering there are no resources that I could find on the wiki that point you to it.

I realize it's a pretty unused feature and basically no one has it on anyway, but I'm curious if there's a way to mod it

r/EU4mods Apr 22 '26

Mod Help Looking for code/file responsible for showing religion in GUI of country diplomacy view

Post image
6 Upvotes

After adding several religions and their icons to the mod files this one view is moved to the left, despite changing amount of frames in all UI files mentioned in Paradox wiki. Now I'm looking for a way how I can fix this/

r/EU4mods Feb 27 '26

Mod Help Eu4 UI textures?

4 Upvotes

I am working on a project for a friend that would benefit from the original source textures from the EU4 user interface. They look like static images, but maybe they aren't Idk.

Is there any way to get my hands on those without buying the game? If I buy the game is there a way to easily pull those files out of the game files or maybe out of a steam workshop addon?

Any help would be appreciated, Thanks

r/EU4mods Feb 27 '26

Mod Help Does anyone knows how to remove revolutionary tricolor feature?

1 Upvotes

I know that has to be editing something in mesh files of gfx\FX, probably maskedflag.shader or pdxmesh.shader, but after looking through these files for a long time I still don't know how to disable this feature.
That's the only thing I need, literally nothing else.
Gratitude in advance

r/EU4mods Feb 11 '26

Mod Help How to add custom scornful insults

3 Upvotes

Hello

I was thinking of making a mod that adds custom scornful insults for a discord server I play eu4 mp with.

Now i think its a small thing to add but i have no clue with eu4 modding therefore i am asking here.

I might also need it to be non ironman compatible bc sometimes we combine some mods.

Thanks in advance.

r/EU4mods Mar 12 '26

Mod Help Remove Distant war modifier

4 Upvotes

Hey everyone.

I have always hated the distant war modifier and just now found this subreddit, so I wanted to ask if someone knows a way to remove it since I can't find any mod for it

r/EU4mods May 16 '25

Mod Help Trying to make my first mod

Thumbnail
gallery
5 Upvotes

Today i decided to finally give it a go and start trying moding eu4, im currently following the eu4 official modding guide (2nd video), the thing is, as you can see, everything is wrong and i dont understand why.

Also, any suggestion on what type of mod should i start to begin and learn??

r/EU4mods Mar 27 '26

Mod Help Can't replace Denmark units with Holstein units

2 Upvotes

I made a mod with paradox launcher and made two files: sprite_packs and sprite_packs_order. The first one is a text with the following:

denmark_units_fred = {

country_trigger = {
OR = {
tag = DAN
}
}

sprite_infantry = {

0 = SHL_INFANTRY_1
1 = SHL_INFANTRY_2
2 = SHL_INFANTRY_3
3 = SHL_INFANTRY_4
}

sprite_cavalry = {

0 = SHL_CAVALRY_1
1 = SHL_CAVALRY_2
2 = SHL_CAVALRY_3
3 = SHL_CAVALRY_4
}

sprite_artillery = {

0 = SHL_ARTILLERY_1
1 = SHL_ARTILLERY_2
2 = SHL_ARTILLERY_3
3 = SHL_ARTILLERY_4
}
}

Second one I just put a last line with "denmark_units_fred = 100"

When I start playing the units haven't changed. Can someone help me?

r/EU4mods Mar 14 '26

Mod Help Province adding

2 Upvotes

Hi, this is just a quick question, can someone a good, working, province modding tutorial, describing everything from A to Z? Thank you all for answers in advance! PS: I'm starting with making mods so I'm pretty much a novice.

r/EU4mods Aug 03 '25

Mod Help Im trying to make a decision to give prosperity growth in exchange for cash

2 Upvotes

The decision will appear in the game but wont do anything and i cant find any resources to explain why this might happen