flightlessmango / MangoHud

A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more. Discord: https://discordapp.com/invite/Gj5YmBb
MIT License
6.13k stars 262 forks source link

MangoHud not working with Minecraft Java #1277

Closed Letus252 closed 3 months ago

Letus252 commented 3 months ago

Describe the bug I'm trying to run MangoHud with Minecraft, but I can't get it to work. I've tried "mangohud --dlsym minecraft-launcher" but it does not show the overlay, and "MANGOHUD_DLSYM=1 mangohud minecraft-launcher" throws a wall of errors (and launcher is just a white box). I also tired using mangohud with steam (CS2) and it does work correctly.

List relevant hardware/software information

I'm using default Minecraft client (downloaded using yay). I added screenshot of the errors made by the second command (they seem to repeat infinity).

mangohuderror

zastrixarundell commented 3 months ago

Shouldn't you set MangoHud on the game level instead of the launcher level?

Letus252 commented 3 months ago

Shouldn't you set MangoHud on the game level instead of the launcher level?

I don't know how would you do that. I saw reddit post about this topic, but the guy was using cracked launcher. In the post there was also this command: "mangohud --dlsym java -jar launcher.jar" but I have no idea what "launcher.jar" refers to. (And you can't just launch jar from 'version' folder).

flightlessmango commented 3 months ago

Should be fixed here 3f0ecf769de461ddd99be536b64e4626a6f83770 and minecraft appears to require --dlsym

Letus252 commented 3 months ago

Bash still throws a lot of errors, but it launched and seems to work correctly. Thank you for fixing it! (I'm adding screenshot of the errors, maybe it will be useful). 2024-04-05_15-55

flightlessmango commented 3 months ago

Yes it's going to look a bit wonky as the fix I implemented is just a hack. Hopefully someone can resolve this better in the future, but for now that is expected