• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Arbus

General
122 Badges
Jun 3, 2009
1.822
3.387
  • Stellaris: Galaxy Edition
  • Stellaris: Necroids
  • Victoria 3 Sign Up
  • Hearts of Iron 4: Arms Against Tyranny
  • Imperator: Rome Deluxe Edition
  • Crusader Kings III: Royal Edition
  • Hearts of Iron IV: Colonel
  • Stellaris
  • Europa Universalis IV: Pre-order
  • 500k Club
  • Cities: Skylines
  • Europa Universalis III Complete
  • Crusader Kings II
  • Europa Universalis: Rome
Let's say I want to relocate the port of a state from province X to province Y. I go to "game/map_data/state_regions" and find txt files for Lombardy:

STATE_LOMBARDY = {
id = 76
subsistence_building = "building_subsistence_farms"
provinces = { "x3F1E38" "x4713EE" "x50C060" "x70B8A9" "x867A90" "x9AC196" "xA40CE9" "xD04060" }
traits = { "state_trait_po_river" "state_trait_alps_mountains" }
city = "xD04060"
farm = "x867A90"
mine = "x3F1E38"
wood = "x4713EE"
arable_land = 160
arable_resources = { "bg_wheat_farms" "bg_livestock_ranches" "bg_cotton_plantations" }
capped_resources = {
bg_iron_mining = 27
bg_lead_mining = 19
bg_logging = 7
}
}

I suppose all I need to do is change the codes for "port" to another province in that state, but this doesn't seem to work. Am I looking at the wrong file? Did anybody try this?
 
  • 3Like
Reactions:
You can edit the position of existing objects in:
steamapps\common\Victoria 3\game\gfx\map\map_object_data

Here there are coordinates that you can use to adjust the city location. If you use Debug mode, you can find these coordinates with your cursor.
The assets are distributed across 5 categories: city, port, farm, wood, and mine. It depends on the object that you want to move in which file you will have to look to find the object. You can adjust the coordinates live in the game by editing the numbers of the entry. After saving you will see that the assets jumped to the new location.

Syntax of an asset in the map_object_data files:
Code:
{
            id=1020
            position={ 108.834129 0.000000 1030.908936 }
            rotation={ -0.000000 -0.999158 -0.000000 0.041034 }
            scale={ 1.000000 1.000000 1.000000 }
        }

I do however still need to figure out how you can add new objects for new provinces/states. If anyone would be willing to help, that would be great!
 
  • 2Love
  • 1Like
Reactions:
You can edit the position of existing objects in:
steamapps\common\Victoria 3\game\gfx\map\map_object_data

Here there are coordinates that you can use to adjust the city location. If you use Debug mode, you can find these coordinates with your cursor.
The assets are distributed across 5 categories: city, port, farm, wood, and mine. It depends on the object that you want to move in which file you will have to look to find the object. You can adjust the coordinates live in the game by editing the numbers of the entry. After saving you will see that the assets jumped to the new location.

Syntax of an asset in the map_object_data files:
Code:
{
            id=1020
            position={ 108.834129 0.000000 1030.908936 }
            rotation={ -0.000000 -0.999158 -0.000000 0.041034 }
            scale={ 1.000000 1.000000 1.000000 }
        }

I do however still need to figure out how you can add new objects for new provinces/states. If anyone would be willing to help, that would be great!
Omg THANK YOU!!! I've been trying for ages to move Montreal back to the north side of the St. Lawrence.
 
  • 1Haha
Reactions:
Omg THANK YOU!!! I've been trying for ages to move Montreal back to the north side of the St. Lawrence.
You're welcome! BTW, I found that the id in the map_object position code I mentioned should be identical to the state id. That way these assets are linked to eachother.
It's the same as for CK3, but I never modded that game so for me this system was new.
 
  • 1
Reactions:
You're welcome! BTW, I found that the id in the map_object position code I mentioned should be identical to the state id. That way these assets are linked to eachother.
It's the same as for CK3, but I never modded that game so for me this system was new.

Thank you! I'll try this today!
 
You're welcome! BTW, I found that the id in the map_object position code I mentioned should be identical to the state id. That way these assets are linked to eachother.
It's the same as for CK3, but I never modded that game so for me this system was new.
What about the city names ? When I changed the location the city name didn't change. Is there any way to change it ?
 
You can edit the position of existing objects in:
steamapps\common\Victoria 3\game\gfx\map\map_object_data

Here there are coordinates that you can use to adjust the city location. If you use Debug mode, you can find these coordinates with your cursor.
The assets are distributed across 5 categories: city, port, farm, wood, and mine. It depends on the object that you want to move in which file you will have to look to find the object. You can adjust the coordinates live in the game by editing the numbers of the entry. After saving you will see that the assets jumped to the new location.

Syntax of an asset in the map_object_data files:
Code:
{
            id=1020
            position={ 108.834129 0.000000 1030.908936 }
            rotation={ -0.000000 -0.999158 -0.000000 0.041034 }
            scale={ 1.000000 1.000000 1.000000 }
        }

I do however still need to figure out how you can add new objects for new provinces/states. If anyone would be willing to help, that would be great!
It's a shame how difficult this seems to mod. Those numeric IDs are not transparent, and even if you move the hub elsewhere, it seems there's hand-placed buildings (e.g. port structures) and roads to figure out the locations of and then move by hand. There's more hard-coding than I'd expect. (Even the location of every seagull, seemingly?)

Edit/PS: I tried to see if the map editor could be of any use, but it crashes reliably on Linux for me. (Reproducible CTD: clicking the second brush.) I suspect it's not very disciplined with memory, which Linux tolerates less than Windows. I did spot a lot of potentially useful things though; spline networks appear to be the roads, for example.
 
Last edited:
  • 2Like
Reactions:
Is there a guide for rotation of objects, or an easy way to do this? I have added a number of "wonders" in but it is painful having to do trial and error for the rotation={ 0.000000 -0.823280 0.000000 -0.035155 } to make it line up with the rest of the city.