Hori873

Sergeant
69 Badges
Sep 3, 2015
73
31
Hello,

I've been waiting too long for such a mod to appear for Imperator, and I had some free time last weekend.

So, here you go: a functional Shattered World mod generator Download

Please send me any feedback you might have, and definetely let me know if there are any issues.

Also, please feel free to contribute to the code.
It's open source, which means it's not my code, it's our code, just like glorious commu-... wait, no, not like that.

GitHub Repository
^ Check the README for instructions

It's available on all operating systems (although I only tested it on Linux)

Once enough of you give their feedback I'm gonna also upload one or two results to the Steam Workshop for convenience, but for now, consider this a beta.

By the way, in case it's not clear from the instructions, an example run:
./ImperatorShatteredWorldGenerator -d /games/linux/Steam/steamapps/common/ImperatorRome/ -n "Shattered World" -s 8897 --capital-population 11 --city-pops-min 2 --city-pops-max 16 --rng-countries 0
 

Hori873

Sergeant
69 Badges
Sep 3, 2015
73
31
This is where I realize I have no idea how to use this. But looks fun when it is more accessible to code illiterate people
You can open a CMD (or PowerShell) window in the folder where you extracted the tool, and paste the example from GitHub. An "out" folder will be generated with the mod inside.

To open the cmd/ps in that dir press shift and right click on a blank space in that folder window and there should be an option to open it.

After you're successful, you should start customising the values of th arguments as per the table on the GitHub page
 

tsf4

General
54 Badges
May 31, 2012
2.239
555
29
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Mare Nostrum
  • Victoria 2: A House Divided
  • Sengoku
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Heir to the Throne
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • 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
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • Imperator: Rome
  • Imperator: Rome - Magna Graecia
  • PDXCon 2017 Awards Winner
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Imperator: Rome Sign Up
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Crusader Kings III
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Victoria 2
I got the PowerShell opened from inside the folder, but how do I get it to run the tool? I typed in "ImperatorShatteredWorldGenerator" without the quotes, and then tried run in front of it, but both tries did not work. I am a complete noob when it comes to command and such.
 

Hori873

Sergeant
69 Badges
Sep 3, 2015
73
31
Try something like

./ImperatorShatteredWorldGenerator -d "C:\Program Files (x86)\Steam\steamapps\common\ImperatorRome" -n "Shattered World" -s 8897 --capital-population 11 --city-pops-min 2 --city-pops-max 16 --rng-countries 0

but make sure that the "C:\Program Files (x86)\Steam\steamapps\common\ImperatorRome" game location is correct, otherwise change it as necessary

I'm gonna make some updates tot he tool to make it easier to use. One of this days. And I'll also write a proper guide to use it. I'm gonna avoid making the user have to open a CMD/terminal window, at least on Windows.
 

tsf4

General
54 Badges
May 31, 2012
2.239
555
29
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Mare Nostrum
  • Victoria 2: A House Divided
  • Sengoku
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Heir to the Throne
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • 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
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • Imperator: Rome
  • Imperator: Rome - Magna Graecia
  • PDXCon 2017 Awards Winner
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Imperator: Rome Sign Up
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Crusader Kings III
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Victoria 2
Thanks! It started, but threw this error:

Generating a shattered world using the seed '8897'...

Unhandled Exception: System.Runtime.Serialization.SerializationException: Wrong number of CSV fields
at NuciDAL.IO.CsvFile`1.ReadLine(String line)
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
at NuciDAL.Repositories.CsvRepository`2.LoadEntitiesIfNeeded()
at NuciDAL.Repositories.CsvRepository`2.GetAll()
at ImperatorShatteredWorldGenerator.Service.EntitiesLoader.LoadCities()
at ImperatorShatteredWorldGenerator.Service.EntityManager.GetCities()
at ImperatorShatteredWorldGenerator.Service.EntityManager.GetCityIds()
at ImperatorShatteredWorldGenerator.Service.ShatteredWorldGenerator.GenerateCities()
at ImperatorShatteredWorldGenerator.Service.ShatteredWorldGenerator.Generate()
at ImperatorShatteredWorldGenerator.Program.Main(String[] args)
 

Veygryr

Recruit
59 Badges
Jul 1, 2015
8
0
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Rights of Man
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Mare Nostrum
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Natural Disasters
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris: Distant Stars
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • BATTLETECH
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • BATTLETECH - Beta Backer
  • BATTLETECH - Backer
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Crusader Kings II: Conclave
  • Europa Universalis IV
  • Imperator: Rome Sign Up
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Imperator: Rome Deluxe Edition
  • Prison Architect
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Age of Wonders III
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - After Dark
  • 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: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Crusader Kings II
Getting the same error as the one above me, with these parameters: .\/ImperatorShatteredWorldGenerator -d \Steam\steamapps\common\ImperatorRome -n "Shattered World 1" Really want to test this out, good job!

Same error with this line as well: ./ImperatorShatteredWorldGenerator -d "D:\Steam\steamapps\common\ImperatorRome" -n "Shattered"
 
Last edited:

Hori873

Sergeant
69 Badges
Sep 3, 2015
73
31
Sorry for not replying sooner.

Apparently the error originates from one of the game files itself (provinces_setup.csv). There are a few problems with some of the lines, and was introduced only in 1.1 (I was still using 1.0.* Pompey, that's why I didn't notice this error myself)

Unfortunately the errors seem to still be there in 1.2
I'll let the devs know and see if they can fix it. If not, I'll have to find some way to work around those problems

I've filed a bug report: https://forum.paradoxplaza.com/forum/index.php?threads/i-r-csv-errors-in-provices_setup-csv.1199337/
 
Last edited:

tsf4

General
54 Badges
May 31, 2012
2.239
555
29
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Mare Nostrum
  • Victoria 2: A House Divided
  • Sengoku
  • Semper Fi
  • Europa Universalis IV: Res Publica
  • Heir to the Throne
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • 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
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • Imperator: Rome
  • Imperator: Rome - Magna Graecia
  • PDXCon 2017 Awards Winner
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Imperator: Rome Sign Up
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Crusader Kings III
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Victoria 2
Thanks for the update. Good call on the bug report ! Anxiously waiting
 

Hori873

Sergeant
69 Badges
Sep 3, 2015
73
31
Hello guys,

Unfortunately I have not been playing Imperator anymore in a very long time.
I've not updated this tool anymore, and I'm not sure if the game limitations and issues that caused problems with the tool are now solved or not.

I'm not sure about when I will get the tool working again, as my time is quite limited and I'm not really interested in playing Imperator for the forseeable future.
Eventually I will, though. I just don't know when.

In any case, any of you who has C# knowledge and is willing to work on this tool, is welcome, and I will even provide support. The source code is all on GitHub (link in the first post).