This is auto for travian : TObot
This bot can auto raid, upgrade, trainning, market, celebrate party, go adventure . . .
home page: http://travianoverview.wordpress.com
this is video guide "how to use TObot"
http://www.youtube.com/playlist?list=PL096C17FF0B902D6D&feature=mh_lolz
try to use but show errors:
INFO 2010-10-08 21:33:55 Begin to execute task:Upgrade Task: VillageIndex=1 LocationID=39 Time:2010-10-08 19:33:00
INFO 2010-10-08 21:33:57 Need to login.
ERROR 2010-10-08 21:33:57 Can't find the form input field named autologin. Form input fields count: 5.
ERROR 2010-10-08 21:33:57 ------Format post data from returned HTML failed. Server:x5.travian.com.vn, User:Sweitenger
ERROR 2010-10-08 21:33:57 ------Login failed.
Hey,
I am just download auto task and open it.I type server,nickname and password,but i dont know what is task file?What i must type in task file?Where i must browse?I dont know anything please help me!!!
Thanks everybody for helping!
INFO 2009-01-18 13:30:48 Need to login.
ERROR 2009-01-18 13:30:48 Can't find the form input field named autologin. Form input fields count: 6.
ERROR 2009-01-18 13:30:48 ------Format post data from returned HTML failed. Server:s17.travian.com.tr, User:*******
ERROR 2009-01-18 13:30:48 ------Login failed.
ERROR 2009-01-18 13:30:48 ------Task executed failed. Retry to get Travian village ID map failed. Task stopped.
INFO 2009-01-18 13:30:48 Tasks execution finished.
I put in the 5 fields correctly. I replaced my username with ******* on here. Here is my user.ini file:
This is the error i get:
INFO 2008-07-10 07:59:49 Begin to execute task:Train Task: VillageIndex=2 LocationID=31 Troop:1,1 Time:2008-07-10 07:58:14
ERROR 2008-07-10 07:59:49 ------CTravianTask::GetVillageIDs(): Get page dorf1.php failed.
ERROR 2008-07-10 07:59:50 ------CTravianTask::GetVillageIDs(): Get page dorf1.php failed.
ERROR 2008-07-10 07:59:50 ------Task executed failed. Retry to get Travian village ID map failed. Task stopped.
For some time now, all the tavian servers are being upgraded, and in doing so the checkbox "Remember my login" has been removed for the login screen.
These seem to interfere with the login processes used by Autotask! Preventing the program from functioning correctly. Can anyone help out please?
HEllo . im playing on Ae server. and having this error that i couldnt solve it ! this is the first time to use this project
this is the error :
__________________
INFO 2008-04-07 01:51:00 Begin to execute task:Resource transfer Task: VillageIndex=4 Resource:Wood:10000 Clay Iron Grain DestVillage:86,8 Time:2008-04-07 01:49:22
INFO 2008-04-07 01:51:01 Need to login.
ERROR 2008-04-07 01:51:01 Can't find the form input field named autologin. Form input fields count: 6.
ERROR 2008-04-07 01:51:01 ------Format post data from returned HTML failed. Server:s2.travian.ae, User:smiles designer
ERROR 2008-04-07 01:51:01 ------Login failed.
INFO 2008-04-07 01:51:02 Need to login.
ERROR 2008-04-07 01:51:02 Can't find the form input field named autologin. Form input fields count: 6.
ERROR 2008-04-07 01:51:02 ------Format post data from returned HTML failed. Server:s2.travian.ae, User:smiles designer
ERROR 2008-04-07 01:51:02 ------Login failed.
ERROR 2008-04-07 01:51:02 ------Task executed failed. Retry to get Travian village ID map failed. Task stopped.
INFO 2008-04-07 01:51:02 Tasks execution finished.
________________________________
This is new...it's been like this for two days now...they made some changes on the server i think couse the server was down 2 days ago for 1 or 2 hours i guess...this was a test to see if i can train troops:
INFO 2008-03-21 19:31:41 Begin to execute task:Train Task: VillageIndex=2 LocationID=23 Troop:3,1 Time:2008-03-21 19:30:00
INFO 2008-03-21 19:31:42 Need to login.
ERROR 2008-03-21 19:31:42 Can't find the form input field named autologin. Form input fields count: 6.
ERROR 2008-03-21 19:31:42 ------Format post data from returned HTML failed. Server:speed.travian.de, User:xxxxxxxx
ERROR 2008-03-21 19:31:42 ------Login failed.
INFO 2008-03-21 19:31:43 Need to login.
ERROR 2008-03-21 19:31:43 Can't find the form input field named autologin. Form input fields count: 6.
ERROR 2008-03-21 19:31:43 ------Format post data from returned HTML failed. Server:speed.travian.de, User:xxxxxxxx
ERROR 2008-03-21 19:31:43 ------Login failed.
ERROR 2008-03-21 19:31:43 ------Task executed failed. Retry to get Travian village ID map failed. Task stopped.
INFO 2008-03-21 19:32:24 Tasks execution finished.
Greetings,
First thanks many for this code and for the time as well. My problem is about the village index. Is there a way to tell the program my village name instead of the position? everytime I define the lines and start the code my position get changed by one or two and then the program returns an error to me since it cant locate my village with the position defined in the code?
Please pardon my ignorance in this but I'm really stuck. Thanks in advance for your time and reply.
Hi,
I am playing on s1.travian.ae server, I try the program to send resources. but it give me the following error:
------Task executed failed. Get confime form Post data failed, please check whether travian page html code changed. Task stopped.
Thanks.
Shamli
I can't log in when I use my Arabic username which is like this (???? ????????) that is from left to right. However, my friend has no problem logging in using his English username.
Hi, got an error message "------Task executed failed. Get form Post data failed. Will retry later." when train troop task sent. This error msg only occur when task is for more troops than resources available. There is writen in documentation, that program should calculate time, when enough resources will be available and change task time to successfully accomplish procedure.
I thing there is a bug in this procedure, or am I doing something wrong?
Maybe there is a good idea to train as many troops as possible when tasked for more troops than resources and add new task with difference between trained and asked troops.
I'm trying to use it on S1.travian.cat and s5.travian.fr and I get:
-------------
INFO 2007-11-08 17:19:21 Begin to execute task:Dispatch troop Task: VillageIndex=1 Troop:Equites Legati,1 Attack:Raid DestVillage=5,-3 Time:2007-11-08 17:03:00
INFO 2007-11-08 17:19:21 Need to login.
INFO 2007-11-08 17:19:22 Login successful.
INFO 2007-11-08 17:19:22 Login successful.
ERROR 2007-11-08 17:19:22 Can't find the form input field named id. Form input fields count: 16.
ERROR 2007-11-08 17:19:22 ------Task executed failed. Get confime form Post data failed, please check whether travian page html code changed. Task stopped.
INFO 2007-11-08 17:20:11 Tasks execution finished.
-----------------
Hi, I really love your program, it works perfectly and it's very convenient for me. I have some suggestions, I hope you guys can work it out.
In the new ver. of the program, there is a function calculating the time of execution when there's not enough resources to carry out a task. Is it possible to create a function that calc. the time of execution when something is building? It will be very nice if this function comes true.
One more, it seems that the transporting resources function doesn't work anymore, it says maybe the travian ser. changed the html code.
INFO 2007-11-08 00:33:09 Begin to execute task:Resource transfer Task: VillageIndex=1 LocationID=33 Resource:Wood:100 Clay Iron Grain DestVillage:3,2 Time:2007-11-08 00:30:41
INFO 2007-11-08 00:33:11 Need to login.
INFO 2007-11-08 00:33:16 Login successful.
INFO 2007-11-08 00:33:16 Login successful.
ERROR 2007-11-08 00:33:20 Can't find the form input field named z. Form input fields count: 9.
ERROR 2007-11-08 00:33:20 ------Task executed failed. Get confime form Post data failed, please check whether travian page html code changed. Task stopped.
the app brings following error if i try to load your sample-taskfile
[File: Travian.cpp - Line: 647]
Eine Ausnahme (erste Chance) bei 0x005c7937 in TravianAutoTask.exe: 0xC0000005: Zugriffsverletzung-Leseposition 0x00000004.
Eine Ausnahme (erste Chance) bei 0x7c812a5b in TravianAutoTask.exe: Microsoft C++ exception: __non_rtti_object @ 0x0012f090.
Unbehandelte Ausnahme bei 0x7c812a5b in TravianAutoTask.exe: Microsoft C++ exception: __non_rtti_object @ 0x0012f090.
I use VS2002 - German Release...
the Scripts are very horrorble. look at www.lua.org there is a scriptengine without you need link liraries or install any app... it comes as sourcecode... very easy c++-bindings... very easy extendable... bound as static library to your project... i think these engine work very fine...
can anyone help me? whats wrong with the TaskLoader?
I don´t now what is wrong. help me plz
INFO 2007-11-06 18:28:17 Begin to execute task:Train Task: VillageIndex=1 LocationID=31 Troop:4,1 Time:2007-10-06 18:20:15
ERROR 2007-11-06 18:28:24 ------CTravianTask::GetVillageIDs(): Get page dorf1.php failed.
ERROR 2007-11-06 18:28:27 ------CTravianTask::GetVillageIDs(): Get page dorf1.php failed.
ERROR 2007-11-06 18:28:27 ------Task executed failed. Retry to get Travian village ID map failed. Task stopped.
INFO 2007-11-06 18:28:32 Tasks execution finished.
Is it just me or does anyone else find it distrubing that there are 280 warnings when building this at warning level 4?
Most are from the CrypTo library and the bulk of the rest are from CMenuXP
INFO 2007-11-03 14:25:07 Begin to execute task:Upgrade Task: VillageIndex=1 LocationID=5 Time:2007-11-03 14:18:00
INFO 2007-11-03 14:25:07 Need to login.
INFO 2007-11-03 14:25:08 Login successful.
INFO 2007-11-03 14:25:08 Login successful.
INFO 2007-11-03 14:25:09 Need to login.
INFO 2007-11-03 14:25:11 Login successful.
INFO 2007-11-03 14:25:11 Login successful.
INFO 2007-11-03 14:25:11 Need to login.
INFO 2007-11-03 14:25:12 Login successful.
INFO 2007-11-03 14:25:12 Login successful.
ERROR 2007-11-03 14:25:13 ------Recursive call of CTravianTask::ExecTask() still needs to login, maybe something wrong, task stopped.
INFO 2007-11-03 14:25:27 Tasks execution finished.
If the next task is to be run far into the future, how about introducing the SetWaitableTimer so that the system will wake up from its suspended mode to runt he next task?
fResume
[in] If this parameter is TRUE, restores a system in suspended power conservation mode when the timer state is set to signaled. Otherwise, the system is not restored. If the system does not support a restore, the call succeeds, but GetLastError returns ERROR_NOT_SUPPORTED.
In the early stages of the game, I find I spend about 30 min to 8 hours waiting for enough resources to build up. My machine will go into power conservation mode after only 20 minutes.
when i rebuild the project
first i rebuild cryptest
it have error
c:\documents and settings\administrator.hollings-1ca3e2\my documents\我的下載檔案\travianautotask_src\travianautotask\travianautotask\cryptopp54\winpipes.h(10) : fatal error C1083: 無法開啟包含檔案: 'winsock2.h': No such file or directory
c:\documents and settings\administrator.hollings-1ca3e2\my documents\我的下載檔案\travianautotask_src\travianautotask\travianautotask\cryptopp54\wait.h(13) : fatal error C1083: 無法開啟包含檔案: 'winsock2.h': No such file or directory
.\trdlocal.cpp(11) : fatal error C1083: 無法開啟包含檔案: 'windows.h': No such file or directory
c:\documents and settings\administrator.hollings-1ca3e2\my documents\我的下載檔案\travianautotask_src\travianautotask\travianautotask\cryptopp54\socketft.h(15) : fatal error C1083: 無法開啟包含檔案: 'winsock2.h': No such file or directory
.\osrng.cpp(19) : fatal error C1083: 無法開啟包含檔案: 'windows.h': No such file or directory
c:\documents and settings\administrator.hollings-1ca3e2\my documents\我的下載檔案\travianautotask_src\travianautotask\travianautotask\cryptopp54\wait.h(13) : fatal error C1083: 無法開啟包含檔案: 'winsock2.h': No such file or directory
.\hrtimer.cpp(10) : fatal error C1083: 無法開啟包含檔案: 'windows.h': No such file or directory
.\fipstest.cpp(12) : fatal error C1083: 無法開啟包含檔案: 'windows.h': No such file or directory
c:\documents and settings\administrator.hollings-1ca3e2\my documents\我的下載檔案\travianautotask_src\travianautotask\travianautotask\cryptopp54\socketft.h(15) : fatal error C1083: 無法開啟包含檔案: 'winsock2.h': No such file or directory
.\fipstest.cpp(12) : fatal error C1083: 無法開啟包含檔案: 'windows.h': No such file or directory
.\osrng.cpp(19) : fatal error C1083: 無法開啟包含檔案: 'windows.h': No such file or directory
.\trdlocal.cpp(11) : fatal error C1083: 無法開啟包含檔案: 'windows.h': No such file or directory
LINK : fatal error LNK1104: 無法開啟檔案 '.\dll_debug\cryptopp.lib'
and i rebuild the autotask directly,it also have error
c:\documents and settings\administrator.hollings-1ca3e2\my documents\我的下載檔案\travianautotask_src\travianautotask\travianautotask\stdafx.h(40) : fatal error C1083: 無法開啟包含檔案: 'afx.h': No such file or directory
why?
i am using microsoft vc++2005 express
and just rebuild the project....
One thing more,compile=rebuild?????
Can you add please a random time in seconds, to be added to the time the attacks are done? Something between 1 and 200 seconds. The reasons are the attacks.
I have calculated at which time i can attack next target, and made a nice excel where i input the start time for the first attack, after that it auto calculates the rest. If i add manually when i am inputting in the task file, i might ruin everything. I don t want the attacks to be sent each time in the first second when possible, might be bad for the admins.
In both situation i use the same code. The difference between code1 and code 2 are the troops. in code1 i use 1legionnaire, in code2 i use 1Praetorian.
But i get only an error with code2. Here the errormessage:
ERROR 2007-10-21 02:44:51 Can't find the form input field named id. Form input fields count: 16.
ERROR 2007-10-21 02:44:51 ------¡Á¡Á¡ÁTask executed failed. Get confime form Post data failed, please check whether travian page html code changed. Task stopped.
I'm using Gauls and according following TroopType list. I use 1,50 to send 50 Phalanx and the task executed successful! However, when I use 4,20 to send 20 Theutates Thunder, the task cannot be executed. Can anyone told me how to fix this?
INFO 2007-10-17 21:00:54 ------Begin to execute task:Dispatch troop Task: 1391,503
.
.
.
INFO 2007-10-17 21:01:02 ------Task executed successful.
e.g.
INFO 2007-10-17 23:24:23 ------Begin to execute task:Dispatch troop Task: 1 394,203
.
.
.
Can't find the form input field named id. Form input fields count: 16.
ERROR 2007-10-17 23:24:28 ------℅℅℅Task executed failed. Get confime form Post data failed, please check whether travian page html code changed. Task stopped.
I set task file with this (transport task): <VillageIndex>1</VillageIndex> <LocationID>33</LocationID> <Resource>1,1000</Resource> <DestVillage>102,-95</DestVillage><Time>2007-10-17 01:04:30 </Time>
After execute I have this answer:
ERROR 2007-10-17 01:05:45 Can't find the form input field named z. Form input fields count: 10. ERROR 2007-10-17 01:05:45 ------ˇÁˇÁˇÁTask executed failed. Get confime form Post data failed, please check whether travian page html code changed. Task stopped. INFO 2007-10-17 01:05:48 Tasks execution finished
I'm using polish serwer travian.interia.pl in polish version of Travian.
Please, help me - what i can do, to using this script without problems ?
I have solved a lot of ur questions (calculating, ordering, default parameters, ...) I want to upload here at least the new executable. But only Ling, Xiao-li could update here.
Ling, I tried to write you an email but I was not able to. Please contact me! You can write me an email.
I'm playing on speed.travian.se, but the program doesnt seems to work on the speed server. Do they?
I tried the program on a normal server where the program worked proper.
Hello
I left my TravianAutoTask running over night with 12 or so tasks running - with resources upgrade. Every time whe program connected to server it had to upgrade the one mine/field/etc for whitch it had enough resources. I'm doing it to get the best/fastest developement possible.
Over night program memory use, shown by Windows Task Manager, skyrocketed to 172 megabytes and slowed computer performence a lot.
Is there any possibility to solve this problem? If not - will it be solved in next versions?
Another great thig(s) would be:
- ability to change time span after whitch program would check if there is enough resources to build anythng. So ir could be changed for example to 5 min. There is no need to check so often.
- another possibility would be great to have checkbox or something that would let build in srtictly hierarchical order - so the second item on task list would be build ONLY when the first one in task list was build.
- and ability to turn on/off logging would be usefull too. Rightnow i'm getting 15 meg logs which isnt very usefull for me.
1. If there are not enough resources to build whatever you queued does it retry after a while to see if there are?
*Maybe it should check for how many resources are needed and if there are not enough when you program to build something, to wait till you have enough.
2. Is there any script or calculator that can help me programming the buildings?
Like i insert the first building, it takes the resources needed for it, then i insert the second building, the same, the third building, the same, so i can know how to program the builings if this auto script doesn t know to retry queued things.
Cheers
Stefan
INFO 2007-10-03 12:21:20 ------Begin to execute task:Upgrade Task: 8128016
ERROR 2007-10-03 12:21:22 CTravianTask::GetVillageIDs(): Get page dorf1.php failed.
ERROR 2007-10-03 12:21:25 CTravianTask::GetVillageIDs(): Get page dorf1.php failed.
ERROR 2007-10-03 12:21:25 ------Task executed failed. Retry to get Travian village ID map failed. Task stopped.
INFO 2007-10-03 12:21:40 Tasks execution finished.
When I click on my village, the url is; "http://speed.travian.se/spieler.php?uid=81280" . Is it the number "81280" I shall wrote as the VillageId? Or what shall i whrite there?
Like: "< VillageIndex>81280"
I found some errors and fixed them. (I made also some new features like "spy" and "sentinel") Is there anywhere a CVS or SVN server where we can manage this code changes? Or how can we get the latest version?
FYI: There were three main bug:
1. the develop task does not worked anyway,
2. dispatch troops worked only for the first type of troops (first input field),
3. in case if u want send only troops for scouting, (e.g.: Equites Legati) they were not sent.
all are fixed in my version.
The mostly liked feature that I made: If there is not enough resources to complete the task, the program calculate the necessary time when there will be enough resources and reschedule the task for that date.
My coworkers and I have had some free time and so we tested Adobe's new AIR platform by creating a basic application to automate raiding in Travian. (Adobe AIR can be downloaded from the labs.adobe.com website)
Description: You select your server, login, and you're instantly presented with a HUD showing your current village's general info. You then add targets to the list, and once you're ready to begin attacking, the app starts going through the list of targets one by one determining if you have sufficient troops to send that attack. Once the app cannot send troops against the top target in the list, it starts counting down the timer you specify and then attempts to attack again. Using any troops that require additional user input (e.g. scout,catapult) may not be sent out successfully or will be sent out with the default option (e.g. catapults target randomly) in the current version.
Features: Mac and PC compatible Small install size Target list can be loaded/saved on any filesystem* in an xml-based format Target list can be edited in the app GUI or manually in a text editor Village general info shown in the HUD - current resources - current resource production - incoming/outgoing attacks & reinforcements Easy to understand interface
Please give it a try before the end of the month and give some feedback. We have never played on any server but our own. It does not support more than one village. Using the Travian website interface in any webbrowser while the application is running may affect normal operation (e.g. you may log into the app with one account, use a different account on a browser, and the app switches from the first account to the account used in the browser). We have run the application overnight without any unusual behavior, but we recommend that the application be checked on every 6-8 hours as a server crash, lag, or network disconnect may cause the current version to stop sending raids.
*supported by the Adobe AIR platform
-- modified at 16:36 Thursday 27th September, 2007
Heya,
I dont really know how to get started. I downloaded the exe.file and tried to open it. I wonder, What is the task "task file" requested in the program? I tried to open the english version but it just says " Task que empty". When I open the chinese file it pop up some information, but nothing more happens..
What shall I do?
(I have entered "speed.travian.se" as the server where I'm playing.)
Well now is new error. It seams that cant find some ID's of forms. Its BA server. Im trying to send 1 Pathfinder next to me, just to spy my neighboor Firstlly, is this possiblle or not?!
ERROR 2007-09-10 20:48:47 Can't find the form input field named id. Form input fields count: 16. ERROR 2007-09-10 20:48:47 ------¡Á¡Á¡ÁTask executed failed. Get confime form Post data failed, please check whether travian page html code changed. Task stopped. INFO 2007-09-10 20:48:49 Tasks execution finished.