Page 2 of 9
Re: Tahadi middle east server, Revision 477
Posted: Wed Jun 08, 2011 6:31 am
by vietales
lisa wrote:Ahh cool, I didn't know vietnames server was an old client aswell, I think the list of people checking this topic just got bigger =)
Can you tell me the window name and client program name you needed to use to get it working, I might be able to combine the 2 so they work on either server when I post new files/code.
Window name = Chua Te Phuc Sinh => bot working
After using Romee's MultiHack Window name changes to Runes of Magic => Bot not working any more
Btw, it is not a big problem so I think you don't need to focus on it
Re: Tahadi middle east server, Revision 477
Posted: Wed Jun 08, 2011 6:43 am
by lisa
pretty sure window name is already set up to use multiple clients
Code: Select all
local windowList = findWindowList("Asteer Alquah", "Radiant Arcana", "Chua Te Phuc Sinh", "Runes of Magic" );
I think this will cover all clients I know of.
The settings.xml for the path though can just be edited by user would be best I think.
Re: Tahadi middle east server, Revision 477
Posted: Wed Jun 08, 2011 6:50 am
by vietales
lisa wrote:pretty sure window name is already set up to use multiple clients
Code: Select all
local windowList = findWindowList("Asteer Alquah", "Radiant Arcana", "Chua Te Phuc Sinh", "Runes of Magic" );
I think this will cover all clients I know of.
The settings.xml for the path though can just be edited by user would be best I think.
Changed to
Code: Select all
local windowList = findWindowList( "Chua Te Phuc Sinh", "Radiant Arcana", "Runes of Magic" );
and received this error
Code: Select all
6:47pm - .../interface/micromacro_work/scripts/rom/functions.lua:70: Wrong number of parameters supplied to findWindowList().
Changed back to
Code: Select all
local windowList = findWindowList( "Chua Te Phuc Sinh", "Radiant Arcana");
and the bot working again
Re: Tahadi middle east server, Revision 477
Posted: Wed Jun 08, 2011 7:01 am
by lisa
Code: Select all
local windowList = findWindowList("Asteer Alquah", "Chua Te Phuc Sinh");
Ahh ok then maybe this for just the 2 servers.
I'll be able to do some testing tomorrow , I hope lol
Re: Tahadi middle east server, Revision 477
Posted: Wed Jun 08, 2011 7:41 am
by rock5
I think, although I don't see reference to it on the rombot wiki, that the first argument is the window name and the second argument is the class name.
You should be able to use
Code: Select all
local windowList = findWindowList("*", "Radiant Arcana" );
To work with any language client as I think the class is always "Radiant Arcana". Actually I don't see why we can't change this in the current bot.
Re: Tahadi middle east server, Revision 477
Posted: Wed Jun 08, 2011 9:09 am
by vietales
Code: Select all
[b]
9:4pm - Unable to autosell: not supported by client language.[/b]
Any Idea?
Re: Tahadi middle east server, Revision 477
Posted: Wed Jun 08, 2011 9:19 am
by lisa
That error response is only in the part that checks for durability of items it is selling. I would say it can't read the tooltip to find the durability.
So for now just don't use any durability checks in the auto sell.
this is part of the code that checks durability
Code: Select all
ITEM_TOOLTIP_DURABILITY[bot.ClientLanguage]
I really don't know if this will help or not but you could try to change this in settings.xml
Code: Select all
<option name="USE_CLIENT_LANGUAGE" value="true" />
to false.
Re: Tahadi middle east server, Revision 477
Posted: Wed Jun 08, 2011 9:28 am
by vietales
lisa wrote:That error response is only in the part that checks for durability of items it is selling. I would say it can't read the tooltip to find the durability.
So for now just don't use any durability checks in the auto sell.
this is part of the code that checks durability
Code: Select all
ITEM_TOOLTIP_DURABILITY[bot.ClientLanguage]
I really don't know if this will help or not but you could try to change this in settings.xml
Code: Select all
<option name="USE_CLIENT_LANGUAGE" value="true" />
to false.
Code: Select all
<option name="INV_AUTOSELL_ENABLE" value="true" />
<option name="INV_AUTOSELL_FROMSLOT" value="1" />
<option name="INV_AUTOSELL_TOSLOT" value="30" />
Code: Select all
<option name="USE_CLIENT_LANGUAGE" value="false" />
Still the same error
Btw, I'm using string_eneu.lua and string_eneu.db found inside data.fdb so I have English Interface
Re: Tahadi middle east server, Revision 477
Posted: Wed Jun 08, 2011 9:34 am
by lisa
in settings.xml is it set to english?
Code: Select all
<option name="LANGUAGE" value="english" />
Re: Tahadi middle east server, Revision 477
Posted: Wed Jun 08, 2011 9:39 am
by vietales
lisa wrote:in settings.xml is it set to english?
Code: Select all
<option name="LANGUAGE" value="english" />
yes, it is
Re: Tahadi middle east server, Revision 477
Posted: Wed Jun 08, 2011 9:44 am
by lisa
Ok it seems there is an issue with language, for now though you can create a function to counter the function that checks dura, it should overwrite it.
Have you made a file for userfunctions?
If so then add into it
Code: Select all
function isDuraIgnore()
return false
end
We can try and work out the language issue when we have more info.
Re: Tahadi middle east server, Revision 477
Posted: Wed Jun 08, 2011 10:11 am
by vietales
[quote="lisa"]
Code: Select all
function isDuraIgnore()
return false
end
Still not working
Does it mean the dura-checking-code isn't related to this error?
Re: Tahadi middle east server, Revision 477
Posted: Wed Jun 08, 2011 10:29 am
by lisa
do you know for sure your userfunction file is working?
Also was it the exact same error?
It does seem weird to me to get this as there are places before this code that check tooltip info.
try this though
in inventory.lua find
Code: Select all
if( durakey == nil ) then
error(language[1005], 0);
end
and change it to
Code: Select all
if( durakey == nil ) then
return false
end
Re: Tahadi middle east server, Revision 477
Posted: Wed Jun 08, 2011 10:39 am
by vietales
lisa wrote:do you know for sure your userfunction file is working?
It is working, of course

