CSM to a Source Mod: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "=== About CSM === Detailed Explanation of what CSM is can be located here === Overview === this will be a detailed guide on how to implement celisej567's...")
 
(reformat and add to category)
 
Line 1: Line 1:
=== About CSM ===
=== About CSM ===
[[Env cascade light|Detailed Explanation of what CSM is can be located here]]
[[Env cascade light|Detailed Explanation of what CSM is can be located here]]
=== Overview ===
=== Overview ===
this will be a detailed guide on how to implement celisej567's version of CSM since the guide on their [https://github.com/celisej567/Fake-CSM-Source-2013/wiki GitHub repository] is not detailed and is hard to follow
This guide will explain how to implement celisej567's version of CSM, since the guide on their [https://github.com/celisej567/Fake-CSM-Source-2013/wiki repo] isn't detailed and hard to follow


=== How to implement ===
=== How to implement ===
# you must use {{Mapbase|4|nt=2}} 7.x source code only else the CSM will not work
 
# after downloading {{Mapbase|4|nt=2}} src copy the server and client folders from the repository to your own computer, the files inside have to be moved to your sp|mp/game/ directory
# You must use {{Mapbase|4|nt=2}} 7.x source code only, otherwise CSM will not work.{{why}}
# go to your server directory and open server_base.vpc with any text editor and add $Include "$SRCDIR\game\server\csm.vpc" after the line $Include "$SRCDIR\game\server\server_mapbase.vpc" if you can not find this file place $Include "$SRCDIR\game\server\csm.vpc" near where most vpc files are
# After downloading {{Mapbase|4|nt=2}} source code, copy the server and client folders from the repository to your own computer, the files inside have to be moved to your {{code|(sp or mp)/game/}} directory.
# now go to the client directory and open client_base.vpc and add the line $Include "$SRCDIR\game\client\csm.vpc" after $Include "$SRCDIR\game\client\client_mapbase.vpc" if you can not find this line please add $Include "$SRCDIR\game\client\csm.vpc" where most .vpc files are listed
# Open server_base.vpc from the server directory with any text editor, and add {{code|$Include "$SRCDIR\game\server\csm.vpc"}} after the line that has {{code|$Include "$SRCDIR\game\server\server_mapbase.vpc"}}.
# go back to your src directory and launch the creategameprojects.bat and compile your source mod
# Open client_base.vpc from the client directory with any text editor, and add {{code|$Include "$SRCDIR\game\client\csm.vpc"}} after the line that has {{code|$Include "$SRCDIR\game\client\client_mapbase.vpc"}}.
# Copy materials folder from the repository to the compiled mod
# Go back to your source directory and launch the {{code|creategameprojects.bat}}.
# open Steam library folder (C:\Program Files (x86)\Steam\steamapps\common\) and in Source SDK Base 2013 (Multiplayer or Singleplayer) folder go to bin and copy the fgd/csm.fgd from the repository to the bin folder
# Copy materials folder from the repository to the compiled mod.
# find the halflife2.fgd file and open it with any text editor, and add @include "csm.fgd" at the end of the file
# Open your steam library folder (usually {{path|C:\Program Files (x86)\Steam\steamapps\common}}), and in the Source SDK Base 2013 (Multiplayer or Singleplayer) folder, copy the file {{code|fgd/csm.fgd}} from the repository to the bin folder.
# Now restart hammer and you will have the env_cascade_light entity
# Find the {{code|halflife2.fgd}} file and open it with any text editor, adding the line {{code|@include "csm.fgd"}} to the end of the file
# Now restart Hammer, and you will have the env_cascade_light entity available
 
[[Category:Programming]] [[Category:Source]]

Latest revision as of 18:07, 10 June 2025

About CSM

Detailed Explanation of what CSM is can be located here

Overview

This guide will explain how to implement celisej567's version of CSM, since the guide on their repo isn't detailed and hard to follow

How to implement

  1. You must use Mapbase Mapbase 7.x source code only, otherwise CSM will not work.[Why?]
  2. After downloading Mapbase Mapbase source code, copy the server and client folders from the repository to your own computer, the files inside have to be moved to your (sp or mp)/game/ directory.
  3. Open server_base.vpc from the server directory with any text editor, and add $Include "$SRCDIR\game\server\csm.vpc" after the line that has $Include "$SRCDIR\game\server\server_mapbase.vpc".
  4. Open client_base.vpc from the client directory with any text editor, and add $Include "$SRCDIR\game\client\csm.vpc" after the line that has $Include "$SRCDIR\game\client\client_mapbase.vpc".
  5. Go back to your source directory and launch the creategameprojects.bat.
  6. Copy materials folder from the repository to the compiled mod.
  7. Open your steam library folder (usually 🖿C:\Program Files (x86)\Steam\steamapps\common), and in the Source SDK Base 2013 (Multiplayer or Singleplayer) folder, copy the file fgd/csm.fgd from the repository to the bin folder.
  8. Find the halflife2.fgd file and open it with any text editor, adding the line @include "csm.fgd" to the end of the file
  9. Now restart Hammer, and you will have the env_cascade_light entity available