Skip to content
celisej567 edited this page Dec 5, 2024 · 2 revisions

How to properly install CSM?


Due to the nature of the upcoming update of my CSM and many questions about the installation, I created this guide. It will help to add my CSM to your modification.

Level Newbie

First of all, you should know that my CSM is for Mapbase 7.x and is not guaranteed to work on other versions of the source code. Also download Visual Studio 2013 and Mapbase's source code to add my CSM. You HAVE to do it to use my CSM.

If you will have problems like "Visual Studio 2013 asks me to register it with a code that I don't have", don't worry, you need to have Visual Studio 2013 only for some .exe files that he will download with himself. You can use Visual Studio 2019 with MSVC that are free to use my CSM and source code at all.

Level Pro

  1. Copy server and client folders to sp|mp/src/game folder.

  2. Go to server folder and find server_base.vpc. Open it with any text editor and add $Include "$SRCDIR\game\server\csm.vpc" after $Include "$SRCDIR\game\server\server_mapbase.vpc"

  3. Go to client folder and find client_base.vpc. Open it with any text editor and add $Include "$SRCDIR\game\client\csm.vpc" after $Include "$SRCDIR\game\client\client_mapbase.vpc"

  4. Go back to src folder and launch creategameprojects.bat and in you folder will appear file games.sln. If its not, probably you don't have VS 2013 installed.

  5. Open games.sln with VS 2013 or VS 2019.

  6. In right side you probably can find Client[HL2] Client[Episodic] Server[HL2] Server[Episodic].

  7. Hold CTRL button on your keyboard and click on Client[Which hl2 game your mod based on] and Server[Which hl2 game your mod based on], right click -> Build.

  8. After some time you will get .dll files, but you need to find them. Go to game folder that are IN THE SAME FOLDER WITH src, go to mod_(hl2 or episodic)/bin. Copy and paste it in bin folder in your mod.

WE ARE NOT DONE YET!

  1. Copy materials folder from my repository to your mod.
  2. Go to your steam library folder and in Source SDK Base 2013 (Multiplayer or Singleplayer) go to bin, copy file fgd/csm.fgd from my repository to this bin folder.
  3. Find halflife2.fgd, open it with any text editor, and add @include "csm.fgd" at the end of the file.

How restart your Hammer and you will have env_cascade_light entity. How to use it? Maybe i will tell later.

Clone this wiki locally