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

Mega Hack v7 Linux Does Not Work #184

Open
Felting opened this issue Nov 18, 2021 · 72 comments
Open

Mega Hack v7 Linux Does Not Work #184

Felting opened this issue Nov 18, 2021 · 72 comments
Assignees
Labels
discussion A topic that is important to discuss faq / docs This information should be added to a FAQ / documentation page

Comments

@Felting
Copy link

Felting commented Nov 18, 2021

I install mega hack v7 using this method: https://www.youtube.com/watch?v=PNa9MBS7CTU And when I press tab nothing happens. It worked with mega hack v6 though.

@RoootTheFox
Copy link

i figured out why. v6 overwrote libcurl.dll to load megahack, v7 uses a proxy dll (Xinput9_1_0.dll) which would get loaded on Windows but gets ignored by wine/proton
a possible workaround would be to use another automatic dll injector to inject hackproldr.dll into gd.

@Felting Felting mentioned this issue Nov 19, 2021
@Expecticament
Copy link

i figured out why. v6 overwrote libcurl.dll to load megahack, v7 uses a proxy dll (Xinput9_1_0.dll) which would get loaded on Windows but gets ignored by wine/proton a possible workaround would be to use another automatic dll injector to inject hackproldr.dll into gd.

But it appears that I am able to run MegaHack v7 installer with wine 6.21-staging. #197 (comment)

@Expecticament
Copy link

image

Rename method worked for me with Proton 6.21-GE1! At least it successfully launches... Funny, but I am not able to log in because I was logging in a lot yesterday, so I am not 100% sure that it will work. I guess I will go outside now...

@RoootTheFox
Copy link

But it appears that I am able to run MegaHack v7 installer with wine 6.21-staging. #197 (comment)

running the installer works, but the hack doesn't load. (i also wasn't able to make it load with other methods multiple times)
for now im gonna have to stick with megahack v6 until the issue is fixed/someone finds a working workaround

@absoIute absoIute added the faq / docs This information should be added to a FAQ / documentation page label Nov 22, 2021
@absoIute absoIute self-assigned this Nov 22, 2021
@absoIute
Copy link
Member

Using v6's libcurl.dll file & renaming v7's hackproldr.dll to absoluteldr.dll should do the trick, make sure to keep v7's hackpro.dll there too.

@absoIute absoIute changed the title (MegaHack v7) Linux does not work Mega Hack v7 Linux does not work Nov 22, 2021
@BlockOG
Copy link

BlockOG commented Nov 23, 2021

Using v6's libcurl.dll file & renaming v7's hackproldr.dll to absoluteldr.dll should do the trick, make sure to keep v7's hackpro.dll there too.

I've tried it, doesn't seem to work, I installed mhv6 in a copy of geometry dash files, installed mhv7 in the original geometry dash files, renamed hackproldr.dll to absoluteldr.dll and copied libcurl.dll from mhv6 installment to mhv7 installment, tab still doesn't work

@ToxicAven
Copy link

Using v6's libcurl.dll file & renaming v7's hackproldr.dll to absoluteldr.dll should do the trick, make sure to keep v7's hackpro.dll there too.

Doing this accomplished a weird effect, loading the V6 Menu, with V7 Hacks availible.

@BlockOG
Copy link

BlockOG commented Nov 25, 2021

It'll probably work by installing gddllloader and putting the file that v7 creates in it, I didn't test this but it might work

@RoootTheFox
Copy link

It'll probably work by installing gddllloader and putting the file that v7 creates in it, I didn't test this but it might work

that is exactly what I tried, it loads every mod i put in without problems but fails to load MegaHack v7.

@BlockOG
Copy link

BlockOG commented Nov 26, 2021

It'll probably work by installing gddllloader and putting the file that v7 creates in it, I didn't test this but it might work

that is exactly what I tried, it loads every mod i put in without problems but fails to load MegaHack v7.

Probably because the hackproldr.dll and hackpro.dll are not in the same folder as it so it can't load it

