ERROR inventory.lua:409

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
SkyDragon
Posts: 10
Joined: Fri Apr 30, 2010 11:16 pm

ERROR inventory.lua:409

#1 Post by SkyDragon »

11111.jpg
Help please. There is an error trade. Game Client Russian. Sorry for my English
User avatar
Administrator
Site Admin
Posts: 5342
Joined: Sat Jan 05, 2008 4:21 pm

Re: ERROR inventory.lua:409

#2 Post by Administrator »

I'm quite capable of browsing new posts without needing you to send me a copy via PM. I would appreciate if you didn't do that. I would also appreciate if you didn't provide absolutely no information.

Attach a copy of your log.txt and profile, for starters.
SkyDragon
Posts: 10
Joined: Fri Apr 30, 2010 11:16 pm

Re: ERROR inventory.lua:409

#3 Post by SkyDragon »

Administrator wrote:I'm quite capable of browsing new posts without needing you to send me a copy via PM. I would appreciate if you didn't do that. I would also appreciate if you didn't provide absolutely no information.

Attach a copy of your log.txt and profile, for starters.
I am very sorry that it happened. But you did not answer my questions.I have attached the necessary files
Attachments
Retrete.xml
(8.48 KiB) Downloaded 191 times
log.txt
(2.15 KiB) Downloaded 124 times
User avatar
Administrator
Site Admin
Posts: 5342
Joined: Sat Jan 05, 2008 4:21 pm

Re: ERROR inventory.lua:409

#4 Post by Administrator »

What is the Russian text for the 'Durability' when your mouse hovers over an item?

If you open rom/classes/item.lua, near the top you'll see this:

Code: Select all

ITEM_TOOLTIP_DURABILITY = {
	DE		= "Haltbarkeit",
	FR		= "Structure",
	ENEU	= "Durability", 
	ENUS	= "Durability",
	PH		= "Durability",
};
Add an entry for RU:

Code: Select all

ITEM_TOOLTIP_DURABILITY = {
	DE		= "Haltbarkeit",
	FR		= "Structure",
	ENEU	= "Durability", 
	ENUS	= "Durability",
	PH		= "Durability",
	RU	= "Durability(replace this with the actual text)",
};
SkyDragon
Posts: 10
Joined: Fri Apr 30, 2010 11:16 pm

Re: ERROR inventory.lua:409

#5 Post by SkyDragon »

Thanks for the help
User avatar
Administrator
Site Admin
Posts: 5342
Joined: Sat Jan 05, 2008 4:21 pm

Re: ERROR inventory.lua:409

#6 Post by Administrator »

You should tell me what the text is so that I am able to add it to the bot.
SkyDragon
Posts: 10
Joined: Fri Apr 30, 2010 11:16 pm

Re: ERROR inventory.lua:409

#7 Post by SkyDragon »

Administrator wrote:You should tell me what the text is so that I am able to add it to the bot.
Thank you for helping each hearse, all work fine. You can paste the text in the code a bot for the Russian players.
For example:
<waypoints type="TRAVEL">

<!-- #14 --><waypoint x="-2928" z="-8982"></waypoint>

<!-- #18 --><waypoint x="-2248" z="-9620">

if(bag = full) then loadPaths("demo3");</waypoint>
</waypoints>
User avatar
Administrator
Site Admin
Posts: 5342
Joined: Sat Jan 05, 2008 4:21 pm

Re: ERROR inventory.lua:409

#8 Post by Administrator »

That's not what I asked. I want to know what the Russian durability text is.
SkyDragon
Posts: 10
Joined: Fri Apr 30, 2010 11:16 pm

Re: ERROR inventory.lua:409

#9 Post by SkyDragon »

Administrator wrote:That's not what I asked. I want to know what the Russian durability text is.
I have everything working correctly. Things to durability remains in the bag.Do not display correctly Russian names of things in the window bot
Logunenckov
Posts: 2
Joined: Fri May 07, 2010 8:49 am

Re: ERROR inventory.lua:409

#10 Post by Logunenckov »

I have exact same problem
-- A little class

-- Tooltip parser keywords
ITEM_TOOLTIP_DURABILITY = {
DE = "Haltbarkeit",
FR = "Structure",
ENEU = "Durability",
ENUS = "Durability",
PH = "Durability",
RU = "Прочность",
};
not working
-- A little class

-- Tooltip parser keywords
ITEM_TOOLTIP_DURABILITY = {
DE = "Haltbarkeit",
FR = "Structure",
ENEU = "Durability",
ENUS = "Durability",
PH = "Durability",
RU = "Прочность"
};
not working
-- A little class

-- Tooltip parser keywords
ITEM_TOOLTIP_DURABILITY = {
DE = "Haltbarkeit",
FR = "Structure",
ENEU = "Durability",
ENUS = "Durability",
PH = "Durability",
RU = "\143\224\174\231\173\174\225\226\236"
};
not working too

