forked from FWGS/xash3d-fwgs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into android
- Loading branch information
Showing
197 changed files
with
5,447 additions
and
3,599 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
image: alpine/latest | ||
packages: | ||
- build-base | ||
- sdl2-dev | ||
- freetype-dev | ||
- fontconfig-dev | ||
- opus-dev | ||
sources: | ||
- https://git.sr.ht/~a1batross/xash3d-fwgs | ||
tasks: | ||
- client: | | ||
cd xash3d-fwgs | ||
./waf configure -8 --enable-tests --enable-engine-tests build install --destdir=bin | ||
- server: | | ||
cd xash3d-fwgs | ||
./waf configure --reconfigure --dedicated build install --destdir=bin | ||
- run-tests: | | ||
cd xash3d-fwgs/bin | ||
export SDL_VIDEODRIVER=wayland | ||
./xash3d -runtests | ||
./xash -runtests | ||
rm -rf valve/gameinfo.txt test_* | ||
- package: | | ||
cd xash3d-fwgs/bin | ||
tar -cjvf xash3d-fwgs-alpine-amd64.tar.bz2 * | ||
artifacts: | ||
- xash3d-fwgs/bin/xash3d-fwgs-alpine-amd64.tar.bz2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
image: debian/sid | ||
arch: amd64 | ||
packages: | ||
- build-essential | ||
- python-is-python3 | ||
- libsdl2-dev | ||
- libfreetype-dev | ||
- libfontconfig-dev | ||
- libopus-dev | ||
sources: | ||
- https://git.sr.ht/~a1batross/xash3d-fwgs | ||
tasks: | ||
- client: | | ||
cd xash3d-fwgs | ||
./waf configure -8 --enable-tests --enable-engine-tests build install --destdir=bin | ||
- server: | | ||
cd xash3d-fwgs | ||
./waf configure --reconfigure --dedicated build install --destdir=bin | ||
- run-tests: | | ||
cd xash3d-fwgs/bin | ||
export SDL_VIDEODRIVER=wayland | ||
./xash3d -runtests | ||
./xash -runtests | ||
rm -rf valve/gameinfo.txt test_* | ||
- package: | | ||
cd xash3d-fwgs/bin | ||
tar -cjvf xash3d-fwgs-debian-arm64.tar.bz2 * | ||
artifacts: | ||
- xash3d-fwgs/bin/xash3d-fwgs-debian-arm64.tar.bz2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
image: debian/sid | ||
packages: | ||
- build-essential | ||
- python-is-python3 | ||
- libsdl2-dev | ||
- libfreetype-dev | ||
- libfontconfig-dev | ||
- libopus-dev | ||
sources: | ||
- https://git.sr.ht/~a1batross/xash3d-fwgs | ||
tasks: | ||
- client: | | ||
cd xash3d-fwgs | ||
./waf configure -8 --enable-tests --enable-engine-tests build install --destdir=bin | ||
- server: | | ||
cd xash3d-fwgs | ||
./waf configure --reconfigure --dedicated build install --destdir=bin | ||
- run-tests: | | ||
cd xash3d-fwgs/bin | ||
export SDL_VIDEODRIVER=wayland | ||
./xash3d -runtests | ||
./xash -runtests | ||
rm -rf valve/gameinfo.txt test_* | ||
- package: | | ||
cd xash3d-fwgs/bin | ||
tar -cjvf xash3d-fwgs-debian-amd64.tar.bz2 * | ||
artifacts: | ||
- xash3d-fwgs/bin/xash3d-fwgs-debian-amd64.tar.bz2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
image: freebsd/latest | ||
packages: | ||
- lang/python | ||
- devel/pkgconf | ||
- devel/sdl20 | ||
- print/freetype2 | ||
- x11-fonts/fontconfig | ||
- audio/opus | ||
sources: | ||
- https://git.sr.ht/~a1batross/xash3d-fwgs | ||
tasks: | ||
- client: | | ||
cd xash3d-fwgs | ||
./waf configure --enable-tests --enable-engine-tests build install --destdir=bin | ||
- server: | | ||
cd xash3d-fwgs | ||
./waf configure --reconfigure --dedicated build install --destdir=bin | ||
- run-tests: | | ||
cd xash3d-fwgs/bin | ||
export SDL_VIDEODRIVER=wayland | ||
./xash3d -runtests | ||
./xash -runtests | ||
rm -rf valve/gameinfo.txt test_* | ||
- package: | | ||
cd xash3d-fwgs/bin | ||
tar -cjvf xash3d-fwgs-freebsd-amd64.tar.bz2 * | ||
artifacts: | ||
- xash3d-fwgs/bin/xash3d-fwgs-freebsd-amd64.tar.bz2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
image: netbsd/latest | ||
packages: | ||
- python311 | ||
- SDL2 | ||
- freetype2 | ||
- fontconfig | ||
- libopus | ||
- pkgconf | ||
sources: | ||
- https://git.sr.ht/~a1batross/xash3d-fwgs | ||
tasks: | ||
- client: | | ||
cd xash3d-fwgs | ||
python3.11 waf configure --enable-tests --enable-engine-tests build install --destdir=bin | ||
- server: | | ||
cd xash3d-fwgs | ||
python3.11 waf configure --reconfigure --dedicated build install --destdir=bin | ||
- run-tests: | | ||
cd xash3d-fwgs/bin | ||
export SDL_VIDEODRIVER=wayland | ||
./xash3d -runtests | ||
./xash -runtests | ||
rm -rf valve/gameinfo.txt test_* | ||
- package: | | ||
cd xash3d-fwgs/bin | ||
tar -cjvf xash3d-fwgs-netbsd-amd64.tar.bz2 * | ||
artifacts: | ||
- xash3d-fwgs/bin/xash3d-fwgs-netbsd-amd64.tar.bz2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
image: openbsd/latest | ||
packages: | ||
- python3 | ||
- sdl2 | ||
- opus | ||
sources: | ||
- https://git.sr.ht/~a1batross/xash3d-fwgs | ||
tasks: | ||
- client: | | ||
cd xash3d-fwgs | ||
python3 waf configure --enable-tests --enable-engine-tests build install --destdir=bin | ||
- server: | | ||
cd xash3d-fwgs | ||
python3 waf configure --reconfigure --dedicated build install --destdir=bin | ||
- run-tests: | | ||
cd xash3d-fwgs/bin | ||
export SDL_VIDEODRIVER=wayland | ||
./xash3d -runtests | ||
./xash -runtests | ||
rm -rf valve/gameinfo.txt test_* | ||
- package: | | ||
cd xash3d-fwgs/bin | ||
tar -cjvf xash3d-fwgs-openbsd-amd64.tar.bz2 * | ||
artifacts: | ||
- xash3d-fwgs/bin/xash3d-fwgs-openbsd-amd64.tar.bz2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule gl-wes-v2
updated
14 files
+0 −143 | src/test-sdl1/context.c | |
+0 −564 | src/test-sdl1/test.c | |
+1 −0 | src/wes.c | |
+163 −0 | src/wes.h | |
+13 −27 | src/wes_begin.c | |
+10 −9 | src/wes_fragment.c | |
+1 −1 | src/wes_fragment.h | |
+0 −298 | src/wes_gl.h | |
+27 −26 | src/wes_matrix.c | |
+1 −1 | src/wes_matrix.h | |
+9 −9 | src/wes_shader.c | |
+11 −60 | src/wes_state.c | |
+8 −56 | src/wes_texture.c | |
+5 −1 | wscript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule mainui
updated
19 files
+2 −9 | MenuStrings.cpp | |
+7 −4 | controls/BackgroundBitmap.cpp | |
+1 −1 | controls/BackgroundBitmap.h | |
+1 −1 | menus/AdvancedControls.cpp | |
+9 −1 | menus/Audio.cpp | |
+16 −2 | menus/Gamepad.cpp | |
+84 −8 | menus/VideoOptions.cpp | |
+1 −0 | sdk_includes/common/const.h | |
+28 −11 | sdk_includes/common/kbutton.h | |
+54 −56 | sdk_includes/common/netadr.h | |
+17 −6 | sdk_includes/common/xash3d_types.h | |
+1 −0 | sdk_includes/copy.sh | |
+919 −0 | sdk_includes/public/pstdint.h | |
+6 −0 | translations/mainui_skeleton_everything.txt | |
+6 −0 | translations/mainui_skeleton_nostringslst.txt | |
+6 −0 | translations/mainui_skeleton_stripped.txt | |
+79 −572 | unicode_strtools.cpp | |
+3 −45 | unicode_strtools.h | |
+1 −1 | wscript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# sounds.lst.md | ||
|
||
Using sounds.lst located in scripts folder, modder can override some of the hardcoded sounds in temp entities and server physics. | ||
|
||
File format: | ||
``` | ||
<group name> | ||
{ | ||
<path1> | ||
<path2> | ||
<path3> | ||
} | ||
<group2 name> <path with %d> <min number> <max number> | ||
``` | ||
|
||
* Sounds can use any supported sound format (WAV or MP3). | ||
* The path must be relative to the sounds/ folder in the game or base directory root, addon folder, or archive root. | ||
* Groups can be empty or omitted from the file to load no sound. | ||
* Groups can either list a set of files or specify a format string and a range. | ||
* Anything after // will be considered a comment and ignored. | ||
* Behavior is undefined if the group was listed multiple times. | ||
|
||
Currently supported groups are: | ||
|Group name|Usage| | ||
|----------|-----| | ||
|`BouncePlayerShell`|Used for BOUNCE_SHELL tempentity hitsound| | ||
|`BounceWeaponShell`|Used for BOUCNE_SHOTSHELL tempentity hitsound| | ||
|`BounceConcrete`|Used for BOUNCE_CONCRETE tempentity hitsound| | ||
|`BounceGlass`|Used for BOUCNE_GLASS| | ||
|`BounceMetal`|Used for BOUNCE_METAL| | ||
|`BounceFlesh`|Used for BOUNCE_FLESH| | ||
|`BounceWood`|Used for BOUNCE_WOOD| | ||
|`Ricochet`|Used for BOUNCE_SHRAP and ricochet tempentities| | ||
|`Explode`|Used for tempentity explosions| | ||
|`EntityWaterEnter`|Used for entity entering water| | ||
|`EntityWaterExit`|Used for entity exiting water| | ||
|`PlayerWaterEnter`|Used for player entering water| | ||
|`PlayerWaterExit`|Used for player exiting water| | ||
|
||
## Example | ||
|
||
This example is based on defaults sounds used in Half-Life: | ||
|
||
``` | ||
BouncePlayerShell "player/pl_shell%d.wav" 1 3 | ||
BounceWeaponShell "weapons/sshell%d.wav" 1 3 | ||
BounceConcrete "debris/concrete%d.wav" 1 3 | ||
BounceGlass "debris/glass%d.wav" 1 4 | ||
BounceMetal "debris/metal%d.wav" 1 6 | ||
BounceFlesh "debris/flesh%d.wav" 1 7 | ||
BounceWood "debris/wood%d.wav" 1 4 | ||
Ricochet "weapons/ric%d.wav" 1 5 | ||
Explode "weapons/explode%d.wav" 3 5 | ||
EntityWaterEnter "player/pl_wade%d.wav" 1 4 | ||
EntityWaterExit "player/pl_wade%d.wav" 1 4 | ||
PlayerWaterEnter | ||
{ | ||
"player/pl_wade1.wav" | ||
} | ||
PlayerWaterExit | ||
{ | ||
"player/pl_wade2.wav" | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Xash3D FWGS on `musl` | ||
|
||
Xash3D FWGS works on `musl` out of the box. However, the engine doesn't try to differentiate glibc and musl anymore. If you see error similar to: | ||
|
||
``` | ||
Host_InitError: can't initialize cl_dlls/client.so: Error relocating valve/cl_dlls/client.so: __sprintf_chk: symbol not found | ||
``` | ||
|
||
... or you know that the game you're running is linked against glibc, you can try using `libgcompat`, like this: | ||
|
||
``` | ||
$ LD_PRELOAD=/lib/libgcompat.so.0 ./xash3d ... | ||
``` | ||
|
||
It will automatically add the missing symbols that glibc binaries usually need. In the future we might automatically link engine against `libgcompat` for better compatibility with prebuilt or closed-source games, if there will be any use for this. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.