Lovrom8 / RSMods

383 stars 34 forks source link

Cannot open rsmods.exe - Object reference not set #113

Closed ExistentialBrew closed 2 years ago

ExistentialBrew commented 2 years ago

Hello,

I'm trying to install RSModsInstaller-v1.2.6.5 on my machine. My game is stored on a special M2 drive, formatted as J;\, instead of being on my C:. When the installer executable deploys the .dll's and other content into the RS folder, it needs me to select the correct folder, which I do (J:\Games\steamapps\common\Rocksmith2014)

Within J:\Games\steamapps\common\Rocksmith2014\RSMods in the GUI_Settings.ini, the directory is set to RSPath = J:\Games\steamapps\common\Rocksmith2014\

When I attempt to open rsmods.exe, I get the following error

Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object. 
  at RSMods.Mainform.Startup_LoadrocksmithProfiles() in C:\projects\rsmods\GUI\UI.cs:line 320
  at RSMods.Mainform..ctor() in C:\projects\rsmods\GUI\UI.cs:line 130
  at RSMods.Program.Main() in C:\projects\rsmods\GUI\Program.cs:line 19

image

That directory does not exist, and I cannot launch the program as a result. I have inspected all the files I can for configuration, but none of them are incorrect. Everything appears to be in working order.

Is there something I'm doing wrong with this? Can I just edit the .ini file in the main RS folder, or do I need the RSMods.exe to make the real magic happen?

ffio1 commented 2 years ago

Hey @ExistentialBrew ,

Can you download the latest version of mods from here: https://github.com/Lovrom8/RSMods/releases/tag/RSModsInstaller-v1.2.6.5_OnCommit

and send another screenshot of what the error is? The file that the error is in has been changed since the build you are using, and I want to make sure that I'm not looking in the wrong section of the code.

I have an idea of what is going wrong.

ExistentialBrew commented 2 years ago

Hello,

I removed the previous install folder and files added to my Rocksmith folder, downloaded your package, and re-deployed to the folder. It appears to still be the same error as before: image

For what it's worth, I am fairly tech-capable, so I can probably follow most instructions.

I appreciate your help!

ffio1 commented 2 years ago

I made a change to the code that might handle this exception.

Can you test it out by running the installer again, available here: https://github.com/Lovrom8/RSMods/releases/tag/RSModsInstaller-v1.2.6.5_OnCommit

ExistentialBrew commented 2 years ago

That fixed it! Thank you so much!

ffio1 commented 2 years ago

Thanks for reporting this!

Feel free to let us know if you find anymore issues in the mods. Enjoy!