OnceBot - Elvenar Bot


#21

ok , and the work its get the samples to identify the pixel pattern ? right ?

I dont know if the background its important , but if not i think the icons they use in their forum are the same , the dimensions and the colors look alike , and probably it will be easier to identify the pixels , they are in png.

This ones are 24x24 , and i think they are the same size that they use in the game .

And they have this 32x32 , but they seem to big compared with the game use.

 


#22

ok , and the work its get the samples to identify the pixel pattern ? right ?

If you know a way how to continue from there, maybe. Otherwise I think the "get the samples" part is just a small part of the work.

With the current version, the approach is to find icons of finished productions in the games window and then click below them as the factories are expected to be below the icons.

In order to test and compare different versions of the icon-finding model, we can use a set of sample screenshots from the game. For each sample screenshot we define what icons should be found were. This set of sample screenshots along with the expected outcome of the icon search is the training set.

With the training set, we can compute a score for a model for finding the icons.

Using these scores, we can decide which icon-finding-model we choose out of a set of possible models.


#23

Unfortunately i dont know the way.


#24

Hello,

I am going to release all the source codes which are needed to adjust and build new versions of Oncebot. This also means that everybody will have access to the same tooling I used to make it locate the different icons ingame. At the moment I do not think I will have time to spend on testing myself. Nevertheless, I will continue to assist by answering your questions on the BotEngine Forum. The release will happen when I get home around christmas.


#25

Hi arcitectus i would be interested in taking a look at the source and seeing what i can add / improve it,

regards

spud


#26

Hi Spud,

I will post a link to the source on the BotEngine forum. (The topics URL will change because we move to another forum software in the meantime). I will also add the source to the repositories on https://github.com/botengine-de

See you then

Michael

EDIT:
The project files have been published at https://github.com/botengine-de/OnceBot


#27

Hi Michael ill see you over there

cheers :slight_smile:


#28

Hi Arcitectus

Do you get access to the project files ?


#29

Hello Dreamsoul, I will upload the files next week.


#30

Hello @Dreamsoul, @spudwood, the project files have been published at https://github.com/botengine-de/OnceBot


#31

has anyone been able to get the bot working


#32

The bot gathers coins for me but I can’t seem to figure out how to get it to interact with workshops. Is there something I need to do?

thank you for any help!


#33

Looking at the previous discussion about the Elvenar bot, it seems like the bot does not find the workshops anymore because the icon floating above has changed. First thing I would try is to adapt the pattern matching to the current icons in the game.


#34

I guess I need to learn how to do that. I can get a screenshot but not real sure how to edit anything since it’s just an .exe file for me.


#35

For editing, you can edit the source code from https://github.com/botengine-de/OnceBot, and then use the Build function in Visual Studio 2017 to build an .exe file from the source code.

For anybody working on adapting for changed icons and not yet familiar with the project structure, I recommend looking at the test results in test explorer of Visual Studio 2017. I guess there are tests already for the different icons the bot searches in the screenshots.


#36

I’m trying to make sense of it but having a hard time so far. I’ll keep researching and see if I can figure it out.
Thanks.


#37

has anyone been able to get the bot working again, i have no clue myself to how and to what to do to help upgrade the bot. im not tech savvy at all