Gamerium / Dindo-Bot

:robot: Farming bot for Dofus game
MIT License
113 stars 31 forks source link

Dindo-Bot: game window embedding not working anymore #5

Closed canerbasat closed 5 years ago

canerbasat commented 5 years ago

Still Works?

AXeL-dev commented 5 years ago

Dofus Linux version is now using wine so the game window embedding stopped working..

A simple solution would be to remove embedding & simply put the bot window beside the game window (after resizing it), well, i'm not sure if this would be the best solution.

p2635 commented 5 years ago

Is it possible to run the bot in wine itself? If so, are you able to show me how?

AXeL-dev commented 5 years ago

This would be more complicated, the bot is not compatible with windows, so it may not work properly on wine.. By the way, i'm wondering why Dofus Linux version moved to wine after version 2.47.. the only reason i can think about is to keep adobe air updated to the latest version(s) (to know: adobe air updates on linux was suspended) or maybe to stop bots using window embedding like this one.. who knows..

Edit: here is the related post in the forum.

p2635 commented 5 years ago

Thanks for the quick answer, I've never used the bot before and I want to try it out. I literally went back on Dofus a few days ago and because of work commitments, I would also love to learn how this bot works and tried to learn to code. If you could help with this, that would be sugoii. I tried to use the desktop file but it doesn't work, when I do python bot.py it works but I can't select the game window (hence this issue is open? is that right?)

AXeL-dev commented 5 years ago

you can select the game window (if dofus is opened) but once selected, it will not be embedded inside the bot, also the game window might be closed automatically (it was working fine on GTK windows before Dofus switched to wine). The bot uses Gtk for user interface & more exactly pygtk (python implementation for Gtk). By the way, wich linux version/distro are you using?

p2635 commented 5 years ago

I'm using Kubuntu 18.04 (with messed up repos, I think I have unstable so I am basically 18.10), thanks for your help..

AXeL-dev commented 5 years ago

hum, weird that the desktop file didn't work on kubuntu 18.04.. anyway, if you want to improve the bot by yourself you should start by learning python, OOP & pygtk :)

P.S.: i stopped dofus from some months ago, but if ever i come back i'll surely update the bot (i guess).

p2635 commented 5 years ago

Does it still work on the distro that you're on? (what distro is it?)

AXeL-dev commented 5 years ago

if you are talking about the desktop file then yes, i'm using ubuntu budgie 18.04 (i didn't try on 18.10)

p2635 commented 5 years ago

It's not detecting the windows :( can you help me if you have time? tell me if you use discord or some other contact

AXeL-dev commented 5 years ago

I guess i know why the window is not detected, try to change the value on this line https://github.com/AXeL-dev/Dindo-Bot/blob/7dd06c9b005e0c87e28f1a0a0966389207891c86/lib/tools.py#L29 to dofus.exe or Dofus.exe depending on the game window process name (use your system monitor to get that).

P.S.: my discord is AXeL-dev#7804 but i will go to sleep now, so see you tomorrow.

p2635 commented 5 years ago

Just sent you a friend invite, thank you so much, I will try it. I downloaded the pycharm IDE to try things out.