Merge pull request #32 from acuifex/fix-linux-instructions

Fix linux build again again
This commit is contained in:
Pinsplash 2023-04-23 21:34:59 -05:00 committed by GitHub
commit e728fcb34b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,10 +16,11 @@ Copy the map files and paste them in `Steam/steamapps/sourcemods/hl2chaos/maps/`
## Building from source for Linux
No build enviroment setup required.
1. `git clone https://github.com/Pinsplash/halflife2chaos`
2. `cd halflife2chaos/sp`
3. `./src/createallprojects` // TODO: this likely can be done with creategameprojects.
4. `make -f ./src/everything.mak client_hl2 server_hl2`
5. `mkdir ~/.steam/steam/steamapps/sourcemods/mod_hl2; sudo mount --bind $(pwd)/game/mod_hl2 ~/.steam/steam/steamapps/sourcemods/mod_hl2` Note the use of the bind mount instead of a symbolic link. Steam won't detect symbolic links. You can use `mv` or `cp` instead, if you don't care.
2. `cd halflife2chaos`
3. `./sp/src/createallprojects` // TODO: this likely can be done with creategameprojects.
4. `make -f ./sp/src/everything.mak client_hl2 server_hl2`
5. `ln -s $(pwd)/sp/game/mod_hl2/bin ./sourcemods/hl2chaos/` Link bin directory from our build directory
6. `mkdir ~/.steam/steam/steamapps/sourcemods/hl2chaos; sudo mount --bind $(pwd)/sourcemods/hl2chaos ~/.steam/steam/steamapps/sourcemods/hl2chaos` Note the use of the bind mount instead of a symbolic link. Steam won't detect symbolic links. You can use `mv` or `cp` instead, if you don't care.
Compiling for the episodes is an excercise for the reader. (Should be similar but with `mod_episodic`, `client_episodic` and `server_episodic`.)