SVN autoupdate suggestion

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

SVN autoupdate suggestion

#1 Post by jduartedj »

Maybe we could add SVN autoupdate options using this command line:

Code: Select all

"C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:update /path:".\" /notempfile /closeonend:1
I've seen this work in another game bot it calls SVN, updates, closes.
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
User avatar
Administrator
Site Admin
Posts: 5353
Joined: Sat Jan 05, 2008 4:21 pm

Re: SVN autoupdate suggestion

#2 Post by Administrator »

And, what if they changed the directory they install to? Or, what if they are using a 64-bit OS, but have installed the 32-bit version of TortoiseSVN (hence, a different install path)? Or, what if they aren't even using TortoiseSVN?

It's a good idea, but bad to make assumptions on their install path.

EDIT: looks like TortoiseSVN's bin directory automatically adds itself as a PATH environment variable, so the install path shouldn't mater. Still raises problems if they use anything other than TortoiseSVN, though.
User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Re: SVN autoupdate suggestion

#3 Post by jduartedj »

Hence it being an option and not a feature! Happy New Year
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
User avatar
Administrator
Site Admin
Posts: 5353
Joined: Sat Jan 05, 2008 4:21 pm

Re: SVN autoupdate suggestion

#4 Post by Administrator »

Ok, I've added svnupdate.lua and SVN.update.bat. This script will help the user to configure TortoiseSVN to update their RoM scripts (all they have to do is just click "OK" on the dialogs now. They do not need to provide any other information or know what they are doing), and then attempt to update their files. Optionally, it can revert any changes they have made (but this is not the default for obvious reasons).
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: SVN autoupdate suggestion

#5 Post by rock5 »

I just changed it so the bat file will work regardless of what you called the 'rom' folder.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
kanta
Posts: 424
Joined: Thu Nov 11, 2010 4:08 pm

Re: SVN autoupdate suggestion

#6 Post by kanta »

I'm getting the error message:

"You must allow system commands in your config file in order to use this script"

It would help if it said which file that is. I looked through a couple files and have found no references to allow system commands. If it's a line that needs to be added, could you say what that line should be and in which file?
Scout/Knight/Rogue 70/66/66
User avatar
Administrator
Site Admin
Posts: 5353
Joined: Sat Jan 05, 2008 4:21 pm

Re: SVN autoupdate suggestion

#7 Post by Administrator »

kanta wrote:I'm getting the error message:

"You must allow system commands in your config file in order to use this script"

It would help if it said which file that is. I looked through a couple files and have found no references to allow system commands. If it's a line that needs to be added, could you say what that line should be and in which file?
Check your config.lua file in the micromacro base folder. You must have allowSystemCommands on (true).
kanta
Posts: 424
Joined: Thu Nov 11, 2010 4:08 pm

Re: SVN autoupdate suggestion

#8 Post by kanta »

The config.lua in my root MM folder in its' entirety:

Code: Select all

-- MicroMacro main configuration file

------------------------------------------------------
-- Language
------------------------------------------------------
-- Language modules are located in lib/mods/language
-- Typically, you want to use the two letter abbreviation
-- for your language. ie. en for English, es for spanish
-- or de for German.

	language = "en"


------------------------------------------------------
-- Keyboard
------------------------------------------------------
-- Keyboard layout modules are located in lib/mods/keyboard
-- These may be more specific than language is. That is,
-- en_us (US English keyboard) differentiates from en_uk
-- (British English keyboard).

	keyboard = "en_us"
May I ask for the exact line I need to put in there?

I'm guessing it's something like:

Code: Select all

allowSystemCommands = true
added after the Keyboard section?
Scout/Knight/Rogue 70/66/66
User avatar
Administrator
Site Admin
Posts: 5353
Joined: Sat Jan 05, 2008 4:21 pm

Re: SVN autoupdate suggestion

#9 Post by Administrator »

You probably need to update your MicroMacro installation, including copying over the new config.lua.
Post Reply