Skip to content

Setting up

campbt edited this page Sep 27, 2015 · 4 revisions

Setting up the project for the first time

Download the tools

Use this page to get the tools set up:

Dota 2 Workshop Tools

This link will visually show how to see the tools

Clone the repo

cd where/you/want/to/develop/in
git clone https://github.com/Tethrinaa/Swat2.0.git Swat2.0 // Clone the repo into it

Link the repo files into the dota 2 client

Dota 2 has a weird system in place to actually play/edit mods. We will need to have our files in two different places in the dota 2 game folder in order for the editor to see. We obviously don't want our git repo in these locations, so we will want to set up a symbolic link.

You need to symbolically link the following:

  • Swat2.0\content\swat2 -> Steam\steamapps\common\dota 2 beta\content\dota_addons\swat2
  • Swat2.0\game\swat2 -> Steam\steamapps\common\dota 2 beta\game\dota_addons\swat2

If you are unfamiliar with symbolic links, you should download Link Shell Extension to help make this process easier.

And then do the following:

  1. In windows explorer, navigate to the cloned repo.
  • Open Swat2.0\content
  • Right click on swat2 folder and choose Pick Link Source
  • Navigate to Steam\SteamApps\common\dota 2 beta\content\dota_addons
  • Right click and select: drop as > Junction
  1. In windows explorer, navigate to the cloned repo.
  • Open swat_2\game
  • Right click on swat2 and choose Pick Link Source
  • Navigate to Steam\SteamApps\common\dota 2 beta\game\dota_addons
  • Right click and select: drop as > Junction

Run the tools

  • You can run the tools by selecting Dota 2 in your Steam Games folder and selecting the tools option from the opening box.
  • You should see the "swat2" mod in the list of mods that appear. Select it and click Launch Custom Game Tools.
  • This will open up both Dota 2 and the assets editor.
  • From the assets editor, select Tools -> Hammer. A new hammer editor window should appear.
  • From the hammer editor, click F9 and it should open up a window asking you to build. Build the project and it should compile and build everything and run it in the Dota 2 instance that is up.
  • Note: You can currently ignore the warnings like:
    CMaterial2::LoadShadersAndSetupModes(849): Error creating shader gaussian_bloom_blur.vfx for material materials/dev/gaussian_bloom_blur.vmat!

Clone this wiki locally