Dear Mr. Sherpishoru,
thanks for the reply and the explaination and indeed it is helpful. However, I only have 1 village so far I used 0 and I used 1 and still didnt work!?
Well, let's see an example of code:
<VillageIndex>1</VillageIndex> <LocationId>23</LocationId> <Troop>3,1</Troop> <Time>2008-03-21 19:30:00 </Time>
<villageindex>1</villageindex> ... this is your main village, if you have only one this is it, you'll always use 1
<locationid>23</locationid> ... this is the place where i have the barracks
<troop>3,1</troop> ... here i choose to train imperians (type 3) and how many units (1)...you could set any number you want for units to be trained but be sure you have enough resources to build them.
If you have an error returned post it here, or just put some code that didn't work so we could see what's wrong...
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.
I guess is from your firewall, it happens to me too, same error, but i'm too lazy to fix the settings in the firewall and now it's closed...so problem solved.
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.
yes,
put mutiple line's of train 1 troop in the tasks, this will still makes errors when the recourses are out. but it trained the max troops for you well it would be better to fix the program but still a temp fix for the prob
GL
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