Your Ad Here

Subscribe
 Post #1
 7th February 2009 Last edited by Divran; 18th June 2010 at 12:50AM..
Gold Member
Divran's Avatar
April 2008
4,474 Posts
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.





WRITTEN VERSION!
1) Download it. www.tortoisesvn.net (Choose the correct INSTALLER - not a GPG signature.)




2) Install it.
3) 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!)
4) 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.

(Sorry about taking this screenshot on a swedish computer. In english, the above picture says "New -> Folder")

4B) Optional. Make a shortcut to that place and put it on your desktop for quicker access

5) Scroll down to the bottom of this post, 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:
http://wiki.garrysmod.com/?title=SVN_Links
http://archive.snakesvx.net/index.ph..._Help_Info_SVN

6) 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)


7) Make a new folder inside the folder you created in step 4.
8) Name that folder something so that you will remember what's in it (for PHX, name it PHX or PHX3 or something).

9) Right click the folder
10) click SVN Checkout


11) paste the link you copied (in step 6) into "URL of repository"


12) click OK
12B) Some addons require a pass and username. They will both be either "anonsvn" or "anon".
12C) You will now be downloading the addon.

13) 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. NOTE: Click here if you are downloading Stargate, SBEP or Wiremod!




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

14) Do steps 6 to 13 over and over again for every addon you want.

15) To update, Right click an SVN'd folder and click Update.


Alternative way of exporting: Don't like to right click and look for the Gmod Addons folder every time you want to export?
1) Open both the SVN Addons folder and the Gmod Addons folder so that they are side by side on your screen.
2) Right click, hold down, drag and drop the SVN Addon from the SVN Addons folder into your Gmod Addons folder.
3) Click Export To Here.



MY VERY OWN SVN LINK
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



USEFUL SVN LINKS
In alphabetical order
  • Evolve (An Admin Mod - Server side only)
Code:
http://evolvemod.googlecode.com/svn/trunk/beta
  • Laser Stool (Adds a laser stool to your game - Server & Client side)
Code:
https://svn.madjawa.net/lua/LaserSTOOL
  • PHX3 (Adds props to your game - Server & Client side)
Code:
https://phoenix-storms.svn.sourceforge.net/svnroot/phoenix-storms
  • SBEP (Adds props & entities to your game - Server & Client side)