@RoootTheFox
Copy link

It'll probably work by installing gddllloader and putting the file that v7 creates in it, I didn't test this but it might work

that is exactly what I tried, it loads every mod i put in without problems but fails to load MegaHack v7.

Probably because the hackproldr.dll and hackpro.dll are not in the same folder as it so it can't load it

no no i compiled GDDLLLoader myself telling it specifically to load these. It works with any mod but not with megahack v7 (havent tried v6 yet though)

@BlockOG
Copy link

BlockOG commented Dec 1, 2021

Using v6's libcurl.dll file & renaming v7's hackproldr.dll to absoluteldr.dll should do the trick, make sure to keep v7's hackpro.dll there too.

Doing this accomplished a weird effect, loading the V6 Menu, with V7 Hacks availible.

How come nothing happened when I tried to do that

@Brittank88 Brittank88 changed the title Mega Hack v7 Linux does not work Mega Hack v7 Linux Does Not Work Dec 1, 2021
@RoootTheFox
Copy link

Using v6's libcurl.dll file & renaming v7's hackproldr.dll to absoluteldr.dll should do the trick, make sure to keep v7's hackpro.dll there too.

Doing this accomplished a weird effect, loading the V6 Menu, with V7 Hacks availible.

How come nothing happened when I tried to do that

because megahack v7's hackpro.dll just fails to inject. I suppose its using a Windows API that doesn't exist under wine/proton or something else that isn't supported by it.

@BlockOG
Copy link

BlockOG commented Dec 7, 2021

Has anybody been able to get mhv7 working on linux yet?

@Expecticament
Copy link

Has anybody been able to get mhv7 working on linux yet?

Nope. I sticked with v6

@RuanauR
Copy link

RuanauR commented Jan 10, 2022

Did anyone find a fix yet?

@RuanauR
Copy link

RuanauR commented Jan 13, 2022

Has anybody been able to get mhv7 working on linux yet?

Nope. I sticked with v6

Have you been able to get it to run?

@Expecticament
Copy link

Has anybody been able to get mhv7 working on linux yet?

Nope. I sticked with v6

Have you been able to get it to run?

If you are talking about v6 - yes. Check this Issue - #36

@RuanauR
Copy link

RuanauR commented Jan 13, 2022 via email

@Expecticament
Copy link

I meant v7

On Thu, Jan 13, 2022 at 10:26 AM ThatsNotM3 @.> wrote: Has anybody been able to get mhv7 working on linux yet? Nope. I sticked with v6 Have you been able to get it to run? If you are talking about v6 - yes. Check this Issue - #36 <#36> — Reply to this email directly, view it on GitHub <#184 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW6LF6K66VMXI6FBEDKGUC3UV34MXANCNFSM5IKWC5LA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.>

Nope. Still no success. Absolute told that they will make a Legacy installer for Linux, so you just have to patiently wait

@RuanauR

This comment has been minimized.

@RoootTheFox
Copy link

I think asking for an ETA to fix an issue on a platform that is not even officially supported is a bit rude. Just stick with MHv6 for the time being.

@Nicko2102
Copy link
Collaborator

especially tagging absolute

@Brittank88
Copy link
Collaborator

Indeed.

Do not tag us.
Do not nag for ETAs.
Do not expect support to be high-priority on a platform that isn't even listed as supported.

We're real people, with lives, who get busy - especially Absolute.

If you want this so bad, do the research and experimentation and see if you can figure it out, just like others did for MHv6 in this very issue.

@OakleyCord
Copy link

A fix for what?

a fix for mega hack to work on linux!

@yavko
Copy link

yavko commented Oct 22, 2022

A fix for what?

a fix for mega hack to work on linux!

Okay. But what is Septima?

@OakleyCord
Copy link

OakleyCord commented Oct 22, 2022

Okay. But what is Septima?

it contains the login info for megahack, without it you will receive the "not logged in" error

