# Xash3D FWGS

> Built from commit 3effc4a043e0 on 2026-11-24. The current build: https://abdess.github.io/retrobios/version.json

Source: https://abdess.github.io/retrobios/emulators/xash3d_fwgs/

Xash3D FWGS emulates Half-Life, Counter-Strike, Counter-Strike: Condition Zero and 6 more systems. It reads 19 files, 9 of them required: without a required file it does not start games. A required file is needed only by the machines that use it. Each file below cites the line of source code that reads it.

**About this profile**

| Detail | Value |
|---|---|
| Type | standalone |
| Classification | Game engine |
| Source | [https://github.com/FWGS/xash3d-fwgs](https://github.com/FWGS/xash3d-fwgs) |
| Version | 0.21, stated in [`engine/common/com_strings.h`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/engine/common/com_strings.h) |
| Revision | [FWGS/xash3d-fwgs@27092af50d91](https://github.com/FWGS/xash3d-fwgs/commit/27092af50d912432887faa43a1cccddfae569b2d) |
| Run by | [Batocera](https://abdess.github.io/retrobios/platforms/batocera/), [RetroBat](https://abdess.github.io/retrobios/platforms/retrobat/) |
| Profiled | 2026-10-04 |
| Profile | [YAML](https://github.com/Abdess/retrobios/blob/main/emulators/xash3d_fwgs.yml), [JSON](https://abdess.github.io/retrobios/api/v1/emulators/xash3d_fwgs.json) |
| Cores | xash3d_fwgs, xash3d |
| Systems | [Half-Life](https://abdess.github.io/retrobios/systems/valve/#half-life), Counter-Strike, Counter-Strike: Condition Zero, Counter-Strike: Condition Zero Deleted Scenes, [Deathmatch Classic](https://abdess.github.io/retrobios/systems/valve/#half-life), [Half-Life: Opposing Force](https://abdess.github.io/retrobios/systems/valve/#half-life), Half-Life: Blue Shift, [Ricochet](https://abdess.github.io/retrobios/systems/valve/#half-life), [Team Fortress Classic](https://abdess.github.io/retrobios/systems/valve/#half-life) |

**Install this emulator's files**

With Batocera or RetroBat: the installer finds Batocera or RetroBat and its BIOS folder, then downloads only the files Xash3D FWGS reads there and checks each one.

**Windows:**

Open Start. Type **PowerShell**, press Enter. Click Copy. Right-click to paste. Press Enter.

PowerShell

```
&([scriptblock]::Create((irm https://abdess.github.io/retrobios/i.ps1))) --emulator xash3d_fwgs
```

**On the device:**

Open a terminal on the device. Or connect from a computer with SSH, a terminal over the network. Paste the line. Press Enter.

Terminal

```
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator xash3d_fwgs
```

**Technical notes**

GoldSrc / Half-Life 1 engine reimplementation by Flying With Gauss. Game directories are discovered at startup: FS_CheckForXashGameDir ([`filesystem/gameinfo.c:611-634`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/gameinfo.c#L611-L634)) walks each sub-folder of the base path and keeps the ones that contain gameinfo.txt or liblist.gam. FS_ParseGenericGameInfo ([`filesystem/gameinfo.c:231-430`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/gameinfo.c#L231-L430)) reads the mod descriptor out of either file: `basedir` names the fallback game (chained one level, e.g. czeror -> czero -> cstrike -> valve, see [`filesystem/searchpath.c:327`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/searchpath.c#L327)), `fallback_dir` names a second fallback, and `game` / `gamename` carry the human-readable title.

Each supported mod's data is a Valve-style game folder with a game descriptor, maps/, models/, sound/, overviews/ and any number of .pak archives. FS_AddGameDirectory mounts every .pak of the folder, then every .pk3, .pk3dir and .wad, each kind in sorted name order and each above the previous one, then the folder itself on top, so loose files win over packed ones ([`filesystem/searchpath.c:188-224`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/searchpath.c#L188-L224)). No archive name is required. The engine does not hash any file: the pak header is the only sanity check ([`filesystem/pak.c:98-157`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/pak.c#L98-L157)). liblist.gam ships inside each retail mod and is also written out by the engine as gameinfo.txt the first time it imports a Valve folder ([`filesystem/gameinfo.c:538-544`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/gameinfo.c#L538-L544)).

A Quake-engine game dir is recognised separately by FS_CheckForQuakeGameDir ([`filesystem/gameinfo.c:578-603`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/gameinfo.c#L578-L603)), which looks for pak0.pak + progs.dat / quake.rc, so Xash3D FWGS can run Quake 1 total conversions this way.

Below are the folders Half-Life retail / official addon releases install under the Steam install root. The descriptor is what makes the engine detect a folder ([`filesystem/gameinfo.c:614-630`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/gameinfo.c#L614-L630)), and the pak entries name the archives the retail releases ship. Map / model / sound trees that live beside them are too open-ended to enumerate and are counted as part of the same game data.

## Files

**19 files**: 9 required, 10 optional.

By kind: 19 game data.

In this collection: 6 in repo, 0 missing and 13 unsourceable.

## Game data

| File | Status |
|---|---|
| ** ### `liblist.gam` ** - Path: `valve/liblist.gam`- System: [Half-Life](https://abdess.github.io/retrobios/systems/valve/#half-life)- Game descriptor shipped with retail Half-Life. Engine converts it to gameinfo.txt on first run. - Collection copy: [`bios/Valve/Half-Life/valve/liblist.gam`](https://abdess.github.io/retrobios/systems/valve/#sha1-5c5fabd28502) **Source** - Source: [`filesystem/gameinfo.c:617`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/gameinfo.c#L617) (gamedir probe), [`filesystem/gameinfo.c:538-544`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/gameinfo.c#L538-L544) (liblist.gam -> gameinfo.txt conversion), [`filesystem/gameinfo.c:695`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/gameinfo.c#L695) (parser) | required for Half-Lifein repogame data |
| ** ### `pak0.pak` ** - Path: `valve/pak0.pak`- System: [Half-Life](https://abdess.github.io/retrobios/systems/valve/#half-life)- Half-Life game data packed in one archive, as the CD and WON releases install it. The engine mounts whatever .pak the folder holds and requires none: the Steam depot ships valve/ as loose files with no .pak, and the game runs from those.- Not collected yet: The WON Linux dedicated servers 1.0.0.9 to 3.1.1.1 carry a server-only valve/pak0.pak (65022757, 47500556 or 33772308 bytes, at most 1035 entries: multiplayer maps, models, sounds, sprites and skies, with no single-player map, gfx/shell or sound/vox), not the client archive of the CD and WON releases. ([files not collected yet](https://abdess.github.io/retrobios/gaps-not-collected/)) **Source** - Source: [`filesystem/searchpath.c:188-224`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/searchpath.c#L188-L224), [`filesystem/pak.c:98-157`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/pak.c#L98-L157) | optionalunsourceablegame data |
| ** ### `pak1.pak` ** - Path: `valve/pak1.pak`- System: [Half-Life](https://abdess.github.io/retrobios/systems/valve/#half-life)- Mounted above pak0.pak when present, as any second .pak of the folder would be. The only valve/pak1.pak released is the one the Blue Shift High Definition Pack installer writes (7839196 bytes, 99 entries: HD models, sounds and sprites for Half-Life). Steam ships no .pak in valve/.- Not collected yet: retail data the collection does not hold, and a same-named file of another game must not stand in ([files not collected yet](https://abdess.github.io/retrobios/gaps-not-collected/)) **Source** - Source: [`filesystem/searchpath.c:188-224`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/searchpath.c#L188-L224), [`filesystem/pak.c:98-157`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/pak.c#L98-L157) | optionalunsourceablegame data |
| ** ### `liblist.gam` ** - Path: `cstrike/liblist.gam`- System: Counter-Strike- Declares fallback_dir "valve". Counter-Strike 1.6 retail descriptor.- Not collected yet: retail data the collection does not hold, and a same-named file of another game must not stand in ([files not collected yet](https://abdess.github.io/retrobios/gaps-not-collected/)) **Source** - Source: [`filesystem/gameinfo.c:617`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/gameinfo.c#L617), [`filesystem/searchpath.c:327`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/searchpath.c#L327) (cstrike -> valve chain) | required for Counter-Strikeunsourceablegame data |
| ** ### `pak0.pak` ** - Path: `cstrike/pak0.pak`- System: Counter-Strike- Loose files (maps/, sprites/, sound/, models/) are the usual retail layout, and a bundled pak0.pak is optional.- Not collected yet: The Linux dedicated servers hlds_l 1.1.2.0 and hlds_l_11262003 ship cstrike/ as loose files with no .pak. ([files not collected yet](https://abdess.github.io/retrobios/gaps-not-collected/)) **Source** - Source: [`filesystem/pak.c`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/pak.c) | optionalunsourceablegame data |
| ** ### `liblist.gam` ** - Path: `czero/liblist.gam`- System: Counter-Strike: Condition Zero- Not collected yet: retail data the collection does not hold, and a same-named file of another game must not stand in ([files not collected yet](https://abdess.github.io/retrobios/gaps-not-collected/)) **Source** - Source: [`filesystem/searchpath.c:327`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/searchpath.c#L327) (czero -> cstrike -> valve chain) | required for Counter-Strike: Condition Zerounsourceablegame data |
| ** ### `pak0.pak` ** - Path: `czero/pak0.pak`- System: Counter-Strike: Condition Zero- Not collected yet: retail data the collection does not hold, and a same-named file of another game must not stand in ([files not collected yet](https://abdess.github.io/retrobios/gaps-not-collected/)) **Source** - Source: [`filesystem/pak.c`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/pak.c) | optionalunsourceablegame data |
| ** ### `liblist.gam` ** - Path: `czeror/liblist.gam`- System: Counter-Strike: Condition Zero Deleted Scenes- Not collected yet: retail data the collection does not hold, and a same-named file of another game must not stand in ([files not collected yet](https://abdess.github.io/retrobios/gaps-not-collected/)) **Source** - Source: [`filesystem/searchpath.c:327`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/searchpath.c#L327) (czeror -> czero -> cstrike -> valve chain) | required for Counter-Strike: Condition Zero Deleted Scenesunsourceablegame data |
| ** ### `pak0.pak` ** - Path: `czeror/pak0.pak`- System: Counter-Strike: Condition Zero Deleted Scenes- Not collected yet: retail data the collection does not hold, and a same-named file of another game must not stand in ([files not collected yet](https://abdess.github.io/retrobios/gaps-not-collected/)) **Source** - Source: [`filesystem/pak.c`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/pak.c) | optionalunsourceablegame data |
| ** ### `liblist.gam` ** - Path: `dmc/liblist.gam`- System: [Deathmatch Classic](https://abdess.github.io/retrobios/systems/valve/#half-life) - Collection copy: [`bios/Valve/Half-Life/dmc/liblist.gam`](https://abdess.github.io/retrobios/systems/valve/#sha1-dfa2d03d9190) **Source** - Source: [`filesystem/gameinfo.c:617`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/gameinfo.c#L617) | required for Deathmatch Classicin repogame data |
| ** ### `pak0.pak` ** - Path: `dmc/pak0.pak`- System: [Deathmatch Classic](https://abdess.github.io/retrobios/systems/valve/#half-life)- Not collected yet: The Linux dedicated servers that carry dmc/ (hlds_l 3.1.1.1 and 1.1.2.0) ship it as loose files with no .pak, and none of the WON patches checked carries a dmc/pak0.pak. ([files not collected yet](https://abdess.github.io/retrobios/gaps-not-collected/)) **Source** - Source: [`filesystem/pak.c`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/pak.c) | optionalunsourceablegame data |
| ** ### `liblist.gam` ** - Path: `gearbox/liblist.gam`- System: [Half-Life: Opposing Force](https://abdess.github.io/retrobios/systems/valve/#half-life)- Gearbox folder is the retail Opposing Force game dir. - Collection copy: [`bios/Valve/Half-Life/gearbox/liblist.gam`](https://abdess.github.io/retrobios/systems/valve/#sha1-4fe454918599) **Source** - Source: [`filesystem/gameinfo.c:617`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/gameinfo.c#L617) | required for Half-Life: Opposing Forcein repogame data |
| ** ### `pak0.pak` ** - Path: `gearbox/pak0.pak`- System: [Half-Life: Opposing Force](https://abdess.github.io/retrobios/systems/valve/#half-life)- Not collected yet: The free 1.1.0.8 WON patch ofo1108.exe installs a gearbox/pak0.pak of 83750141 bytes (sha1 aefbe228c010ade60e73d1ddf1f9b2878090b596) holding 514 entries with the 25 multiplayer maps and none of the of0a0 to of7a single-player maps, and the free Linux server opfor_linux.tar.gz carries a 529-entry multiplayer-only pak of 74390909 bytes, so neither is the client archive of the retail release. ([files not collected yet](https://abdess.github.io/retrobios/gaps-not-collected/)) **Source** - Source: [`filesystem/pak.c`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/pak.c) | optionalunsourceablegame data |
| ** ### `liblist.gam` ** - Path: `bshift/liblist.gam`- System: Half-Life: Blue Shift- Not collected yet: retail data the collection does not hold, and a same-named file of another game must not stand in ([files not collected yet](https://abdess.github.io/retrobios/gaps-not-collected/)) **Source** - Source: [`filesystem/gameinfo.c:617`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/gameinfo.c#L617) | required for Half-Life: Blue Shiftunsourceablegame data |
| ** ### `pak0.pak` ** - Path: `bshift/pak0.pak`- System: Half-Life: Blue Shift- Not collected yet: retail data the collection does not hold, and a same-named file of another game must not stand in ([files not collected yet](https://abdess.github.io/retrobios/gaps-not-collected/)) **Source** - Source: [`filesystem/pak.c`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/pak.c) | optionalunsourceablegame data |
| ** ### `liblist.gam` ** - Path: `ricochet/liblist.gam`- System: [Ricochet](https://abdess.github.io/retrobios/systems/valve/#half-life) - Collection copy: [`bios/Valve/Half-Life/ricochet/liblist.gam`](https://abdess.github.io/retrobios/systems/valve/#sha1-6d73812d2627) **Source** - Source: [`filesystem/gameinfo.c:617`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/gameinfo.c#L617) | required for Ricochetin repogame data |
| ** ### `pak0.pak` ** - Path: `ricochet/pak0.pak`- System: [Ricochet](https://abdess.github.io/retrobios/systems/valve/#half-life)- Not collected yet: The Linux dedicated servers that carry ricochet/ (hlds_l 3.1.1.1 and 1.1.2.0) ship it as loose files with no .pak, and none of the WON patches checked carries a ricochet/pak0.pak. ([files not collected yet](https://abdess.github.io/retrobios/gaps-not-collected/)) **Source** - Source: [`filesystem/pak.c`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/pak.c) | optionalunsourceablegame data |
| ** ### `liblist.gam` ** - Path: `tfc/liblist.gam`- System: [Team Fortress Classic](https://abdess.github.io/retrobios/systems/valve/#half-life) - Collection copy: [`bios/Valve/Half-Life/tfc/liblist.gam`](https://abdess.github.io/retrobios/systems/valve/#sha1-33a9f0d40dae) **Source** - Source: [`filesystem/gameinfo.c:617`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/gameinfo.c#L617) | required for Team Fortress Classicin repogame data |
| ** ### `pak0.pak` ** - Path: `tfc/pak0.pak`- System: [Team Fortress Classic](https://abdess.github.io/retrobios/systems/valve/#half-life) - Collection copy: [`bios/Valve/Half-Life/tfc/pak0.pak`](https://abdess.github.io/retrobios/systems/valve/#sha1-133105d529ad) **Source** - Source: [`filesystem/pak.c`](https://github.com/FWGS/xash3d-fwgs/blob/27092af50d912432887faa43a1cccddfae569b2d/filesystem/pak.c) | optionalin repogame data |

## Next steps

- [Get the files](https://abdess.github.io/retrobios/which-pack/), for the setup in use
- [Every system](https://abdess.github.io/retrobios/systems/), and the files each one needs
- [When a game does not start](https://abdess.github.io/retrobios/wiki/troubleshooting/)

Data as of 24 November 2026.
