This is the directory for all assets of Cold Ice Remastered, including its submodule for game libraries. Building is holistic (all assets are built from sources). It is heremetic for all small utils.
- See
.github/workflows/package.yml
for full details on how its built on a remote machine. - All valve/mod small utils are built or included in pipeline (for recombination experimentation, e.g. changes to studiomdl can automatically rebuild models.)
- Two dependenices are required
- On Windows (10, or 11), install portable Powershell 7.2.0+.
- MSVC 2019+ or Buildtools 16+
- Build tools:
--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64
--add Microsoft.VisualStudio.Component.Windows10SDK.19041
- Build tools:
- Clone repo, and all its submodules.
- Create config file for switches in
workspace/
# Example
$Config = @{
'projectName' = 'Cold Ice Remastered'
'gameFolder' = 'ice_beta5'
'binDir' = 'Z:\workspace\bin'
'msBuild' = 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild'
'defintions' = 'VEST;SILENCER;CLUSTER_GRENADES;CROWBAR;KNIFE;RPG;TRIPMINE;CHUMTOAD;SNIPER_RIFLE;BOLT_GUN;RAILGUN;CANNON;DECOY;MAG60;CHAINGUN;GLAUNCHER;SMG;USAS;FISTS;WRENCH;SNOWBALL;CHAINSAW;_12GAUGE;REVOLVER;EGON;M16;SHOTGUN;NUKE;GAUSS;HIVEHAND;SNARK;DEAGLE;DUALDEAGLE;DUALRPG;DUALSMG;DUALWRENCH;DUALUSAS;FREEZEGUN;DUALMAG60;ROCKETCROWBAR;DUALRAILGUN;GRAVITYGUNFLAMETHROWER;DUALFLAMETHROWER;ASHPOD;SAWEDOFF;DUALSAWEDOFF;DUALCHAINGUN;DUALHIVEHAND;FINGERGUN;ZAPGUN'
'hlDir' = 'C:\xash3d-fwgs-win32-i386'
'hlExe' = 'xash3d.exe'
'gameParameters' = '-console -dev 5 -log -windowed -width 640 -height 480'
}
- Execute each script
Build-*.ps1 -ConfigFile <your file>
- Start with
Build-Tools.ps1 -ConfigFile <your file>
first. Then runBuild-Maps.ps1 -ConfigFile <your file>
Build-Models.ps1 -ConfigFile <your file>
Build-Sprites.ps1 -ConfigFile f<your file>ile
Build-Sound.ps1 -ConfigFile <your file>
Build-Windows.ps1 -ConfigFile <your file>
- Start with
- Execute
Start-Windows.ps1 -ConfigFile <your file>
to run
- At this time, only on Windows can you build all assets (maps, models, sprites, etc). Do above first in a shared drive.
- One can build Linux libs or MacOS dlybs using the scripts
build-linux.sh
andbuild-mac.sh
on a native machine - Run
start-ubuntu.sh
to copy and run the package on Ubuntu.
Docker support is available in docker/
. However its building time is very slow (30 minutes to an hour) for the full pipeline, so was abandoned. It remains a work in progress. Your milage may vary.
- Execute
Copy-Distribution.ps1
to copy files to game directory - Execute
Build-Release.ps1
to generated a distributable zip file with pak file.