Counter-Strike 2

Counter-Strike 2

Not enough ratings
CS:GO SDK - How to Compile and Run Your First Map
By {=[Mor14cik]=}
CS:GO SDK - How to Compile and Run Your First Map
   
Award
Favorite
Favorited
Unfavorite
INTRODUCTION
It is now time to run our map in-game. Up to this point we have created bsp geometry, placed prop models, textured our simple map and inserted lights. Lets compile and run the map in-game.


In this tutorial you will learn:

  • How to compile your map
  • How to run your map in-game using Expert Mode and through CS:GO
  • Where to find your compile log
  • Inserting player spawns
INSERTING PLAYER STARTS
You need 10-15 player spawns (or more) for each side. These player spawns are:

  • info_player_terrorist
  • info_player_counterterrorist

But for now, lets just insert one player start for each side.

Enable the Entity Tool, and use the drop down menu to select info_player_terrorist.



In perspective viewport, Left Click to place the player spawn.

Do the same thing for CT side, using info_player_counterterrorist.


Important: Make you raise each player spawn above ground higher then 8 units.

T MODEL ERROR (UPDATE: this Error has been fixed by Valve)
There is a bug in CS:GO, when you place info_player_terrorist player spawn, it renders it as model error. This is just a visual bug inside the editor and it does not affect the actual player spawn.

SAVE YOUR MAP
Make sure to save your map before compiling.

File --> Save As

COMPILING YOUR MAP
Press F9 or up in the top toolbar click on the Run Map icon.


Run Map Normal Options will pop up. This is Normal Run Map Dialogue Box.

Set everything to Normal and make sure HDR is checked.


Also I check 'Wait for keypress when done compiling'. This is optional. It will keep the compile window open, until I press a key. Useful for looking at the compiling log.

Click OK to compile. Depending on the size of the map, this will take just a few seconds for our simple room to a few of hours for a full size map.

At this stage, there is a bug in CS:GO, because it should have started our map in-game automatically. But because of a bug we have to run our map using couple of other options.
RUNNING YOUR MAP IN GAME
Option 1:

If your map doesn't run automatically after compile, hit F9 again to bring up Run Map dialogue box. Click on Expert button to switch over to Expert Mode.

Under the drop down menu in Configurations, you have options of compiling your map with certain parameters. Very useful for final compiles.

What we are interested in is Run map - windowed option. Choose that and click go.


This option will launch your map in-game. Make sure you have compiled your map first, before running it.

Option 2:

Second option is to run your map in-game through Steam.

Go to Steam Library and Right-Click on Counter-Strike: Global Offensive.


Next, click on set launch options.


Here we are going to set to launch our game in windowed mode. Here are my parameters:

  • -console -sw -w 1280 -h 720 +sv_cheats 1


Enable console, windowed mode dimensions and enable cheats.

Click OK and launch the game.

To bring up console hit the tilde key ~, it is the key above Tab.

Then type "map mapname" without quotes.

WHERE IS YOUR COMPILE LOG?
If you ever need to access your compile log to look through any errors or to post on forums when you can't figure out your map errors, you will find the compile log inside the saved map folder in C:\Program Files \Steam \steamapps \common \Counter-Strike Global Offensive \sdk_content\maps inside the folder where your .vmf file was saved. Inside you will find a text document saved with same name as your map. This is your compile log, the same text that was in the run map option when we compiled.

Every time you compile, it replaces the old log and generates a new one.

THANKS FOR READING
3 Comments
ᵗᵒˣᶦᶜ sheezy 15 Aug, 2022 @ 4:37am 
hyhy niceee
𝕯𝖊𝖆𝖙𝖍 1 Jan, 2022 @ 3:01pm 
ENG : Choose the one that's on the list and write in my profile, I will answer the same!
+rep AWP KING
+rep Best Sniper Ever !
+rep Deagle God
+rep Deagle Pro
+rep Level 10 in FACEIT
+rep Clutch King
+rep BOSS
+rep Great Aim
+Rep Saved Our Match!
+rep Cool Guy & Ultra Lucky
+rep Nice Player
+rep Trusted CS:GO Player
+rep nice Team +rep nice men
+rep good knife
+rep Nice Ace
+rep Good player
+rep Epic Clutch
+rep Amazing Tactics 👌
+rep Sign my profile 💜
+rep Killing Machine 😈
+rep Epic Comeback 👏
+rep Top Player 🔝
+rep nice profile 💜
+rep Friendly Person ✌
+rep Insane Skills 👌
+rep Great Teammate 🎮
+rep Nice Inventory 😍
+rep ONE TAP MACHINE 💢
+rep Great Player 💛
+rep Thanks For Carry 👍
+rep sign me pls 💛
ɴ ᴀ ᴠ ɪ 27 Dec, 2021 @ 9:59am 
:csgo_loser: