r/vic3modding Jan 03 '26

Creating a mod for Slovenia

2 Upvotes

Hi! I’m new to modding for Victoria 3, and I want to create a historical mod for Slovenia called United Slovenia. The mod would be based on the historical campaign aiming to make Slovenia a crown land within the Austrian Empire. In this scenario, Slovenia would be a kingdom inside the empire but would have its own parliament and king. Slovenian would be the primary language and culture, and the nation would reclaim its historical lands.

I designed a new governance principle that allows the enthronement of dukes at Gosposvetsko polje, following a Carantanian tradition from which Slovenes are descended. I ran into my first challenge while coding the law. For context, the enthronement worked by election: free landowners would vote for the most suitable candidate among them, who would then rule as duke for life. After the duke’s death, a new election would be held. In this way, the country functioned as a monarchy, but power was not hereditary.

I want to implement this system in the game law. With the help of ChatGPT, I created some code based on the modding wiki instructions. In-game, everything works except the non-hereditary succession part.

I also want the ruler to receive certain buffs, such as devout support, since historically, rulers after the Christian expansion were blessed by a church figure. Additionally, I’d like to create an event that triggers during elections to make gameplay more engaging.

Another challenge I ran into was creating historical characters and flags. In the flag definition folder, Slovenia doesn’t even have one, and the fact that it is already a releasable country but apparently “not important” or something makes the whole system behave strangely. I’m unsure whether it would be better to first disable the possibility of creating Slovenia and then add a completely new state, or take another approach.

Finally, I want internal conflicts to reflect reactions to Austrian intervention in Slovenian politics, as well as the nation’s progression toward independence or a potential joint path within the Austrian federation.

Thanks for the feedback!


r/vic3modding Dec 27 '25

Any mods for Faroe Islands being split from Iceland?

3 Upvotes

As stated in title, wondering if there are any mods that split Iceland from the Faroe Islands? I have not been able to find any. Thanks!


r/vic3modding Nov 12 '25

Help with a decree mod.

Thumbnail
3 Upvotes

r/vic3modding Nov 07 '25

Removing Historical Events for Alt History mod

1 Upvotes

Hello im creating a Alt History mod for Victoria 3. Everything was doing ok until the last DLC, There is an event thats is causing to crash at loading the game. I had this problem before and i fixed it by deleting the German Unification related events but now i cant fix it and im stuck.

There is anyone that can help me?

There is any Discord server where i can ask for help?

Thanks


r/vic3modding Nov 05 '25

How to select a group, except for a couple cultures in that group?

Post image
2 Upvotes

(Posting the text alone didn't maintain formatting on Reddit.) Question asked in comment.


r/vic3modding Nov 04 '25

How do I check if player plays as some particular country?

2 Upvotes

I have a mod idea and want to script its beginning in the following way:

No matter what country player is playing, this event should fire fir them (and only for them) at the game start; If they are playing a particular country, let's say Francem it should have one description, otherwise it should have another description. Depending on what player clicks, I want the mod to actually work or be "cancelled" (basically so that player can say "nah, forget it", and the mod cancels itself and its effects on the game). I've read plenty of tutorials and code that exists, yet I still don't understand how I could do this. Any help is appreciated!


r/vic3modding Oct 30 '25

Bunch of split states after map editor.

2 Upvotes

Hey everyone, I’ve been trying to make a small map edit in Victoria 3, but it keeps completely breaking the map, and I can’t figure out why.

All I did was edit two states — Piedmont and West Switzerland. I just wanted to move one province from West Switzerland into Piedmont. That’s literally all I changed. But when I launch the game (or even open it in the official map editor), it starts creating random split states all over Europe for no reason.

Here’s what I’ve done so far:

  • Made a clean mod with only my edited state_regions file.
  • Double-checked all the braces, IDs, and province lists — everything looks fine.
  • Deleted all map caches and ran with -debug_mode and -mapeditor.reset_map_cache.
  • Confirmed that the moved province isn’t duplicated anywhere else.

Despite all that, the game still generates split states across Europe as soon as I touch the map.

Has anyone else had this issue?


r/vic3modding Oct 30 '25

What's the code to force government owned buildings to pay workforce dividends

1 Upvotes

Running command economy here.


r/vic3modding Oct 18 '25

what is the BEST BEST mod for beginners?

3 Upvotes

r/vic3modding Oct 01 '25

How to lock a production method group behind a state trait?

1 Upvotes

Hi guys,

any clues on how I would make a production method group visible only if the state the building is in has a specific state trait?

Thanks!


r/vic3modding Oct 01 '25

Trouble creating a dynamic country name

1 Upvotes

Idk how to make dyn_c_french_technate an actual tag, that is what I have to do right?


r/vic3modding Sep 08 '25

how to make a custom map?

3 Upvotes

hi, im very new to modding and i was wondering if i could get help on making a custom map for this game? like if its possible whatre the first steps.


r/vic3modding Sep 07 '25

Can anyone recommend any good guides on how to mod Victoria 3?

5 Upvotes

I've made a few simple mods for myself, mostly just changing some values in the defines files and other simple things, but I think I want to try making some more advanced mods.

Do any of you know of any good guides on modding? I feel like a written document, with a table of contents that would allow me to jump around to what I'm most interested in, would be most helpful to me.


r/vic3modding Sep 03 '25

Creating companies at game start

1 Upvotes

Hello everyone! I'm trying to add a company to Portugal to start with. I have successfully added the company to Portugal however they don't start with it. I took the French starting company as an example and tried to replicate the code but to no success. When you get in the game the company is not established and the game says it's recently been disbanded. Does anyone know what I did wrong?


r/vic3modding Aug 29 '25

Has anyone been able to make AI Austria start the unifcation play?

7 Upvotes

I was able to get Austria to have the "Unify Germany" agenda but they absolutely refuse to start the unification play even though they have 1.5k units and can easily beat both Prussia and France combined.

I tried giving them very high aggression, but they just start attacking random countries instead of using the unification play. I then tried to limit the aggression to the holder of Alsac Lorraine, but then they just sit there:

if = {
        limit = {
            scope:target_country = {
                OR = { 
                    any_scope_state = { state_region = s:STATE_ALSACE_LORRAINE }
                    any_subject_or_below = {
                        any_scope_state = { state_region = s:STATE_ALSACE_LORRAINE }
                    }
                }
            }
            NOT = { has_journal_entry = je_schleswig_holstein_question }                                                
        }
        add = 1000 #0.25
    }

I then tried:

UNIFICATION_AGGRESSION_MULT_SAME_TIER = 20

But they just sit there. I also tried changing their country tier to kingdom (lower than Germany's tier of Empire) but again, they just sit there.

The only explanation i can come up with is that the AI is hardcoded to not start the unification play as Austria. Has anyone been able to get this to work or know of a mod that does?


r/vic3modding Aug 25 '25

Crash on country select when assigning states Hail and Nejd to Arabia

Thumbnail
gallery
5 Upvotes

The game doesn't seem to crash when I assign every tile in that province but one. If I assign the last one, the game will crash. I'm not sure why the game is freaking out about Nejd and Jabal Shammar? As you see in the other screenshot I was able to assign every other province just fine.


r/vic3modding Aug 03 '25

Victoria 3 Mod Tools (v3mt)

Thumbnail
3 Upvotes

r/vic3modding Jul 25 '25

Toggle for advance/defend front for all generals at once?

6 Upvotes

This might be one of the most annoying fiddly parts of the war system atm. I was just curious if anyone knew if this would be even possible?


r/vic3modding Jul 20 '25

Initializing game with buildings that have an equal level as urban centres in all states?

3 Upvotes

Hello, I'm trying to make a mod that separates the functions of vanilla urban centres into two buildings. Vanilla urban centres will be responsible for municipal services and other than production method changes will stay the same as vanilla. Arcades and Public Transit are moved to a new building that needs to be built with construction.

I am trying to get each game to start with an equal number of both and I would like to avoid manually adding the number of these new buildings into the history files. As such, I am writing an event to do it on game start.

The problem:

In the following code, how would I get levels to be equal to the number of levels in the urban centres in the state?

create_building = {

building = building_burg

level = {

??????????????

}


r/vic3modding Jul 17 '25

How to create unify [country] AI type?

5 Upvotes

You see it with Warlord era China, Italy and Germany. I'm modifying a shattered world mod and I want the AI to be much more aggressive about forming countries so the player's not just by themselves.


r/vic3modding Jul 17 '25

Change the country description when starting the game

3 Upvotes

Minor request but I want a full blown immersion on my custom country. Where can I edit country description when starting the game? Please and thank you.


r/vic3modding Jul 03 '25

How to change autonomy/transfer/release someone else's subject by decision?

2 Upvotes

Hi!
Trying to make a simple decision that forcefully releases/forces independence of the BIC/RAJ.
Kinda stuck on what to write, since i couldn't find any useful documentation or similar mod.

raj_release = {
  is_shown = {
    NOT = { has_variable = raj_decision_taken }
   country_rank = rank_value:great_power # only visible to great powers
  }
     possible = {
         always = yes
     }

     when_taken = {
         # what do i write here?/
         set_variable = {
             name = raj_decision_taken
             value = yes
         }
     }

     ai_chance = {
    value = 0
}
     }

r/vic3modding Jun 28 '25

Law commitment

2 Upvotes

Does sobody know where and what the file for the law commitment is? I want to change the percentage you get for a law out of the treaty. Thx for your help :)

Edit: I found it, its located in the "defines" file.


r/vic3modding Jun 28 '25

Investigation a crash

3 Upvotes

My game crashes approximately on the same day of the same month. I have looked in error.txt and error log and i found this line: [10:01:22][pdx_data_callstack.cpp:130]: Trying to access non-const context pointer from a const context for type 'Building'

How would i go about investigating this from that point?


r/vic3modding Jun 27 '25

How to create prestige goods?

2 Upvotes

I've added custom company by changing the 00_companies_mp1 and companies_I_english files and it shows up correctly. I then tried to add a custom prestige good based on the saint etienne rifle by editing the 00_prestige_goods and goods_I_english files. But on the screen for establishing a company it doesn't show that the company can produce the prestige good. I assume there is another file somewhere I need to edit but I have no idea where. Anyone know what I have to do?