Quote:
Originally Posted by AardvarkGripen
Hi,
I Don't manage to make it works on Moon Flyff.
I have download the french pack and put it at the same place than the English one. (Should I replace the English file by french one?)
I have copied and modified the config to create one for Moon. Should I write ingame name of awake in french or in English? (They are in french in my game so I've done it in french in the config)
The bot works properly but when the amount is reach on the awake it doesn't stop. I've tried to put a large specter of colour for the awake name. (Something like 190-210 for blue ect) In fact I put the line for the colour Under the ones for awake name but I'm not sure if it's the correct position in the config file.
Last thing is that the text in game is composed of 2 colours. The letters are blue with black around. So which colour should I set in the config? (I have set blue)
Thank you for your help
(If someone have a config for Moon Flyff can I get it)?
|
The awake text is made with three different ranges of pixels. See the config for comments above the pixel color ranges.
Attached you can find a working config for Moon Flyff. It does not have all the awakes, as I could not bother to find them all myself. You have to add the rest of the awakes yourself.
A fair warning, the french tessdata seems to be worse than the english one for the flyff font.
Meaning that you can expect issues with the bot reading incorrect awakes sometimes with the special french letters.
You will have to look in the log to figure out how to solve them.
I have already solved one of the awake issues for you. The awake "Dégâts des coups critiques" was being read incorrectly sometimes. It was being read as "Dégéts des coups critiques", notice the 'â' was replaced with an 'é'.
The solution for that has already been written into the config, and it was to add both of the awakes and when you are looking for that awake, you need to use a different "Awake Group" value for each of them in the bot.
Refer to the image below as an example. It will basically stop if it found either the 'é' or 'â' version because their are different awake groups.
You can download the french tessdata I used here:
[Only registered and activated users can see links. Click Here To Register...]
Do not replace the english one, you can leave both of them there. Just add it in the same folder as the english one.
[Only registered and activated users can see links. Click Here To Register...]
As last words, I have not tried it througly, so expect issues. They're up to you to fix.
Code:
<Settings>
<!--
Awake Type Explanation:
name -> The name to display inside of the bot when choosing the awake (Example: ADOCH)
gametext -> Case-sensitive awake line text inside of the game (Example: Additional Damage of Critical Hits)
comparisonmethod -> An additional attribute to modify which method an awake is compared with. Options are Exact and Contains. Exact is default.
Example <Type name="INT" gametext="INT" comparisonmethod="Contains"></Type>
"Contains" compares by checking if the read awake contains gametext
"Exact" does an exact case insensitive comparison (this is the default and preferred)
-->
<AwakeTypes>
<Type name="Dégâts des coups critiques" gametext="Dégâts des coups critiques"></Type>
<Type name="Dégéts des coups critiques" gametext="Dégéts des coups critiques"></Type>
<Type name="Vitesse d'incantation" gametext="Vitesse d'incantation"></Type>
<Type name="Critique" gametext="Critique"></Type>
<Type name="INT" gametext="INT"></Type>
<Type name="STA" gametext="STA"></Type>
<Type name="STR" gametext="STR"></Type>
<Type name="DEX" gametext="DEX"></Type>
<Type name="FOR" gametext="FOR"></Type>
<Type name="END" gametext="END"></Type>
<Type name="PM max." gametext="PM max."></Type>
</AwakeTypes>
<!--
The color of a pixel in the in-game awake line text.
Format: RGB (R, G, B)
Adding multiple awake colors example:
<Setting name="AwakeTextPixelColorRgb">0, 255, 0</Setting>
<Setting name="AwakeTextPixelColorRgb1">0, 0, 255</Setting>
<Setting name="AwakeTextPixelColorRgb2">245, 0, 0</Setting>
<Setting name="AwakeTextPixelColorRgb3">0, 0, 185</Setting>
The above example of multiple awake colors will find awakes with all of those pixel colors
You can add as many as you want.
It requires the format as above: AwakeTextPixelColorRgb, AwakeTextPixelColorRgb1, AwakeTextPixelColorRgb2... and so on.
Adding a range of pixel colors:
<Setting name="AwakeTextPixelColorRgb">0, 245-255, 0</Setting>
The above example will stop when the pixel color is between 0, 245, 0 and 0, 255, 0
It will stop at 0, 251, 0 as an example.
-->
<!-- Pixel color range for the main blue text -->
<Setting name="AwakeTextPixelColorRgb">127-136, 172-181, 246-255</Setting>
<!-- Pixel color range for the minor disruptions (e.g. on letter 'i' and 'N') on the edges of letters -->
<Setting name="AwakeTextPixelColorRgb1">105-112, 142-150, 200-207</Setting>
<!-- Pixel color range for the major disruptions (e.g. right top edge of letter 'V') on the edges of letters -->
<Setting name="AwakeTextPixelColorRgb2">76-81, 102-108, 139-144</Setting>
<!--
The amount of time in milliseconds it takes before an awake scroll is done
showing that "Watering Effect" on the item before awakening it
-->
<Setting name="ScrollDelayMs">200</Setting>
<!--
The value for Language is the name of the .traineddata file.
Example eng.traineddata, then the value is eng
por.traineddata, then the value is por
-->
<Setting name="Language">fra</Setting>
<!--
Words that are ignored when the OCR engine reads the awake
NOTE: Do not add a space after comma, the space counts as part of the word
Format: Word1,Word2,Word3
-->
<Setting name="OcrIgnoreWords">Blessing Options</Setting>
</Settings>