Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] [Linux] Some sort of exception gets thrown when I hit save and play #968

Open
DizzyDaisy909 opened this issue Nov 17, 2024 · 20 comments
Labels

Comments

@DizzyDaisy909
Copy link

Describe the issue/bug

I got thrown this exception when I hit save and play after adding some mods.

HMM Info:

    Version: 7.13-1
    Args: 
    StartDir: Z:\var\mnt\4c9fd4e8-f325-4b9e-bf6c-5eea494603aa\SteamLibrary\steamapps\common\Sonic Hedge Mod Manager\
    Process Level: Administrator
    GameInstall: Sonic Generations (2011)
    Update Status: Up To Date

Exception:

    Type: ArgumentNullException
    Message: Value cannot be null.
Parameter name: path1
    Source: mscorlib
    Function: System.String Combine(System.String, System.String)
    StackTrace: 
       at System.IO.Path.Combine(String path1, String path2)
       at HedgeModManager.Linux.PatchRegistry(Game game) in C:\Users\User\source\repos\HedgeModManager\HedgeModManager\Linux.cs:line 48
       at HedgeModManager.MainWindow.<SaveConfig>d__56.MoveNext() in C:\Users\User\source\repos\HedgeModManager\HedgeModManager\UI\MainWindow.xaml.cs:line 1139

Expected Behaviour

The settings should save, and I should be able to start Sonic Generations with the mods I've selected.

Additional Context

I'm using Fedora Silverblue 40, and the latest versions of Bottles, HedgeModManager, and Steam. SonicGMI is not installed. My system is fully updated, and exceeds the minimum requirements for Sonic Generations as well as the mod I was trying to use, the Unleashed Project.

@thesupersonic16
Copy link
Owner

Do you have a .steam directory in your home directory and is Bottles given permission to it?

@DizzyDaisy909
Copy link
Author

Do you have a .steam directory in your home directory and is Bottles given permission to it?

It's not in my home directory, I dug around and found it in ~/.var/app/com.valvesoftware.Steam/.steam .
Screenshot from 2024-11-17 19-40-58

After adding it as a directory with Flatseal, the problem persisted.
Screenshot from 2024-11-17 19-45-58
Screencast from 2024-11-17 19-47-32.webm

It also opens a second window in the top left that I can't move, as seen in the video.

@thesupersonic16
Copy link
Owner

Right now HMM only works with a normal Steam install. Could you try adding a symbolic link to ~/.steam targetting your ~/.var/app/com.valvesoftware.Steam/.steam and see if HMM works as expected? If it works I could try having HMM look for the path.

As for HMM opening another window, I have never seen this happen before.

@DizzyDaisy909
Copy link
Author

Doesn't seem to work.

Screenshot from 2024-11-17 20-42-47
Screenshot from 2024-11-17 20-43-02
Screencast from 2024-11-17 20-43-43.webm

I'd try the normal Steam install but Silverblue only lets me use Flatpak, AppImage, and anything from their store. It's idiot-proofed to a fault, it seems.

@thesupersonic16
Copy link
Owner

I will have to make a custom build later, could be HMM not following links.

@DizzyDaisy909
Copy link
Author

It could be that... sorry about this, and thank you for thinking about a custom build.

@thesupersonic16
Copy link
Owner

Remove the symlink you just made and then try this build.
HedgeModManager.zip

@DizzyDaisy909
Copy link
Author

Same result sadly.

@thesupersonic16
Copy link
Owner

When you installed HMM did it automatically detect all your Steam games, or did you manually add them?

@DizzyDaisy909
Copy link
Author

I had to manually add them.

@thesupersonic16
Copy link
Owner

Give this a try.
HedgeModManager.zip

@DizzyDaisy909
Copy link
Author

Same issue sadly.
Screencast from 2024-11-19 08-01-58.webm

@DizzyDaisy909
Copy link
Author

Hang on! It works in Lutris. I was able to save my mod layout properly and without issue. It stopped recognizing where I installed Generations so I'm gonna reinstall it properly and report back what happens.

@DizzyDaisy909
Copy link
Author

It works!! What I did in Lutris was just add the EXE with the default settings.
https://youtu.be/ydiO8i-N18s
(video was too large for inline)

@thesupersonic16
Copy link
Owner

Maybe there was permission issues set for Bottles. Which exe did you use with Lutris? Could you check all the ones sent here including the latest exe from the GitHub release?

@DizzyDaisy909
Copy link
Author

DizzyDaisy909 commented Nov 19, 2024

The latest one on the Releases as well as the two posted here work fine in Lutris and don't work in Bottles. They have the same permissions according to Flatseal.
Screenshot from 2024-11-19 18-51-26
Screenshot from 2024-11-19 18-51-20
Screenshot from 2024-11-19 18-51-06
Screenshot from 2024-11-19 18-50-40

Both use the default permissions other than the extra folders Lutris needs.

@thesupersonic16
Copy link
Owner

Interesting how Lutris works. Does Lutris automatically install .NET on its own? Also not sure how the release HMM was able to work since you are using the flatpak version of Steam. Maybe it is creating its own symlink.

@DizzyDaisy909
Copy link
Author

Sorry for not seeing this. Yeah, Lutris installs .NET on its' own. I'm just as in the dark as you are though about how this is working. I'd examine further if I knew how to do that.

@DizzyDaisy909
Copy link
Author

Update! The 2nd modified version works better than the normal exe. Both work but the unmodified one works maybe 75% of the time. Dunno what that's about but that's what's happening. That 25% of the time, it throws the same mscorlib exception as before.

Copy link

This issue is stale because it has been open for 30 days with no activity. Please comment on this issue if you don't want it to automatically close in 14 days.

@github-actions github-actions bot added the stale label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants