Snow Crystal

Content Designer on Stellaris
60 Badges
Jan 22, 2018
1.252
3.372
  • Crusader Kings II: Holy Fury
  • Stellaris: Nemesis
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome - Magna Graecia
Snow Crystal, please give information about road modding (file roads.roads.).

Sure.

So to generate a roads.roads file (which it uses to understand where all the potential roads in the game should be), you enter the game in debug mode and write "Roads.GenerateAssets" in the console. Then the game will start working on generating the file, which will take quite a bit of time, and you need to wait until the white barely readable text in the top left corner disappears and the game looks a bit like this:

upload_2019-12-5_9-48-11.png


Simply close the game, and a new file will have been generated in your documents folder, and you simply grab that and put it into the right folder in your mod folder. If you want to check that it worked, you can re-open the game and try the console command "Roads.AllRoadsLeadToRome", this will immediately build every potential road in the game, and you can see if your new province have roads or not.

If you want to define specific roads on startup, you can open the setup.txt file, go down to "road_network", and define a road between province IDs.
 

Attachments

  • upload_2019-12-5_9-48-11.png
    upload_2019-12-5_9-48-11.png
    5,3 MB · Views: 16

rivtaldm

VeF Team; URP/GeS Creator
48 Badges
Jan 4, 2014
1.349
464
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Third Rome
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • March of the Eagles
  • Magicka
  • Hearts of Iron III
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Europa Universalis IV: Art of War
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis 4: Emperor
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome Sign Up
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Battle for Bosporus
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Victoria 2
  • Europa Universalis IV
@Carlberg I see that the formerly white outer reaches of the map now have their own province colors and are designated as wasteland seas. I also see that those areas are broken up into multiple provinces instead of a single one; is this because there is some pixel limit to the maximum province size? If so, what is the limit (even rough idea would help)? Does the limit apply only to these sea wastelands or all provinces generally (I have a massive land wasteland as well)? I think this is the reason a map that works in 1.2 without errors won't open in 1.3 because I used a single province for a massive sea wasteland.
 

Snow Crystal

Content Designer on Stellaris
60 Badges
Jan 22, 2018
1.252
3.372
  • Crusader Kings II: Holy Fury
  • Stellaris: Nemesis
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome - Magna Graecia
@Carlberg I see that the formerly white outer reaches of the map now have their own province colors and are designated as wasteland seas. I also see that those areas are broken up into multiple provinces instead of a single one; is this because there is some pixel limit to the maximum province size? If so, what is the limit (even rough idea would help)? Does the limit apply only to these sea wastelands or all provinces generally (I have a massive land wasteland as well)? I think this is the reason a map that works in 1.2 without errors won't open in 1.3 because I used a single province for a massive sea wasteland.

The reason it was done was because all of it counted as one province. Which meant that everyone who was in the top left or bottom right corners of the map would be considered close for the sake of things like colonization, which was fairly awkward.
 

Harbinger1992

State Boar
Mar 31, 2014
63
112
Hi folks. Can you give me a hand (I really do not know if smb has asked about it before me)? I am interested why when you enable the "Fill in impassable terrain" option not all of these pieces get recoloured properly even if you do own all land around them (like, for example, in Bengalia, one province almost in the middle of India, large parts of Arabia, parts of Egypt etc.) and just remain white. This is not aesthetical, you know). And I wonder how it can be changed (ideally without using the map editor), maybe there is a file where I can found information and understand whether impassable terrain will be filled in or not?
 
Last edited:

Undead Martyr

Colonel
99 Badges
Sep 8, 2013
1.135
676
  • Victoria: Revolutions
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Magicka
  • Europa Universalis IV: Res Publica
  • Crusader Kings II
  • Semper Fi
  • Sengoku
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Jade Dragon
  • Magicka 2
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Third Rome
  • Europa Universalis III
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Cities: Skylines - Snowfall
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • War of the Roses
  • Stellaris: Nemesis
  • Europa Universalis III Complete
  • Europa Universalis III Complete
So I'm sort of at wit's end here. Why does the map insist on painting a major river like a lake? Doesn't matter if I edit by hand or in the editor, it just won't let me lower the terrain inside a river without causing a massive crater in the vicinity.
 

Cmushi

Second Lieutenant
13 Badges
Feb 2, 2014
162
84
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV
  • Victoria 2
  • Cities: Skylines
  • Pillars of Eternity
  • Hearts of Iron IV: Cadet
  • Surviving Mars
  • Age of Wonders III
  • Surviving Mars: Digital Deluxe Edition
  • Imperator: Rome
  • Crusader Kings II
  • Crusader Kings II: Sons of Abraham
I am trying to create a world map using this the attached heightmap.

I created a mod folder via the launcher, placed the heightmap inside a folder map_data, openned the map editor and now I cannot figure out how to open the new heightmap.

Note that the map can act weird at first when creating a new one from scratch. Put in your own heightmap in heightmap.bmp, then do an export, restart the editor, that should create a new set of files and align everything.

Do i need to replace the heightmap of the vanilla folder? Wouldn't that break the game?
 

Attachments

  • heightmap.zip
    174,1 KB · Views: 13

Carlberg

Lead Artist - CKIII
41 Badges
Oct 17, 2014
204
1.186
  • Crusader Kings II
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Paradox Order
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Magicka
  • Lead and Gold
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Cities in Motion 2
  • Dungeonland
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Europa Universalis IV: Art of War
  • Shadowrun: Dragonfall
  • Magicka 2: Ice, Death and Fury
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris Sign-up
  • Shadowrun Returns
  • Magicka 2
  • Shadowrun: Hong Kong
  • Prison Architect
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • War of the Roses
  • The Showdown Effect
  • Europa Universalis IV
I am trying to create a world map using this the attached heightmap.

I created a mod folder via the launcher, placed the heightmap inside a folder map_data, openned the map editor and now I cannot figure out how to open the new heightmap.

Do i need to replace the heightmap of the vanilla folder? Wouldn't that break the game?

Replacing the heightmap would change it in the editor, so keep a copy of the original file (or just re-verify game cache if you're using steam and it'll reset)
The game itself uses the packed heightmap and indirection heightmap files. You can temporarily replace the heightmap in the base game, then use the "save as" button in the top left to designate the new area for the heightmap to end up (your mod folders).

When loading a new heightmap odds are it'll not look correctly, but its usually because the editor is seeing both old and new data. By saving it (and possibly doing a heightmap resolution repack under the heightmap resolution tool) it should get a fresh set of data to work from. So after saving, reboot the game/editor and it should have the new data.
 

kinkx

Recruit
Jun 1, 2019
3
4
Hello lads,

thank you for all the support on modding the map. Its all super easy to understand and modify.

Im just having on minor issue when adding a new province.

Any new province is displayed as: PROV7908_hellenic on the map instead of the name I assigned in the ImperatorRome\game\common\province_names file.

Can you help me?

Thanks in advance
 

Snow Crystal

Content Designer on Stellaris
60 Badges
Jan 22, 2018
1.252
3.372
  • Crusader Kings II: Holy Fury
  • Stellaris: Nemesis
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome - Magna Graecia
Hello lads,

thank you for all the support on modding the map. Its all super easy to understand and modify.

Im just having on minor issue when adding a new province.

Any new province is displayed as: PROV7908_hellenic on the map instead of the name I assigned in the ImperatorRome\game\common\province_names file.

Can you help me?

Thanks in advance

Go to Imperator\game\localization\english\provincenames_l_english.yml, here you can see how we have localized all the province names in the game. Just add your new entry to the list somewhere, and it should be shown in-game.
 

Sute]{h

Field Marshal
87 Badges
Jun 25, 2002
3.483
177
  • Europa Universalis IV: Pre-order
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome Collectors Edition
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Nemesis
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • Crusader Kings II
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis III Complete
  • Magicka
  • Majesty 2
I want to change the dimensions of the map to another shape
Currently mods cannot overwrite define files which needs to be changed for the engine to comprehend this. It can be forced, but we're still looking into making this moddable.
Is this still the case?
 

Skipper1931

Recruit
44 Badges
Apr 23, 2020
1
0
  • Stellaris: Humanoids Species Pack
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Expansion Pass
  • Stellaris
  • Surviving Mars: Digital Deluxe Edition
  • Hearts of Iron IV: Expansion Pass
  • Surviving Mars: First Colony Edition
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Expansion Pass
  • Surviving Mars: First Colony Edition
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Crusader Kings III
  • Crusader Kings II: Way of Life
  • Europa Universalis IV
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Semper Fi
  • Victoria 2
  • Cities: Skylines
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Charlemagne
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Imperator: Rome
  • Crusader Kings II: Sons of Abraham
  • Stellaris: Megacorp
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
So I'm working on completely replacing the vanilla map with my own and I've sort of hit a roadblock with the rivers. As you can see below the entire bottom half of the map doesn't appear for some reason.

If it isn't there than the bottom of the map shows up fine. error.log spits out a bunch of stuff about it being too short/circular, which leads me to believe that I put too many adjacent pixels somewhere. There's a pair of numbers to the side of each log entry which I assume are the co-ordinates of where the bad pixel is, but I have no idea how to find the location on the image that matches those cords.

Any help is appreciated!

PS: I tried posting this with screenshots of the half-rendered map and the river in rivers.bmp, but I think the spam filter flagged it since this is my first post. (I made my account to ask about this issue actually)
 

Figus

Major
72 Badges
Mar 19, 2013
547
27
  • Victoria 2: A House Divided
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Magicka
  • Europa Universalis IV: Res Publica
  • Rome Gold
  • Semper Fi
  • Crusader Kings II: Charlemagne
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Mare Nostrum
  • Tyranny: Archon Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • For The Glory
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
Hi, I'm working on a mod that completely replaces the map. Presently the map can load into the map editor for 1.3.2 but crashes when ran in 1.4. I was curious if anyone knows of any likely culprits as to why this is happening?
 

crownsteler

Colonel
63 Badges
Nov 19, 2010
821
659
  • Victoria 2
  • Europa Universalis IV: Cradle of Civilization
  • Imperator: Rome Deluxe Edition
  • Crusader Kings II
  • Cities: Skylines
  • Stellaris
  • Crusader Kings III
  • Pride of Nations
  • Europa Universalis IV
  • Prison Architect
  • Hearts of Iron IV: Cadet
  • 500k Club
It took a day for me to figure out why my mod was crashing:

Every single province, both defined and undefined, needs to have an entry somewhere in the \setup\provinces folder. A single stray pixel will send your game crashing.

@Snow Crystal:
Could you guys look into this? In 1.3 a province without a history file would generate an empty province rather than crash. It would be great if we could get back to that. That made map modding a lot less sensitive and frustrating.
 
  • 1Like
Reactions:

Carlberg

Lead Artist - CKIII
41 Badges
Oct 17, 2014
204
1.186
  • Crusader Kings II
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Paradox Order
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Magicka
  • Lead and Gold
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Cities in Motion 2
  • Dungeonland
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Europa Universalis IV: Art of War
  • Shadowrun: Dragonfall
  • Magicka 2: Ice, Death and Fury
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris Sign-up
  • Shadowrun Returns
  • Magicka 2
  • Shadowrun: Hong Kong
  • Prison Architect
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • War of the Roses
  • The Showdown Effect
  • Europa Universalis IV
So I'm working on completely replacing the vanilla map with my own and I've sort of hit a roadblock with the rivers. As you can see below the entire bottom half of the map doesn't appear for some reason.

If it isn't there than the bottom of the map shows up fine. error.log spits out a bunch of stuff about it being too short/circular, which leads me to believe that I put too many adjacent pixels somewhere. There's a pair of numbers to the side of each log entry which I assume are the co-ordinates of where the bad pixel is, but I have no idea how to find the location on the image that matches those cords.

Any help is appreciated!

PS: I tried posting this with screenshots of the half-rendered map and the river in rivers.bmp, but I think the spam filter flagged it since this is my first post. (I made my account to ask about this issue actually)

it's most probably that the river system either has too many adjacent pixels, or you've tried splitting off a river and then reconnecting it. That will cause the river to fail. Also, a river system can only have one river which has a green starting dot, all others need to have connecting or splitting off pixels.

If you use Photoshop you can go to window>info, that window will tell you the coordinate you're pointing at on the canvas ( X Y )
upload_2020-4-28_14-15-21.png