You should just use this as a reason to learn Excel ... it has so many uses and is one of the basic programs that everyone should learn to use at an intermediate level.
Maybe Travian will give you the incentive to learn ... that would make your playing the game actually useful!
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.
That is all on one line in the Action file.
The LocationID is ALWAYS "39" to send troops.
This will send troops:
10,99 --> Eq. Cesaris 99 means all that are in the village, up to 99
6,999 --> Eq. Imp. and all in village, up to 999.
11,1 --> sends the Hero
To the target village is at 190,19.
At the time specified.
NOTE: If any of the troop types you request are not in your village, then the request will fail.
I'm using Gauls and according following TroopType list. I use <troop>1,50 to send 50 Phalanx and the task executed successful! However, when I use <troop>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: <villageindex>1 <locationid>39 <troop>1,50 <dispatchtype>3 <destvillage27,78< destvillage="">
.
.
.
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: <illageindex>1 <locationid>39 <troop>4,20 <dispatchtype>3 <destvillage27,78< destvillage="">
.
.
.
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.
It's because the troop type on that page goes across by rows, not down by columns. So the numbers should be:
Troop Types for Raids:
1 Legionnaire
2 Equites Legati
3 Battering Ram
4 Senator
5 Praetorian
6 Equites Imperatoris
7 Fire catapult
8 Settler
9 Imperian
10 Equites Caesaris
11 Hero
I know that this works for legionnaires and equites imperatori, which are the only troop types I've dispatched using this program, but I assume it should work for the rest.
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 get this too. I suspect it is because the server I use (s3.us) has a checkbox so that you can schedule the merchants to go twice, and I think that is not taken into account in this program, but I'm not 100% and I have no idea how to fix it
this problem can fixed in source
Travian.cpp line 1212
have
CString sA(_T("a")), sAVal, sZ(_T("z")), sZVal, sKid(_T("kid")), sKidVal;
need
CString sA(_T("a")), sAVal, sZ(_T("sz")), sZVal, sKid(_T("kid")), sKidVal;
I get the same error with 1.0.0.8 build:
"Can't find the form input field named z. Form input fields count: 9.
ERROR 2007-11-01 18:20:17 ------Task executed failed. Get confime form Post data failed, please check whether travian page html code changed. Task stopped."
Now i have another question, since i'm not a programmer, i managed to rebuild the project with the fix sugested by Romach...so far it's working fine...my question is why my exe has 4 MB and the original only 760 KB? Could be becouse of cryptlibD.lib?
L.E.:The only problem with build 1.0.0.8 is when you are transfering food too, then you get an error....if you make transfers without food, not even 1 unit, it should work just fine.
I think you are right...i was confused becouse i was using both .exe , a rebuild that i made and the 1.0.0.8 version...and the version 1.0.0.8 i'm using it for anything but resource transfers.
Now, the rebuild of the project was made with Microsoft Visual Studio 2005 Professional Edition, but using the cryptlibD.lib file instead of cryptlib.lib, becouse of an error that i encountered that knocked me up - i'm not a programmer.
That's why my .exe is 4 MB, it's a debug version, but who's gonna debug it?...not me
It's the same thing as 1.0.0.1 version but with resource transfer fixed.
Error in log:
INFO 2007-11-11 15:14:01 Begin to execute task:Resource transfer Task: VillageIndex=3 LocationID=24 Resource:Wood:1 Clay Iron Grain DestVillage:<Resource>1,1 2,0 3,0 4,0 </Resource> <DestVillage>7</DestVillage> Time:2007-11-11 15:12:00
INFO 2007-11-11 15:14:07 Need to login.
INFO 2007-11-11 15:14:08 Login successful.
INFO 2007-11-11 15:14:08 Login successful.
ERROR 2007-11-11 15:14:14 Can't find the form input field named a. Form input fields count: 10.
ERROR 2007-11-11 15:14:14 ------Task executed failed. Get confime form Post data failed, please check whether travian page html code changed. Task stopped.
INFO 2007-11-11 15:14:14 Tasks execution finished.
Help please
Last Visit: 31-Dec-99 18:00 Last Update: 3-Oct-24 1:23