@RoootTheFox
Copy link

then going into ~/.local/share/Steam/steamapps/compatdata/(what ever number is bigger or where ever you can find the Septima folder in)/pfx/drive_c/users/steamuser/AppData/Local/Septima and copying the contents to ~/.local/share/Steam/steamapps/compatdata/322170/pfx/drive_c/users/steamuser/AppData/Local/Septima/

this step is not needed, since the number for the compatdata folder is always 322170, so you would essentially copy files from a folder into the exact same folder.

@OakleyCord
Copy link

OakleyCord commented Oct 22, 2022

this step is not needed, since the number for the compatdata folder is always 322170, so you would essentially copy files from a folder into the exact same folder.

i forgot to mention i am running megahack installer by adding it as a "non-steam game" so i am copying the Septima folder from the c drive that megahack used

so I am using the compatdata from megahack

@yavko
Copy link

yavko commented Oct 23, 2022

Okay. But what is Septima?

it contains the login info for megahack, without it you will receive the "not logged in" error

ah

@RoootTheFox
Copy link

this step is not needed, since the number for the compatdata folder is always 322170, so you would essentially copy files from a folder into the exact same folder.

i forgot to mention i am running megahack installer by adding it as a "non-steam game" so i am copying the Septima folder from the c drive that megahack used

so I am using the compatdata from megahack

Oh that makes sense. I'll probably work on implementing the WINEDLLOVERRIDES into my MegaHack installer script sometime in the future once I figure out how to modify steam launch arguments for Geometry Dash through a bash script.

@Brian3647
Copy link

this step is not needed, since the number for the compatdata folder is always 322170, so you would essentially copy files from a folder into the exact same folder.

i forgot to mention i am running megahack installer by adding it as a "non-steam game" so i am copying the Septima folder from the c drive that megahack used

so I am using the compatdata from megahack

I did this whole process, and now my ~/.steam/steam/steamapps/compatdata/322170/pfx/drive_c/users/steamuser/AppData/Local/Septima folder has the files I believe are for authenticating (image) and yet when opening the game it says I'm not logged in.
image

@Brian3647
Copy link

Brian3647 commented Nov 3, 2022

Found a better way. It works.

@OakleyCord
Copy link

I did this whole process, and now my ~/.steam/steam/steamapps/compatdata/322170/pfx/drive_c/users/steamuser/AppData/Local/Septima folder has the files I believe are for authenticating (image) and yet when opening the game it says I'm not logged in.

Huh strange same issue is happening on my steam deck, I'll try to figure it out later

@strawbberrys
Copy link

strawbberrys commented Aug 6, 2023

I got it to work quite easily. First install protontricks (winetricks fork for steam) and run protontricks --gui. After that select Geometry Dash and click OK on "Select the default wine prefix". Next click "Run explorer" and press OK, then navigate to the megahack installer executable and run it. Then it's just as simple as navigating to the Geometry Dash install folder (will be in whichever drive you installed the game in or in the Z:/ drive in a path such as /home/[username]/.local/share/Steam/steamapps/common) and selecting GeometryDash.exe for the install path, then clicking install. Finally, right click on Geometry Dash in your steam library, click on properties, and add WINEDLLOVERRIDES="Xinput9_1_0=n,b" %command% to your launch options or it will not work. Done.

@echolessowl
Copy link

I got it to work quite easily. First install protontricks (winetricks fork for steam) and run protontricks --gui. After that select Geometry Dash and click OK on "Select the default wine prefix". Next click "Run explorer" and press OK, then navigate to the megahack installer executable and run it. Then it's just as simple as navigating to the Geometry Dash install folder (will be somewhere in the Z:/ drive in a path such as /home/[username]/.local/share/Steam/steamapps/common) and selecting GeometryDash.exe for the install path, then clicking install. Finally, right click on Geometry Dash in your steam library, click on properties, and add WINEDLLOVERRIDES="Xinput9_1_0=n,b" %command% to your launch options or it will not work. Done.

