-
Notifications
You must be signed in to change notification settings - Fork 63
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. |
Oops wrong button |
Whenever I try to run the game or Open Mod/Game Directory via Wine or Steam Tinker Launch, I get a "File not Found" error. I was able to install all the dependencies and the app itself opens up fine. |
Ever since following the guide here, thinking it was a solution to get Frontiers working, all of my Sonic games no longer work. I've tried reinstalling each game 3 times. I get a Missing Downloaded Files error for Origins, Forces, Frontiers, and Colours doesn't start with any error. I've tried redoing the Origins setup guide from the Ultrafix gb page. Things seemed to stop working when I pasted the more than 3 year old top post here. I have no idea why this guide was linked in a thread about Frontiers. If the old Forces guide in OP screwed my Steam Deck up, how do I undo it? Every mod was working from the newest Bottles method with yml config file, except Sonic Frontiers. I've tried placing windows.7z's windows folder manually in each compatdata's pfx folders exactly where I was told to. I've tried placing the mscoree dll file in each folder containing each game's exe. |
You may need to reset your proton prefixes, which you can do by deleting the numbered folder from the compatdata folder or in the Steam client there should be an option to reset your prefix. Keep in mind the modloader will stil persist even if you uninstall games using Steam. Once you do get it working again, also keep in mind that some Frontiers codes do not work on Linux. |
specifically pasting these in the konsole terminal started this "missing downloaded files" error and opening Colours just hard crashes the Steam Deck when everything but Frontiers was working: "APPID=637100 PFX=$DATA/pfx WINESERVER=/usr/bin/wineserver WINELOADER=/usr/bin/wine WINEPREFIX="$PFX"_x32 WINEARCH=win32 wine path cat <<'EOF' > ~/.local/bin/SonicForces_Mod APPID=637100 |
That guide is old, don't use it. Use the updated Bottles guide to get HMM running and use windows.7z method to get the ML running for each game. |
I'm aware. However you directed several of us with Frontiers issues to this defunct and damaging guide. How do I get any of my games working again? I followed the Bottles and windows.7z guides but the Steam Deck won't even create the pfx folders for me to place my windows folder into. Trying to open games either crashes or it says it's missing files. I checked file integrity, all clear, no difference. |
now every game is giving me "missing downloaded files" whether they relate to Sonic or not. Whole Steam library and Deck broken. I don't even want to use mods now. I really don't want to do a full system wipe. |
I'm sorry for being a nervous wreck. I just found that this could be an error with the steam client and the download cache. I'll try clearing it and get back to you. Ah it's fetching the files to play games now. AH! YES! Games open again. I'll go through the bottles setup again and disable codes for Frontiers to see if that boots the mod list with medium foliage mod. |
Using the bottles guides and things that need reflection aren't working in Origins. Tried the windows.7z method and symlinking. |
Which Origins code does not work? I havent had issues with the codes I tested. |
Any codes that need Reflection. Similar to the issue here hedge-dev/HMMCodes#7. I'm just trying with the 30fps menu codes for now. I just factory reset my deck, set up bottles again, and encountered the same issue. Edit: Using bottles to install dotnet40 and dotnet48 in the origins prefix fixed the issue. |
I'm trying to run Frontiers with mods but every time the game boots up it has a black screen for a few seconds and then closes. The mod loader is working since the debug console appears, but the game itself crashes. I have installed dotnet via 7zip file under the troubleshooting portion but it still crashes. I am on steam deck, if that makes a difference. How can I fix this? Please let me know if any additional details are required. |
I'm having the exact same issue with getting Sonic Origins Plus working on Linux (specifically Bazzite), every other HedgeModManager game (Generations 2011, Lost World, Forces, Frontiers, Colors Ultimate, Shadow Generations) I've gotten working flawlessly, but no matter what I do I cannot get either the 30FPS code or Sonic Origins Ultrafix to work. I have both Dotnet40 and 48 installed and working with Bottles and symlinks (since it does it automatically). I feel like I've tried everything and I genuinely have no idea why it's not working. The "windows.7z" file doesn't help either. |
The Frontiers issue is common with most HMMCodes crashing. I suspect the same issue is happening with the mentioned code and mod. Maybe changing proton versions can help? If you do change versions keep in mind it will count as a hardware change to Denuvo. |
I'm having an issue on steam deck where sonic frontiers will just crash at a black screen when the mod loader is active I am assuming that it is Denuvo causing it but I am unsure. If there are any suggestions let me know. |
Some codes do not work on Proton. There is a chance you may still have a code enabled or you do not have dotnet installed. |
Now I have it working but none of the codes work at all on sonic frontiers it just crashes with any of them applied |
If you have access to winetricks, you can use winetricks to install dotnet48 into the game's wine prefix. (Installing dotnet48 with protontricks failed for me.) Origins and mods with reflection codes such as Sonic Origins Ultrafix and Sonic CD - Fix timing and restore SFX work properly and no longer crash on startup. The windows.7z method does not work for some mods, unfortunately. For example, Sonic Origins would use this command in a terminal like Konsole: Sonic Frontiers would use: Adjust the path if you installed the game elsewhere, accordingly. Winetricks will install dotnet48 and dotnet40 into the prefix once completed. |
how do I go about installing HMM via winetricks for shadow generations? |
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, |
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: