This is very neat and sounds like this could be useful.
So now, I have done all that you told me to. Will it update every time it restart windows?
This is a tutorial that teaches how to autoupdate Wiremod and all of your other SVN-updatable addons.
You can either have these in an easy-to-use file that you can click and it will bring all your SVNs up to date in one swoop, or you can set up Windows so whenever your computer boots up, it updates the SVNs.
Prerequisites:
Make sure your addons are already installed (via TortoiseSVN) - this is for updating your previously installed addons, not for installing.
Download and install the official "subversion" client from tigris.org. Choose the most recent "Windows installer with the basic win32 binaries" release. At the time of writing, the latest version is svn-1.4.6-setup.exe. It only has to be installed on your drive, you don't have to do anything more with it.
Now navigate to the infamous garrysmod\garrysmod\addons folder, and extract the UpdateSVNs.bat file (inside the attached .zip) into your addons folder.
UpdateSVNs.bat is pre-configured to update your wire, wire model pack 1, and Adv Duplicator directories.
If you would like to make more addons auto-update, do this, otherwise skip ahead to the message below.
Make sure the folder you're adding has the green checkmark icon, meaning the folder is SVN-ready.
Now right-click UpdateSVNs.bat and choose Edit from the drop-down menu.
Notepad should come up, and you can add a new folder...
For example, if you wanted to add "phoenix-storms" to your SVN list, you would put this at the bottom:
cd "phoenix-storms"
svn update
cd ..
Remember to include the quotes (")!
If you wouldn't like to add more auto-updating SVN folders, skip ahead to this.
Now that UpdateSVNs.bat is installed, test it by double-clicking it. You should see either a bunch of filenames fly by (showing that it's updating) or several "At revision" messages (showing that it's fully updated already) - if it asks for any usernames/passwords, reenter them (remember, for Wiremod, these are anonsvn!)
If all works, you can either keep it like that, or move on and configure it to update at startup:
Press and hold the "Windows Key"
on your keyboard, and tap R. Release the "Windows Key."
Run should start.
In the Open: field, type regedit and click OK.
Registry Editor should start.
Open these folders:
Computer
HKEY_LOCAL_MACHINE
SOFTWARE
Microsoft
Windows
CurrentVersion
Run
And leave the Run folder open (the one in Registry Editor, not the one opened with Windows Key + R)
On the right pane, you should see several startup commands listed.
Here's where we add ours:
Right-click the right pane, and choose New->String Value.
Call it "UpdateSVNs"
Once created, double-click it.
An Edit String box should come up.
In the Value Data field, paste the FULL DIRECTORY PATH to your UpdateSVNs.bat, like so:
C:\Program Files\Steam\steamapps\cfsworks\garrysmod\garrysmod \addons\UpdateSVNs.bat
Click OK.
Make sure you have your registry key in place:
Then close Registry Editor.
Your SVNs should now auto-update.
Last edited by CFSworks; 07-09-2008 at 01:34 PM.
Garry's Mod doesn't work for quantum physics:
GetPhysicsObjectNum - Are you crazy?! You're requesting a physics object lower than zero!
The "Run" section of the registry is used for Windows start-up commands, which is why most background programs are listed there (like the Logitech G15 manager, for example)
I haven't tested the start-up updater, but I'm 90% sure it will work as-is.
Garry's Mod doesn't work for quantum physics:
GetPhysicsObjectNum - Are you crazy?! You're requesting a physics object lower than zero!
Oh... ok.
So that means, I shouldn't make a .bat file with this code and place it into the "Run" section:
?Code:@ECHO OFF cd "C:\WINDOWS\system32" shutdown.exe
*** IEF015 tries it out to see if it will work.
Go right ahead, the easiest way around that is to boot in Safe Mode and take it back out.
Garry's Mod doesn't work for quantum physics:
GetPhysicsObjectNum - Are you crazy?! You're requesting a physics object lower than zero!
Quotes are unnecessary.Remember to include the quotes (")!
seems very complicated for a simple solution i posted a simplier one on my forum...
Auto Svn
This jsut uses a simple program... a ini file and boot on startup simple! :P
That's not much less complicated lol.
I'm thinking about writing a program that adds an additional item to the context menu when you right click a committed SVN folder. Basically a toggle option that says "Auto-update?".. along with a settings option so you can configure when it auto-updates as well as whether or not you want it to update silently.
Maybe.. I don't know.
Garry's Mod doesn't work for quantum physics:
GetPhysicsObjectNum - Are you crazy?! You're requesting a physics object lower than zero!
Last edited by Beer; 07-09-2008 at 07:22 PM.
Bookmarks