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

Port Mega Hack V6 to Linux #36

Closed
Astro-re opened this issue Mar 26, 2021 · 33 comments
Closed

Port Mega Hack V6 to Linux #36

Astro-re opened this issue Mar 26, 2021 · 33 comments
Assignees
Labels
enhancement New feature or request faq / docs This information should be added to a FAQ / documentation page

Comments

@Astro-re
Copy link

It seems difficult but a lot of people play Geometry Dash on Linux and frankly it would be a change that doesn't do a LOT but it's something that will make just a few more people happy. I've also already purchased and used MHV6 on Windows but after switching to Linux (which I cannot get out of) I simply can't play GD the same on Linux without a MHV6 port. Thanks for reading :D

@Brittank88
Copy link
Collaborator

This is fair enough, but I have no idea what the limitations or difficulty of this are.

@RoootTheFoxold
Copy link

i think you need to install wine and run the Mega Hack Patcher on your steam directory for GD ((steam folder)/steamapps/common/Geometry Dash), as steam uses proton to run the Windows version of GD on Linux, so it should work that way

@Brittank88
Copy link
Collaborator

That would be awesome and miraculous if that just worked with no weirdness

@Astro-re
Copy link
Author

Astro-re commented Apr 6, 2021

I actually tried that method, and I did several times, came with no success.

@RoootTheFoxold
Copy link

I just want to give an update, I managed to get it working. I extracted the MegaHack zip File in the Desktop of the Wine Prefix (/home/USER/.steam/debian-installation/steamapps/compatdata/322170/drive_c/users/steamuser/Desktop) and then ran the following commands:

cd ~/.steam/debian-installation/steamapps/compatdata/322170/pfx

STEAM_COMPAT_DATA_PATH="/home/USER/.steam/debian-installation/steamapps/compatdata/322170" WINEPREFIX=$PWD \ "/home/USER/.steam/root/steamapps/common/Proton 3.7/proton" run ./drive_c/users/steamuser/Desktop/MegaHackProPatcher_620_beta1/MegaHackPro.exe

(Make sure to copy paste the last 2 lines as one command and replace USER with your username)

I got these commands from here: https://gist.github.com/michaelbutler/f364276f4030c5f449252f2c4d960bd2

@Astro-re
Copy link
Author

I just want to give an update, I managed to get it working. I extracted the MegaHack zip File in the Desktop of the Wine Prefix (/home/USER/.steam/debian-installation/steamapps/compatdata/322170/drive_c/users/steamuser/Desktop) and then ran the following commands:

cd ~/.steam/debian-installation/steamapps/compatdata/322170/pfx

STEAM_COMPAT_DATA_PATH="/home/USER/.steam/debian-installation/steamapps/compatdata/322170" WINEPREFIX=$PWD \ "/home/USER/.steam/root/steamapps/common/Proton 3.7/proton" run ./drive_c/users/steamuser/Desktop/MegaHackProPatcher_620_beta1/MegaHackPro.exe

(Make sure to copy paste the last 2 lines as one command and replace USER with your username)

I got these commands from here: https://gist.github.com/michaelbutler/f364276f4030c5f449252f2c4d960bd2

You are an absolute legend, thank you so much for doing this.

@Brittank88
Copy link
Collaborator

I just want to give an update, I managed to get it working. I extracted the MegaHack zip File in the Desktop of the Wine Prefix (/home/USER/.steam/debian-installation/steamapps/compatdata/322170/drive_c/users/steamuser/Desktop) and then ran the following commands:

cd ~/.steam/debian-installation/steamapps/compatdata/322170/pfx

STEAM_COMPAT_DATA_PATH="/home/USER/.steam/debian-installation/steamapps/compatdata/322170" WINEPREFIX=$PWD \ "/home/USER/.steam/root/steamapps/common/Proton 3.7/proton" run ./drive_c/users/steamuser/Desktop/MegaHackProPatcher_620_beta1/MegaHackPro.exe

(Make sure to copy paste the last 2 lines as one command and replace USER with your username)

I got these commands from here: https://gist.github.com/michaelbutler/f364276f4030c5f449252f2c4d960bd2

How in the heck did you figure this out lmao

Very nice work!

@Brittank88 Brittank88 added the enhancement New feature or request label Apr 25, 2021
@Brittank88 Brittank88 changed the title [SUGGESTION] Port Mega Hack V6 to Linux Port Mega Hack V6 to Linux Apr 25, 2021
@Brittank88 Brittank88 pinned this issue May 1, 2021
@Brittank88
Copy link
Collaborator

Figured I should pin this issue so people looking to use MHv6 on Linux can see that there is indeed a way to run it. Thanks again @rootRobo for figuring this out!

@TheDIGS
Copy link

TheDIGS commented Jul 30, 2021

Does this method work for v5 as well?

@Brittank88
Copy link
Collaborator

Could always experiment and find out! This seems like quite a complex process though, involving both Wine and Steam's own solution for running non-Linux stuff on Linux.

@absoIute
Copy link
Member

as long as the installer is ran under the same version/instance of Proton as GD it should install fine!

@absoIute absoIute unpinned this issue Jul 30, 2021
@Brittank88 Brittank88 pinned this issue Aug 13, 2021
@teej1469
Copy link

teej1469 commented Oct 4, 2021

I just want to give an update, I managed to get it working. I extracted the MegaHack zip File in the Desktop of the Wine Prefix (/home/USER/.steam/debian-installation/steamapps/compatdata/322170/drive_c/users/steamuser/Desktop) and then ran the following commands:

