Skip to content

Commit

Permalink
update .bat & readme
Browse files Browse the repository at this point in the history
  • Loading branch information
meetric1 committed Jan 9, 2025
1 parent 3ac9016 commit 5696fc7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
39 changes: 20 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,24 +80,25 @@ If this is all gibberish to you, essentially any graphics card manufactured late
| MacOS | Any | Mac ||

# Installation
- For Windows (Installer):
1. Subscribe to the workshop item, and close the game
2. Go to the releases tab, and download the .bat installer
3. Run it. Type 1 to install

- For Windows (Manual, if installer fails)
1. Subscribe to the workshop item, and close the game
2. TODO

- For Linux:
1. Native Linux currently does not work. See [Compilation](#compilation) for more information
2. For now, use proton and follow the Windows installation steps

- For Developers:
1. cd to `GarrysMod/garrysmod/addons/`
2. run `git clone https://github.com/meetric1/gwater2` in a terminal.
3. Unsubscribe to the workshop version if you have it installed
4. If you wish to work on the C++, make sure to clone recursively. See [Compilation](#compilation) for more info
### For Windows (Installer):
1. Subscribe to the workshop item, and close the game
2. Go to the releases tab, and download the .bat installer
3. Run it. Type 1 to install
4. TODO

### For Windows (Manual, if installer fails)
1. Subscribe to the workshop item, and close the game
2. TODO

### For Linux:
1. Native Linux currently does not work. See [Compilation](#compilation) for more information
2. For now, use proton and follow the Windows installation steps

### For Developers:
1. cd to `GarrysMod/garrysmod/addons/`
2. run `git clone https://github.com/meetric1/gwater2` in a terminal.
3. Unsubscribe to the workshop version if you have it installed
4. If you wish to work on the C++, make sure to clone recursively. See [Compilation](#compilation) for more info

<!--
# Technical details
Expand Down Expand Up @@ -142,7 +143,7 @@ If you wish to compile it yourself, simply follow these steps.
> If you need help with compiling, feel free to look at the github workflow source code
> [!NOTE]
> By default, this repo builds for the x86-64 branch of GMod. If you wish to compile for the main branch, you will need to remove the gmcommon submodule and *recursively* re-clone the main branch version, found [here](https://github.com/danielga/garrysmod_common)\
> By default, this repo builds for the x86-64 branch of GMod. If you wish to compile for the main branch, you will need to remove the gmcommon submodule and *recursively* re-clone the main branch version, found [here](https://github.com/danielga/garrysmod_common).\
> After that, you will need to add a preprocessor definition, `GMOD_MAIN`. This can be done in visual studio by going to the project properties -> Preprocessor -> Preprocessor Definitions
>[!NOTE]
Expand Down
3 changes: 2 additions & 1 deletion binary/gwater2_install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ goto prompt
:install
pushd %gmod_dir%
echo Downloading gwater2...
powershell -command [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest 'https://www.dropbox.com/scl/fi/zeg5vwverh4fruaubv4v7/gwater2.zip?rlkey=d28tyewk1pq47e684mz3h15ir"&"st=gwvla5ww"&"dl=1' -Out gwater2.zip
powershell -command [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest 'https://github.com/meetric1/gwater2/releases/download/1.0/gwater2_1.0.zip' -Out gwater2.zip

if not exist gwater2.zip (
echo Download failed, Invalid Link
Expand All @@ -56,6 +56,7 @@ if not exist gwater2.zip (
echo Decompressing...
powershell -command Expand-Archive gwater2.zip -Force
echo Installing...
rmdir ".\garrysmod\addons\gwater2" /s /q
xcopy /e /y /q gwater2 .
rmdir /s /q gwater2
del gwater2.zip
Expand Down

0 comments on commit 5696fc7

Please sign in to comment.