olegbl / d2rmm

Mod Manager for Diablo II: Resurrected
https://www.nexusmods.com/diablo2resurrected/mods/169
MIT License
54 stars 9 forks source link

Unable to install certain mods, getting a runtime error. #17

Closed AquaRush closed 4 months ago

AquaRush commented 4 months ago

The issue

image

Name of mods

Information

Strangely, the D2RMM was working perfectly fine on the pirated version of D2R, the reason I say pirated is because first time I tried D2RMM with retail version, it simply threw a lot of errors and the game wasn't even starting, Nexusmod comments stated to re-install the game which I did not want to do as I've modded it a lot.

Fast forward a week, I decided to switch to retail version from pirated by manually saving all the modifications I've done and completely reinstalled the game moving it from the SSD directly onto the nVME Local Disk (C:). I also did a complete reinstall of D2RMM just to make everything as a fresh start and:

Help is greatly appreciated, I was unable to export the full logs statement as GitHub would crash with all the overloaded information.

Thank you in advance for your assistance.

olegbl commented 4 months ago

This error indicates that CascLib cannot read those files from the game's data:

https://github.com/olegbl/d2rmm/blob/c6310f766ae80c48b3557d42637bce939c89f29e/src/main/api.ts#L258-L271

Generally, that means something is wrong with your setup and you should be able to reproduce the issue using CascView.

The error code (11) means ERROR_BAD_FORMAT (https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-erref/18d8fbe8-a967-4f1c-ae50-99ca8e491d2d) and implies that the file is corrupt.

For solutions:

  1. Reinstalling the game should help.
  2. You could also try extracting all the data with CascView and use "Pre-Extracted Data" instead of "Casc Archive" as "Game Data Source", though I think you'd run into the same issue.

Closing as this is not a bug (at least, not a D2RMM one.)

AquaRush commented 4 months ago

This error indicates that CascLib cannot read those files from the game's data:

https://github.com/olegbl/d2rmm/blob/c6310f766ae80c48b3557d42637bce939c89f29e/src/main/api.ts#L258-L271

Generally, that means something is wrong with your setup and you should be able to reproduce the issue using CascView.

The error code (11) means ERROR_BAD_FORMAT (https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-erref/18d8fbe8-a967-4f1c-ae50-99ca8e491d2d) and implies that the file is corrupt.

For solutions:

  1. Reinstalling the game should help.
  2. You could also try extracting all the data with CascView and use "Pre-Extracted Data" instead of "Casc Archive" as "Game Data Source", though I think you'd run into the same issue.

Closing as this is not a bug (at least, not a D2RMM one.)

I have solved the issue, for future reference in case someone else struggles with the same issue as I did, CascViewer both x86/x64 (latest version and hivework version) gave me an error upon extraction, @olegbl was right that files seem to be corrupt because CascViewer could not extract all the data.

The issue comes from admin privileges, if you install it in the default path Local Disk (C:), uninstalling the game and installing to another nVME (say Local Disk (E:) did the job and I didn't even have to extract the data using CascViewer.

Thank you for the assistance @olegbl :)