Travian Server Script Downloading
• • • • • Introduction is a web game of an ancient European tribal war. I developed this tool to automatically accomplish tasks. Tasks Category Currently, there are six kinds of Travian tasks supported: • Upgrade task (upgrading resources or buildings) • Build task (the build task) • Develop task (used for Academy, Armoury and Blacksmith) • Training troop task (used for Barracks, Stable, Workshop, Palace and Residence) • Transporting resource task (used for Marketplace) • Troop dispatch task (used for rally point) Features • Supports multiple threads. Tasks queue can be executed in a separated thread. • Supports event log.
Event can log to file and UI window. Event log supports multiple threads. • Supports HTTP Get/Post method, raw cookie, UTF-8 encode/decode, gzip decompression, and URL encode/decode. HTTP functions based on the MFC class CInternetSession, so it's less dependent. • HTTP Response decompression uses class Gunzip in Crypto++, which is a C++ Class Library of Cryptographic Schemes.
• Uses Regular expressions to parse HTML, so it's compact. • Once assigned tasks file, Travian server and user name/password, all tasks are accomplished unattended.
Compile Source Code This project is built by VC8.0.50727 (VC2005 SP1). Before compiling the source project, you need to compile the cryptopp54 project first. The cryptopp54 project is located in the 'cryptopp54' sub-folder of Travian's source code directory. Then place cryptlibD.lib (Debug build) or cryptlib.lib (Release build) in the Travian source code folder. Description of Main Classes Class Name Description Class Dependencies (Apart from MFC/STL) CAboutDlg About dialog CHyperLink CEventLog Event buffer management, log event to file and notify registered windows to fetch new events. CHttpClient Send HTTP Request and get HTTP response. Support Get/Post method, gzip decompression, URL encode/decode, UTF-8 encode/decode, raw cookie.
CURLEncDec URL encode/decode. CRegex Encapsulation for ATL regular expression class CAtlRegExp, written by Paul DiLascia. CTravianTask Travian tasks base class, which presents the upgrade tasks. It parses HTML form fields given tasks' URL and special tag mark. If player has more than one village, then is CTravianTask responsible for switching current villages.
CTravianTask also provides a static function to parse tasks from the tasks file. CHttpClient, CEventLog CTravianTaskBuild CTravianTaskBuild is CTravianTask child class. It presents the build task. CTravianTask, CEventLog CTravianTaskDevelop CTravianTaskDevelop is a CTravianTask child class. It presents the develop task. CTravianTask, CEventLog CTravianTaskTrain CTravianTaskTrain is CTravianTask child class. It presents the troop training task.
CTravianTask, CEventLog CTravianTaskResourceTransport CTravianTaskResourceTransport is a CTravianTask child class. It presents the resource transporting task. CTravianTask, CEventLog CTravianTaskDispatchTroop CTravianTaskDispatchTroop is a CTravianTask child class. It presents the troop dispatch task.
CTravianTask, CEventLog CTravianTaskDispatchTroop CTravianTaskDispatchTroop is a CTravianTask child class. It presents the troop dispatch task. CTravianTask, CEventLog Tasks typedef of the CTravianTask* vector. It's used as tasks queue. CTravianTask CTravianTaskSchedule Schedule thread for the tasks queue. CTravianTask, Tasks, CEventLog CThreadSchedule Schedule thread for the tasks queue. CTravianTaskSchedule, CEventLog CFormTask Form view for tasks parameter.
Download The Amazing Spider Man 2 Sub Indo Indowebster. HTTP functions based on the MFC class CInternetSession, so it's less dependent. HTTP Response decompression uses class Gunzip in Crypto++, which is a C++ Class Library of Cryptographic Schemes. Refer to Crypto++. Uses Regular expressions to parse HTML, so it's compact. Once assigned tasks file, Travian server.
CThreadSchedule, CEventLog CViewOutput Event output view. CEventLog CViewTaskList View for tasks list. Tasks History • Initial Release: 1.0.0.0 (23 July 2007) • Release: 1.0.0.1 (18 August 2007) Fixed parsing negative village coordinate number problem. • 1.0.0.8 released by mila What's New in This Release? • Troop dispatch bug fixed • user.ini file. If this file exists, the program read it line by line. In the lines you can specify: • line: URL of the server.
S2.travian.hu) • line: name of the user (e.g. Habakuk) • line: password (e.g. Babzsak) • line: name of the file (e.g. Tasks_en.txt) • line: tribe type (e.g. 3) The tribe type can be: • Roman • Teuton • Gall • Calculation for enough resources to complete the task. If there is not enough resources in the moment when the task runs, the program calculates the time when you will have enough resources to complete the task.
This new date will set as the execution date of the task. (The icon, in the task list, will change for a clock to show this situation.) • specification instead of >TimeTime/Time tag. If you send your spys to scouting only (Scouting troop types only in the dispatched army) you can specify here what you are interested in. The type of spy can be 1 or 2.
• scouting resources and units • scouting defender devices and other units NOTE! You are responsible to send only scouters in the >Troop/Troop.
Sirtyler54 17-Jan-09 20:41 17-Jan-09 20:41 I am getting an error with logging in: INFO2009-01-18 13:30:48Need to login. ERROR2009-01-18 13:30:48Can't find the form input field named autologin. Form input fields count: 6. ERROR2009-01-18 13:30:48------Format post data from returned HTML failed. Server:s17.travian.com.tr, User:******* ERROR2009-01-18 13:30:48------Login failed. ERROR2009-01-18 13:30:48------Task executed failed.
Retry to get Travian village ID map failed. Task stopped. INFO2009-01-18 13:30:48Tasks execution finished.
I put in the 5 fields correctly. I replaced my username with ******* on here.
Here is my user.ini file: s17.travian.com.tr ****** ****** tasks.txt 2 What am I doing wrong? Same error here retry counter:1 ERROR2008-12-02 19:14:04CHttpClient::GetReponse() exception:The URL is invalid retry counter:2 ERROR2008-12-02 19:14:04CHttpClient::GetReponse() exception:The URL is invalid retry counter:3 ERROR2008-12-02 19:14:04CHttpClient::GetReponse() exception:The URL is invalid retry counter:4 ERROR2008-12-02 19:14:04CHttpClient::GetReponse() exception:The URL is invalid retry counter:5 ERROR2008-12-02 19:14:04CTravianTask::GetVillageIDs(): Get page dorf1.php failed. ERROR2008-12-02 19:14:04------Task executed failed. Retry to get Travian village ID map failed. Task stopped. Any help is appreciated. Almashm_aa 7-Apr-08 1:16 7-Apr-08 1:16 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: __________________ INFO2008-04-07 01:51:00Begin to execute task:Resource transfer Task: VillageIndex=4 Resource:Wood:10000 Clay Iron Grain DestVillage:86,8 Time:2008-04-07 01:49:22 INFO2008-04-07 01:51:01Need to login. ERROR2008-04-07 01:51:01Can't find the form input field named autologin.
Form input fields count: 6. ERROR2008-04-07 01:51:01------Format post data from returned HTML failed. Server:s2.travian.ae, User:smiles designer ERROR2008-04-07 01:51:01------Login failed. INFO2008-04-07 01:51:02Need to login.
ERROR2008-04-07 01:51:02Can't find the form input field named autologin. Form input fields count: 6. ERROR2008-04-07 01:51:02------Format post data from returned HTML failed.
Server:s2.travian.ae, User:smiles designer ERROR2008-04-07 01:51:02------Login failed. Sierra Hull Secrets Rarity. ERROR2008-04-07 01:51:02------Task executed failed. Retry to get Travian village ID map failed.
Task stopped. INFO2008-04-07 01:51:02Tasks execution finished.
Sherpishoru 21-Mar-08 8:52 21-Mar-08 8:52 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: INFO2008-03-21 19:31:41Begin to execute task:Train Task: VillageIndex=2 LocationID=23 Troop:3,1 Time:2008-03-21 19:30:00 INFO2008-03-21 19:31:42Need to login. ERROR2008-03-21 19:31:42Can't find the form input field named autologin. Form input fields count: 6.
ERROR2008-03-21 19:31:42------Format post data from returned HTML failed. Server:speed.travian.de, User:xxxxxxxx ERROR2008-03-21 19:31:42------Login failed. INFO2008-03-21 19:31:43Need to login. ERROR2008-03-21 19:31:43Can't find the form input field named autologin. Form input fields count: 6.
ERROR2008-03-21 19:31:43------Format post data from returned HTML failed. Server:speed.travian.de, User:xxxxxxxx ERROR2008-03-21 19:31:43------Login failed. ERROR2008-03-21 19:31:43------Task executed failed. Retry to get Travian village ID map failed. Task stopped. INFO2008-03-21 19:32:24Tasks execution finished.
MZS 1-Mar-08 21:40 1-Mar-08 21:40 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. First, the village index is a number given to your villages in the order they were created (there are a few catches there).but you could set a command to build let's say a unit of infantry (pretorian) in every village with a difference of 5 minutes, an see where the troops were trained, so you can find the real village index.this is if you're really stuck, especially when you have more than 7-8 villages and you just conquered one recently, in this case the order of village index might change.
Another thing equally important is when you set tasks to build troops/buildings at the same time in different villages.after you run the program do not change the village manually (browsing through villages) especially when there is a task to be executed at that time. Now i hope my english was fine for you to understand.
Well, let's see an example of code: 1 23 3,1 2008-03-21 19:30:00 1. This is your main village, if you have only one this is it, you'll always use 1 23. This is the place where i have the barracks 3,1. 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. Me to get errror on village id here error INFO2008-09-22 00:45:33------Begin to execute task:Train Task: 1 33 1,1 2008-09-22 00:42:00 ERROR2008-09-22 00:45:33CTravianTask::GetVillageIDs(): Get page dorf1.php failed.
ERROR2008-09-22 00:45:33CTravianTask::GetVillageIDs(): Get page dorf1.php failed. ERROR2008-09-22 00:45:33------Task executed failed. Retry to get Travian village ID map failed. Task stopped.
INFO2008-09-22 00:51:53Tasks execution finished. Last Visit: 31-Dec-99 19:00 Last Update: 18-Dec-17 13:38 1 General News Suggestion Question Bug Answer Joke Praise Rant Admin Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.
README.md Travian Data Utility A Python script to download Travian map data, load it into SQLite, and generate images. Requirements • • The script has been tested with Python 3.2.3 and PyGame 1.92, but it should work with other variations of the major version numbers. The 32-bit version of Python is required in order to be compatible with PyGame. Usage Just run the script!
It should create the following folder structure: • data • [server name] • [server name].sqlite • [date].sql.gz • [date].sql • [date].jpg • python data utility.py If the script is successful you should have 4 files in each server folder (3 new files per day). If the script fails, you may be missing files, depending on where the script failed in its execution.