Code:
http://sbep.googlecode.com/svn/trunk/
  • Simple Prop Protection (Adds Simple Prop Protection to your server. Keeps people from touching eachother's props - Server side only)
Code:
http://simplepropprotection.googlecode.com/svn/trunk
  • Spacebuild 2 (All-in-one pack) (An All-in-one pack. Contains all SB2 related addons. Is outdated (see SB3).)
Code:
This link is no longer needed. SnakeSVX has an official 2.0 SVN link.
  • Stargate (Adds Stargate to your game - is client & Serverside)
Code:
http://svn.daggeringcats.com/stargate
  • Stargate Extras (Adds some extra stuff to your stargate pack. Requires the Stargate pack - Server & Client side)
Code:
http://sgose.googlecode.com/svn/trunk
  • Wiremod (Adds Wiremod to your game - Server & Client side)
Code:
https://wiremod.svn.sourceforge.net/svnroot/wiremod/trunk/
Code:
http://svn.dagamers.net/wiremodextras/trunk
  • If any of the links in this list is outdated, please post in this thread to let me know!!
  • If you want me to put more links on this list, please post in this thread to let me know!!



WHY SHOULD YOU GET SVN?
  • Time saving
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 a pretty big addon and takes a while to download. You get it using www.glua.net. Good job, you have the latest version! For about 3 hours...
Wiremod is updated a lot. Almost once a day. So right after you get "the latest" version of wiremod, you go join a server, only to see errors or tools you can't use.
If you are using SVN, all you have to do is right click your SVN'd folder and click "Update". This will take about 30 seconds. If you are using glua, you have to re-download the entire addon and extract it, only for 1 or 2 tools!
  • Capped internet?
If you have a capped internet connection, it is an absolute must have. As it only downloads the files you don't already have, it saves your internet connection.



FREQUENTLY ASKED QUESTIONS!
Q: Why should I not checkout directly to my addons folder?
A: When you download an addon using SVN, it puts invisible folders called ".svn" inside each and every folder in the addon you downloaded. These folders are small by themselves, but put together they are huge. They double the size of the addon folder.
If you put this non-exported addon inside your Addons folder, all the .svn files and folders will make Gmod load slower.
You should therefore export. How to export is explained in the tutorial.

Q: Can't you just remove the invisible .svn folders?
A: Yes. You can. But, there is one .svn folder in each folder of the addon. That means there are thousands. I just say: GLHF, and see you in 3 months. Removing these files also turns the checkouted folder into a normal folder. This means you can't update it anymore, so you have to re-download it all again every time you want to update.

Q: Help! A password!
A: anon & anon or anonsvn & anonsvn.

Q: Wiremod tells me it's not installed correctly. What do I do?
A: Read this.

More FAQs added as they come up.


GOODBYE!
I hope this helped you. If you still don't get it, you can add me to Friends and I can guide you through it in real time through Steam chat instead.

Please go ahead and comment! Did you like it? Do you miss anything that you think I should add? Should I remove something? Change?

Steam username: Divran
Please only add me if you have a question concerning SVN or Wiremod. (I'm pretty handy with Wiremod as well)
Make sure you read the FAQ and that you've followed every step of the tutorial before adding me.
 Post #2
 7th February 2009
humming's Avatar
December 2008
1 Posts
very nice mate :)
 Post #3
 7th February 2009
Gold Member
hexpunK's Avatar
August 2008
10,311 Posts
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.
 Post #4
 7th February 2009
Gold Member
Divran's Avatar
April 2008
4,474 Posts
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.
Yeah but Mods never really sticky other people's topics.

We will have to go on helping sprees and post links to this tutorial.
 Post #5
 7th February 2009
Gold Member
hexpunK's Avatar
August 2008
10,311 Posts
True, I need a way to save this...to iMacros!
 Post #6
 7th February 2009
Viggere's Avatar
January 2009
11 Posts
good tutorial :) thx man
 Post #7
 8th February 2009
ZpankR's Avatar
September 2006
795 Posts
Gah, I was hoping for a SVN Server tutorial.
 Post #8
 8th February 2009
Dennab
September 2008
1,429 Posts
Gah, I was hoping for a SVN Server tutorial.
Just export it to your desktop, then upload it with your chosen ftp client.
 Post #9
 8th February 2009
qmanjr5's Avatar
December 2008
141 Posts
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?
 Post #10
 8th February 2009
Gold Member
hexpunK's Avatar
August 2008
10,311 Posts
Yes you can just export the folder into addons, it will move everything.
 Post #11
 8th February 2009
SKyRIDE's Avatar
November 2008
79 Posts
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?
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.
 Post #12
 8th February 2009
Gold Member
Divran's Avatar
April 2008
4,474 Posts
Gah, I was hoping for a SVN Server tutorial.
Sorry, I don't rent a server so I don't know anything about that. I host my own server on my computer.
 Post #13
 16th February 2009
Gold Member
Divran's Avatar
April 2008
4,474 Posts
Bump for the awesomeness of this tutorial.
 Post #14
 21st February 2009
Gold Member
hexpunK's Avatar
August 2008
10,311 Posts
Bump because this is dying already, get back up there!
 Post #15
 21st February 2009
Gold Member
hexpunK's Avatar
August 2008
10,311 Posts
Just realized, could you post the wiki page full of links here? It' the only thing missing really.
 Post #16
 22nd February 2009
Gold Member
Divran's Avatar
April 2008
4,474 Posts
Just realized, could you post the wiki page full of links here? It' the only thing missing really.
That's already there. Look in step 5.
 Post #17
 22nd February 2009
Gold Member
aVoN's Avatar
December 2005
8,603 Posts
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.
 Post #18
 22nd February 2009
Gold Member
Divran's Avatar
April 2008
4,474 Posts
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.
Thanks! But how do I add it to the Gmod wiki? I don't know anything about that site. :S
 Post #19
 22nd February 2009
Gold Member
Divran's Avatar
April 2008
4,474 Posts
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.

http://wiki.garrysmod.com/wiki/?title=Svn
 Post #20
 23rd February 2009
d23e's Avatar
December 2008
31 Posts
Man I wish this came out when I was trying to learn how to SVN, nice job.
 Post #21
 23rd February 2009
Gold Member
hexpunK's Avatar
August 2008
10,311 Posts
That's already there. Look in step 5.
Must've missed it...I really have to learn to read things thoroughly.
 Post #22
 24th February 2009
indrora's Avatar
July 2008
10 Posts
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 ignore anything it doesn't know.
 Post #23
 24th February 2009
Gold Member
Divran's Avatar
April 2008
4,474 Posts
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 ignore anything it doesn't know.
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.
 Post #24
 26th February 2009
FireNinja98's Avatar
February 2009
90 Posts
divran if i already have a phx folder in addons should i delete it?
 Post #25
 26th February 2009
Gold Member
Divran's Avatar
April 2008
4,474 Posts
divran if i already have a phx folder in addons should i delete it?
If you want to use the SVN PHX instead then yes.
 Post #26
 26th February 2009
FireNinja98's Avatar
February 2009
90 Posts
ok thanks man this tutorial is great help :P
 Post #27
 1st March 2009
Gold Member
Divran's Avatar
April 2008
4,474 Posts
Bumping because this dropped to the second page.
 Post #28
 1st March 2009
THE-LUA-MASTER's Avatar
March 2009
62 Posts
lol
 Post #29
 1st March 2009 Last edited by THE-LUA-MASTER; 1st March 2009 at 04:44PM..
THE-LUA-MASTER's Avatar
March 2009
62 Posts
click here for svn addons
 Post #30
 5th March 2009
Gold Member
Divran's Avatar
April 2008
4,474 Posts
Bumpidy bump
 Post #31
 5th March 2009
Dennab
February 2009
39 Posts
How do i make my own svn server?
 Post #32
 5th March 2009
Gold Member
Divran's Avatar
April 2008
4,474 Posts
How do i make my own svn server?
Now THAT I don't know.
 Post #33
 5th March 2009
LUA.CODER.MATTWILD's Avatar
February 2009
43 Posts
There is no such thing as a svn server you just upload your svn addons to it
 Post #34
 5th March 2009
Gold Member
Divran's Avatar
April 2008
4,474 Posts
By SVN server I think he means "how do you get your own SVN link"... so that other people can use an SVN link to download whatever he uploads.
 Post #35
 7th March 2009
Gold Member
hexpunK's Avatar
August 2008
10,311 Posts
Bump for usefulness. Again.
 Post #36
 8th March 2009
Gold Member
Dennab
May 2008
2,317 Posts
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.
that has been said about every single one of these SVNs thread. none of them have been stickied
 Post #37
 8th March 2009
Gold Member
hexpunK's Avatar
August 2008
10,311 Posts
that has been said about every single one of these SVNs thread. none of them have been stickied
Which sucks so much, this one is probably one of the better ones.
 Post #38
 8th March 2009
exterminated's Avatar
March 2009
33 Posts
Bump for usefulness. Again.
stop bumping you fails let this thread go
 Post #39
 8th March 2009
Gold Member
hexpunK's Avatar
August 2008
10,311 Posts
stop bumping you fails let this thread go
This is one of the more useful threads on here, better than having about 50 "OMAWH! GUYS Svun! how use do it?" isn't it? Now get out.
 Post #40
 8th March 2009
exterminated's Avatar
March 2009
33 Posts
yes but people have seen it and its becoming anoying so just let it die a death
Reply

All times are GMT. The time now is 06:17AM.

Facepunch Studios 2010 - Server 'MARGE'