From e15c7b23acf164e81a4c2541ff3fabcc4d010820 Mon Sep 17 00:00:00 2001 From: Adan Rehtla Date: Sun, 10 Jul 2022 11:47:09 +1000 Subject: [PATCH 1/3] Add Epic Installation Detection --- IdleCombos.ahk | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/IdleCombos.ahk b/IdleCombos.ahk index 5a1ad02..d27be95 100644 --- a/IdleCombos.ahk +++ b/IdleCombos.ahk @@ -69,6 +69,17 @@ global RedeemCodeLogFile := "redeemcodelog.json" global JournalFile := "journal.json" global CurrentSettings := [] global GameInstallDir := "C:\Program Files (x86)\Steam\steamapps\common\IdleChampions\" +global GameClientEpic := "C:\ProgramData\Epic\UnrealEngineLauncher\LauncherInstalled.dat" +if FileExist(GameClientEpic) { + FileRead, EpicJSONString, %GameClientEpic% + EpicJSONobj := JSON.parse(EpicJSONString) + for each, item in EpicJSONobj.InstallationList { + if item.AppName = "40cb42e38c0b4a14a1bb133eb3291572" { + GameInstallDir := item.InstallLocation "\" + break + } + } +} global WRLFile := GameInstallDir "IdleDragons_Data\StreamingAssets\downloaded_files\webRequestLog.txt" global DictionaryFile := "https://raw.githubusercontent.com/dhusemann/idlecombos/master/idledict.ahk" global LocalDictionary := "idledict.ahk" From d40612cc33844f0cd70ef6d14f31b9ca109b7efa Mon Sep 17 00:00:00 2001 From: Adan Rehtla Date: Sun, 10 Jul 2022 12:02:04 +1000 Subject: [PATCH 2/3] Add Epic Game Launch Via Epic Games --- .gitignore | 1 + IdleCombos.ahk | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index b4036e9..508bd94 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ IdleCombos.ahk.bak userdetails.json idlecombosettings.json idlecombolog.txt +eos_loader_log.txt .vscode/settings.json diff --git a/IdleCombos.ahk b/IdleCombos.ahk index d27be95..8357b3f 100644 --- a/IdleCombos.ahk +++ b/IdleCombos.ahk @@ -70,12 +70,14 @@ global JournalFile := "journal.json" global CurrentSettings := [] global GameInstallDir := "C:\Program Files (x86)\Steam\steamapps\common\IdleChampions\" global GameClientEpic := "C:\ProgramData\Epic\UnrealEngineLauncher\LauncherInstalled.dat" +global GameClientEpicLauncher := "" if FileExist(GameClientEpic) { FileRead, EpicJSONString, %GameClientEpic% EpicJSONobj := JSON.parse(EpicJSONString) for each, item in EpicJSONobj.InstallationList { if item.AppName = "40cb42e38c0b4a14a1bb133eb3291572" { GameInstallDir := item.InstallLocation "\" + GameClientEpicLauncher := "com.epicgames.launcher://apps/40cb42e38c0b4a14a1bb133eb3291572?action=launch&silent=true" break } } @@ -88,6 +90,9 @@ global ICSettingsFile := A_AppData StringTrimRight, ICSettingsFile, ICSettingsFile, 7 ICSettingsFile := ICSettingsFile "LocalLow\Codename Entertainment\Idle Champions\localSettings.json" global GameClient := GameInstallDir "IdleDragons.exe" +if GameClientEpicLauncher != "" + GameClient := GameClientEpicLauncher + ;Settings globals global ServerName := "ps7" From bb14a3c5635974f15757a837068b47aa1f3b1cb4 Mon Sep 17 00:00:00 2001 From: Adan Rehtla Date: Sun, 10 Jul 2022 12:09:20 +1000 Subject: [PATCH 3/3] Move EPIC Game ID to separate value --- IdleCombos.ahk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/IdleCombos.ahk b/IdleCombos.ahk index 8357b3f..066e22e 100644 --- a/IdleCombos.ahk +++ b/IdleCombos.ahk @@ -69,15 +69,16 @@ global RedeemCodeLogFile := "redeemcodelog.json" global JournalFile := "journal.json" global CurrentSettings := [] global GameInstallDir := "C:\Program Files (x86)\Steam\steamapps\common\IdleChampions\" +global GameIDEpic := "40cb42e38c0b4a14a1bb133eb3291572" global GameClientEpic := "C:\ProgramData\Epic\UnrealEngineLauncher\LauncherInstalled.dat" global GameClientEpicLauncher := "" if FileExist(GameClientEpic) { FileRead, EpicJSONString, %GameClientEpic% EpicJSONobj := JSON.parse(EpicJSONString) for each, item in EpicJSONobj.InstallationList { - if item.AppName = "40cb42e38c0b4a14a1bb133eb3291572" { + if item.AppName = GameIDEpic { GameInstallDir := item.InstallLocation "\" - GameClientEpicLauncher := "com.epicgames.launcher://apps/40cb42e38c0b4a14a1bb133eb3291572?action=launch&silent=true" + GameClientEpicLauncher := "com.epicgames.launcher://apps/" GameIDEpic "?action=launch&silent=true" break } }