Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Building & Compiling

Eno edited this page Jul 9, 2024 · 20 revisions

Current Building Steps

Attention!

Linux-Strike will build into folder ../game/
Make sure you clone this repo inside an existing folder!

Linux-Strike uses CMake, the following sections will provide more information.

Packages

Required Packages moved to this page: https://github.com/P0L3NARUBA/Linux-Strike/wiki/Required-Packages

BUILD - CMake/Make

See the wiki page for CMake Building options: https://github.com/P0L3NARUBA/Linux-Strike/wiki/CMake-Options

Basic Usage

cd ./cmake-build
cmake .. <VARIOUS OPTIONS HERE>
make -j<NUM_THREADS>

AFTERBUILD - Get The Original Game Files

Use Depot Downloader(https://github.com/SteamRE/DepotDownloader) with your steam account.

CSGO SteamAppID: 730
CSGO Assets: DepotID: 731 ManifestID: 7043469183016184477
Windows Binaries: DepotID: 732 ManifestID: 4047004309608881181
Linux Binaries: Depot ID: 734 ManifestID: 4197642562793798650

The command parameters for Depot Downloader should be: ./DepotDownloader -username *username* -password *password* -app *appid* -depot *depotid* -manifest *manifestid*

Download these depots with Depot Downloader, When all the files/folders are installed:

  • Copy over all files from the 731 assets depot (manifest: 7043469183016184477)
  • Copy over only needed files from the 734 linux binary depot (manifest: 4197642562793798650)
    • ./bin/map_publish/* - (FOLDER which seems to contain some vgui assets)
    • ./csgo.sh
    • [OPTIONAL]./game/bin/linux64/libphonon3d.so -- If you want HRTF 3D sound.
    • [OPTIONAL]./game/bin/linux64/vphysics_client.so -- If you want Valve-Original physics engine. (It runs a bit better than the rebuild, but is closed-source)
    • [OPTIONAL]./game/bin/linux64/scaleformui_client.so -- If you want the ScaleformUI for some reason.

File Structure should be like this:

Files/
depots/
├─ 731/ (CSGO Assets)
│  ├─ 13410341/
├─ 732/ (Windows Binaries) [OPTIONAL]
│  ├─ 13410341/
├─ 734/ (Linux Binaries)
│  ├─ 13410341/
game/ (If you started compiling, then this folder will appear.)
Linux-Strike/ (Source Code Folder)

AFTERBUILD - Get The Additional RocketUI Files

Head over to the Files Repo: https://github.com/P0L3NARUBA/Linux-Strike-Files These are belongs to inside of your ../game/ folder.

  • This step only for who compiled with -DUSE_ROCKETUI=1 Flag.

Current Nonfree blobs/libraries

Launch

./csgo_linux64 Into your terminal, CD to /game/ folder.
If its not working, Then try: ./csgo.sh

Recommended IDEs

  • VS Code with C/C++ and CMake syntax extensions installed.
  • CLion

Note

CLion is a Paid IDE, so maybe you should need to prefer VSCode.
CLion has a 30 day free-trial.