[Beta] DSX1337 - Tribal Wars Bot

09/26/2016 16:19 D3luxe.#196
I'm working on it ;)

Still needs some testing, as it appears a bot breaking bug made it into the last update because I didn't test it on Linux
You can expect an update today.
09/26/2016 20:46 Zihapez#197
is an update coming today ?
09/26/2016 21:25 D3luxe.#198
Quote:
Originally Posted by Zihapez View Post
is an update coming today ?

Update: Version 2.1
Changelog:
- fix: file rev number.
- fix: update routine.
- fix: path errors on linux/mac.
- fix: app version number.
- fix: farm radius is a real circle now.
- remove: apache commons configuration.


First, thank you for your patience. Update 2.1 is finally here:
This is a minor update with a lot of bug fixes.
App version is up to date now and the file rev number (used with heartbeats the app is sending) will now be taken directly from the update information, instead of changing it manually for each update.
The update routine will not parse all village groups any more (thanks, @[Only registered and activated users can see links. Click Here To Register...]).
I did not test update 2.0 on linux a lot so I did not notice that paths were not working.
Path errors should be fixed with this update and you should be able to use it on linux/mac again...
Farm radius is a real circle now and will behave as expected (thanks, @[Only registered and activated users can see links. Click Here To Register...]).
I removed apache commons config as it was not giving the expected benefits to neither properties or xml configuration. This is why the .jar file should be a bit smaller now.

As always, you can download the latest version at the bottom of the first post.

Group updates will be pushed later this week (farming and building per group).
09/27/2016 13:46 alizadyx#199
Dear Programmer,

Please review below:

Last login: Tue Sep 27 15:42:37 on ttys000
/Users/alizadyx/Desktop/bot/dsx1337-2.1/start_dsx.cmd ; exit;
Yagubs-MacBook-Pro:~ alizadyx$ /Users/alizadyx/Desktop/bot/dsx1337-2.1/start_dsx.cmd ; exit;
Error: Unable to access jarfile dsx1337-2.1.jar
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]


How should I deal with it?
09/27/2016 19:59 D3luxe.#200
Quote:
Originally Posted by alizadyx View Post
Dear Programmer,

Please review below:

Last login: Tue Sep 27 15:42:37 on ttys000
/Users/alizadyx/Desktop/bot/dsx1337-2.1/start_dsx.cmd ; exit;
Yagubs-MacBook-Pro:~ alizadyx$ /Users/alizadyx/Desktop/bot/dsx1337-2.1/start_dsx.cmd ; exit;
Error: Unable to access jarfile dsx1337-2.1.jar
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]


How should I deal with it?
It looks like you tried to start the bot with the '.cmd' file. This will only work under windows, I think.
Try to execute "start_dsx.sh"...
If this does not work as well, open a terminal in the bot folder (see [Only registered and activated users can see links. Click Here To Register...]) and copy & paste the following in the terminal console:
Code:
java -Xms256M -Xmx256M -jar dsx1337-2.1.jar

I have no access to a Mac / OSX unfortunately, so I can't really test it.
However, as long as it can run Java, DSX should work on it...
09/28/2016 15:40 alizadyx#201
It works like a charm now. Thanks a lot for your hard work!

Are you planing on implement future so bot can farm using farm asistant? I think that will make bot virtually undetectable.
09/28/2016 16:33 com265ander#202
hey, i keep getting this error when i start the batch. (win 10N, JDK 1.8)

09/28/2016 23:13 D3luxe.#203
Quote:
Originally Posted by com265ander View Post
hey, i keep getting this error when i start the batch. (win 10N, JDK 1.8)

Error when parsing world data. Is your host + world code Setting correct?
Delete 'dsx.properties' to bring the config window back up and make any changes.

If you still can't figure it out, you can tell me your settings / the world + server you want to bot on.

New setups work flawless for me...

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

Sneak peek for the latest feature (not public yet):
While my stats are not very impressing (just started on a new world^^) DSX will include a telegram bot you can use to get stats or control the bot with from your mobile phone or other devices.

