DragonKnightOfBreeze / Paradox-Language-Support

IDEA Plugin: Paradox Language Support.
https://windea.icu/Paradox-Language-Support
MIT License
37 stars 4 forks source link

Cannot choose path for library using CK3 #7

Closed SeamusFD closed 1 year ago

SeamusFD commented 1 year ago

image When adding a new library you cannot choose a valid game folder for ck3. Works with Stellaris but not the folder structure of ck3

DragonKnightOfBreeze commented 1 year ago

The logic to check whether a directory is a game directory should be optimized for other Paradox games.

DragonKnightOfBreeze commented 1 year ago

@SeamusFD

I do not own CK3 in Steam and mainly test this plugin using Stellaris game directory and some mods. So:

Is there a json file named 'launcher-settings.json' under directory game, or it's parent directory Crusader Kings III? If it exists, please send to me.

Is the exe file named ck3.exe and where is it located in?

SeamusFD commented 1 year ago

{ "gameId": "ck3", "displayName": "Crusader Kings III", "version": "1.8.1 (Robe)", "rawVersion": "1.8.1", "distPlatform": "steam", "gameDataPath": "%USER_DOCUMENTS%/Paradox Interactive/Crusader Kings III", "dlcPath": "../game", "ingameSettingsLayoutPath": "settings-layout.json", "themeFile": "./assets/theme-settings.json", "browserDlcUrl": "https://store.steampowered.com/dlc/1158310/", "browserModUrl": "https://steamcommunity.com/app/1158310/workshop/", "exePath": "../binaries/ck3.exe", "exeArgs": [ "-gdpr-compliant" ], "alternativeExecutables": [ { "label": { "de": "Spiel im Debug-Modus öffnen", "en": "Open game in Debug Mode", "es": "Abrir juego en modo de depuración", "fr": "Ouvrir le jeu en mode débogage", "ja": "デバッグモードでゲームを開", "ko": "디버그 모드로 게임 열기", "pl": "Uruchom grę w trybie debugowania", "pt": "Abrir jogo em modo debug", "ru": "Запустить игру в режиме разработчика", "zh-hans": "以调试模式打开游戏", "zh-hant": "以調試模式打開遊戲", "tr": "Oyunu hata ayıklama modunda başlatın" }, "exePath": "../binaries/ck3.exe", "exeArgs": [ "-gdpr-compliant","-debug_mode" ] } ] } That is the launcher settings. And yes, it's path is in the exePath which is the Crusader Kings III/binaries/ck3.exe NOTE: the launcher-settings.json is inside the launcher folder shown in the next comment

SeamusFD commented 1 year ago

Also the project structure is like this image the game folder holds all the needed common, history etc folders

DragonKnightOfBreeze commented 1 year ago

So how tricky it is... image

SeamusFD commented 1 year ago

Yeah I would help with a PR but I cannot get the project to work anymore

DragonKnightOfBreeze commented 1 year ago

It will be fixed on next version, with some new features about "scopes". yeah. So CWTools will be likely useless when next version of my plugin is released o( ̄︶ ̄)o

SeamusFD commented 1 year ago

Very nice, when can I expect the new version?

DragonKnightOfBreeze commented 1 year ago

Hre is a preview (scope context inlay hints):

image

Also scope context quick documentation (should be different from CWTools).