+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: How to create an icon on your desktop to update wire

  1. #1
    Wirererer a_p3rson's Avatar
    Join Date
    Jul 2009
    Location
    findByClass("weapon_ninjastar") find():owner():pos()
    Posts
    303

    Lightbulb How to create an icon on your desktop to update wire

    ADDING AN ICON TO UPDATE WIRE TO YOUR DESKTOP

    So I have heard a lot of people ask on the forums on a way to create an icon that will update wire (mainly noobs, no offense). There is a way to create such, and I will show you how.

    Part 1: Requirements
    • TortoiseSVN
    • Windows (No Macs!)
    • You might need admin rights to change the file extension
    Part 2: Creation
    1. Create a blank text file on your desktop. This will be your program, name it whatever you want.
    2. Open it in your favorite text editor (I prefer n++)
    3. Type in the following code:
      Code:
      @echo off
      echo Updating gmod SVN repositories...
      TortoiseProc.exe /command:update /path:"C:\Program Files (x86)\Steam\steamapps\[STEAM ACCOUNT NAME HERE]\garrysmod\garrysmod\addons\Adv Duplicator" /closeonend:1
      TortoiseProc.exe /command:update /path:"C:\Program Files (x86)\Steam\steamapps\[STEAM ACCOUNT NAME HERE]\garrysmod\garrysmod\addons\wire" /closeonend:1
      TortoiseProc.exe /command:update /path:"C:\Program Files (x86)\Steam\steamapps\[STEAM ACCOUNT NAME HERE]\garrysmod\garrysmod\addons\wire model pack 1" /closeonend:1
      TortoiseProc.exe /command:update /path:"C:\Program Files (x86)\Steam\steamapps\[STEAM ACCOUNT NAME HERE]\garrysmod\garrysmod\addons\wire-e" /closeonend:1
      cls
      echo Update complete.
      pause
      exit
    4. Replace "[STEAM ACCOUNT NAME HERE]" with the name your account had when you first joined Steam.
    5. Replace "C:\Program Files(x86)\Steam\" with the path of your Steam folder.
    Let's break that code down...
    • The "@echo off" line turns off all responses from the program we're making
    • The "echo" line sends messages to your screen
    • The "TortoiseProc.exe" lines are the lines which tell TortoiseSVN what to update
    • The "cls", "pause", and "exit" lines are the last screen that says the update is finished.
    Part 3: Editing and Running
    Now is when we turn our simple text file into a program. Follow these carefully:
    1. Make sure you saved your file on your desktop
    2. Right-click on the file, select "Rename"
    3. Remove the ".txt" from the name, and replace it with ".bat"
      • If you don't see a ".txt" in the file name, follow these instructions
      1. Go to Control Panel>Folder Options
      2. Click on the "View" tab
      3. In the "Advanced Settings" panel, make sure that "Hide extensions for known file types" is unchecked
      4. Click Apply (You may need the admin password, or admin rights at this time)
      5. Close, attempt to rename the file now.
    4. Windows should throw you a message, saying something along the lines of "If you change a file extension, the file may become unusable". Ignore that, click yes.
    5. The icon should have changed to something else. It is now a program. You can now run it, and you should get the TortoiseSVN windows poping up, updating your files.
    Part 4: Adding addons
    If you have used gmod for a while, chances are you have more addons that you want to update as well. Here is how you add those:
    1. Right-click on the file, select "Edit"
    2. Add the following line to the code for each of the addons
      Code:
      TortoiseProc.exe /command:update /path:"C:\Program Files (x86)\Steam\steamapps\[STEAM NAME]\garrysmod\garrysmod\addons\[ADDON NAME]" /closeonend:1
      Once again, [STEAM NAME] is your original Steam name, and [ADDON NAME] is the name of the folder of your addon.
      NOTE: You can not do this for any old addon. The addon must have downloaded via SVN (If you do not know, the folder should have a little green check on it, or a hidden ".svn" folder inside of it)
    3. Save the file.
    4. Your program should now update those addons
    5. I added wire-e to the original program. If you do not have wire-e, remove the line that contains wire-e in it.
    You've just learnt a taste of hidden TortoiseSVN stuff, and a bit of Batch!

    Thanks for reading!

    NOTE: This tutorial was made for Windowsx64 on Batch, running Vista Home Premium. If you have a different version of Windows, you will have to go on your own for some of it, as some of the text is different.
    They were here. Here: that's where they were. And they are watching you at this very second, poised to attack.

    Who are they?
    Where are they?
    How many ninja stars do they have pointed at me?

    (\__/) <- Put this bunny in your sig and help him to rule the world!
    (='.'=) Click here for the story of the bunny!
    (")_(") "Only in garrys mod is welding something to an explosive barrel a good idea" - Foszor

    Do you own games by EA? Do you hate the fact that they put on DRM? DRM-BE-GONE!!!!!

  2. #2
    Wire Sofaking Ehmmett's Avatar
    Join Date
    Sep 2009
    Posts
    595

    Default Re: How to create an icon on your desktop to update wire

    Fucking excellent.
    +rep.

    Perhaps add a bit so that it'll launch garry's mod after updating?

  3. #3
    has a custom title mattwd0526's Avatar
    Join Date
    Apr 2009
    Location
    Born Bostonian
    Posts
    2,652

    Default Re: How to create an icon on your desktop to update wire

    It opens tortoise SVN just fine for me, but returns an error about the repository having moved temporarily, and something about stargate.

  4. #4
    http://somone77.net somone77's Avatar
    Join Date
    Jun 2008
    Location
    <Smart ass location>
    Posts
    614

    Default Re: How to create an icon on your desktop to update wire

    Quote Originally Posted by mattwd0526 View Post
    It opens tortoise SVN just fine for me, but returns an error about the repository having moved temporarily, and something about stargate.
    Stargate is not hosted by wiremod anymore. Go look at the facepunch forum for the new link.


    No matter how many Z's you put after Plz, you still spell as well as a piece of cheese.

    http://somone77.net

  5. #5
    Wiremod Helper Donkie's Avatar
    Join Date
    May 2008
    Location
    Sweden
    Posts
    1,661

    Default Re: How to create an icon on your desktop to update wire

    .bat file to set it to start gmod after.

    Code:
    @echo off
    echo Updating gmod SVN repositories...
    echo Updating Wire
    TortoiseProc.exe /command:update /path:"c:\Program\Steam\steamapps\[Steamname]\garrysmod\garrysmod\addons\wire" /notempfile /closeonend:1
    echo Updating Wire model pack
    TortoiseProc.exe /command:update /path:"c:\Program\Steam\steamapps\[Steamname]\garrysmod\garrysmod\addons\wire model pack 1" /notempfile /closeonend:1
    echo Updating Advance Duplicator
    TortoiseProc.exe /command:update /path:"c:\Program\Steam\steamapps\[Steamname]\garrysmod\garrysmod\addons\Adv Duplicator" /notempfile /closeonend:1
    echo Updating PHX
    TortoiseProc.exe /command:update /path:"c:\Program\Steam\steamapps\[Steamname]\garrysmod\garrysmod\addons\phx3" /notempfile /closeonend:1
    echo Updating Wire extras
    TortoiseProc.exe /command:update /path:"c:\Program\Steam\steamapps\[Steamname]\garrysmod\garrysmod\addons\wire extras" /notempfile /closeonend:1
    echo Update done!
    echo Do you want to start Garrysmod? (Y/N) 
    set/p "cho=>" 
    if %cho%==Y goto START
    if %cho%==y goto START 
    if %cho%==n goto END 
    if %cho%==N goto END 
    :START
    start "mm" "C:\Program Files\Steam\steamapps\[Steamname]\garrysmod\hl2.exe" -game garrysmod +exec "gameinfo.txt" -console
    :END
    exit
    Last edited by Donkie; 01-13-2010 at 03:04 AM.
    Get out. Seriously, do it.

  6. #6
    Wirererer Hobo's Avatar
    Join Date
    Aug 2009
    Posts
    102

    Default Re: How to create an icon on your desktop to update wire

    Just thought I'd add this, if you add "start" before each updating line, it will update them all at the same time, for eg:
    Code:
    @echo off
    echo Updating gmod SVN repositories...
    start TortoiseProc.exe /command:update /path:"C:\Program Files (x86)\Steam\steamapps\[STEAM ACCOUNT NAME HERE]\garrysmod\garrysmod\addons\Adv Duplicator" /closeonend:1
    start TortoiseProc.exe /command:update /path:"C:\Program Files (x86)\Steam\steamapps\[STEAM ACCOUNT NAME HERE]\garrysmod\garrysmod\addons\wire" /closeonend:1
    start TortoiseProc.exe /command:update /path:"C:\Program Files (x86)\Steam\steamapps\[STEAM ACCOUNT NAME HERE]\garrysmod\garrysmod\addons\wire model pack 1" /closeonend:1
    start TortoiseProc.exe /command:update /path:"C:\Program Files (x86)\Steam\steamapps\[STEAM ACCOUNT NAME HERE]\garrysmod\garrysmod\addons\wire-e" /closeonend:1
    cls
    echo Update complete.
    pause
    exit
    ~ I R <3 E2 ~

  7. #7
    Wire Sofaking SatansSimon's Avatar
    Join Date
    Jan 2009
    Location
    Germany
    Posts
    513

    Default Re: How to create an icon on your desktop to update wire

    What is the wire-e folder?

  8. #8
    hurrr physics Tolyzor's Avatar
    Join Date
    Aug 2008
    Location
    England
    Posts
    1,019

    Default Re: How to create an icon on your desktop to update wire

    Im running windows 7. The cmd window requires me to "press any key to continue" before it exits, how do I stop this?

    Also, how do I make it run gmod, and only update beforehand if it hasn't updated in the previous 24hrs?

  9. #9
    Wire Amateur ChimP's Avatar
    Join Date
    Apr 2009
    Posts
    95

    Default Re: How to create an icon on your desktop to update wire

    Quote Originally Posted by Tolyzor View Post
    Im running windows 7. The cmd window requires me to "press any key to continue" before it exits, how do I stop this?

    Also, how do I make it run gmod, and only update beforehand if it hasn't updated in the previous 24hrs?
    Code:
    @echo off
    echo Updating gmod SVN repositories...
    TortoiseProc.exe /command:update /path:"C:\Program Files (x86)\Steam\steamapps\[STEAM ACCOUNT NAME HERE]\garrysmod\garrysmod\addons\Adv Duplicator" /closeonend:1
    TortoiseProc.exe /command:update /path:"C:\Program Files (x86)\Steam\steamapps\[STEAM ACCOUNT NAME HERE]\garrysmod\garrysmod\addons\wire" /closeonend:1
    TortoiseProc.exe /command:update /path:"C:\Program Files (x86)\Steam\steamapps\[STEAM ACCOUNT NAME HERE]\garrysmod\garrysmod\addons\wire model pack 1" /closeonend:1
    TortoiseProc.exe /command:update /path:"C:\Program Files (x86)\Steam\steamapps\[STEAM ACCOUNT NAME HERE]\garrysmod\garrysmod\addons\wire-e" /closeonend:1
    cls
    echo Update complete.
    start "mm" "C:\Program Files\Steam\steamapps\[Steamname]\garrysmod\hl2.exe" -game garrysmod +exec "gameinfo.txt" -console
    exit
    Will require a lot more to check if last update was 24 hours ago. You might need to develop your own program to do that, since there are limits in batch scripts' functionality.

    - Some people got brains.

  10. #10
    hurrr physics Tolyzor's Avatar
    Join Date
    Aug 2008
    Location
    England
    Posts
    1,019

    Default Re: How to create an icon on your desktop to update wire

    Thanks, yeah i thought that might be the case.

    Is it not possible to look at the folders you are updating and get the date last modified from them, then do a comparison with the current date and then use an if goto function?

+ Reply to Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. Desktop E2 Maker
    By Thorope in forum Ideas & Suggestions
    Replies: 3
    Last Post: 10-22-2009, 10:34 AM
  2. Create New Wire Ents?
    By -HP- in forum Wiremod Addons & Coding
    Replies: 6
    Last Post: 04-07-2009, 06:04 PM
  3. Flux's New Desktop
    By Faron in forum Off-Topic
    Replies: 7
    Last Post: 12-22-2008, 01:13 AM
  4. Wire lights attempt to create null entity.
    By newton21989 in forum Installation and Malfunctions Support
    Replies: 2
    Last Post: 05-08-2008, 03:24 AM
  5. Looking to create a wire compatable Holoemitter screen...
    By AWanderingMage in forum Ideas & Suggestions
    Replies: 2
    Last Post: 04-18-2008, 12:38 PM

Tags for this Thread

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