[Beta] DSX1337 - Tribal Wars Bot

08/16/2017 01:10 Averone#781
[Only registered and activated users can see links. Click Here To Register...] hey mate, what does this mean? worked perfectly until i deleted old settings and then started bot so it could automatically generate new ones. when done, i have restarted bot and this happened. thanks
nevermind, restarting computer and then doing the same as I said worked.
08/16/2017 18:23 kikegarcia97#782
Quote:
Originally Posted by Averone View Post
[Only registered and activated users can see links. Click Here To Register...] hey mate, what does this mean? worked perfectly until i deleted old settings and then started bot so it could automatically generate new ones. when done, i have restarted bot and this happened. thanks
nevermind, restarting computer and then doing the same as I said worked.
You delete the java menu version or the dsx.txt file?

YOU HAVE TO DELETE DSX.TXT FILE JUST.



PS: I send you a PM deluxe, i am having some troubles in linux running bot, i am not able to start the bot, for sure is a simple issue or i am doing something bad.

thanks
08/16/2017 20:20 is23jon#783
village 1 has default, def, def-inf ( troops in it: sp307, sw335, arch117, scouts100)
village 2 has default (sp8, sw5, ax58, ram29,scouts100,lc26)
village 3 has default (sp109, sw135,ax700, arch460,ram175,cat230,scout50,lc440,ma57)



my training file has this:



my group file is this:



village 1 suppose to be def-horse (i am working on researching HC at the momment)
village 2 : off
village 3 : off
08/16/2017 22:03 D3luxe.#784
Quote:
Originally Posted by Averone View Post
[Only registered and activated users can see links. Click Here To Register...] hey mate, what does this mean? worked perfectly until i deleted old settings and then started bot so it could automatically generate new ones. when done, i have restarted bot and this happened. thanks
nevermind, restarting computer and then doing the same as I said worked.
Looks like the bot doesn't have permission to delete the old database - weird considering this seems to be in your download folder.

Try redownloading the bot and make a seperate bot folder somewhere you can be sure you have file permissions, e.g. on your desktop.

The tip kikegarcia97 was trying to give you is: You only need to delete 'dsx.properties' to reset the bot / show the config helper again. I can't tell if you did something different from the logs...

Perhaps the bot was still running when you tried to restart it, so the database was still open in the other instance and could not be deleted. That's the only explanation that makes sense to me. Anyways, it should be fixed with the steps above.

Edit: Looks like the good old restart fixed it :D

Quote:
Originally Posted by is23jon View Post
Looks like you have mixed units in village 2 and 3, so DSX is unable to recognize your villages correctly.
DSX will match by unit if more than 75% of total units in that village are of the listed unit types.
To make village 2 being treated as off, you can add 'spy' to the by-unit selector.
Code:
<by-unit>axe,spy,light,marcher,ram,catapult</by-unit>
Village 3 has mixed units, but apparently not enough offensive ones yet. Adding defensive units to the selector doesn't make sense for the offensive group, so I recommend either recruiting some more offensive units by hand until they eventually pass the 75% limit, or destroying the leftover defensive units.
08/18/2017 12:57 kikegarcia97#785
and for example if i want to start a lot off bots in a ubuntu(linux) server. I have to do 1 by 1 in console? There is no other form to do it all together? Maybe creating shortcuts, rename them in the same folder and start them together.

Like

./1.cmd
./2.cmd
etc
etc
etc
./200.cmd


would work?

thanks
08/18/2017 13:36 D3luxe.#786
Quote:
Originally Posted by kikegarcia97 View Post
and for example if i want to start a lot off bots in a ubuntu(linux) server. I have to do 1 by 1 in console? There is no other form to do it all together? Maybe creating shortcuts, rename them in the same folder and start them together.

Like

./1.cmd
./2.cmd
etc
etc
etc
./200.cmd


would work?

thanks
You could start a lot of bot instances with screen :D :P

Otherwise, you only have 1 terminal window open. And you can only run 1 bot instance per terminal window. You could start more but you would not be able to see the output of DSX, so it is not a good idea.

