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:
INSERTING PLAYER STARTS
You need 10-15 player spawns (or more) for each side. These player spawns are:
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
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.
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:
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.
CS:GO SDK Beginner Basics Series:
All content on this website is copyrighted ©2008-2021 World of Level Design LLC by Alex Galuzin. All rights reserved.
Duplication and distribution is illegal and strictly prohibited.
World of Level Design LLC is an independent company. World of Level Design website, its tutorials and products are not endorsed, sponsored or approved by any mentioned companies on this website in any way. All content is based on my own personal experimentation, experience and opinion. World of Level Design™ and 11 Day Level Design™ are trademarks of Alex Galuzin.
Template powered by w3.css