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.
I think you won t get your answer too soon, not much action around here I was not aware that if there are not enough resources to build a task, it will try again later.
Just as what Xyzzy529 said, tool users should calculate a approximate time to fire task by yourself. Otherwise overnight tasks retry will log returned Travian Server responsed HTML to the bottom event view which will exhaust a lot of memory.
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
1. Yeah, this tool does retry after while if there is not enough resource.
2. There is no calculation for how long resource will fulfil current task. But this tool will poll Travian server every interval to check whether current task exectued successfully.
I am making such a tool in c++. But you have to insert the buildings, and stuff like that, is just c++ that saves the results in a file. I ve just learned it. I guess today will be done.
I am using
<villageindex>1 <locationid>8 <groupid> 4
it logs in, but it says task failed. The location 8 is an empty grain spot. I have enough resourses to build it.
Any reasons it fails?
This happens also with me when I tried to use this program from my workplace. But I do not have any problem at home or in internet corner. I do not know the reason, but I smell that because of some firewall setting cause this problem. If somebody able to discover how to fix this, I would be also very happy.
Please help us!
As you said - It seems that there is a problem with Firewall. I had Norton securit center (Firewall) after i uninstalled it (disabling didnt work) and installed Norton Antivirus 2006 again but settings that overtake WinXP defaults - programs works fine.
happy to hear that you solved the problem and it works now for you.
But my problem still exists. Is anybody able to figure out why I can not use the program from my workplace? I can manage my travian account using the browser, but not the program. What is the reason? Anybody any idea?
Check the router port, I think router might affect it too? If you are in your workplace.. the chance router blocks or the firewall blocks is much higher as they want higher security =/
INFO 2007-10-03 12:21:20 ------Begin to execute task:Upgrade Task: <villageindex>81280 <locationid>16
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"
The VillageIndex is 1 for your first village, 2 for the second, etc. no matter who is using it, the actual village number is not needed.
Here is a sample for the troop attack order. 9,99 = Imperian, 99 will send up to 99. 6,99 = Eq. Imp. The number of troops can be exact or more and it will send as many are in the village.
The troop type numbers are based on the input fields on the "send troop" page, not the order in the instructions. The numbers are from top left to right, then to the next row.
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.
Thanks, mila6452. Because I only played on s1.travian.cn, so all features only tested on s1.travian.cn and works. Maybe in different travian server, there are some difference. Because I have no too much free time, so I can't manage a CVS or SVN server. I think you or others who are interested in this tool can build up a project on sourceforge to improve it.
O.k.
I have tried your tool on s2 and s3.travian.hu servers. I found there is no special case server by server. I think it should work on every server.
I am not so familiar on sourceforge. Maybe here is somebody who can help in this task. Please contact me by email!
could you show me how you make it work for scout?
My task is only work for phalanx and pathfinder and I'm still trying to test on other type of troops.
The main problem was that the program filled the troop types in a row by row order however it is column by column order on the page. So the troops for scouting became on a wrong troop type position when filled the input form. This was the main problem. After there is no differences between troop dispatch and courting. Therefore I expanded the CTravianTaskDispatchTroop class with a
eSpyAction m_spy;
member. You can define the task in the tasks.txt file: