[BROKEN] [Video] Setting Up Your Addon With GitHub

edited August 2017 in Tutorials

DISCLAIMER: THIS METHOD DOES NOT WORK ANYMORE

Setting Up Your Addon With GitHub

Edit: Using a Junction instead of a Symbolic Link works too, and gives you some more flexibility.

Treat everyday as if you are a student, not a master. The student learns, grows and sees beauty. The master becomes bitter, resentful, and stagnates.

Comments

  • Posts: 23

    Thank you for this guide was very helpful!

  • Posts: 3

    Also you want to use a Junction instead of Symbolic Link.

  • Posts: 184

    Symbolic Link has always worked fine for me. Why's a Junction better?

    Treat everyday as if you are a student, not a master. The student learns, grows and sees beauty. The master becomes bitter, resentful, and stagnates.

  • Posts: 3

    Junction can be used across drives where symbolic links cannot, Junctions are also generally used for directories and symbolic for files.

  • edited June 2015 Posts: 184

    Updated with a video tutorial.

    Treat everyday as if you are a student, not a master. The student learns, grows and sees beauty. The master becomes bitter, resentful, and stagnates.

  • Posts: 74

    Maybe add the "What to do next" text, underneath the video in this thread?

    Working on The Black Road 3 - Persistent RPG

  • Posts: 23

    Helped me sort mine Thank you very much!

  • Posts: 4

    why did you comment out the .vtex_c files in your .gitignore file? aren't those just compiled files?

  • Posts: 184

    why did you comment out the .vtex_c files in your .gitignore file? aren't those just compiled files?

    they weren't auto-compiled in the alpha tools. I'm not sure about now.

    Treat everyday as if you are a student, not a master. The student learns, grows and sees beauty. The master becomes bitter, resentful, and stagnates.

  • Posts: 1

    I think doing this with Symbolic links may break panorama compilations... All my panorama files were ignored when the addon directory was symlinked, copied it back so they were real directories again and it compiled them all quite happily. (The same thing happened with the mini-map too)

    Using a Junction seems to work, however. (Windows and Symlinks don't seem to mix well)

  • Posts: 1

    I used this video and the video in your youtube description and successfully setup source control at gitlab, thanks.

  • So i am confused, is there a reason I have to set up my add on on GitHub through this particular method? I have installed the GitHub desktop client and cloned the git to the addons folder under the same name as my add on and then just transferred all my add on files into it. Is there some reason I should not have done this?

  • Yes. The biggest reason of linking things is that dota mods are split into 2 separate folders. One in /game and one in /content

  • Is there a working alternative that anyone is using?

  • edited September 2017 Posts: 109

    You will have to adjust the paths but for simplicity lets assume they are:

    dota2 beta\game\dota_addons\my_addon
    dota2 beta\content\dota_addons\my_addon
    

    and

    User\Documents\myrepo
    

    open cmd.exe in admin mode:

    mklink /J "User\Documents\myrepo\game" "dota2 beta\game\dota_addons\my_addon"
    mklink /J "User\Documents\myrepo\content" "dota2 beta\content\dota_addons\my_addon"
    

    not sure if a junctions is needed a symbolic link might also work

    Github: Profile Steam: Profile

  • Just wanted to report that symlinks broke for me sometime over the last year, but junctions are doing the job just fine. First I had to remove the symlinks:

    rmdir "C:\Users\Veggiesama\Desktop\HVH\game\hunter_v_hunted\"
    rmdir "C:\Users\Veggiesama\Desktop\HVH\content\hunter_v_hunted\"
    

    Then creation the junctions:

    mklink /J "C:\Users\Veggiesama\Desktop\HVH\game\hunter_v_hunted\" "C:\Games\steamapps\common\dota 2 beta\game\dota_addons\hunter_v_hunted\"
    
    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\
    
    mklink /J "C:\Users\Veggiesama\Desktop\HVH\content\hunter_v_hunted\" "C:\Games\steamapps\common\dota 2 beta\content\dota_addons\hunter_v_hunted\"
    
    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\
    

    Now I can do modifications from the steamapps folder and still use Github for version control from my desktop folder.