This works very well, thanks for sharing. Took a bit to load the game for the first time after installing but it's running smoothly now

@Brittank88
Copy link
Collaborator

@all-contributors please add @strawbberrys for tutorial, userTesting, platform.

@allcontributors
Copy link
Contributor

@Brittank88

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

@Brittank88
Copy link
Collaborator

@all-contributors please add @OakleyCord for tutorial, userTesting, platform.

@allcontributors
Copy link
Contributor

@Brittank88

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

@Brittank88 Brittank88 pinned this issue Oct 10, 2023
@NativeStickVastness
Copy link

NativeStickVastness commented Oct 18, 2023

I'm running the game with XInput9_1_0.dll overridden, but I have one issue: when the player interacts with moving objects, it will often eject my player, causing death. The best example is in Future Funk (44062068), where the platform with the text "Clutterfunk" is slightly moving, and while the player is sliding across it, it'll get launched down to the ground and the player dies at frame 218. When Mega Hack is uninstalled or disabled (by not setting the WINEDLLOVERRIDES environment variable), there's no issue, it only happens with Mega Hack. I couldn't find anything about this issue online, so it might be specific to Linux?

@RoootTheFox
Copy link

@NativeStickVastness This does NOT sound linux-specific at all, are you using FPS bypass?

@cursefroge
Copy link

should this be closed? legacy loader option exists now

@coffee243454
Copy link

Adding to this, Mega Hack V8 works perfectly on linux after renaming the exe, installing and adding WINEDLLOVERRIDES="Xinput9_1_0=n,b" %command% to the launch options.

@skysthelimitt
Copy link

not sure why, none of these tutorials would work for me for installing v8 (couldnt access any folders that started with .)
heres what i did to install v8:
go to the files for gd (/home/{user}/.steam/debian-installation/steamapps/common/Geometry Dash for me)
copy everything
then go to the emulated C drive that steam makes (/home/{user}/.steam/debian-installation/steamapps/compatdata/322170/pfx/drive_c for me) and make a new folder, and just paste the contents into there
use protontricks, select gd, select "Select the default wineprefix", select "Run explorer", navigate to the folder where you have mega hack installer, run it, go to the folder you created previously and select GeometryDash.exe, install
after it installs, you copy the contents of that folder and go to your local install of gd and replace the files with the new files

idk if any of that made sense

@Fxzzi
Copy link

Fxzzi commented Dec 27, 2023

https://www.youtube.com/watch?v=pY2V5hKIqD4

Video for those who need guidance

@strawbberrys
Copy link

strawbberrys commented Jan 5, 2024

I've found another method which is (probably) even easier. All you have to do is add PROTON_REMOTE_DEBUG_CMD="/absolute/path/to/MegaHackInstaller.exe" to the steam launch options, then launch the game. This will open the installer with the game, and you can use it as normal from there. Just make sure to close Geometry Dash before you install. And of course after installation you can remove it from your launch options.

ex: WINEDLLOVERRIDES="XInput9_1_0=n,b" PROTON_REMOTE_DEBUG_CMD="/home/strawberrys/Downloads/MegaHackInstaller/MegaHackInstaller.exe" %command%

@fluffeon
Copy link

fluffeon commented Jul 18, 2024

Obsolete. Using Mega Hack v8 on Geode is the way to go.

If you've installed Geode on Linux, just run Mega Hack v8 installer on Wine without any DLL overrides or arguments (that is by literally double-clicking the installer in your file manager of choice), login, select GD directory and install. Then if you launch the game it will prompt you to insert your username and password again, do so and boom, you have MHv8 installed.
Worked for me on Gentoo Linux.

It's that much easier now.

@RoootTheFox
Copy link

fwiw, megahack on geode can now be installed from the index (theres a megahack installer mod by absolute)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion A topic that is important to discuss faq / docs This information should be added to a FAQ / documentation page
Projects
None yet
Development

No branches or pull requests