[SOLVED] Start RoMBot with specific waypoint via batch file
-
- Posts: 25
- Joined: Thu May 26, 2016 6:26 am
[SOLVED] Start RoMBot with specific waypoint via batch file
I need start bot with a waypoint that I chose with only batch file. So I click on batch and bot starts the waypoint file.
Last edited by kutalmismete on Tue Nov 01, 2016 1:18 am, edited 1 time in total.
- ThulsaDoom
- Posts: 128
- Joined: Mon Oct 19, 2015 2:46 pm
Re: Start RoMBot with specific waypoint via batch file
You can use "startbot.bat", it is included in ROM folder:
And you need to specify the waypoint in you profile file:
executing startbot.bat, in this case the bot will follow rbassist waypoint.
Code: Select all
@echo off
START ../../micromacro.exe "%~dp0/bot.lua"
Code: Select all
<option name="WAYPOINTS" value="rbassist" /> <!-- leave empty to show a list -->
-
- Posts: 25
- Joined: Thu May 26, 2016 6:26 am
Re: Start RoMBot with specific waypoint via batch file
My characters name contains "ß" so micromacro taking it as "ss" when checking profile but it always asking me when I executing path with batch. Any way to prevent that ? I tried as char:...ss... and char:...ß... but always asking. Other characters are working good.
Re: Start RoMBot with specific waypoint via batch file
You can just make a separate batch file for starting different waypoints. Bot allows you to specify which file to run in the batch file.ThulsaDoom wrote:You can use "startbot.bat", it is included in ROM folder:
And you need to specify the waypoint in you profile file:Code: Select all
@echo off START ../../micromacro.exe "%~dp0/bot.lua"
executing startbot.bat, in this case the bot will follow rbassist waypoint.Code: Select all
<option name="WAYPOINTS" value="rbassist" /> <!-- leave empty to show a list -->
If you look at the instructions in StartCommandLine.bat, it looks like this:
Code: Select all
@echo off
START ../../micromacro.exe "%~dp0bot.lua" path:commandline
As for your problem with characters. You can try saving your .bat with a different encoding. Some text editors can do it easily. Probably try UTF-8 without BOM.
-
- Posts: 25
- Joined: Thu May 26, 2016 6:26 am
Re: Start RoMBot with specific waypoint via batch file
It isn't asking path name. Only asking my character name that including "ß". My parameters like that :
or
It is always asking "select char" when I'm executing that.
Code: Select all
START ../micromacro.exe "%~dp0/bot.lua" profile:..ss.. path:realsup\..ss.. char:..ß..
Code: Select all
START ../micromacro.exe "%~dp0/bot.lua" profile:..ss.. path:realsup\..ss.. char:..ss..
Re: Start RoMBot with specific waypoint via batch file
Yea, tested it just now. MM prints a different character for ß. It's probably using a different char code set, I don't know. You might have to ask MM dev to solve this.
A workaround I can think of though is to edit the selectGame function in functions.lua.
If this is the only char you have with umlauts, then this would work well.
So let's say your char name is "abcdeß", edit the first line of selectGame function to something like this:
I think that would work.
A workaround I can think of though is to edit the selectGame function in functions.lua.
If this is the only char you have with umlauts, then this would work well.
So let's say your char name is "abcdeß", edit the first line of selectGame function to something like this:
Code: Select all
if character and character:match("abcde%W") then character = "abcde\225" end
-
- Posts: 25
- Joined: Thu May 26, 2016 6:26 am
Re: Start RoMBot with specific waypoint via batch file
Not working. I tried this as well.
but this doesn't working also.
EDIT:
Its working like this. I used string.find because when I print character at beginning it was printing "ß" as "+■" and when I try to use gsub on "+■" it behaving like blank o.O
Code: Select all
character = character:gsub("%ß", "\225")
EDIT:
Code: Select all
if string.find(character, "part of char name") then
character = "-part of char name-\225"
end
if string.find(character, "part of char name") then
character = "-part of char name-\148"
end
Who is online
Users browsing this forum: No registered users and 7 guests