Bug: Reloaded-II doesn't start at all (via `apphost`, no .NET Runtime log)
Describe the Bug The program Reloaded-II itself does not open, even when I try to run it as administrator. Tried reinstalling Reloaded-II and its Runtime prerequisites, restarting the PC multiple times, but still no success. I'm at a loss on what to troubleshoot or report because Event Viewer isn't logging any .NET Runtime error messages.
To Reproduce Steps to reproduce the behaviour:
- Install .NET Runtime 9.0 and VC++ redists;
- Do a clean installation of Reloaded-II by using the latest "Setup.exe" provided;
- Double-click on "Reloaded-II.exe";
- Program doesn't start, Event Viewer logs AppError.
Expected Behaviour The program starts normally.
Screenshots
Additional Context This is the first launch of the program (never installed it before) and the SDK version of .NET is installed on my PC.
Event Viewer AppError log:
Faulting application name: Reloaded-II.exe, version: 1.28.3.0, time stamp: 0x67200000 Faulting module name: KERNELBASE.dll, version: 10.0.19041.2913, time stamp: 0xa1c3e870 Exception code: 0xc0000602 Fault offset: 0x000000000012d862 Faulting process id: 0xd04 Faulting application start time: 0x01db5f283d18e2fa Faulting application path: C:\Mods\P4G-Mods_Reloaded-II\Reloaded-II.exe Faulting module path: C:\Windows\System32\KERNELBASE.dll Report Id: b025d596-172c-4486-bc5c-46785f320fa9 Faulting package full name: Faulting package-relative application ID:
I've got no idea at the moment myself. Seems you're on Win 10. I'd check antivirus logs, and extract a fresh copy just in case.
You're running a version of Windows 10 which is 3 years out of support by the way. It could just also be a .NET 9 issue with your Windows build. (Out of my control)
There was a person like this the other day, also couldn't boot on same Windows version https://github.com/Reloaded-Project/Reloaded-II/issues/521
Though their error was a bit different from yours.
Checked if there was anything on Windows Defender logs, but nothing of significance. Also tried running a fresh copy but to no avail, as you can see here on Event Viewer.
Also, Powershell says I'm running a different version of Windows than what EV declares, that is, it isn't 19041 but 19045
I also tried what #521 did but it still failed.
Oh, that is quite interesting, hmm. I currently have no ideas in any case.
A random thing you can try though is open a command prompt/powershell in the Reloaded folder and try dotnet Reloaded-II.dll.
It should bypass the shipped EXE and boot it via .NET Runtime directly, maybe that'll have some more info.
A random thing you can try though is open a command prompt/powershell in the Reloaded folder and try
dotnet Reloaded-II.dll.
That seems to work wtf
I'm guessing for some reason your OS doesn't like the Reloaded-II.exe file. That file is generated by the .NET runtime itself (i.e. apphost), not entirely sure why it'd fail to boot up for you.
I guess that's correct, seems to be some compatibility issue or something with the .exe
Tested it again and bypassing the .exe with cmd is making it launch reliably
I'm happy to provide any information that could help solve this issue. Needless to say, but Reloaded doesn't like that it's launching P4G from a .NET host rather than its executable
That's completely separate, just make sure that the path to the game in the launcher (in Edit Application menu) matches the log (where it says Current Process Location).
Yours may have desynced due to moving game, etc.
I asked in the C# Discord where some of the .NET Runtime devs are as to how they would prefer an issue like the above launcher boot failure to be reported to them.
(Since the EXE is entirely generated by .NET SDK, not any of my code)
Yes, it's the same path. Updating it again on the menu doesn't seem to solve the desync though
Anyway, I hope in all good luck this can be solved
That's weird, this should by all means work.
Check the .json in Reloaded-II's Apps folder.
(Off the top of my head: Reloaded-II/Apps/AppConfig.json)
There's a failsafe to match the game configuration by the AppId field, which is the lowercase version of the game's exe name. It's kicking in on your log, so strange the boot still fails.
The other thing that technically could go wrong is the folder to Apps saved in the loader config (you csn open folder to loader config via about/settings page of launcher). It's another .json file in AppData/Roaming/Reloaded-Mod-Loader-II
Your launcher should override it but it technically is able to point to a different Reloaded install if it exists.
Mentioning this in case I fall asleep by the next time I get to reply.
Here it is the contents of the first .json:
{ "AppId": "p4g.exe", "AppName": "Persona 4 Golden", "AppLocation": "C:\Games\Persona 4 Golden\P4G.exe", "AppArguments": null, "AppIcon": "icon_P4G.png", "AutoInject": false, "EnabledMods": [ "crifs.v2.hook", "p5rpc.modloader", "Ryo.Reloaded", "BGME.Framework", "p4gpc.inaba", "p4gpc.tinyfixes64", "p4g64.alternatingOpenings", "p4gpc.titlescreenfix", "p4gpc.titlescreenfix_cep", "p4gpc.culpritbossaifix64", "p4g.script.dungeon_text_fixes_JP.rudiger__gb", "p4gpc.illfacemyselffix", "p4gpc.texturefixespack64", "p4gpc.texturefixespack64_p3posters", "p4g64.customSubMenu", "p4g64.init.detaileddescriptions.rudiger__gb", "p4g64.eveningHangoutImprovements", "p4g64.produceStore", "p4g64.unmissableBooks", "p4g64.dungeonSavePoints", "p4gpc.dojimasCoffee", "p4g64.hyperspeedReading\u002B", "p4g64.betterFishing", "p4g64.craneGameRebalanced", "p4gpc.gentlefastforward_brown", "p4g64.betterQuizzes", "p4g.script.5thdungeonkeyprompt.rudiger__gb", "p4g.model.igor_blinks.rudiger__gb", "p4gpc.universecard", "p4gpc64.YCOWT", "p4gpc.musicenhancementpack", "p4gpc.restoredgameovermusic", "p4gpc.p4aufollowupportraits64_glasses", "p4gpc.animatedcutins", "p4gpc.colorfulcutins64", "p4gpc.interfaceenhancementpack", "p4gpc.slimfont", "p4g64.hiddenFieldNames", "p4gpc.configclarity", "p4gpc.polishedpersonamations", "p4g.tbl.ultimate_persona_registration.rudiger__gb", "p4g64.calendarPack" ], "WorkingDirectory": "C:\Games\Persona 4 Golden", "PluginData": { "GBPackageProvider": { "GameId": 17755 } }, "SortedMods": [ "p4gpc.communityenhancementpack13", "p4gpc.cep13divider.essentials", "crifs.v2.hook", "p5rpc.modloader", "Ryo.Reloaded", "BGME.Framework", "p4gpc.inaba", "p4gpc.tinyfixes64", "p4g64.alternatingOpenings", "reloaded.universal.fileemulationframework.awb", "CriFs.V2.Hook.Awb", "reloaded.universal.fileemulationframework.bf", "BGME.Framework.API", "reloaded.universal.fileemulationframework.bmd", "reloaded.universal.fileemulationframework", "reloaded.universal.fileemulationframework.pak", "SharedScans.Reloaded", "reloaded.universal.fileemulationframework.spd", "p4gpc.cep13divider.fixes", "p4gpc.titlescreenfix", "p4gpc.titlescreenfix_cep", "p4gpc.culpritbossaifix64", "p4g.script.dungeon_text_fixes.rudiger__gb", "p4g.script.dungeon_text_fixes_JP.rudiger__gb", "p4gpc.illfacemyselffix", "p4gpc.cep13divider.overhauls", "p4gpc.texturefixespack64", "p4gpc.texturefixespack64_p3posters", "p4g64.customSubMenu", "p4g64.init.detaileddescriptions.rudiger__gb", "p4gpc.cep13divider.expansions", "p4g64.eveningHangoutImprovements", "p4g64.produceStore", "p4g64.unmissableBooks", "p4g64.dungeonSavePoints", "p4gpc.dojimasCoffee", "p4gpc.cep13divider.balance", "p4g64.hyperspeedReading\u002B", "p4g64.betterFishing", "p4g64.craneGameRebalanced", "p4gpc.cep13divider.tweaks", "p4gpc.notvstatic64", "p4gpc.gentlefastforward_brown", "p4g64.betterQuizzes", "p4g.script.5thdungeonkeyprompt.rudiger__gb", "p4g.model.igor_blinks.rudiger__gb", "p4gpc.universecard", "p4gpc64.YCOWT", "p4gpc.cep13divider.audio", "p4gpc.musicenhancementpack", "p4gpc.restoredgameovermusic", "p4gpc.cep13divider.portraits", "p4gpc.p4aufollowupportraits64_glasses", "p4gpc.animatedcutins", "p4gpc.colorfulcutins64", "p4gpc.cep13divider.interface", "p4gpc.interfaceenhancementpack", "p4gpc.slimfont", "p4g64.hiddenFieldNames", "p4gpc.cep13divider.menus", "p4gpc.configclarity", "p4gpc.polishedpersonamations", "p4gpc.cep13divider.miscellaneous", "p4g.tbl.ultimate_persona_registration.rudiger__gb", "p4g64.calendarPack", "p4gpc.cep13divider.end" ], "PreserveDisabledModOrder": true, "DontInject": false, "IsMsStore": false }
And the second:
{ "LoaderPath32": "C:\Mods\p4g-cep_13_6-rev3\P4G-Mods\_Reloaded-II\Loader\x86\Reloaded.Mod.Loader.dll", "LoaderPath64": "C:\Mods\p4g-cep_13_6-rev3\P4G-Mods\_Reloaded-II\Loader\x64\Reloaded.Mod.Loader.dll", "LauncherPath": "C:\Program Files\dotnet\dotnet.exe", "Bootstrapper32Path": "C:\Mods\p4g-cep_13_6-rev3\P4G-Mods\_Reloaded-II\Loader\x86\Bootstrapper\Reloaded.Mod.Loader.Bootstrapper.dll", "Bootstrapper64Path": "C:\Mods\p4g-cep_13_6-rev3\P4G-Mods\_Reloaded-II\Loader\x64\Bootstrapper\Reloaded.Mod.Loader.Bootstrapper.dll", "ApplicationConfigDirectory": "C:\Mods\Release\Apps", "ModUserConfigDirectory": "C:\Mods\Release\User\Mods", "MiscConfigDirectory": "C:\Mods\Release\User\Misc", "PluginConfigDirectory": "C:\Mods\Release\Plugins", "ModConfigDirectory": "C:\Mods\Release\Mods", "EnabledPlugins": [], "LanguageFile": "C:\Mods\p4g-cep_13_6-rev3\P4G-Mods\_Reloaded-II\\Assets\Languages\en-GB.xaml", "ThemeFile": "C:\Mods\p4g-cep_13_6-rev3\P4G-Mods\_Reloaded-II\\Theme\Default.xaml", "FirstLaunch": false, "ShowConsole": true, "LogFileCompressTimeHours": 6, "LogFileDeleteHours": 336, "CrashDumpDeleteHours": 24, "NuGetFeeds": [ { "Name": "Official Repository", "URL": "http://packages.sewer56.moe:5000/v3/index.json", "Description": "Package repository of Sewer56, the developer of Reloaded. Contains personal and popular community packages." } ], "ForceModPrereleases": false, "ReloadedProcessListRefreshInterval": 1000, "LoaderSetupTimeout": 30000, "LoaderSetupSleeptime": 32, "ProcessRefreshInterval": 200, "SkipWineLaunchWarning": false, "DisableDInput": false }
Also please get some sleep lol I'm gonna hit the bed soon too
ApplicationConfigDirectory": "C:\Mods\Release\Apps",
"LoaderPath32": "C:\Mods\p4g-cep_13_6-rev3\P4G-Mods_Reloaded-II\Loader\x86\Reloaded.Mod.Loader.dll",
You have multiple Reloaded installs,
C:\Mods\p4g-cep_13_6-rev3\P4G-Mods\_Reloaded-II\C:\Mods\Release
And because files from another install are still present and are valid, they are still being used.
I'm guessing you're using the one from the CEP folder. Does that have a portable.txt file? Maybe there's a bug where portable mode doesn't force override directories before booting a game.
In any case, you can just tempoaraily move the old install folder (to make the paths invalid), then start the new launcher; it should then reset the paths in the loader config file.
Yes, CEP has a portable.txt file in it but it's empty.
And I tried doing what you said, which cleared the path/directory mismatch, but still, another error. 2025-01-05 18.33.27 ~ P4G.txt
Also, disabling some mods (e.g. Music Enhancement Pack, since it failed to load) leads to other crash errors
2025-01-05 18.35.34 ~ P4G.txt 2025-01-05 18.37.41 ~ P4G.txt 2025-01-05 18.36.56 ~ P4G.txt
Just a thought if opening the .exe still doesn't work: Reinstall VC++ redists; There was a bug in MSVC again https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2015-2017-2019-and-2022
or direct links to both (run repair if it asks): x86: https://aka.ms/vs/17/release/vc_redist.x86.exe and x64 https://aka.ms/vs/17/release/vc_redist.x64.exe
I've been getting reports in the past 24 hours of people getting start failures due to MSVC Redists seemingly not being installed. (Or Redist DLL load failures, either or) Maybe related @dreamsyntax , it's weird.