ImperatorToCK3 icon indicating copy to clipboard operation
ImperatorToCK3 copied to clipboard

Convert random country flags

Open IhateTrains opened this issue 2 years ago • 1 comments

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 avatar Nov 30 '23 14:11 IhateTrains

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

IhateTrains avatar Nov 30 '23 14:11 IhateTrains