Skip to content

About

Emscripten xash3d-fwgs web port

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Xash3D-FWGS Emscripten Web Port

This project is an Emscripten-based web port of Xash3D-FWGS, an open-source engine for games based on the GoldSource engine.

Compiling and running

Clone the repository

git clone --recurse-submodules https://github.com/yohimik/webxash3d-fwgs.git
cd webxash3d-fwgs

Game Content

You must provide your own game files (e.g., from Steam):

steamcmd +force_install_dir ./hl +login your_steam_username +app_update 70 validate +quit

Zip and and copy the valve folder from your Half-Life installation into the public/valve.zip. Note: zip contents should be like this:

/valve.zip
├──┬/valve                  
│  ├───/file1           
│  └───/file2...  
└──┬/cstrike                  
   ├───/file1           
   └───/file2...  

Compile and run

hlsdk

docker compose -f hlsdk.docker-compose.yml up -d

Navigate in your browser to http://localhost:8080

Screenshots (black frames - mac book camera, blue frames - browser active outline)

hlsdk screenshot 0 hlsdk screenshot 1 hlsdk screenshot 2 hlsdk screenshot 3 hlsdk screenshot 4

cs16-client

docker compose -f cs16-client.docker-compose.yml up -d

Navigate in your browser to http://localhost:8081

Screenshots (black frames - mac book camera, blue frames - browser active outline)

cs16-client screenshot 0 cs16-client screenshot 1 cs16-client screenshot 2 cs16-client screenshot 3

tf15-client

Cannot be supported at this moment (wait for freevgui).

TODO

Mobile devices

Support mobile devices (currently crashes).

NPM

Fix all issues above and publish xash3d-fwgs npm package.

WebGL improves (potentially)

Support GLES3Compat batching and fix Vertex buffer is not big enough for the draw call.Understand this warning warning.

Scripts (potentially)

Some scripts stop working after saving and loading (eg. the guard doesn't open the train door).

About

Emscripten xash3d-fwgs web port

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages