RockmanEXEZone / chaudloader

Mod loader for Mega Man Battle Network Legacy Collection.
https://forums.therockmanexezone.com/mmbnlc-pc-chaudloader-mod-loader-for-mega-man-batt-t16732.html
MIT License
30 stars 4 forks source link

installer crashes with out-of-bounds access in non-application code #11

Open LanHikariDS opened 1 year ago

LanHikariDS commented 1 year ago

Trying to install chaudloader just causes the window to flash and do nothing. Opening the program through a prior command prompt window shows `Welcome to the chaudloader installer.

thread 'main' panicked at 'range end index 20 out of range for slice of length 0', /rustc/2f2c438dce75d8cc532c3baa849eeddc0901802c\library\alloc\src\vec\mod.rs:1992:36 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace` I previously had BNLC installed on my E: drive, but both moving it to C: and uninstalling/reinstalling on C: still cause the same issue.

bigfarts commented 1 year ago

Can you run it with RUST_BACKTRACE=1 and post the output?

LanHikariDS commented 1 year ago

I have no idea how to do that, I tried "install.exe -RUST_BACKTRACE=1", and that threw an error

bigfarts commented 1 year ago

Could you run set RUST_BACKTRACE=1 in the command prompt before running the installer?

LanHikariDS commented 1 year ago

thread 'main' panicked at 'range end index 20 out of range for slice of length 0', /rustc/2f2c438dce75d8cc532c3baa849eeddc0901802c\library\alloc\src\vec\mod.rs:1992:36 stack backtrace: note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.

Setting backtrace to full shows- thread 'main' panicked at 'range end index 20 out of range for slice of length 0', /rustc/2f2c438dce75d8cc532c3baa849eeddc0901802c\library\alloc\src\vec\mod.rs:1992:36 stack backtrace: 0: 0x7ff628f53f4c - 1: 0x7ff628f67fab - 2: 0x7ff628f50209 - 3: 0x7ff628f53cfb - 4: 0x7ff628f55d49 - 5: 0x7ff628f559ff - 6: 0x7ff628f56236 - 7: 0x7ff628f5612d - 8: 0x7ff628f548c9 - 9: 0x7ff628f55e40 - 10: 0x7ff628f6fcd5 - 11: 0x7ff628f70204 - 12: 0x7ff628ee2492 - 13: 0x7ff628ee1f52 - 14: 0x7ff628ee06ff - 15: 0x7ff628ee079b - 16: 0x7ff628ee079b - 17: 0x7ff628ee1801 - 18: 0x7ff628ee3339 - 19: 0x7ff628edff65 - 20: 0x7ff628edcb50 - 21: 0x7ff628edb006 - 22: 0x7ff628ed424a - 23: 0x7ff628f48868 - 24: 0x7ff628edf85c - 25: 0x7ff628f6c7c4 - 26: 0x7ffbe13d7614 - BaseThreadInitThunk 27: 0x7ffbe32826a1 - RtlUserThreadStart

bigfarts commented 1 year ago

It's likely that for one reason or another it can't find your Steam installation. Can you try copying chaudloader.dll and dxgi.dll manually into the BNLC folder? Should be placed in the same directory as MMBN_LC1.exe, MMBN_LC2.exe.

LanHikariDS commented 1 year ago

Now BNLC doesn't open, and the modloader installer does the same thing as before

bigfarts commented 1 year ago

That's so weird. You definitely have BNLC installed via Steam, and you've launched it at least once from Steam?

LanHikariDS commented 1 year ago

Yep. Preordered the collections through Steam, and have nearly 91 hours clocked in it.

LanHikariDS commented 1 year ago

I had a friend send me all his dlls (the two above, as well as chaudloader.toml and llua54.dll), and now the modloader opens for me when starting

bigfarts commented 1 year ago

Ah, I forgot about Lua. I'm going to repurpose this bug but it sounds like your issue is solved.

LanHikariDS commented 1 year ago

For me personally, sure, but if it happened to me, surely it can happen to someone else

On Tue, Jun 6, 2023, 1:32 PM bigfarts @.***> wrote:

Ah, I forgot about Lua. I'm going to repurpose this bug but it sounds like your issue is solved.

— Reply to this email directly, view it on GitHub https://github.com/RockmanEXEZone/chaudloader/issues/11#issuecomment-1579184608, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKFREJC6V6KXEZU2RBW7BWLXJ5SSBANCNFSM6AAAAAAY325O54 . You are receiving this because you authored the thread.Message ID: @.***>