Tool that converts GoldSrc BSPs into Source 1 BSPs (and VMFs).
This is currently unfinished, I'm not sure when/if I'm going to finish this, so here it is for now.
Unfinished features:
- Models (props?) don't get converted (neither do sprites).
- Automatic entity conversion is unfinished and in a testing state (this is most needed for direct bsp to bsp conversion, entities are converted as is for VMFs right now).
- Visibility doesn't work in converted BSPs.
- Water doesn't work quite properly in converted BSPs.
- Command line output is a mess, mostly debug stuff right now.
Some (mostly finished) features:
- Automatic texture conversion (including transparent textures and the skybox). Source 1 (CS:GO) also seems to support GoldSrc animated textures to some extent.
- Lighting conversion from GoldSrc to Source 1 BSP. (1:1 lighting!)
- Conversion to BSP and VMF (as mentioned before).
- Loads of jank and bugs.
Install zig 0.14 to system path somewhere.
Open the terminal in the root directory and type zig build
.
Boom, done.
To do a release build run zig build -Doptimize=ReleaseFast
.
To cross-compile for linux add -Dtarget=x86_64-linux-gnu
.
To cross-compile for windows add -Dtarget=x86_64-windows-gnu
.
goldsrctosource.exe -input "D:\Steam\steamapps\common\Half-Life\cstrike\maps\kz_man_everest.bsp" \
-outputvmf debug/out.vmf \
-outputbsp debug/out.bsp \
-mod cstrike
-enginepath "D:\Steam\steamapps\common\Half-Life" \
-assetpath "C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo"```