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

How to fix gwater2 on Linux [Proton] #46

Open
Lyelye150 opened this issue Jan 18, 2025 · 9 comments
Open

How to fix gwater2 on Linux [Proton] #46

Lyelye150 opened this issue Jan 18, 2025 · 9 comments
Labels
documentation Improvements or additions to documentation

Comments

@Lyelye150
Copy link

hi i made this issue only if people want to fix gwater2 on linux (i will post this onto the gwater2 steam discussions page too)

(note: proton must be enabled and protontricks needs to be downloaded)

  1. run proton tricks and find gmod
    Screenshot_20250111_180646
  2. click gmod then wait until a window pops up and click on select default wineprefix then click on winecfg and click on ok
  3. when winecfg opens click on libraries now go to garrymods/ and add all the dll onto winecfg
    Screenshot_20250111_181344
    (note don't add the .dll at the end)
    3.5. next go to GarrysMod/garrysmod/lua/bin/ and add all the dll to winecfg too
  4. now click on apply and ok then you can exit protontricks and enjoy gmwater2

Some errors

  1. proton for some reason removing the dll files
    (fix re-add them)
  2. proton skips the dll files and gwater2 stops working
    (fix keep restarting the game until gwater2 works)

final notes

meetric1 if your reading this and you wanna remove this or test it you can
if it does get remove i will maybe make fork for this or post a youtube (even i can keep up the steam discussions up) just letting you know thats it cya

@meetric1 meetric1 changed the title how to fix gwater2 linux How to fix gwater2 on Linux [Proton] Jan 18, 2025
@meetric1 meetric1 added the documentation Improvements or additions to documentation label Jan 18, 2025
@meetric1
Copy link
Owner

in theory should work for steam deck too which is neat

@0x5066
Copy link

0x5066 commented Jan 18, 2025

Can't confirm it working, you shouldn't really need this because Garry's Mod loads the dlls itself from the addon (the gwater dlls and all of it's dependencies) and the log I get with PROTON_LOG=1 tells me it successfully loads those dlls.

@Lyelye150
Copy link
Author

Can't confirm it working, you shouldn't really need this because Garry's Mod loads the dlls itself from the addon (the gwater dlls and all of it's dependencies) and the log I get with PROTON_LOG=1 tells me it successfully loads those dlls.

well for me when i download and put the dll into gmod for gwater2 it won't work i still have the recording/video when i made #26 heres the recording cya ^_^

2025-01-11.16-00-13.mp4

@0x5066
Copy link

0x5066 commented Jan 19, 2025

That doesn't make sense because, again, the DLLs are loaded automatically just like they would be on Windows, adding them to the DLL overrides therefore doesn't make much sense.

Image

@Lyelye150
Copy link
Author

That doesn't make sense because, again, the DLLs are loaded automatically just like they would be on Windows, adding them to the DLL overrides therefore doesn't make much sense.

Image

hey its me again @0x5066 so i did a test with proton logs the first log is with my fix on heres the image

Image

the next one is without the fix (or removing the dll from winecfg/protontricks)
and it worked somehow it spawn water without the fix so you where (kinda) right but there where warnings in the logs heres the image

Image

so ima keep this issue up if people needs help with gwater2 for linux but your right (kinda) so that will be it for now here so if you have anything to say like problems i will chat and help you so that will be it for this so cya ^_^

@0x5066
Copy link

0x5066 commented Jan 20, 2025

Wild theory but it could be a weird timing based thing that isn't really easy to resolve, it works on some occasions and it doesn't on others, so far with my own attempts I haven't really gotten it to behave

@freddyguythe10th
Copy link

freddyguythe10th commented Jan 30, 2025

I just wanted to add some extra information that should hopefully help others here. I am running:
OS: EndeavourOS (based on Arch Linux)
GPU: RX 6600

Water and Cloth would spawn in, but had no collisions with anything except other water or cloth.

I tried a lot of what other people said to no avail, (adding the libraries to winecfg, trying to run with DirectX 11).
The two things I did differently that seemed to make it work:

  1. I switched to Proton GE 9-22
  2. I switched to the x86-64 branch for gmod

It worked the first time but stopped working after that. It was probably a mistake on my part when booting the game, but finally I:

  1. Added ALL the .dll files that were added from the installer into wincfg library tab. (As seen in the first message in this issue.)

I'm not sure which one of these things actually fixed the problem (most likely it was switching to Proton GE), but now as long as I boot gmod with the "Play Garry's Mod" option (ignoring the 64-bit and 32-bit launch options), it seems to work pretty consistently.

TL;DR
Using Proton GE 9-22 may fix the problem directly, if not try using it with the x86-64 branch, but booting using the "Play Garry's Mod" option. (I assume the "Play Garry's Mod" option is the same as playing the game without moving to this branch, but I might be wrong.) Hopefully this solves the problem for most of you guys, I would like to see if this did the trick for others.

Update: After posting this it no longer works. I am very confused.

Update 2: After recently updating this, I switched back to the main branch and the problem came back, even using Proton GE. I then switched to Proton 8.0 on the x86-64 branch, hit "Play Garry's Mod", and it works again??? I am still incredibly confused.

@paulguy
Copy link

paulguy commented Feb 11, 2025

I get the issue with nothing colliding. Tried stuff in this thread. Adding the DLLs makes it not load in proton experimental. proton 8 no collisions, proton ge no collisions.

@TheBitcoinBaron
Copy link

TheBitcoinBaron commented Feb 27, 2025

Instructions are unclear, you say "when winecfg opens click on libraries now go to garrymods/ and add all the dll onto winecfg"
What do you mean "goto" what SPECIFICALLY is pressed? what to do? the "add" button from your libraries screenshot is greyed out so I cannot add anything to the list that appears! How can I add things from a specific folder?

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

No branches or pull requests

7 participants
@paulguy @TheBitcoinBaron @0x5066 @meetric1 @freddyguythe10th @Lyelye150 and others