Table of Contents

Getting Started

Introduction

This guide will walk you through deploying ModSharp on a fresh CS2 server installation.

Terminology

To simplify the following instructions, let's define the core path:

  • {CS2}: Server install directory (In all subsequent steps, this symbol represents your CS2 server root directory)

Download

Please visit the Release page and download the latest version.

Check Environment

Tip

We recommend using Windows Server 2022 DataCenter or newer

Launch Configuration

Please go to {CS2}/game/csgo/gameinfo.gi and make the following modifications:

    // ...Ignore
    FileSystem
    {
        SearchPaths
        {
            Game_LowViolence    csgo_lv // Perfect World content override

+           Game    sharp

            Game    csgo
            Game    csgo_imported
            Game    csgo_core
            Game    core

            Mod        csgo
            Mod        csgo_imported
            Mod        csgo_core

            AddonRoot            csgo_addons
            OfficialAddonRoot    csgo_community_addons

            LayeredGameRoot        "../game_otherplatforms/etc" [$MOBILE || $ETC_TEXTURES] //Some platforms do not support DXT compression. ETC is a well-supported alternative.
            LayeredGameRoot        "../game_otherplatforms/low_bitrate" [$MOBILE]
        }

        "UserSettingsPathID"    "USRLOCAL"
        "UserSettingsFileEx"    "cs2_"
    }

    // ...Ignore
Tip

This operation is the same as installing Metamod, except the path is changed from csgo/addons/metamod to sharp.


Install ModSharp

Place the sharp package in the {CS2}/game directory

Note

Example structure

.
├── bin
├── core 
├── cs2.sh
├── csgo
├── csgo_community_addons
├── csgo_core 
├── csgo_imported 
├── csgo_lv
├── sharp
│   ├── bin
│   ├── configs
│   ├── core
│   ├── gamedata
│   ├── modules
│   └── shared
└── thirdpartylegalnotices.txt

Start the Server

When you see the output similar to the one shown in the figure below, the startup is complete.

看图

At this point, you can enter ms in the console. When you see the output similar to the one shown in the figure, it means you have completed the installation.

看图