#(SOLVED) Reloaded-II's ASI loader no longer seems to work in 1.23.x

108 messages · Page 1 of 1 (latest)

hoary schooner
#

I have tested this on Garuda Linux, SteamOS (Deck), and Windows 10. In all situations, the R2 app does run, but attempting to run P5R via ASI loader is not successful.

On Garuda and SteamOS, either the play button in Steam returns to "stop," or it spins out not doing anything.

On Windows, the game is booted up straight away without the R2 console popping up.

Things I have tried:

  • Starting with a fresh copy of Reloaded
  • Reinjecting ASI, including deleting the old one + dinput8.dll
  • Downgrading to v1.22.9

No logs are created because it doesn't seem like R2 is loading at all via ASI.

Windows note: The game still boots with R2 mods if I use the R2-based shortcut, but that's not usable in Linux. As of now, I have to use v1.22.9 to get the mods applied to the game.

#

@distant igloo this will apply to you too if it gets resolved.

#

Reloaded-II's ASI loader no longer seems to work in 1.23.x

red fractal
#

if you've tested on three platforms and you get the same results this seems like an R2 bug that needs to be raised with Sewer rather than shared here for the community to try and troubleshoot. Unless I've misunderstood?

distant igloo
#

Well what is an ASI? Cool that it will help me if it gets fixed but idk what that means lol

hoary schooner
turbid veldt
#

goddamn it

red fractal
#

lol

hoary schooner
#

I guess it is now hah

turbid veldt
#

I might need to bring back JSON parser to bootstrapper

#

And take a hit of 200kB

#

Reading from environment variables is clearly causing people issues.

#

The launcher should be writing these, and bootstrapper picking these up:

hoary schooner
turbid veldt
#

But it seems using environment variables is causing some people problems potentially, am not sure why.

hoary schooner
turbid veldt
#

Check if those env vars are set

surreal frigate
#

+1 for latest version isn't working on steam deck, I can't even get the game to launch with no mods installed via rii

surreal frigate
#

Good to know a downgrade will help for now

turbid veldt
#

I think I'll need to bring back the JSON parser in any case, it kinda dawned on me this causes potential issues on Linux

#

when people use Wine with launcher and Proton for game

#

in which case Launcher is never ran in Proton's WINEPREFIX and env vars are not set

hoary schooner
#

(Win 10)

#

at first I thought maybe it was a case-sensitivity thing, but then I realized that I'm in Windows which doesn't have that problem

turbid veldt
#

ASI Loader should work on Windows on current update, but I think I'll need to revert the change that removed Loader Config JSON parsing either way.

hoary schooner
#

the folders are named Loader/X86 while the env refers to Loader/x86

turbid veldt
#

Yeah the env var looks right

hoary schooner
#

it's not working in Windows either

turbid veldt
#

weird, it runs on my end in Windows

hoary schooner
#

just tried 1.23.3, and it's still booting straight into the game on Win10

turbid veldt
#

you are using latest bootstrapper, right?

#

just making sure

#

since it was updated

hoary schooner
#

yep. deleted the old .dll and .asi just in case

turbid veldt
#

Usually it auto updates on launcher launch, if it can find it

#

alright

hoary schooner
#

I did see that update notification on all platforms

#

but I still manually deployed when things weren't working

turbid veldt
#

I guess I'll revert the change for now.

#

after some food

hoary schooner
#

Thanks!

surreal frigate
#

I'm not sure if my issue is related now, since downgrading did nothing to fix my crash and the logs aren't throwing any errors

turbid veldt
#

I reverted the change and update should roll out when it completes on GitHub Actions, am gonna nap now.

#

Anyway the revert should be live.

#

now I nap

hoary schooner
#

looks like it works in Windows. I'll test it in Linux soon enough. Thanks!

Also, the version number is now 1.24.4 while github says 1.23.4

turbid veldt
#

Yeah I fixed the tag

#

I did mistag it but it should be okay for now

hoary schooner
turbid veldt
#

Ensure Visual C++ Runtime is available in WINEPREFIX

#

(I'll likely be asleep soon)

hoary schooner
#

it's all in there. I just started with a fresh prefix as well, redid vc++ x64/x86 and also .net x64/x86

turbid veldt
#

But the only other change bootstrapper had was usage of VCRedist

hoary schooner
#

let me download a different version of vc to see if that matters

turbid veldt
#

If bootstrapper from 1.22.9 works but not current one it's a Redist issue.

hoary schooner
#

click play, waits a second, then goes back to play

#

on Deck, it stays at "stop" without returning to "play" or loading the bootloader

#

time to bust out the command line to see if anything shows up in the logs there

#

the last line is concerning:

wine: Unhandled page fault on write access to 0000000180022E20 at address 0000000170037F6B (thread 0134), starting debugger...

hoary schooner
#

I jumped around to too many devices/proton versions Naofacepalm

turbid veldt
#

Denuvo :)

turbid veldt
hoary schooner
#

I have proton logs and steam command line logs if you think they'll help

turbid veldt
#

I'm just confused if anything, only change now from 1.22.9 is usage of VCRedist

hoary schooner
#

which version are you building with?

#

I'm using the Nov. 10 VC++ redist covering 2015-2022 (14.32.31931.0)

turbid veldt
#

Yeah 2015+ should be it

hoary schooner
#

when running 1.22.9, the Proton log spits out 30573.657:0134:0138:trace:loaddll:build_module Loaded L"Z:\\home\\deck\\.local\\share\\Steam\\steamapps\\common\\P5R\\scripts\\Reloaded.Mod.Loader.Bootstrapper.asi" at 0000000001370000: native

when running 1.24.x, it doesn't have the word "Reloaded" or "asi" anywhere in the log

turbid veldt
#

Is it just not seeing the Redist at all? Strange

hoary schooner
turbid veldt
#

Yeah that's the C Runtime

#

for MSVC it should also be VCRuntime140.dll IIRC

#

I'd need to check DLL header

hoary schooner
#

the working log is also like 5-15MB depending on what device I'm using. the not working log is only about 175KB

turbid veldt
#

I guess I'll need to spin up a VM just in case, methinks

hoary schooner
#

I am trying to compare the logs at the point where R2's asi should be loaded

hoary schooner
#

I can upload these Proton logs somewhere if you think they'll be at all useful

turbid veldt
#

Sure if you wanna go for it

hoary schooner
#

files ending with "notworking" are running 1.23.4. "working" files are 1.22.9

#

if you search for P5R\\dinput8.dll, you can find a few lines after whether Reloaded's ASI is loaded or it fails

turbid veldt
#

I'm gonna try something

#

There's an unsafe optimisation I did

#

Related to alignment of DLL

#

To save like 1kB

hoary schooner
#

is there a limited amount of headroom you're allowed to use when injecting mods this way?

turbid veldt
#

Nah I just wanted to save every byte possible hahaha

#

Since the bootstrapper kinda just idles

#

I'm bummed it's 60kB larger again because JSON parser

hoary schooner
#

where should that dll go?

turbid veldt
#

In place of the one in latest version

#

in x64 folder

hoary schooner
#

looks like it works!

turbid veldt
#

Aight, I know what the issue is

hoary schooner
#

can't really progress more than the console here though. at least everything loaded. Denuvo

turbid veldt
#

I didn't expect it would have tripped up Wine though

turbid veldt
#

I'm having a snack, I'll roll another update with hotfix when I finish up munching

hoary schooner
#

hah at least you found the problem

turbid veldt
#

I was just trying to save space real hard hahaha

#

Maybe a bit too hard