. Because rock5's cavy scripts in it is working
lisa wrote:
try this though
in inventory.lua find
Code: Select all
if( durakey == nil ) then
error(language[1005], 0);
end
and change it to
Code: Select all
if( durakey == nil ) then
return false
end
Ahhh. Working now. But bot only sell White items and keep Green and Blue items
Here is my profile:
Code: Select all
<option name="INV_AUTOSELL_ENABLE" value="true" />
<option name="INV_AUTOSELL_FROMSLOT" value="31" />
<option name="INV_AUTOSELL_TOSLOT" value="60" />
<option name="HEALING_POTION" value="30" />
When shopping completed, I received this
Code: Select all
10:42pm - ...ce/micromacro_work/scripts/rom/classes/inventory.lua:379: attempt to compare number with nil
-----------------
UPdate: Another error appeared when using 'INV_AUTOSELL_QUALITY'
Code: Select all
11:30pm - ...ce/micromacro_work/scripts/rom/classes/inventory.lua:417: bad argument #1 to 'gsub' (string expected, got nil)
Re: Tahadi middle east server, Revision 477
Posted: Wed Jun 08, 2011 12:21 pm
by lisa
I think the language of the client is going to be the main issue here.
So when you installed did you have the choice to set to english or vietnamese?
Also is there an option to change the language to english at the launcher screen?
You mentioned that you replaced something in data.fdb, could this just mean you see english characters for the UI but the actual data we are trying to use is still in vietnamese ?
Re: Tahadi middle east server, Revision 477
Posted: Wed Jun 08, 2011 9:27 pm
by vietales
lisa wrote:
Also is there an option to change the language to english at the launcher screen?
No
lisa wrote:
You mentioned that you replaced something in data.fdb, could this just mean you see english characters for the UI but the actual data we are trying to use is still in vietnamese ?
Yes, I extracted string_eneu.lua and string_eneu.db from Global client then renamed them string_vn and put them into
<main folder>\data\
---------------
This morning, I have changed everything to default (language, inventory.lua) but still got the same error.
Default Inventory.lua: received this
Code: Select all
Unable to autosell: not supported by client language.
Edited Inventory.lua: bot only sell White items and keep Green and Blue items, after that, received this
Code: Select all
scripts/rom/classes/inventory.lua:379: attempt to compare number with nil
Using 'INV_AUTOSELL_QUALITY' in profile, received this
Code: Select all
scripts/rom/classes/inventory.lua:417: bad argument #1 to 'gsub' (string expected, got nil)
Re: Tahadi middle east server, Revision 477
Posted: Wed Jun 08, 2011 9:52 pm
by lisa
Yeah I would say the trouble you are having is because the client isn't english, even though you change those files I'd say they are just affecting the visuals as opposed to the actual code.
So unless we can get the bot to read vietnamese values for the tool tips then I can't see the autosell being able to determine any of the values.
Maybe we should do some testing of the outputs for values, do a few print statements to see what the actual values are. It said nil so it might be that rombot just isn't recognising the characters or there may be other issues.
I can confirm it isn't the revision itself having issues, I am running 477 on the mid east server atm with english client and it is running smoothly. lvled to 15/11 so far and it autosells without any issues.
Re: Tahadi middle east server, Revision 477
Posted: Wed Jun 08, 2011 11:24 pm
by lisa
rock5 wrote:How are you going to run 2 different version clients?
No issues at all, only thing I do is change GameSettings.ini in my documents, they used the same folder for both clients.
Code: Select all
[Install]
GamePath=C:\Program Files\Runes of Magic\
Code: Select all
[Install]
GamePath=C:\Program Files\Tahadi Games\Asateer Al Qowa\
Currently running both clients at the same time.
Re: Tahadi middle east server, Revision 477
Posted: Wed Jun 08, 2011 11:36 pm
by rock5
lisa wrote:rock5 wrote:they used the same folder for both clients.
That doesn't cause problems? Wouldn't you loose addon settings if you have different addons in each game?
Re: Tahadi middle east server, Revision 477
Posted: Thu Jun 09, 2011 12:07 am
by lisa
It would if I actually bothered with addons for stuff. I use mail, quest book, auctioneer, d303. thats pretty much it. None of them have saved data that I actually care about. auctioneer I can just do history check to get last price.