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

Can't launch because of an error MH_INIT_STATUS #109

Open
corckie opened this issue Dec 20, 2024 · 15 comments
Open

Can't launch because of an error MH_INIT_STATUS #109

corckie opened this issue Dec 20, 2024 · 15 comments

Comments

@corckie
Copy link

corckie commented Dec 20, 2024

I can't start the game via bat file. For a few moments nothing happens and then for a very brief amount of time an error pops up:

MH_INIT_STATUS != MH_STATUS::MH_OK

@xoxor4d
Copy link
Owner

xoxor4d commented Dec 20, 2024

@corckie What happens when you launch it via steam?
Can you send a picture of your game folder?

@corckie
Copy link
Author

corckie commented Dec 20, 2024

@xoxor4d

after extracting p2-rtx_1.4_remix_mod.zip launching via steam does not work anymore.

Screen of my folder:

image

@xoxor4d
Copy link
Owner

xoxor4d commented Dec 21, 2024

Very weird. I hope this will fix it self with the next full release

@corckie
Copy link
Author

corckie commented Dec 21, 2024

@xoxor4d

image

Is there any trace what could lead to this error? I have just recently reinstalled Windows, maybe I'm lacking some runtime or driver?

@xoxor4d
Copy link
Owner

xoxor4d commented Dec 21, 2024

People that had this issue generally had some pirated copy of the game so I'm not sure tbh.

Github is currently creating a new action build. These already come with a new launcher instead of the bat file.
You can get the artifact from here when its ready: https://github.com/xoxor4d/p2-rtx/actions/runs/12448655729

Make sure to delete winmm.dll + _rtx.asi in Path-to-Portal2/bin before you install the files from the artifact.
Then use the new p2-rtx-launcher.exe to run the game. I hope that fixes your issue

@corckie
Copy link
Author

corckie commented Dec 22, 2024

@xoxor4d thank you, it loads the launch screen (which is a progress) but won't go past it, so no RTX for me yet... thanks for your effort anyway!

@xoxor4d
Copy link
Owner

xoxor4d commented Dec 22, 2024

@corckie I've reworked some parts of the loading code to output more verbose messages. While that most likely wont fix your issue, it could help me troubleshoot this. Could you please try the latest actions build and paste the console output here?
Also, make sure steam is running in the background!

@corckie
Copy link
Author

corckie commented Dec 22, 2024

@xoxor4d I have downloaded the latest release, how should I post the console output? Game hangs on this screen:

image

cmd does not seem to show anything when running the launcher:

image

@xoxor4d
Copy link
Owner

xoxor4d commented Dec 22, 2024

Mhh the game should automatically open a console whenever there is an error 🤔
I'm really not sure whats happening here 😒

@corckie
Copy link
Author

corckie commented Dec 24, 2024

@xoxor4d worry not, you have show so much interest! I hope that someday it will magically fix itself, maybe when I get new PC. Portal 2 is a timeless game, it will be as good as ever if I try RTX three years from now on.

Appreciate all your effort!

@corckie
Copy link
Author

corckie commented Dec 25, 2024

@xoxor4d
Reinstalled everything and now the debug window appears:

image

@xoxor4d
Copy link
Owner

xoxor4d commented Dec 25, 2024

Oh that's something at least. Can you post a pic of the portal 2 window titlebar that displays the window name? Requires the window to be windowed ofc

@corckie
Copy link
Author

corckie commented Dec 25, 2024

Here goes:

image

Doubt it, but maybe it's due to capital letters?

@xoxor4d
Copy link
Owner

xoxor4d commented Dec 25, 2024

Oh that's odd .. I think the function I'm using is case-sensitive. Tweaked the function a little bit.
GitHub is currently building a new action build. Do you mind trying it when it's done building?
https://github.com/xoxor4d/p2-rtx/actions/runs/12494241526

@corckie
Copy link
Author

corckie commented Dec 25, 2024

So back to 3 days ago, game launches but there's no response and no log:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants