-
Notifications
You must be signed in to change notification settings - Fork 64
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
HedgeModManager on Linux/Steam Deck #219
Comments
This is amazing. But far too complicated. Im new to arch linux and I have absolutely no idea how to use this to open hedgemod manager. I was looking to mod Sonic Generations, but, if this is what is necessary, then its impossible for the average joe. Elppans fala português? Então... A explicação de desse post não ta muito clara não, amigo. Mas o esforço e sucesso que você atingiu em executar o Hedgemod manager é admirável. vamos sonhar que um dia os devs do Hedgemod decidam criar uma versão linux do app. Até lá estamos ferrados. |
Tô tentando tbm e faço a menor ideia kk |
Going to be real, I have not the slightest clue how to use this. |
Olá... Eu falo português, sou do Brasil. |
É ligeiramente fácil, basta copiar cada linha e colar no terminal e ir fazendo os comandos |
It is slightly easy, just copy each line and paste it into the terminal and do the commands |
Is there a way to do this in sonic generations with the hedgemodmanager |
edit: I recommend GlowingRain's solution below I modified elppans' script to work with Sonic Generations and with the default Steam installation location:
To run the script, copy the above code into a new file called I removed the registry edits from the original script because they were causing HMM to crash (I think). One issue I have is that HMM tells me the installed codes are incompatible even though they work just fine. It also tells me to reinstall Generations Code Loader even though it also works (I suggest unchecking "Check for code loader updates"). Also, the play button in HMM does not work (but that is expected). If Generations is booting without mods, make sure the mods directory in the HMM settings is Thank you elppans for figuring out what dependancies to install to use HMM and for writing the original script! |
oh my thank you so much |
wait do i use the normal linux vertion of steam or the windows one? |
this does not work on ubuntu or its because im using the flathub vertion of steam or its because im missing the thing that you said is making it crash |
The script is for the package version of steam, not the flatpak. You need to change |
Application could not be started, or no application associated with the specifie |
I think you didn't change DATA and COMMON at the bottom of the script as well as the ones at the top. You can just open ~/.local/bin/genshmm and change them there. |
I cannot start Generations, i can start HedgeMod Manager just fine, but i cannot start Generations. It says that the Steam Client isnt running |
The play button in HMM won't work, you need to start Generations from Steam. |
Okay, Thank you, any suggestions on what to do if Generations wont start even through steam? |
If it says the game files are missing or corrupt, that is an issue that also happens with Windows. I used this guide that is for Windows. On Linux you have to copy this text into a
Then, run the command If that isn't the problem, it could be one of your mods. And if all else fails, you can wipe your Generations install and start over by uninstalling it in Steam and then deleting the |
I don't know if I should comment on a closed issue/or here, but I thought I'd hijack the initial comment here. The thing is that I find this guide & script over-complicated, Using proton's As this works in Generations, I'd suppose it'll work with Forces too and every other game that HedgeModManager supports, as I put the executable in the game's folder. I first used Proton 5-0.10 to launch the config tool to create the prefix for the
Then it booted up with no problems. After that I installed some mods (didn't play yet) to verify everything's was working, and closed it. Then I switched to Proton 6.19-GE-2 in the compatibility tab and changed the launch parameters accordingly:
And it successfully launched HedgeModManager, even downloading updates works. The I'm sorry if this isn't the place to post this information. |
THANK YOU GLOWING RAIN, OMG THIS IS SO MUCH MORE SIMPLE |
I can confirm that while installing HMM in its own Lutris instance doesn't work, @GlowingRain's tip to run HMM in a Proton prefix does work; though for the sake of full transparency, I had to do things slightly differently. The Proton 5.x series just doesn't want to cooperate with my machine at the moment (any attempt at making a from-scratch prefix fails with them for some unknown reason), so I instead pulled Proton-GE 5.9 which as of writing is the latest build that cooperates with dotnet40's installer, restarted Steam, and created the Generations prefix from scratch with it as a forced compatibility tool. Then, much the same as above, running
Aside from the first boot of HMM having some black rendering bugs, subsequent launches work perfectly fine (but the right click options popup only shows after the pointer hovers over where the menu actually is, rather than immediately). BetterFxPipeline, D3DEx, and a bunch of Unleashed Project mods were tested in conjunction and work as they should on Windows without problems. Seriously, compared to the OP's megascript, this single command and launch option change with a temporary Proton version swap is much more palatable. Absolutely worth the necro update imo. |
okay now i have a problem with @GlowingRain solution, i cannot boot it whatsoever. |
Correction, it is open, i just cannot see it |
Weird, what DE/WM are you using? (Works fine in KDE) Remember that for this to work you first need to delete the game's prefix folder (71360) in the Also... I suspect this is because of HW Acceleration being enabled, don't forget to put this in the command line.
|
Im using Gnome, that is the desktop environment, Gnome, through Pop-OS btw. |
I'm on Arch Rolling, XFCE4. |
Have you deleted the prefix between each solution? I think it's a vital step to start with a new one: delete, then launch the game for the first time with Proton 5-0.10 and immediately close it, install all dependencies/components ( Otherwise I have no idea what might be going on. I haven't touched my prefix in a while since I got the mod launcher up & running, and even updates work. You can launch Steam using the command line to see if anything relevant comes up. EDIT: Don't forget to disable hardware acceleration as indicated here:
Most of this is just trial and error. I recommend using newer versions of Proton-GE as the issues with sound are getting abolished in recent times. Right now, using Proton-6.19-GE-2 gives me weird stutters in audio and sometimes audio repeats itself but just to a minimum, it's not a big deal, since when you play your brain kind of merges everything and it doesn't become a problem until you hear it again. If you still have audio issues, a lookup in ProtonDB usually gives it away:
|
@GlowingRain I have done all of that already, but I shall attempt it again at your behest and see if it works this time. I deleted the prefix each time, used the arguments, created the prefix using the right version, switched versions correctly and did all the protontricks stuff. I hope it works this time, because if not, I'm stuck with yet another unique problem that I have on WINE/Proton that no one else does. |
@GlowingRain It is now working! I have no clue as to why it wasn't before, but it is now, using GE-7.0rc6. Thank you so much, I wish these errors wouldn't get in the way of me trying to do this so often. Sorry if I wasted your time. |
You only need winetricks for installing Microsoft's dotnet into a game's wine prefix to replace the default Wine Mono that is installed. The wiki guide for the Bottles method for installing HMM works just fine. Bottles installs HMM in its own location separate from the rest of your Sonic games. The Steam appid for Shadow Generations is listed here and in the url: https://steamdb.info/app/2513280/info/ You can use that appid to find that game's compatdata path. That is where Steam stores the Wine prefix for that game. |
Tried using bottles method on deck. did everything right. pressing save & play sends me into a black screen. game then closes. tried extracting windows.7z but same thing. wtf do i do??? |
Did you check if it still crashes with no codes enabled and no mods enabled? |
Do you plan as doing like Reloaded 2 mod loader Author and make a script to make HMM installation easier on Linux with working codes ? Or rebuild HMM to support linux, just like reloaded 2 mod loader author plan on doing with Reloaded 3 ? (pls say yes ! ><) |
A rewrite with native Linux support is in the works, however the issue with the HMMCodes crash is out of my control and will still happen until work is done on that. Right now the authors of the crashing codes are not very interested in fixing them on Linux. |
That's still better than the current way of using HMM, and maybe EGS version of Sonic games will be detected correctly on Deck and Linux this way. |
Hi everyone, |
yes it does |
I am planning on dropping Linux support on HMM 7 once the first version of HMM 8 gets published. For all of you that are having issues with HMMCodes on 64-bit games, install this to the game's registry using the Wine Registry Editor (regedit) and report back how it goes. I need to know the games, proton version and device you attempted this on, and if it helped or not. I had a small group try this with success except for one of my own machines. In the case the game becomes less functional, you may have to delete your prefix which you can find online how to do. Keep in mind doing this too much will get you temporarily blocked from Denuvo. |
So I’m using the HedgeModManager to install the Sonic Origins Ultrafix mod onto my copy of Sonic Origins on Steam. I am on the SteamDeck (Linux) and I followed every step in the Bottles guide, including the possible fixes provided in the guide, but none of it works. Every time I launch the game either through the mod manager or Steam it just opens the game with a full black screen then a couple of seconds later crashes. Disabling the mods in the manager, saving that, then launching the game allows the game to launch but of course, unmodded. I tried forcing compatibility on Sonic Origns properties but the same thing still happens. I know the mods are being added to the game because when I launch the game the panel pops up and in the games files there is in fact a mod folder. If anyone can help that would be great. |
Where is supossed to be Sonic 64-bit games Registry ? I know Sonic Gens is in HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Sega\Sonic Generations but even that game's registry, I can't find it on regedit. |
Sonic Generations is 32-bit. You can try it anyways but I dont think it would imporove anything. You need to import the file. There should be an option in the File menu to import a file. |
Oh you don't have to import it in a specific registry ? Just using the import tool will work ? Oh it's fine then !!! |
This seems to be working! I had quite a few codes and mods that weren't working, but now everything is loading properly! Aside from this, I do wonder if lags upon first loading a save are common? I frequently get pretty low fps upon first loading my save, but after getting through some loading zones and playing for a few minutes, the game plays at a regular speed (tho still slower than Windows). I don't think it's linked to the modloader so sorry if this is off-topic. As for the bottle prefix, I would suggest enabling the "Bottles Runtime" (and "Steam Runtime" for those not using Flatpak), as without those the window popups often appear black apart from dynamic and moving elements (like progress bar or dropdown after being hovered once) |
Oh so itvwas meant for bottle method. I was trying it with the following method : https://pastebin.com/yX6b1iDL. |
Weirdly enough it only worked for me when I symlinked the libraries from the Bottle into the game prefix as listed in the troubleshooting section (not by manually copying them from the provided archive) |
Bottle method, symli k made, registry edit : now loads the game but crash on a black screen 3 second after booting. |
dropping? |
I'm guessing they mean once HMM 8 releases they won't help with getting HMM 7 or lower working on linux, is that correct? |
Yeah. I don't want to be maintaining two codebases on Linux which is meant to serve the same purpose. HMM 8 will be running on frameworks designed to work on Linux unlike HMM 7 which uses Windows only frameworks. Providing support should be easier with HMM 8 as we can cut out issues with running HMM itself and focus more on just getting the games to work. If any of you know other ways to get the 64-bit games (which is the main focus) working with codes, let me know. The option for symlinking .NET Framework 4.8 will not work with HMM 8, while the extracting the 7z method will work (atleast it works on all of my Linux machines that have a display). HMM 8 currently will use the extract archive method as it is less likely to fail, literally just dropping files along with the reg file I had sent. The plan is to try have all this fully automated. Since Linux, and Proton conditions constently changes, there will unfortunately be issues that I may not beable to resolve, so a thread like this will be needed. I might also look into seeing if GitHub Discussions could be more suitable than a very long closed issue. If any of you are interested in checking out the current progress of HMM 8, you can find it on a seperate repo at hedge-dev/HedgeModManager under the |
Should also mention HMM 8 will likely have it's first release as a beta with features slowly being added. |
Can't wait for beta release, thx a lot for it ^^ |
NVM, codes works with bottles, windows .7z extracted and regedit with Shadow gens, but it crashes even without code with Frontiers. Gonna try with other games when I'll have the time. |
I had only tested the reg file method with Origins which worked fine. |
How about EGS game detection on HMM 8 btw, for windows and linux as well ? |
Currently for Epic games, it is only tested once with Heroic Games Launcher as I don't know any developers who uses the actual Epic Games Launcher. |
Alright, good to know. Thx for all the effort the team and you makes for HMM and for its linux support 🫡 |
Wanted to comment to say that I was having getting origins working after updating and the reg fix made it work again. Everything else I had tried was rebuilding the prefix and coping over the windows.7z files but stopped crashing at startup after using the reg edit. |
I can confirm the true problem is frontiers : it will never load if it has any codes, unlike other games. |
EDIT: An updated guide using Bottles is on the Hedge Mod Manager wiki.
The original post below was initially done with wine and winetricks.
Hello!
Sorry for my English, as I don't speak or write fluently, I had to use a translator. But what matters is to understand the main thing, to run the game and the MOD.
Sorry also to post this here if it is the wrong place, I wanted to help in some way but I don't know where to do it.
Well, let's go:
I recently installed the Sonic Forces game on Linux and knowing that you can use MOD, I searched the internet for a program to help me with this. That's when I found out about HedgeModManager and wanted to use the same one.
The installation of the Sonic Forces game was very easy, I just installed it and it worked.
The HedgeModManager program, on the other hand, became a challenge and so I researched the internet again about making it work.
I discovered somewhere that I no longer remember the dependency on Framework 4.7.2+ and thanks to a certain comment and later a solution for using WPF programs, a door was opened to start HedgeModManager.
With everything ready, we only have one observation, the SonicForces.exe executable is 64 bits and HedgeModManager.exe is 32 bits.
So we have to install some dependencies on the game prefix, which is 64 and create another 32-bit prefix to use HMM.
For the job to work, you must install wine 4.6+. I installed staging version 4.7 on Ubuntu 20.04:
sudo dpkg --add-architecture i386 wget -nc https://dl.winehq.org/wine-builds/winehq.key -P /tmp sudo apt-key add /tmp/winehq.key sudo add-apt-repository "deb https://dl.winehq.org/wine-builds/ubuntu/ focal main" sudo apt update sudo apt install winehq-staging/focal winetricks/focal
Dependencies to run Sonic Forces + HMM on prefix 64:
Dependencies for running HMM on prefix 32:
Sonic Forces will run on Proton + Steam and HMM on Wine.
My Steam directory is not configured in a standard location, so on your computer, edit the "DATA" and "COMMON" variable for your configuration.
Finally, the work:
The creation of Script ~/.local/bin/SonicForces_Mod serves to execute the HMM program in an easy way without having to go to the game directory every time you use it.
The Sonic Forces game runs on Steam:
Ps.: Add these options in game properties to play
Optionally, if the game gets heavy on your computer, add MOD Sonic Forces - Low End Effects
End.
This way I was able to use the MOD I wanted in the game and play happily.
Thank you creator of HedgeModManager, the program is very good.
The text was updated successfully, but these errors were encountered: