3.0.4 client servers, now Revision 606 ready

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
vietales
Posts: 48
Joined: Sun Apr 17, 2011 12:57 pm

Re: Tahadi middle east server, Revision 477

#21 Post by vietales » Wed Jun 08, 2011 6:31 am

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 :D

Btw, it is not a big problem so I think you don't need to focus on it

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Tahadi middle east server, Revision 477

#22 Post by lisa » Wed Jun 08, 2011 6:43 am

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.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

vietales
Posts: 48
Joined: Sun Apr 17, 2011 12:57 pm

Re: Tahadi middle east server, Revision 477

#23 Post by vietales » Wed Jun 08, 2011 6:50 am

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

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Tahadi middle east server, Revision 477

#24 Post by lisa » Wed Jun 08, 2011 7:01 am

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
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Tahadi middle east server, Revision 477

#25 Post by rock5 » Wed Jun 08, 2011 7:41 am

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.
  • 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

vietales
Posts: 48
Joined: Sun Apr 17, 2011 12:57 pm

Re: Tahadi middle east server, Revision 477

#26 Post by vietales » Wed Jun 08, 2011 9:09 am

Code: Select all

[b]
9:4pm - Unable to autosell: not supported by client language.[/b]
Any Idea?

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Tahadi middle east server, Revision 477

#27 Post by lisa » Wed Jun 08, 2011 9:19 am

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.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

vietales
Posts: 48
Joined: Sun Apr 17, 2011 12:57 pm

Re: Tahadi middle east server, Revision 477

#28 Post by vietales » Wed Jun 08, 2011 9:28 am

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

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Tahadi middle east server, Revision 477

#29 Post by lisa » Wed Jun 08, 2011 9:34 am

in settings.xml is it set to english?

Code: Select all

<option name="LANGUAGE" value="english" />
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

vietales
Posts: 48
Joined: Sun Apr 17, 2011 12:57 pm

Re: Tahadi middle east server, Revision 477

#30 Post by vietales » Wed Jun 08, 2011 9:39 am

lisa wrote:in settings.xml is it set to english?

Code: Select all

<option name="LANGUAGE" value="english" />
yes, it is

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Tahadi middle east server, Revision 477

#31 Post by lisa » Wed Jun 08, 2011 9:44 am

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.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

vietales
Posts: 48
Joined: Sun Apr 17, 2011 12:57 pm

Re: Tahadi middle east server, Revision 477

#32 Post by vietales » Wed Jun 08, 2011 10:11 am

[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?

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Tahadi middle east server, Revision 477

#33 Post by lisa » Wed Jun 08, 2011 10:29 am

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
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

vietales
Posts: 48
Joined: Sun Apr 17, 2011 12:57 pm

Re: Tahadi middle east server, Revision 477

#34 Post by vietales » Wed Jun 08, 2011 10:39 am

lisa wrote:do you know for sure your userfunction file is working?
It is working, of course :D. 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)

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Tahadi middle east server, Revision 477

#35 Post by lisa » Wed Jun 08, 2011 12:21 pm

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 ?
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

vietales
Posts: 48
Joined: Sun Apr 17, 2011 12:57 pm

Re: Tahadi middle east server, Revision 477

#36 Post by vietales » Wed Jun 08, 2011 9:27 pm

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)

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Tahadi middle east server, Revision 477

#37 Post by lisa » Wed Jun 08, 2011 9:52 pm

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.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Tahadi middle east server, Revision 477

#38 Post by lisa » Wed Jun 08, 2011 11:24 pm

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.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Tahadi middle east server, Revision 477

#39 Post by rock5 » Wed Jun 08, 2011 11:36 pm

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?
  • 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

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Tahadi middle east server, Revision 477

#40 Post by lisa » Thu Jun 09, 2011 12:07 am

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.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 2 guests