[Beta] DSX1337 - Tribal Wars Bot

11/04/2016 16:08 D3luxe.#271
Quote:
Originally Posted by com265ander View Post
Eine Option zum auswählen des Katapultzieles (z.B. Bauernhof) bei Farmangriffen fehlt meiner Meinung nach noch. In der Hinsicht sinnvoll, da man so auf Welten mit Milliz auch noch aktiv spielende Spieler besser automatisiert farmen kann.
Du musst nur 1x mit Katas manuell angreifen und "dieses Katapultziel als Standard übernehmen", dann ist es für DSX auch gesetzt.
Insgesamt würde das Setting wohl eher die Leute verwirren (Katas beim Farmen -> Laufzeit?) und keinen großen Nutzen bringen.

Quote:
Originally Posted by TechnoTron007 View Post
Kann man dir irgendwie beim erstellen des Wikis helfen?

Ich bin immer offen für Hilfe. Ich kann demnächst das Wiki für alle änderbar machen, ähnlich wie bei Wikipedia.


Bei dem speziellen Problem der Gruppen/Selektoren müsstest du auch den Source Code des Programms kennen... Im Moment ist by-unit der einzig nutzbare Selektor. Wird aber noch hinzugefügt.
11/04/2016 19:49 ork066#272
I can say your bot is doing well on polish server. :)) the one think that unfortunly scared me are the prices

maybe for the germans its not to much to pay that 20 euros but in some countries this prices are unreal big. By the way I am not telling u in this way to drop prices lower, everything i want to say is that just dont forgot about users from other countries ;).
11/05/2016 14:02 D3luxe.#273
Quote:
Originally Posted by ork066 View Post
I can say your bot is doing well on polish server. :)) the one think that unfortunly scared me are the prices

maybe for the germans its not to much to pay that 20 euros but in some countries this prices are unreal big. By the way I am not telling u in this way to drop prices lower, everything i want to say is that just dont forgot about users from other countries ;).
DSX is still basically free and I don't force anyone to pay.

It's 20€ for 6 months, that's 3,33€ per month. I doubt that there are people in Europe who can afford a PC, but are unable to afford DSX money-wise.

It might be possible that you don't think DSX is worth that amount. That is a valid argument and something every user has to decide.
I believe that a good and useful product will make users pay eventually and I will continue adding features and see how the pro version develops.

However, it is possible that the free version will be more restricted in the future.
If I can't get enough money to justify working on this project, no one will be happy. No updates == no use for anyone whatsoever.
11/08/2016 17:36 filo0#274
hmm solides progi vielleicht ist dein naechstes Projekt ja etwas für Tribalwars 2 :) ?
11/12/2016 19:14 TechnoTron007#275

Wenn du was hast melde dich einfach. Helfe gerne!
11/15/2016 13:43 fonte#276
Hey 1st of all thank you for this release.

I wonder, is it possible to make the bot follow a certain build?
Like:
<wood>1</wood>
<stone>1</stone>
<wood>2</wood>
<iron>1</iron>


Also the bot is not working in Masters Server
11/15/2016 23:47 Vaslaw#277
Hi, first of all thanks for making this bot.

But I have some trouble running it on my server with embedded java 8. dsx.properties is already generated.
[Only registered and activated users can see links. Click Here To Register...]
11/16/2016 00:20 D3luxe.#278
Quote:
Originally Posted by Vaslaw View Post
Hi, first of all thanks for making this bot.

But I have some trouble running it on my server with embedded java 8. dsx.properties is already generated.
[Only registered and activated users can see links. Click Here To Register...]
There is a problem with configuration. The properties file is found, but there are missing settings.

On your main PC, delete 'dsx.properties' and restart the bot to bring up configuration. Make sure that you made all neccessary settings (general and enabled routines).
You can test your configuration locally / on your main PC and make sure that the bot works. Then just copy the whole bot folder, replacing the files on your server.

Btw: I recommend creating a new user for the bot that has no root permissions for security reasons. Refer to this wiki page: [Only registered and activated users can see links. Click Here To Register...]

Feel free to reply here if you have any more problems.

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

Quote:
Originally Posted by fonte View Post
Hey 1st of all thank you for this release.

I wonder, is it possible to make the bot follow a certain build?
Like:
<wood>1</wood>
<stone>1</stone>
<wood>2</wood>
<iron>1</iron>
You can not force upgrade any building yet, DSX will choose it based on an algorithm. However, production buildings will be preferred.
I just don't think defining 300-400 build orders manually is that practical, but you will be able to set own priorities / "force" the bot to upgrade certain buildings in the next version.

Quote:
Originally Posted by fonte
Also the bot is not working in Masters Server
Edit:
I didn't test it on that particular server, but it looks like a speed round. It is possible that you didn't have enough units at the time DSX checked and units came back a few seconds later.

I can't see server time, your template settings etc. so it's hard for me to judge if it is really a bug.
Contact me if the issue persists.

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