`cd ~/.steam/debian-installation/steamapps/compatdata/322170/pfx

STEAM_COMPAT_DATA_PATH="/home/USER/.steam/debian-installation/steamapps/compatdata/322170" WINEPREFIX=$PWD \ "/home/USER/.steam/root/steamapps/common/Proton 3.7/proton" run ./drive_c/users/steamuser/Desktop/MegaHackProPatcher_620_beta1/MegaHackPro.exe

(Make sure to copy paste the last 2 lines as one command and replace USER with your username)

I got these commands from here: https://gist.github.com/michaelbutler/f364276f4030c5f449252f2c4d960bd2

Does this work with V5 also? I do not have the money currently to buy V6 just yet, but if it works for V5 also then heck yes!

@RoootTheFox
Copy link

I just want to give an update, I managed to get it working. I extracted the MegaHack zip File in the Desktop of the Wine Prefix (/home/USER/.steam/debian-installation/steamapps/compatdata/322170/drive_c/users/steamuser/Desktop) and then ran the following commands:

`cd ~/.steam/debian-installation/steamapps/compatdata/322170/pfx

STEAM_COMPAT_DATA_PATH="/home/USER/.steam/debian-installation/steamapps/compatdata/322170" WINEPREFIX=$PWD \ "/home/USER/.steam/root/steamapps/common/Proton 3.7/proton" run ./drive_c/users/steamuser/Desktop/MegaHackProPatcher_620_beta1/MegaHackPro.exe

(Make sure to copy paste the last 2 lines as one command and replace USER with your username)

I got these commands from here: https://gist.github.com/michaelbutler/f364276f4030c5f449252f2c4d960bd2

Does this work with V5 also? I do not have the money currently to buy V6 just yet, but if it works for V5 also then heck yes!

it should work fine for megahack v5, just try it and see. If it doesnt work im pretty sure there is some way to make it run.

@Brittank88 Brittank88 added the faq / docs This information should be added to a FAQ / documentation page label Nov 9, 2021
@Brittank88
Copy link
Collaborator

@all-contributors please add @absoIute for platform.

@allcontributors
Copy link
Contributor

@Brittank88

I've put up a pull request to add @absoIute! 🎉

@Brittank88
Copy link
Collaborator

@all-contributors please add @RoootTheFoxold for platform, question, research, tutorial.

@allcontributors
Copy link
Contributor

@Brittank88

I've put up a pull request to add @RoootTheFoxold! 🎉

@Brittank88
Copy link
Collaborator

@RoootTheFox oops didn't notice you have a new account - have noticed your Linux-related help for v6/7 though and wanted to give you credit! ❤️

@Brittank88
Copy link
Collaborator

@all-contributors please add @RoootTheFox for platform, question, research, tutorial.

@allcontributors
Copy link
Contributor

@Brittank88

I've put up a pull request to add @RoootTheFox! 🎉

@Brittank88
Copy link
Collaborator

@all-contributors please remove @RoootTheFoxold

@allcontributors
Copy link
Contributor

@Brittank88

I could not determine your intention.

Basic usage: @all-contributors please add @Someone for code, doc and infra

For other usages see the documentation

@Brittank88
Copy link
Collaborator

@all-contributors please add @RoootTheFox for userTesting.

(Missed one!)

@allcontributors
Copy link
Contributor

@Brittank88

I've put up a pull request to add @RoootTheFox! 🎉

@torzod
Copy link

torzod commented Feb 18, 2023

there's a pretty easy way to do this that i've been using for ages: rename GeometryDash.exe to something else, replace it with the megahack executableby renaming megahack to GeometryDash.exe, run the game through steam as normal, and it will pull up the MH installer. select whatever you renamed the actual game executable to, install, and you're good to rename things back to what the should be, and the game and hacks will work just fine.

@Brittank88
Copy link
Collaborator

there's a pretty easy way to do this that i've been using for ages: rename GeometryDash.exe to something else, replace it with the megahack executableby renaming megahack to GeometryDash.exe, run the game through steam as normal, and it will pull up the MH installer. select whatever you renamed the actual game executable to, install, and you're good to rename things back to what the should be, and the game and hacks will work just fine.

I'm honestly surprised this works. Nice find.

@torzod
Copy link

torzod commented Feb 21, 2023 via email

@Brittank88
Copy link
Collaborator

https://github.com/all-contributors please add @torzod for userTesting, platform, question, research, tutorial.

@Brittank88
Copy link
Collaborator

@all-contributors please add @torzod for userTesting, platform, question, research, tutorial.

@allcontributors
Copy link
Contributor

@Brittank88

I've put up a pull request to add @torzod! 🎉

@torzod
Copy link

torzod commented Feb 25, 2023

if needed i can also be contacted on discord @ ouroya#5680

@fluffeon
Copy link

fluffeon commented Jul 20, 2023

if anyone needs it, I (and ChatGPT) made a small script that automates installing Mega Hack and makes it straightforward on Linux. Hopefully this resolves a lot of headaches.
https://github.com/fwookerton/mega-hack-linux-installer

@RoootTheFox
Copy link

I've made such a script too (that tries to be user-friendly while having v7 support); putting the link here for completeness' sake: https://github.com/RoootTheFox/Linux-MegaHack-Installer

@Brittank88 Brittank88 unpinned this issue Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request faq / docs This information should be added to a FAQ / documentation page
Projects
None yet
Development

No branches or pull requests

10 participants