+ Reply to Thread
Page 1 of 4 123 ... LastLast
Results 1 to 10 of 32

Thread: How to auto-update Wiremod (and all other SVN-based addons!)

  1. #1
    Wire Amateur CFSworks's Avatar
    Join Date
    Jul 2008
    Posts
    64

    Default How to auto-update Wiremod (and all other SVN-based addons!)

    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.
    Attached Files Attached Files
    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!

  2. #2
    Wire Sofaking IEF015's Avatar
    Join Date
    Feb 2008
    Location
    London, ON (Canada, eh?)
    Posts
    1,640

    Default Re: How to auto-update Wiremod (and all other SVN-based addons!)

    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?
    "It's my favourite country song. And I hate it."

  3. #3
    Wire Amateur CFSworks's Avatar
    Join Date
    Jul 2008
    Posts
    64

    Default Re: How to auto-update Wiremod (and all other SVN-based addons!)

    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!

  4. #4
    Wire Sofaking IEF015's Avatar
    Join Date
    Feb 2008
    Location
    London, ON (Canada, eh?)
    Posts
    1,640

    Default Re: How to auto-update Wiremod (and all other SVN-based addons!)

    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.
    "It's my favourite country song. And I hate it."

  5. #5
    Wire Amateur CFSworks's Avatar
    Join Date
    Jul 2008
    Posts
    64

    Default Re: How to auto-update Wiremod (and all other SVN-based addons!)

    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!

  6. #6
    Wire Sofaking Beer's Avatar
    Join Date
    Jul 2007
    Location
    Dallas, Texas
    Posts
    1,357

    Default Re: How to auto-update Wiremod (and all other SVN-based addons!)

    Remember to include the quotes (")!
    Quotes are unnecessary.

  7. #7
    Wirererer sleepy2007's Avatar
    Join Date
    May 2007
    Location
    Bradford | UK
    Posts
    140

    Default Re: How to auto-update Wiremod (and all other SVN-based addons!)

    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

  8. #8
    Wire Sofaking Beer's Avatar
    Join Date
    Jul 2007
    Location
    Dallas, Texas
    Posts
    1,357

    Default Re: How to auto-update Wiremod (and all other SVN-based addons!)

    Quote Originally Posted by sleepy2007 View Post
    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.

  9. #9
    Wire Amateur CFSworks's Avatar
    Join Date
    Jul 2008
    Posts
    64

    Default Re: How to auto-update Wiremod (and all other SVN-based addons!)

    Quote Originally Posted by Beer View Post
    Quotes are unnecessary.
    They're required for spaces in folder names (as addons creators like to include) otherwise Windows would parse it as separate arguments.
    Garry's Mod doesn't work for quantum physics:

    GetPhysicsObjectNum - Are you crazy?! You're requesting a physics object lower than zero!

  10. #10
    Wire Sofaking Beer's Avatar
    Join Date
    Jul 2007
    Location
    Dallas, Texas
    Posts
    1,357

    Default Re: How to auto-update Wiremod (and all other SVN-based addons!)

    Quote Originally Posted by CFSworks View Post
    They're required for spaces in folder names (as addons creators like to include) otherwise Windows would parse it as separate arguments.
    Ah, I see what's going on.. it works fine without quotes if you only go 1 branch deep in the tree.. (like "cd program files"), but spits out errors if you go more than 1 deep (like "cd program files\steam")
    Last edited by Beer; 07-09-2008 at 07:22 PM.

+ Reply to Thread
Page 1 of 4 123 ... LastLast

Similar Threads

  1. Wiremod Flying Auto Turret.
    By IDRP in forum Installation and Malfunctions Support
    Replies: 2
    Last Post: 02-05-2009, 11:22 AM
  2. WireMod Mods/Addons
    By high6 in forum Wiremod Addons & Coding
    Replies: 50
    Last Post: 01-17-2008, 07:14 PM
  3. How to fix your wiremod if SVN update doesn't update
    By -orb- in forum Wiremod General Chat
    Replies: 1
    Last Post: 05-17-2007, 12:02 AM
  4. WireMod Mods/Addons
    By in forum Wiremod General Chat
    Replies: 0
    Last Post: 12-31-1969, 05:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots