absolllute / Mega-Hack-Pro-Future

Mega Hack Pro Suggestion & Issue Tracker
41 stars 5 forks source link

Port Mega Hack V6 to Linux #36

Closed Astro-re closed 3 years ago

Astro-re commented 3 years ago

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 commented 3 years ago

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

RoootTheFoxold commented 3 years ago

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 commented 3 years ago

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

Astro-re commented 3 years ago

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

RoootTheFoxold commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

Does this method work for v5 as well?

Brittank88 commented 3 years ago

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 commented 3 years ago

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

teej1469 commented 3 years ago

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 commented 3 years ago

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 commented 2 years ago

@All-Contributors please add @absoIute for platform.

allcontributors[bot] commented 2 years ago

@Brittank88

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

Brittank88 commented 2 years ago

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

allcontributors[bot] commented 2 years ago

@Brittank88

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

Brittank88 commented 2 years ago

@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 commented 2 years ago

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

allcontributors[bot] commented 2 years ago

@Brittank88

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

Brittank88 commented 2 years ago

@all-contributors please remove @RoootTheFoxold

allcontributors[bot] commented 2 years ago

@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 commented 2 years ago

@All-Contributors please add @RoootTheFox for userTesting.

(Missed one!)

allcontributors[bot] commented 2 years ago

@Brittank88

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

torzod commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

absolute and i labbed it out a while back together, but this was mostly my idea

On Tue, Feb 21, 2023 at 2:03 AM Brittank88 @.***> wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/absolllute/Mega-Hack-Pro-Future/issues/36#issuecomment-1438007999, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG772KI6AA4UKKZUT3PMLWTWYRZFZANCNFSM4Z3ITJQA . You are receiving this because you commented.Message ID: @.***>

Brittank88 commented 1 year ago

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

Brittank88 commented 1 year ago

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

allcontributors[bot] commented 1 year ago

@Brittank88

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

torzod commented 1 year ago

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

fluffeon commented 1 year ago

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 commented 1 year ago

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