Reloaded-II icon indicating copy to clipboard operation
Reloaded-II copied to clipboard

Bug: Game crashes when singular mod is enabled despite lack of changes between previous launches.

Open BonQerss opened this issue 1 year ago • 12 comments

Describe the Bug Game crashing due to singular mod despite lack of changes between testing.

To Reproduce Steps to reproduce the behaviour:

  1. Go to (https://github.com/BonQerss/p3ppc.expandedsubmenu)
  2. Click on Code and Download Zip
  3. Build the mod in Visual Studio
  4. Launch game with mod enabled in Reloaded

Expected Behaviour Game launching with no issues and able to be tested.

Screenshots 2024-04-18 17.44.28 ~ P3P.txt

Additional Context Had this happen with another mod that I hadn't even edited on this new computer / hadn't touched in over 3 weeks.

BonQerss avatar Apr 18 '24 17:04 BonQerss

Cache has been cleared 6 times, I have restarted my computer, I have rebuilt the DLL contained inside 4 times, I have rolled back all changes to back when it was working, I have redeployed ASI loader and launched from Steam, Nothing has fixed it.

https://youtu.be/tEQ46K1VBDM Unlisted video showing what happens as well as the two logs from when I launched it. 2024-04-18 17.51.21 ~ P3P.txt 2024-04-18 17.51.31 ~ P3P.txt

BonQerss avatar Apr 18 '24 17:04 BonQerss

Log says

[10:44:28] [Reloaded] [LoaderAPI] Warning: GetController<IReloadedHooks> returned null.

Your install of Reloaded.SharedLib.Hooks is booked. Either due to AV, or due to a bad download.


Sorry for delayed response. I usually get to these in 5 minutes, but I don't have a working PC right now. Am working on room

Sewer56 avatar Apr 18 '24 18:04 Sewer56

Redownloaded it and it did not fix it.....,.

BonQerss avatar Apr 18 '24 19:04 BonQerss

Throw me a new log after redownload

Sewer56 avatar Apr 18 '24 19:04 Sewer56

According to log, still borked

[12:02:43] [Reloaded] Loading: BF Emulator for File Emulation Framework
[12:02:43] [Reloaded] - AppId   : reloaded.universal.fileemulationframework.bf
[12:02:43] [Reloaded] - Location: C:\Users\airin\Downloads\Release\Mods\reloaded.universal.fileemulationframework.bf\ModConfig.json
[12:02:43] [Reloaded] [LoaderAPI] Warning: GetController<IReloadedHooks> returned null.

Alternatively, it could happen if hooks were removed as a direct or transitive dependency of your mods, although unlikely.

Sewer56 avatar Apr 18 '24 19:04 Sewer56

maybe i just redownloaded wrong. i just need to delete the old one and then launch and it should redownload, yeah?

BonQerss avatar Apr 18 '24 20:04 BonQerss

Yeah. That usually works.

Sewer56 avatar Apr 18 '24 20:04 Sewer56

still crashes. 2024-04-18 20.03.50 ~ P3P.txt

just wanna mention that that error has been present in pretty much all of my logs, going back to before this issue. 2024-04-04 15.13.52 ~ P3P.txt

BonQerss avatar Apr 18 '24 20:04 BonQerss

Hmm, how strange. And sort of a miracle stuff worked before.

I'll delegate this to @AnimatedSwine37 (so sorry for doing this). I'm still setting up my desk and don't have a working PC right now.

Sewer56 avatar Apr 18 '24 20:04 Sewer56

No worries I'll try and have a look tonight or on the weekend.

AnimatedSwine37 avatar Apr 18 '24 20:04 AnimatedSwine37

We investigated this in a post in the Persona Modding discord server and found out the problem is unrelated to the missing hooks controller and was a bug with PAK Emulator.

I've made a pr over on the File Emulation Framework repo with a fix for that.

The seemingly random nature of the crashes was due to them being caused by accessing allocated memory. If you were lucky the memory the file is loaded into could already be allocated so you wouldn't crash.

AnimatedSwine37 avatar Apr 20 '24 06:04 AnimatedSwine37