ParadoxGameConverters / ImperatorToCK3

Converts Imperator: Rome saves into Crusader Kings III mods
MIT License
24 stars 20 forks source link

Convert random country flags #1618

Closed IhateTrains closed 2 months ago

IhateTrains commented 9 months ago

Imperator has a coat_of_arms console command to print a tag's flag to logs\games.log. The converter could use it to export flag definitions for all countries that use random flags. That way every country could have its flag exported to CK3.

We could launch a specific save in Imperator by doing what PdxUnlimiter does: https://github.com/crschnick/pdx_unlimiter/wiki/User-Guide#launching-savegames https://github.com/crschnick/pdx_unlimiter/blob/e484551b4ee1f653029243d38f0167e5e0a66a9a/pdxu-app/src/main/java/com/crschnick/pdxu/app/util/integration/IronyHelper.java#L4

Then the next thing to figure out is how to run a specific console command without requiring user interaction. EDIT: something like this could be used, at least on Windows: https://stackoverflow.com/questions/42498440/sendkeys-to-a-specific-program-without-it-being-in-focus

IhateTrains commented 9 months ago

For launching a specific Imperator save (skipping the launcher and main menu) we can use the -continuelastsave option documented in CK3: https://ck3.paradoxwikis.com/Modding#Launch_options

Possible command line: .\imperator_win_console.exe -continuelastsave -debug_mode -nographics

The last played save's name (without the .rome extension) is stored in /Paradox Interactive/Imperator/continue_game.json