I have been busy during the weekend, so there is no update for DSX yet. However, I did add some features and a few wiki pages.
I need to finish some labs for university this week unfortunately. New version Soon™
11/16/2016 02:23 fonte#279
Ok probably it was a weird bug or something I had wrong most likely. Everything is working fine as usual! Looking forward to see your new project!
11/18/2016 10:23 imnacho#280
C:\Users\dollarbillss\Desktop\dsx1337-3.6.1>java -Xms256M -Xmx256M -jar dsx1337-3.6.jar
10:21:08 INFO Update - DSX1337 version 3.6
10:21:19 INFO Update - Running latest version.
10:21:19 INFO Settings - Loaded settings.
10:21:21 INFO Database - Last world data update: 18/11/2016 09:44:14
10:21:26 INFO Session - Logging in...
10:21:41 INFO Session - Login successful.
10:21:41 INFO GroupHandler - Loaded 5 groups.
10:21:41 INFO RoutineHandler - Setting up Routines...
10:21:41 INFO DsxFarmer - Loaded templates: 4
10:21:41 INFO MyLists - Parsing blacklist...
10:21:41 INFO FarmRoutine - Blacklisted villages: 0
10:21:41 INFO Database - Last world data update: 18/11/2016 09:44:14
10:21:41 INFO FarmRoutine - Starting to farm...
10:21:41 ERROR App - Error:
java.lang.IllegalArgumentException: Doesn't look like XML: '<!-- start of comment
This is a template for early game / when you just started on a new world.
To use this farm template, make a copy of this file and rename it to 'train.xml'.
Then you can adjust it as needed...
end of comment -->
</train>
</template [group="def-inf"]>
<units>
<spear>10</spear>
<axe>10</axe>
<light>10</light>
</units>
<buffer>
<wood>400</wood>
<stone>500</stone>
<iron>500</iron>
<pop>0</pop>
</buffer>
</template>
</train>
'
at com.jcabi.xml.DomParser.<init>(DomParser.java:90)
at com.jcabi.xml.XMLDocument.<init>(XMLDocument.java: 155)
at com.jcabi.xml.XMLDocument.<init>(XMLDocument.java: 206)
at me.d3luxe.farmbot.training.TrainRoutine.setUp(Trai nRoutine.java:136)
at me.d3luxe.farmbot.routines.RoutineHandler.setUp(Ro utineHandler.java:69)
at me.d3luxe.farmbot.App.main(App.java:90)
10:21:41 INFO App - Press {Enter} to exit...
10:21:45 INFO FarmRoutine - Farming for Sarcophagus. (505|583)
10:21:45 ERROR FarmRoutine - Error:
com.mashape.unirest.http.exceptions.UnirestExcepti on: java.lang.IllegalStateException: Connection pool shut down
at com.mashape.unirest.http.HttpClientHelper.request( HttpClientHelper.java:143)
at com.mashape.unirest.request.BaseRequest.asString(B aseRequest.java:56)
at me.d3luxe.farmbot.network.Connection.get(Connectio n.java:112)
at me.d3luxe.farmbot.network.Connection.get(Connectio n.java:123)
at me.d3luxe.farmbot.network.Connection.get(Connectio n.java:123)
at me.d3luxe.farmbot.farming.DsxFarmer.setUp(DsxFarme r.java:61)
at me.d3luxe.farmbot.farming.FarmRoutine.run(FarmRout ine.java:151)
at java.util.concurrent.Executors$RunnableAdapter.cal l(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknow n Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.access$301(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$S cheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker( Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalStateException: Connection pool shut down
at org.apache.http.util.Asserts.check(Asserts.java:34 )
at org.apache.http.pool.AbstractConnPool.lease(Abstra ctConnPool.java:169)
at org.apache.http.impl.conn.PoolingHttpClientConnect ionManager.requestConnection(PoolingHttpClientConn ectionMan
ager.java:221)
at org.apache.http.impl.execchain.MainClientExec.exec ute(MainClientExec.java:158)
at org.apache.http.impl.execchain.ProtocolExec.execut e(ProtocolExec.java:195)
at org.apache.http.impl.execchain.RetryExec.execute(R etryExec.java:86)
at org.apache.http.impl.execchain.RedirectExec.execut e(RedirectExec.java:108)
at org.apache.http.impl.client.InternalHttpClient.doE xecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.ex ecute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.ex ecute(CloseableHttpClient.java:106)
at org.apache.http.impl.client.CloseableHttpClient.ex ecute(CloseableHttpClient.java:57)
at com.mashape.unirest.http.HttpClientHelper.request( HttpClientHelper.java:138)
... 13 more
10:21:45 INFO FarmRoutine - Farm Routine finished. Restarting in some Minutes...

What?
11/18/2016 13:44 D3luxe.#281
Quote:
Originally Posted by imnacho View Post
What?
Your XML format is incorrect in 'train.xml'. Check the first / topmost error message.
I recommend to check this wiki page: [Only registered and activated users can see links. Click Here To Register...]

You can not mix up opening tags (like '<train>') with closing tags (like '</train>'). The '[]' brackets are only there to indicate an optional setting and shouldn't be used in the actual xml file.
You can google 'validate xml format' to make sure you have a valid template file, e.g. [Only registered and activated users can see links. Click Here To Register...]

I would just use the original template file that comes with the bot by default (and change unit numbers/names) or use an example template if you are not that familiar with xml.
You can redownload the bot in the main post if neccessary.
11/18/2016 14:27 imnacho#282
Problem solved, thanks.

So? [Only registered and activated users can see links. Click Here To Register...]

Train routine error? Can't train my village members.
11/18/2016 20:10 sergio6767#283
it works on win7?
cuz when i open it, cmd close instantly (1 seg max XD)
11/18/2016 20:36 imnacho#284
Quote:
Originally Posted by sergio6767 View Post
it works on win7?
cuz when i open it, cmd close instantly (1 seg max XD)
Works.
11/18/2016 23:59 D3luxe.#285
Quote:
Originally Posted by imnacho View Post
Problem solved, thanks.

So? [Only registered and activated users can see links. Click Here To Register...]

Train routine error? Can't train my village members.
No errors ;) Either not enough resources or bad templates... Might be your village doesn't match the template group. How many villages do you have?
You can use the 'default' group if you only have 1 village.

Quote:
Originally Posted by sergio6767 View Post
it works on win7?
cuz when i open it, cmd close instantly (1 seg max XD)

You probably want to download the latest version. Previous one will crash on update notification...