Russian durability text is "Прочность"
Logunenckov
Posts: 2
Joined: Fri May 07, 2010 8:49 am

Re: ERROR inventory.lua:409

#11 Post by Logunenckov »

I solved the problem using Notepad + + for converting Russian names durability
-- A little class

-- Tooltip parser keywords
ITEM_TOOLTIP_DURABILITY = {
DE = "Haltbarkeit",
FR = "Structure",
ENEU = "Durability",
ENUS = "Durability",
PH = "Durability",
RU = "Прочность"
};
it work
User avatar
Administrator
Site Admin
Posts: 5342
Joined: Sat Jan 05, 2008 4:21 pm

Re: ERROR inventory.lua:409

#12 Post by Administrator »

Can you try this:

Code: Select all

	RU		= "\143\224\174\231\173\174\225\226\236",
and let me know if that works?
SkyDragon
Posts: 10
Joined: Fri Apr 30, 2010 11:16 pm

Re: ERROR inventory.lua:409

#13 Post by SkyDragon »

Administrator wrote:

Code: Select all

ITEM_TOOLTIP_DURABILITY = {
	DE		= "Haltbarkeit",
	FR		= "Structure",
	ENEU	= "Durability", 
	ENUS	= "Durability",
	PH		= "Durability",
	RU	= "Durability(replace this with the actual text)",
};
Hello, I have this code works well. But the bot displays not read symbols
User avatar
Administrator
Site Admin
Posts: 5342
Joined: Sat Jan 05, 2008 4:21 pm

Re: ERROR inventory.lua:409

#14 Post by Administrator »

SkyDragon wrote:But the bot displays not read symbols
What?
filipsworks
Posts: 53
Joined: Mon May 10, 2010 10:37 am

Re: ERROR inventory.lua:409

#15 Post by filipsworks »

Administrator wrote:
SkyDragon wrote:But the bot displays not read symbols
What?
Sometimes bot have problem with character encoding (4 example in PL (polish) we have national characters like śżźćńóęął) and sometimes bot cannot read them. This characters are readable by bot <=> only if they are written and saved by notepad++ (with notepad.exe, dos "edit" and many other don't working and only when I save profile with some national characters (like mob name "Skorpion Żądliwy" - one of type of Scorpions) with notepad++ this type of characters are "readable" by bot) dunno why:/

Sorry 4 this "twisted" explain of this in English.
User avatar
Administrator
Site Admin
Posts: 5342
Joined: Sat Jan 05, 2008 4:21 pm

Re: ERROR inventory.lua:409

#16 Post by Administrator »

As stated, he should be using:

Code: Select all

RU      = "\143\224\174\231\173\174\225\226\236",
It will use the Russian characters and be workable in Lua.

For profiles, you will have to use something like Notepad++ to save the file with encoding in UTF-8 without BOM. The default profile already comes set like this.
SkyDragon
Posts: 10
Joined: Fri Apr 30, 2010 11:16 pm

Re: ERROR inventory.lua:409

#17 Post by SkyDragon »

Administrator wrote:
SkyDragon wrote:But the bot displays not read symbols
What?
11111.jpg
These are the characters I see when items are sold. and everything is working properly. It is desirable to add a feature to check the occupancy of the bag.
filipsworks
Posts: 53
Joined: Mon May 10, 2010 10:37 am

Re: ERROR inventory.lua:409

#18 Post by filipsworks »

SkyDragon wrote:
Administrator wrote:
SkyDragon wrote:But the bot displays not read symbols
What?
The attachment 11111.jpg is no longer available
These are the characters I see when items are sold. and everything is working properly. It is desirable to add a feature to check the occupancy of the bag.
LOL! Replace "Durability(replace with...)" with "\143\224\174\231\173\174\225\226\236" ...

or try to use the attachment (put it into <micromacro>\scripts\rom\classes\item.lua and confirm files replace).

PS: Admin. Is there any converter for characters to be converted from for example "Wytrzymałość"(pl) (eng. Durability) to slash-characterID format (like from this Russian text to /number/number/number/number)? Or some references to do that manually?
Attachments
item.lua
Item.lua with RU supported
(6.41 KiB) Downloaded 137 times
User avatar
Administrator
Site Admin
Posts: 5342
Joined: Sat Jan 05, 2008 4:21 pm

Re: ERROR inventory.lua:409

#19 Post by Administrator »

filipsworks wrote: PS: Admin. Is there any converter for characters to be converted from for example "Wytrzymałość"(pl) (eng. Durability) to slash-characterID format (like from this Russian text to /number/number/number/number)? Or some references to do that manually?
http://pwsdb.narod.ru/cyrdos.html
Post Reply