Page 1 of 1
SVN autoupdate suggestion
Posted: Fri Dec 31, 2010 10:11 am
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.
Re: SVN autoupdate suggestion
Posted: Fri Dec 31, 2010 6:11 pm
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.
Re: SVN autoupdate suggestion
Posted: Sat Jan 01, 2011 10:39 am
by jduartedj
Hence it being an option and not a feature! Happy New Year
Re: SVN autoupdate suggestion
Posted: Sat Jan 01, 2011 1:39 pm
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).
Re: SVN autoupdate suggestion
Posted: Sat Jan 01, 2011 11:23 pm
by rock5
I just changed it so the bat file will work regardless of what you called the 'rom' folder.
Re: SVN autoupdate suggestion
Posted: Wed Jan 05, 2011 12:51 pm
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?
Re: SVN autoupdate suggestion
Posted: Thu Jan 06, 2011 6:30 pm
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).
Re: SVN autoupdate suggestion
Posted: Thu Jan 06, 2011 11:50 pm
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:
added after the Keyboard section?
Re: SVN autoupdate suggestion
Posted: Fri Jan 07, 2011 1:57 am
by Administrator
You probably need to update your MicroMacro installation, including copying over the new config.lua.