With screen, you could chain the calls together in a shell script.
It would look like
Code:
#!/bin/bash
JAR=dsx1337-4.6.jar
SECONDS=30
screen -dmS bot1 java -jar bot1/$JAR
sleep $SECONDS
screen -dmS bot2 java -jar bot2/$JAR
sleep $SECONDS
screen -dmS bot3 java -jar bot3/$JAR
...
So a single 'start_all.sh' script placed in the parent directory of all the bot folders. You could add a small delay in between starts (like in the script above), but only the screen and JAR parts are really neccessary.
08/18/2017 16:14 kikegarcia97#787
Quote:
Originally Posted by D3luxe. View Post
You could start a lot of bot instances with screen :D :P

Otherwise, you only have 1 terminal window open. And you can only run 1 bot instance per terminal window. You could start more but you would not be able to see the output of DSX, so it is not a good idea.

With screen, you could chain the calls together in a shell script.
It would look like
Code:
#!/bin/bash
JAR=dsx1337-4.6.jar
SECONDS=30
screen -dmS bot1 java -jar bot1/$JAR
sleep $SECONDS
screen -dmS bot2 java -jar bot2/$JAR
sleep $SECONDS
screen -dmS bot3 java -jar bot3/$JAR
...
So a single 'start_all.sh' script placed in the parent directory of all the bot folders. You could add a small delay in between starts (like in the script above), but only the screen and JAR parts are really neccessary.

okay, ill install Screen in Ubuntu and try to start with screen. Anyway im pretty confused cause i dont understand thath script anyway, ill try do some test and come back for some more questions for sure. Im doing some TEST in a VM with 10 accounts before the new world starts in my server, when it does, ill do it in a strong server with 250 accounts you know :3
:mofo:


EDIT: Okay i just manage to run 1 bot finally in Ubuntu VirtualMachine.

But in the tutorial you make in
[Only registered and activated users can see links. Click Here To Register...]

It dosnt explain how to work with screen, or how to run the bots with screen. For exmaple, in my caise i have
/Desktop/BOTS/22k45 (1 BOT)
/Desktop/BOTS/22k46 Other bot
/Desktop/BOTS/22k47 OTher bot
" 22k48 other bot
Like these 10 times till
/Desktop/BOTS/22k54 last bot

In total 10 bots, for testing how i will have to do in a near future.


So lets suposse i want to run 10 bots with screen so i have to dont do all the steps with Terminall like i do now.
I have everything configured of course, i just have to run them with screen and if i can run the 10 bots at one instead of going 1 by 1 ( like i know doing now) would be better.


Maybe you already explain me if its like these just copy paste, but these is pretty new for me and i am and unexperienced user in linux, i use it fairly in 10-15 timess for expecific use like wifislax.


Working bot:
[Only registered and activated users can see links. Click Here To Register...]
08/18/2017 17:23 ForsakenEG#788
Please HELP
Maybe something wrong with charset?

P.S.:
host=ru.tribalwars2.com
worldCode=ru23

08/19/2017 13:00 kikegarcia97#789
Quote:
Originally Posted by ForsakenEG View Post
Please HELP
Maybe something wrong with charset?

P.S.:
host=ru.tribalwars2.com
worldCode=ru23



Tribalwars2??? These bot is for tribalwars old version. Not the tribalwarsv2 dude.
08/20/2017 01:20 D3luxe.#790
Quote:
Originally Posted by kikegarcia97 View Post
okay, ill install Screen in Ubuntu and try to start with screen. Anyway im pretty confused cause i dont understand thath script anyway, ill try do some test and come back for some more questions for sure.
I can't really help you with linux in general because it is a very broad field.
Anything beyond java is not bot specific, e.g. screen is a common linux tool.
You can find most answers via google...

The script I posted earlier should make you able to start multiple bot instances with a single command/script, you just need to adjust the paths.
'screen -dmS $command' runs the command in a new (minimized) screen. This is why I chain multiple 'java ...' commands in the script which in this case are starting the bot instances.
You can then reconnect to the different screens with 'screen -r $name' to see bot output.

According to the paths you typed there you would create a new script in the BOTS folder on your desktop and call it something like 'start_all.sh'.
Put the following in it:
Code:
#!/bin/bash
JAR=dsx1337-4.6.jar
SECONDS=30
screen -dmS bot1 java -jar 22k45/$JAR
sleep $SECONDS
screen -dmS bot2 java -jar 22k46/$JAR
sleep $SECONDS
...
Notice how I added 2 bot folders as an example, you need to use the right paths. You might need to change the 'JAR' variable in the second line of the script depending on which version of DSX you are using.
Save the script and make it executable with 'chmod a+x start_all.sh'. You can now start all of your bot instances with './start_all.sh', and each bot will be running in a seperate screen.

There is a small 'working with screen' section in the tutorial that explains some of the hotkeys, but you can always use google to get more details.

Quote:
Originally Posted by ForsakenEG View Post
Please HELP
Maybe something wrong with charset?

P.S.:
host=ru.tribalwars2.com
worldCode=ru23

This bot does only work with tribal wars (v1), NOT tribal wars 2. These are completely different games...
08/20/2017 09:10 sergio6677#791
could you add that whitelisted villages are attacked with different troops than the ag or dsx..
I want to farm with AG all the barbs (like 2lc) and then attack different player villages with 15lc or 20lc.
I think it will make the bot perfect for farming
08/20/2017 10:22 kikegarcia97#792
Quote:
Originally Posted by sergio6677 View Post
could you add that whitelisted villages are attacked with different troops than the ag or dsx..
I want to farm with AG all the barbs (like 2lc) and then attack different player villages with 15lc or 20lc.
I think it will make the bot perfect for farming

Rigth now the bot is in beta version, less than 1 year and it needs to add slowly by the time more features. Still these is not possible
08/25/2017 14:21 D3luxe.#793
Update: Version 4.7 (Experimental)

Changelog
4.6.1 -> 4.7:
-add: Time-based cache for groups and selectors.
-add: farm groups (you can whitelist groups for farming in the config helper).
-add: by-ingame selector for ingame groups.
-change: lowered population threshold to build farm.
-change: sorting villages by name now.

This is a nightly (==experimental) update. I reworked the caching system (cache entries expire after 20 minutes now instead of staying until restart of the bot) for groups and selectors.
Also, you can now use ingame premium groups for DSX. See the examples below...
You can now make the bot only farm with certain groups (new field in the config helper). This way, you can reserve units (e.g. in full offensive villages) but still farm with the ones that are still in construction. This should also improve overall farm assist compability.

I am noticing a few flaws in my tests with a bigger account (30+ villages).
The threshold to upgrade farm was lowered from 93% to 85%. This means that DSX is now prioritizing farm earlier when population space runs out.

I will add a few telegram tweaks that Kenji suggested here next.
Balancing resources is a big problem and tribal wars does not offer a good solution by default. I need this feature too so this is something that will be added soonish.

Ingame group example: Lets say you have a group called '#Off' in game. To use this group in dsx, open 'groups.xml'
and create a group like this:

Code:
<groups>
	...
	<group id="#off">
		<by-ingame>#off</by-ingame>
	</group>
</groups>
The selector is case insensitive, so you could use '#oFf' as well. I recommend keeping it all lower case
for simplicity.
Be careful: DSX will match a village to the off group if the ingame groups contain the substring '#off'.
This means that the ingame groups '#off ram' or 'full #off' would be treated as '#off' by DSX too.
Because of XML limitations you want to avoid the characters '<>&' in group names.
To prevent false matches, make sure to (re)name your groups accordingly.

Edit: Of course, you can add multiple groups in the config helper. The 'Use groups' field takes a list of group IDs seperated by comma (,) so '#off,farm' for example.
08/27/2017 12:07 bexy1985#794
Hi
Leider kann ich die Version 4.7 in linux nicht öffnen .

Bekomme da nur eine Text Datei

#!/bin/bash
screen -dmS dsx java -Xms256M -Xmx256M -jar dsx1337-4.7.1.jar
screen -r dsx

4.5 läuft jemand ne idee ?
08/27/2017 12:36 D3luxe.#795
Quote:
Originally Posted by bexy1985 View Post
Hi
Leider kann ich die Version 4.7 in linux nicht öffnen .

Bekomme da nur eine Text Datei

#!/bin/bash
screen -dmS dsx java -Xms256M -Xmx256M -jar dsx1337-4.7.1.jar
screen -r dsx

4.5 läuft jemand ne idee ?

Terminal im Botordner aufmachen... 'chmod a+x start_dsx.sh'.

Dann sollte sich das Script ganz normal starten lassen...