Merge pull request #48 from acuifex/linux-fixes

Linux fixes
This commit is contained in:
Pinsplash 2023-05-18 15:41:54 -05:00 committed by GitHub
commit 93c394999f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 2 deletions

7
.gitignore vendored
View File

@ -24,6 +24,7 @@ ipch
*.mak
*.mak.vpc_crc
*.xcodeproj/
*.project
obj*/
!devtools/*.mak
!utils/smdlexp/smdlexp.mak
@ -40,6 +41,8 @@ client.so
client.so.dbg
server.so
server.so.dbg
client_srv.so
client_srv.so.dbg
server_srv.so
server_srv.so.dbg
@ -62,6 +65,10 @@ config.cfg
*.vpc.sentinel
*.tga
# Let's not include binary blobs because they can mess with build cache and cause linking errors.
# All of the close source valve provided blobs should be already in the repository.
*.a
ep1_gamestats.dat
**/DownloadLists/*
chaos_random_cc.raw

View File

@ -26,8 +26,8 @@ Check our GitHub [wiki](https://github.com/Pinsplash/halflife2chaos/wiki) if you
No build enviroment setup required.
1. `git clone --depth=1 https://github.com/Pinsplash/halflife2chaos`
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`
3. `./sp/src/creategameprojects`
4. `make -f ./sp/src/games.mak -j$(grep processor /proc/cpuinfo | wc -l) 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.

Binary file not shown.

Binary file not shown.

Binary file not shown.