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.
Does this bot seem sufficiently correct to escape detection?
I have been trying Tavian for about 10 days now, and some of it is truly 'busy' work.
I can see the benefit of this tool to automate some of the more repetitive tasks. Waiting for enough resources, build a single unit, building, etc. ... yawn .. wait for more resources ... repeat.
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.
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.
Last Visit: 31-Dec-99 18:00 Last Update: 3-Oct-24 1:23