• Divran's SVN Tutorial [Pictures Included]
    463 replies, posted
  • Avatar of Divran
  • [release][b][highlight]This tutorial is very old and outdated. While the tutorial itself can be helpful, I recommend not using any of the svn links provided on this page. Instead, get the latest svn links (or other method of downloading) from each individual developer.[/highlight][/b][/release] Hello everyone. Welcome to my SVN Tutorial. I KNOW the computer I took the screenshots on is in SWEDISH, but you should be able to understand what it says anyway. So let's get started. [release]:science: [b]YOUTUBE VERSION![/b] :science: [url]http://www.youtube.com/watch?v=SQgetjwgF9M[/url] [media]http://www.youtube.com/watch?v=SQgetjwgF9M[/media] [/release] [release]:science: [b]WRITTEN VERSION![/b] :science: [b]1)[/b] Download it. [url]www.tortoisesvn.net[/url] (Choose the correct INSTALLER - not a GPG signature.) [IMG]http://i180.photobucket.com/albums/x318/Arvidenbom/svntutorialdownload.jpg[/IMG] [IMG]http://i180.photobucket.com/albums/x318/Arvidenbom/svntutorialdownloadprt2.jpg[/IMG] [b]2)[/b] Install it. [b]3)[/b] When the installation program asks you to restart your computer, click No. (If SVN does not work after you have clicked no, then restart your computer. But if it does work, then there you go!) [b]4)[/b] Make a new folder somewhere (somewhere you can remember where it is, because you will be going there a lot). Name that folder something like "SVN Addons". This is where you will keep all your SVN'd addons. This folder can be anywhere EXCEPT inside your Steam or Garrysmod folders. [IMG]http://i180.photobucket.com/albums/x318/Arvidenbom/svntutorialnewfolder.jpg[/IMG] (Sorry about taking this screenshot on a swedish computer. In english, the above picture says "New -> Folder") [b]4B)[/b] [highlight]Optional.[/highlight] Make a shortcut to that place and put it on your desktop for quicker access [b]5)[/b] [highlight]Scroll down to the bottom of this post[/highlight], where I have added some of the more usefull SVN links (But not all of them!) If you are looking for another SVN, which isn't in my list, chances are it's here: [url]http://wiki.garrysmod.com/?title=SVN_Links[/url] [url]http://archive.snakesvx.net/index.php/module_Wiki2/title_Help_Info_SVN[/url] [b]6)[/b] Copy the SVN link of an addon of your choice from one of those two sites (or the list of links at the bottom of this post) [IMG]http://i180.photobucket.com/albums/x318/Arvidenbom/svntutorialcopylink.jpg[/IMG] [b]7)[/b] Make a new folder inside the folder you created in step 4. [b]8)[/b] Name that folder something so that you will remember what's in it (for PHX, name it PHX or PHX3 or something). [b]9)[/b] Right click the folder [b]10)[/b] click SVN Checkout [IMG]http://i180.photobucket.com/albums/x318/Arvidenbom/svntutorialcheckout.jpg[/IMG] [b]11)[/b] paste the link you copied (in step 6) into "URL of repository" [IMG]http://i180.photobucket.com/albums/x318/Arvidenbom/svntutorialcheckoutprt2.jpg[/IMG] [b]12)[/b] click OK [b]12B)[/b] Some addons require a pass and username. They will both be either "anonsvn" or "anon". [b]12C)[/b] You will now be downloading the addon. [b]13)[/b] Now comes the real pain in the ass. Exporting. You must now Right click each SVN'd addon and click TortoiseSVN -> Export, and export them into the Garrysmod/addons folder. [url=http://www.facepunch.com/showpost.php?p=15197368&postcount=150][highlight][b]NOTE:[/b][/highlight] Click here if you are downloading Stargate, SBEP or Wiremod![/url] [IMG]http://i180.photobucket.com/albums/x318/Arvidenbom/svntutorialexport.jpg[/IMG] You might ask why you should make the folders OUTSIDE of the addons folder and not just place them directly in the addons folder and skip the Exporting? This is because when you download an addon using SVN, it makes invsible files that contain information that SVN uses (for example for knowing which files you don't yet have when you Update an addon). These files are very small, but if you put them all together, they DOUBLE the size of the addon in question. And you know that the bigger your addons folder is, the more Gmod laggs and the longer it has to load. So, if you do an Export on SVN'd folders, SVN will copy that folder for you and clean it of the invisible folders, thus making your Gmod non-slowed down :D [b]14)[/b] Do steps 6 to 13 over and over again for every addon you want. [b]15)[/b] To update, Right click an SVN'd folder and click Update. [IMG]http://i180.photobucket.com/albums/x318/Arvidenbom/svntutorialupdate.jpg[/IMG] [B]Alternative way of exporting:[/B] Don't like to right click and look for the Gmod Addons folder every time you want to export? [I]1)[/I] Open both the SVN Addons folder and the Gmod Addons folder so that they are side by side on your screen. [I]2)[/I] [I]Right click,[/I] hold down, drag and drop the SVN Addon from the SVN Addons folder into your Gmod Addons folder. [I]3)[/I] Click Export To Here. [/release] [release]:science: [b]MY VERY OWN SVN LINK[/b] :science: This is my own SVN link. Here I will put my own small scripts and addons for you to try. [code]http://divranspack.googlecode.com/svn/trunk/ divranspack[/code][/release] [release]:science: [b]USEFUL SVN LINKS[/b] :science: [i]In alphabetical order[/i] [list][b][url=http://www.facepunch.com/showthread.php?t=940348]Evolve[/url][/b] (An Admin Mod - Server side only)[/list] [code]http://evolvemod.googlecode.com/svn/trunk/beta[/code] [list][b][url=http://www.facepunch.com/showthread.php?p=11072358]Laser Stool[/url][/b] (Adds a laser stool to your game - Server & Client side)[/list] [code]https://svn.madjawa.net/lua/LaserSTOOL[/code] [list][b]PHX3[/b] (Adds props to your game - Server & Client side)[/list] [code]https://phoenix-storms.svn.sourceforge.net/svnroot/phoenix-storms[/code] [list][b][url=http://www.facepunch.com/showthread.php?t=848006]SBEP[/url][/b] (Adds props & entities to your game - Server & Client side)[/list] [code]http://sbep.googlecode.com/svn/trunk/[/code] [list][b][url=http://www.facepunch.com/showthread.php?p=6914481]Simple Prop Protection[/url][/b] (Adds Simple Prop Protection to your server. Keeps people from touching eachother's props - Server side only)[/list] [code]http://simplepropprotection.googlecode.com/svn/trunk[/code] [list][b]Spacebuild 2 (All-in-one pack)[/b] (An All-in-one pack. Contains all SB2 related addons. Is outdated (see SB3).)[/list] [code]This link is no longer needed. SnakeSVX has an official 2.0 SVN link.[/code] [list][b][url=http://www.facepunch.com/showthread.php?t=651309]Stargate[/url][/b] (Adds Stargate to your game - is client & Serverside)[/list] [code]http://svn.daggeringcats.com/stargate[/code] [list][b][url=http://www.facepunch.com/showthread.php?t=841685]Stargate Extras[/url][/b] (Adds some extra stuff to your stargate pack. Requires the Stargate pack - Server & Client side)[/list] [code]http://sgose.googlecode.com/svn/trunk[/code] [list][b][url=http://www.wiremod.com/]Wiremod[/url][/b] (Adds Wiremod to your game - Server & Client side)[/list] [code]https://wiremod.svn.sourceforge.net/svnroot/wiremod/trunk/[/code] [list][b][url=http://www.wiremod.com/]Wiremod Extras (Aka Unofficial Wiremod SVN/UWSVN)[/url][/b] (Adds some extra stuff to your Wiremod pack. Requires the Wiremod pack - Server & Client side)[/list] [code]http://svn.dagamers.net/wiremodextras/trunk[/code] [list][b]I did not post LS3, RD3, Framework or Spacebuild3 in this list because their website says not to.[/b] [url=http://archive.snakesvx.net/index.php/module_Wiki2/title_Help_Info_SVN]Go to their website to get the SVN links.[/url][/list] [list][b]If any of the links in this list is outdated, please post in this thread to let me know!![/b][/list] [list][b]If you want me to put more links on this list, please post in this thread to let me know!![/b][/list] [/release] [release]:science: [B]WHY SHOULD YOU GET SVN?[/B] :science: [list]Time saving[/list] It downloads WAY faster than Gmod.org When you update your addons, it only downloads the files that have been modified since the last time you updated! Imagine that you want to get Wiremod. It's
  • Ahhh good one, I've noticed the stupid amounts of people recently wondering how to use SVN. Hopefully they will read this. It should really be stickied.
  • Avatar of Divran
  • [QUOTE=hexpunK;13583302]Ahhh good one, I've noticed the stupid amounts of people recently wondering how to use SVN. Hopefully they will read this. It should really be stickied.[/QUOTE] Yeah but Mods never really sticky other people's topics. We will have to go on helping sprees and post links to this tutorial.
  • Avatar of Yumyumbubleg
  • [QUOTE=ZpankR;13594017]Gah, I was hoping for a SVN Server tutorial.[/QUOTE] Just export it to your desktop, then upload it with your chosen ftp client.
  • Avatar of qmanjr5
  • Er, For the exporting, say i named a folder PHX3, do i export that folder to addons? or do i have to do each file individually?
  • Yes you can just export the folder into addons, it will move everything.
  • Avatar of SKyRIDE
  • [QUOTE=qmanjr5;13596236]Er, For the exporting, say i named a folder PHX3, do i export that folder to addons? or do i have to do each file individually?[/QUOTE] Well, you could do it individually if you did feel inclined to spend several hours doing so but its easier to just do it all in one go.
  • Avatar of Divran
  • [QUOTE=ZpankR;13594017]Gah, I was hoping for a SVN Server tutorial.[/QUOTE] Sorry, I don't rent a server so I don't know anything about that. I host my own server on my computer.
  • Just realized, could you post the wiki page full of links here? It' the only thing missing really.
  • Avatar of Divran
  • [QUOTE=hexpunK;13804447]Just realized, could you post the wiki page full of links here? It' the only thing missing really.[/QUOTE] That's already there. Look in step 5.
  • Avatar of aVoN
  • This tutorial is very well done. It not only shows how to get and use SVN for beginners, it also tells you not to checkout to /garrysmod/addons directly! Very well done. You might also add this to the garry's mod Wiki.
  • Avatar of Divran
  • [QUOTE=aVoN;13820252]This tutorial is very well done. It not only shows how to get and use SVN for beginners, it also tells you not to checkout to /garrysmod/addons directly! Very well done. You might also add this to the garry's mod Wiki.[/QUOTE] Thanks! But how do I add it to the Gmod wiki? I don't know anything about that site. :S
  • Avatar of Divran
  • I HAVE WRITTEN A WIKI. Hope you like it. And maybe the title should be changed from "Svn" to "Svn tutorial", but as I said, I'm no Wiki pro. [url]http://wiki.garrysmod.com/wiki/?title=Svn[/url]
  • Avatar of d23e
  • Man I wish this came out when I was trying to learn how to SVN, nice job.
  • [QUOTE=Divran;13811933]That's already there. Look in step 5.[/QUOTE] Must've missed it...I really have to learn to read things thoroughly.
  • Avatar of indrora
  • I dont know if i'm just dense or what, but To The Best Of My Knowledge, I have seen no difference in loading times when using Exported (where the .svn folders have been stripped recursively) and when I place the target of the svn checkout directly into the addons folder. Gmod will [i]ignore[/i] anything it doesn't know.
  • Avatar of Divran
  • [QUOTE=indrora;13852197]I dont know if i'm just dense or what, but To The Best Of My Knowledge, I have seen no difference in loading times when using Exported (where the .svn folders have been stripped recursively) and when I place the target of the svn checkout directly into the addons folder. Gmod will [i]ignore[/i] anything it doesn't know.[/QUOTE] I don't know about the ignoring part, but I noticed a huge difference in starting up my server. And also back when I didn't have this uber stationary PC I used my laptop to play Gmod. Exporting also made that computer faster. I haven't tried NOT exporting on this PC, but I might not notice a difference. I'm sure you notice a bigger difference on sucky computers than good. You should still export though.
  • Avatar of Divran
  • [QUOTE=FireNinja98;13890754]divran if i already have a phx folder in addons should i delete it?[/QUOTE] If you want to use the SVN PHX instead then yes.