It will require a bit of work to set up, but it's worth it ;) Not only is there a neat way to display some stats, but you can also pause DSX remotely or check if it is still running.
I also plan to add a crash report...

Do you want to see any other stats or want me to include other functions?
Feel free to comment here...
09/29/2016 04:51 Svextra#204
Version 2.1 seems to still contain the GroupHandler/UpdateRoutine error i've previously mentioned.

[Only registered and activated users can see links. Click Here To Register...]
09/29/2016 10:52 D3luxe.#205
Quote:
Originally Posted by Svextra View Post
Version 2.1 seems to still contain the GroupHandler/UpdateRoutine error i've previously mentioned.

[Only registered and activated users can see links. Click Here To Register...]
Thanks for your report. That shouldn't be happening any more.


I just checked the source in the repo, I did remove the parse all groups call there.
I will make sure to double-check this for the next update.
10/05/2016 10:22 alizadyx#206
Dear Modder,

Can we please ask you to share your own configuration of bot with us?

It almost like asking a csgo player to share his cfg file)

I will really appreciate if you do so, especially how do you set it up for new world...

Best Regards!)
10/05/2016 23:57 D3luxe.#207
Quote:
Originally Posted by alizadyx View Post
Dear Modder,

Can we please ask you to share your own configuration of bot with us?

It almost like asking a csgo player to share his cfg file)

I will really appreciate if you do so, especially how do you set it up for new world...

Best Regards!)
I will make sure to include a few example templates for different stages (just started, multiple villages,...). However, perfect settings will require you to test and change things. There are too many things to consider so I can't make the perfect template for everyone.


I also think that the giant comments in the template files are not optimal. A documentation for users, either offline and deployed with the bot, or online here on epvp / another site would be great.


