[Beta] DSX1337 - Tribal Wars Bot

10/07/2016 12:21 D3luxe.#211
Quote:
Originally Posted by georgimus View Post
Ich teste ihn und werde dann mal berichten.
Baut der auch selbstsändig?
Baut, farmt und rekrutiert Einheiten. *beep-bop*

---------------------------------------------------------------

Update: Version 2.5

Changelog:
- add: Telegram integration: Remote control + stats.
- add: building and farming per group.
- add: example templates.
- add: text documentation for farming, building, training.
- add: Javadoc for all classes.
- fix: Useful error message for 'Username not found'.
- fix: Update routine: not parsing groups any more.
- fix: static code design.


Another large update is live :) This took me about 4 days / 25h+ of work.
The update routine should finally be fixed (didn't make it in the last release, thanks @[Only registered and activated users can see links. Click Here To Register...]).
There are a lot of changes under the hood, but I think that's rather boring for non-coders^^

You can now define build and farm templates with group attributes. Also, because comments in these XML files grew too large, a 'documentation' folder is now in the release.
In there, you will find explanations for each task and references when making your own templates. While this might be a temporary fix for the problem, I plan to make a online documentation with links and formatted text.

Because some users requested that I share some of my own templates: You will find a few examples for farming and training with instructions how to use/change them.
However, there is no perfect template for everyone and you will need to test and modify them to get good results.

The feature I am really proud about is telegram integration: It is now possible to use Telegram messenger on your phone to remote control the bot, get bot performance updates, error reports and much more. Check out the tutorial [Only registered and activated users can see links. Click Here To Register...].
10/07/2016 18:48 alizadyx#212
Great job!!) thanks for your hard work!)

One advice, is there some way to make bot understand grouping of villages as in game?

Example: build x amount of tropps for y group of villages in game.

And are you planing on implementing resource balancer since this is in myopinion the only major function missing right now?

Regards!
10/07/2016 21:01 emihome#213
Quote:
INFO Messenger - Sending stats to owner...
ERROR Messenger- You did not connect to DSX yet. Open telegram and message the bot with '/start'.
INFO Messenger - Recieved new message: /start
but still not connected (Error appears after 20mins again, when bot tries to send the message), what did i do wrong?

Greetings :)
10/07/2016 21:52 D3luxe.#214
Quote:
Originally Posted by emihome View Post
but still not connected (Error appears after 20mins again, when bot tries to send the message), what did i do wrong?

Greetings :)
Did you follow the telegram tutorial? [Only registered and activated users can see links. Click Here To Register...]


I can tell from your log that the bot does receive your message. However, the '/start' command does not get processed.
Is your telegram username setting correct? You need your actual user name (starting with '@' in telegram, but enter without the @-sign in DSX), not your first or last name.
Example: If Telegram shows '@D3luxe' as my username, I enter 'D3luxe' in DSX settings. I should probably edit that into the tutorial as well^^

Delete 'dsx.properties', restart the bot and see if everything is correct.
10/07/2016 22:09 emihome#215
Thanks it worked out. I registered with my phone number, so telegram didn't created an username. I had to add it in the settings :)

// What is Farm Attacks per hour refering to? I didn't had 50.667 attacks this last hour xD
10/08/2016 00:48 D3luxe.#216
Quote:
Originally Posted by emihome View Post
Thanks it worked out. I registered with my phone number, so telegram didn't created an username. I had to add it in the settings :)

// What is Farm Attacks per hour refering to? I didn't had 50.667 attacks this last hour xD
The bot is counting farm attacks that it sent - not attacks on you.
Might be a bit inaccurate if the bot runs for less than 1 hour.


Btw: The '.' here refers to the decimal point and is not an indicator for thousand.
So it's like 50 or 51 attacks ph, not 50 thousand^^
10/09/2016 13:48 georgimus#217
Bei mir will er immer nur Speere los schicken, obwohl ich in der farm Datei 2 Lkav eingegeben habe und dass er nur Dörfer mit 50 Punkten angreifen sol. Was mache ich falsch?

PHP Code:
<!-- start of comment
    You can tell DSX which units to 
use per farm attack here.
    
See 'documentation/farming.txt'.
end of comment -->
<
farm>
    <
units>
        <
light>2</light>
    </
units>
</
farm
10/09/2016 13:50 com265ander#218
is there any workaround for the bot to ignore the "every village got some basic def, its recomended to send more units"? because of that you're not able to farm with your paladin (knight) on its own, wich basicly would work without any loss.

Edit:
I also keep getting this error in my train routine:
10/09/2016 15:26 D3luxe.#219
Quote:
Originally Posted by georgimus View Post
Bei mir will er immer nur Speere los schicken, obwohl ich in der farm Datei 2 Lkav eingegeben habe und dass er nur Dörfer mit 50 Punkten angreifen sol. Was mache ich falsch?

PHP Code:
<!-- start of comment
    You can tell DSX which units to 
