|
1 | 1 | --- |
2 | 2 | title: Setting Up Your Addon With GitHub |
3 | 3 | author: Veggiesama |
4 | | -date: 07.03.2015 |
| 4 | +date: 06.03.2024 |
5 | 5 | --- |
6 | 6 |
|
7 | | -Split the game into a game and content folder, then add junctions to link them with the dota files. |
8 | | - |
9 | | -Create the junctions: |
| 7 | +Split the game into a `game` and `content` folder, then add junctions or symlinks to link them with the Dota files. |
10 | 8 |
|
| 9 | +## Windows - Create the junctions |
| 10 | +For `game` folder, run |
| 11 | +```shell |
11 | 12 | mklink /J "C:\Users\Veggiesama\Desktop\HVH\game\hunter_v_hunted\" "C:\Games\steamapps\common\dota 2 beta\game\dota_addons\hunter_v_hunted\" |
| 13 | +# Junction created for C:\Users\Veggiesama\Desktop\HVH\game\hunter_v_hunted\ <<===>> C:\Games\steamapps\common\dota 2 beta\game\dota_addons\hunter_v_hunted\ |
| 14 | +``` |
12 | 15 |
|
13 | | -Junction created for C:\Users\Veggiesama\Desktop\HVH\game\hunter_v_hunted\ <<===>> C:\Games\steamapps\common\dota 2 beta\game\dota_addons\hunter_v_hunted\ |
14 | | - |
| 16 | +For `content` folder, run |
| 17 | +```shell |
15 | 18 | mklink /J "C:\Users\Veggiesama\Desktop\HVH\content\hunter_v_hunted\" "C:\Games\steamapps\common\dota 2 beta\content\dota_addons\hunter_v_hunted\" |
| 19 | +#Junction created for C:\Users\Veggiesama\Desktop\HVH\content\hunter_v_hunted\ <<===>> C:\Games\steamapps\common\dota 2 beta\content\dota_addons\hunter_v_hunted\ |
| 20 | +``` |
| 21 | + |
| 22 | +To remove junctions, simply remove the link directory |
| 23 | +```shell |
| 24 | +rmdir "C:\Users\Veggiesama\Desktop\HVH\content\hunter_v_hunted\" -force |
| 25 | +``` |
| 26 | +
|
| 27 | +## Linux - Create the symlinks |
| 28 | +For `game` folder, run |
| 29 | +```shell |
| 30 | +ln -s /home/username/games/Steam/steamapps/common/dota2/game/dota_addons/my_custom_game /home/username/workspaces/dota2-workshops/my_custom_game/game |
| 31 | +``` |
| 32 | +
|
| 33 | +For `content` folder, run |
| 34 | +```shell |
| 35 | +ln -s /home/username/games/Steam/steamapps/common/dota2/content/dota_addons/my_custom_game /home/username/workspaces/dota2-workshops/my_custom_game/content |
| 36 | +``` |
16 | 37 |
|
17 | | -Junction created for C:\Users\Veggiesama\Desktop\HVH\content\hunter_v_hunted\ <<===>> C:\Games\steamapps\common\dota 2 beta\content\dota_addons\hunter_v_hunted\ |
| 38 | +Remove the symlinks by using |
| 39 | +```shell |
| 40 | +unlink /home/username/workspaces/dota2-workshops/my_custom_game/content |
| 41 | +umlink /home/username/workspaces/dota2-workshops/my_custom_game/game |
| 42 | +``` |
18 | 43 |
|
19 | | -Now you can do modifications from the steamapps folder and still use Github for version control from a desktop folder. |
| 44 | +Now you can do modifications from the steamapps folder and still use Github for version control from a linked folder. |
0 commit comments