Btw: I almost finished building and farming per group. Farming was very tricky...
I should be able to push an update tomorrow. Stay tuned!
10/06/2016 11:17 alizadyx#208
12:55:55 INFO Delay - Waiting for 2-6 minutes...
13:01:13 INFO Builder - Building for 04.Деревня варвара (400|455)
13:01:21 INFO Builder - Resources: 19597|14029|17846
13:01:21 INFO Builder - Population: 87.7039438141545%
13:01:21 INFO Builder - Upgrading storage to level 20.
13:01:32 INFO Builder - Upgrading smith to level 15.
13:01:44 INFO Builder - Can not upgrade anything.
13:01:44 INFO BuildRoutine - Build Routine finished. Restarting in some minutes...
13:01:44 INFO TrainRoutine - Starting to train units...
13:01:44 INFO Delay - Waiting for 2-6 minutes...
13:07:21 INFO Trainer - Resources: 395413|395323|395278
13:07:21 INFO Trainer - Free Pop: 383
13:07:36 INFO Trainer - Training spear 378.
13:08:09 INFO Trainer - Resources: 5604|1486|8469
13:08:09 INFO Trainer - Free Pop: 1
13:08:09 INFO Trainer - Population limit reached. Can not recruit anything.
13:08:44 ERROR TrainRoutine - Error:
me.d3luxe.farmbot.exceptions.InvalidResponseExcept ion: Error: Произошла внутренняя ошибка. Пожалуйста, попробуйте позже или свяжитесь со службой поддержки если ошибка повторится.
at me.d3luxe.farmbot.Connection.postAPI(Connection.ja va:171)
at me.d3luxe.farmbot.Connection.postAPI(Connection.ja va:180)
at me.d3luxe.farmbot.Connection.postAPI(Connection.ja va:180)
at me.d3luxe.farmbot.stats.Buildings.getConstructionI nfo(Buildings.java:44)
at me.d3luxe.farmbot.stats.Units.getAll(Units.java:37 )
at me.d3luxe.farmbot.training.Trainer.execute(Trainer .java:50)
at me.d3luxe.farmbot.routines.TrainRoutine.run(TrainR outine.java:83)
at java.util.concurrent.Executors$RunnableAdapter.cal l(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(Future Task.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.access$301(ScheduledThreadPoolE xecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.run(ScheduledThreadPoolExecutor .java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
13:08:44 INFO TrainRoutine - Trying to relog...
13:08:49 INFO Session - Logging in...
13:09:03 INFO Session - Login successful.
13:09:29 INFO Trainer - Resources: 351472|340360|342881
13:09:29 INFO Trainer - Free Pop: 27
13:09:43 INFO Trainer - Training sword 22.
13:10:29 ERROR TrainRoutine - Error:
me.d3luxe.farmbot.exceptions.InvalidResponseExcept ion: Error: Произошла внутренняя ошибка. Пожалуйста, попробуйте позже или свяжитесь со службой поддержки если ошибка повторится.
at me.d3luxe.farmbot.Connection.postAPI(Connection.ja va:171)
at me.d3luxe.farmbot.Connection.postAPI(Connection.ja va:180)
at me.d3luxe.farmbot.Connection.postAPI(Connection.ja va:180)
at me.d3luxe.farmbot.stats.Units.get(Units.java:82)
at me.d3luxe.farmbot.stats.Units.getAll(Units.java:53 )
at me.d3luxe.farmbot.training.Trainer.execute(Trainer .java:50)
at me.d3luxe.farmbot.routines.TrainRoutine.run(TrainR outine.java:83)
at java.util.concurrent.Executors$RunnableAdapter.cal l(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(Future Task.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.access$301(ScheduledThreadPoolE xecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.run(ScheduledThreadPoolExecutor .java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
13:10:29 INFO TrainRoutine - Trying to relog...
13:10:34 INFO Session - Logging in...
13:10:50 INFO Session - Login successful.
13:11:15 INFO Trainer - Resources: 8756|8990|16480
13:11:15 INFO Trainer - Free Pop: 959
13:11:32 INFO Trainer - Training spear 165.
13:12:01 INFO Trainer - Resources: 30915|2579|29829
13:12:01 INFO Trainer - Free Pop: 1955
13:12:17 INFO Trainer - Training spear 69.
13:12:41 INFO Trainer - Resources: 16550|5100|19976
13:12:41 INFO Trainer - Free Pop: 1845
13:12:58 INFO Trainer - Training spear 153.
13:13:25 INFO Trainer - Resources: 357484|345535|350962
13:13:25 INFO Trainer - Free Pop: 0
13:13:25 INFO Trainer - Population limit reached. Can not recruit anything.
13:14:10 ERROR TrainRoutine - Error:
me.d3luxe.farmbot.exceptions.InvalidResponseExcept ion: Error: Произошла внутренняя ошибка. Пожалуйста, попробуйте позже или свяжитесь со службой поддержки если ошибка повторится.
at me.d3luxe.farmbot.Connection.postAPI(Connection.ja va:171)
at me.d3luxe.farmbot.Connection.postAPI(Connection.ja va:180)
at me.d3luxe.farmbot.Connection.postAPI(Connection.ja va:180)
at me.d3luxe.farmbot.stats.Units.get(Units.java:82)
at me.d3luxe.farmbot.stats.Units.getAll(Units.java:53 )
at me.d3luxe.farmbot.training.Trainer.execute(Trainer .java:50)
at me.d3luxe.farmbot.routines.TrainRoutine.run(TrainR outine.java:83)
at java.util.concurrent.Executors$RunnableAdapter.cal l(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(Future Task.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.access$301(ScheduledThreadPoolE xecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.run(ScheduledThreadPoolExecutor .java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
13:14:10 INFO App - Press {Enter} to exit...
10/06/2016 13:38 D3luxe.#209
Quote:
Originally Posted by alizadyx View Post
These are API errors. That's why the error description is in Russian(?) language.
I can't do much about it unfortunately, you can just restart the bot after a few minutes...
10/07/2016 09:54 georgimus#210
Ich teste ihn und werde dann mal berichten.

Baut der auch selbstsändig?