use per farm attack here.
    
See 'documentation/farming.txt'.
end of comment -->
<
farm>
    <
units>
        <
light>2</light>
    </
units>
</
farm
Das Template sieht korrekt aus.
Hast du versucht, den Bot aus und wieder an zu schalten^^?
Änderungen in der Config werden erst nach einem Neustart von DSX aktiv...

Quote:
Originally Posted by com265ander View Post
is there any workaround for the bot to ignore the "every village got some basic def, its recomended to send more units"? because of that you're not able to farm with your paladin (knight) on its own, wich basicly would work without any loss.
DSX is relaying an error from Tribal Wars here. Problem is that this warning appears in the same exact element/location where "target is allied / village reserved" messages will appear. There are no special identifiers for these messages, so I would have to check all the different languages.
Obviously, I am too lazy to include translations in like 25 languages. I can possibly add an ignore warnings option in the next update (at the cost of security, DSX will not stop attacking a reserved village then).

Quote:
Originally Posted by com265ander View Post
Edit:
I also keep getting this error in my train routine:
I can see that you spelled unit names correctly and that those should be correct for any world.
Looks like something went wrong during setup. Unit information is missing in the database.

Delete 'dsx.properties', restart the bot. Make sure world code and host settings are correct, check all other settings and you should see 'Inserted unit: spear' (and other available units) at first start. This will fix the unit not found errors.
10/09/2016 15:38 georgimus#220
Ich probiere es und werde berichten!
10/10/2016 10:32 alizadyx#221
Dear Programmer,

What should I do?



Another issue is that bot wont react to telegram commands forceupdate and restart. It receives a message, says that it will restart but does nothing. I have waited long enough for command to process before posting this here.
10/10/2016 13:35 D3luxe.#222
Quote:
Originally Posted by alizadyx View Post
Dear Programmer,

What should I do?

I can't really tell you what the problem is without more debug information. These are API errors again. Do you log in with the tribal wars app on your phone while the bot is running? There can only be one active at the same time.

Quote:
Another issue is that bot wont react to telegram commands forceupdate and restart. It receives a message, says that it will restart but does nothing. I have waited long enough for command to process before posting this here.

These might be Mac related issues. Do you receive messages on Telegram after DSX tries to restart? It should look something like this:
[Only registered and activated users can see links. Click Here To Register...]


One thing I noticed is that the new process will not be visible on your computer. Linux and Mac users can use "screen -r dsx" to bring the process back up, but Windows users are basically screwed^^
This will be fixed in the next update.
10/11/2016 09:19 wow_highscorefarm#223
Super arbeit, funktioniert hervorragend!
allerdings würde ich bei attacksperhour die Kommazahl weg lassen,bzw. nur eine Nachkommastelle anzeigen lassen, da es ja eig doch nur zu Verwirrung führt. Dank deines Tuturials sehr einfach einzustellen. Frage mich echt warum die anderen so Probleme haben..
Lange nach nem guten Bot gesucht und endlich gefunden! :*
Weiter so
10/11/2016 18:40 georgimus#224
Kannst du mir die ganzen Einstellungen unter Farming nochmal erklären, also Intervall etc.?

Der Bot läuft bei mir einmal durch und im Fenster steht dann: farm routine finished, restarting in some minutes. Nach 20 Minuten (!) begint er von neuem, schaltet aber ein Delay zwischen 2 und 6 Minuten ein. Wie verringer ich diese Zeiten?
Darf ich währenddessen in Browserfenster weiter Stämme zocken?

btw: Löst er Captchas, also kann ich ihn über Nacht laufen lassen?
10/11/2016 19:28 wow_highscorefarm#225
Quote:
Originally Posted by georgimus View Post
Kannst du mir die ganzen Einstellungen unter Farming nochmal erklären, also Intervall etc.?

Der Bot läuft bei mir einmal durch und im Fenster steht dann: farm routine finished, restarting in some minutes. Nach 20 Minuten (!) begint er von neuem, schaltet aber ein Delay zwischen 2 und 6 Minuten ein. Wie verringer ich diese Zeiten?
Darf ich währenddessen in Browserfenster weiter Stämme zocken?

btw: Löst er Captchas, also kann ich ihn über Nacht laufen lassen?


So wie ich das verstanden habe kannst du das bei Farm Delay auf "fast" setzen und dann wiederholt er das ganze schneller. Außerdem ist da vermutlich immer ein kleines Zeitfenster gegeben, in dem er zufällig entscheidet wie lange er wartet um ggf. unauffälliger zu sein.
Im Browser, sprich am Pc, kannst du machen was du willst. Nur mit jedem Log-In am Handy kickst du den Bot.
Ja kannst über Nacht laufen lassen, denke nicht dass der Bot überhaupt nach Captchas gefragt wird, da er ja quasi die App imitiert. Und dort gibt es keine Captchas.

lg