Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Travian: Village Manager 1.6

Bookmark your preferred villages in a draggable table available on every page! Fast links to your farms, safehouses, targets etc.

Description

This script adds a list of villages to all your pages and an option "Add to Village Manager" on village page (look at the bottom of the page). The list gives you a quick overview of your preferred villages (farms, safehouses, targets etc.), oases and abandoned areas, so that it is easy to remember and manage them.

Features:
  • add and remove villages
  • villages can be filtered using customizable tags (i.e. farm, target, reinforcements...)
  • visit village page by clicking on village name
  • visit player's profile by clicking on player's name
  • visit ally description by clicking on ally name
  • see the distance between the village and your active village (cell distance)
  • send troops and merchants (from your active village)
  • see the type of village
  • see the player's race
  • see population statistics of the past week for villages, players and alliances
  • see time of travel and arrival time for each village
  • write note for each village using a complete HTML editor
  • list is draggable and can be minimized
  • hide/show columns, resize and sort them
  • list data can be imported/exported (share them by email with your friends etc.)

Supported languages

Italian, English, Russian, Lithuanian, German, Dutch, Spanish, Portuguese, Slovenian, Arabic, Polish, French, Hungarian, Turkish, Chinese, Bosnian, Danish.

History

  • v1.6 (20-06-08)
    • added "note" column with HTML editor
    • added "import/export" list
    • added new languages: Bosnian, Danish
  • v1.5 (12-06-08)
    • added "tags" column
    • added "filter by tags" option
    • added "add tag" option
    • added village statistics
    • added "hide/show popups" option
    • added new language: Chinese
  • v1.4 (06-06-08)
    • added ally statistics
    • added time of travel popup
    • added shadow effect to popups
  • v1.3 (29-05-08)
    • added "type of village" column
    • added "tribe" column
    • added player statistics
    • added "columns width" option
    • added new languages: French, Hungarian, Turkish
  • v1.2 (21-05-08)
    • added "check for updates" option
    • fixed bug due to karte.php changed code
  • v1.1 (20-05-08)
    • added "send resources" column
    • added map icon and link to village page
    • added hide/show options icon
    • added option to delete all villages
    • added option to restore default list position
    • minimize/maximize list by doubleclicking the bar or clicking the icon
    • show "---" instead of empty entries
    • stop changing page to retrieve single village coordinates (by FranMod)
    • changed the default list position
    • reduced memory usage
    • fixed bug: sort order is lost when page changes
    • fixed bug: distance values=NaN or wrong distance
    • added new language: Polish
  • v1.0 (07-05-08)
    • Script renamed to "Village Manager"
    • added new language: Slovenian
    • fixed bug with coordinates on accounts with only one village
    • complete rewrite of table layout
    • options to hide/show columns (player, ally and distance)
    • columns now are sortable (player, ally and distance)
    • now working with abandoned areas and oases
    • stop reloading the page for updates in the list (by FranMod)
    • DOM code and language code optimization (by FranMod)
    • Added images, stop stealing from the server (by FranMod)
  • v0.5 (29-04-08)
    • added new languages: Portuguese (Brazil)
    • fixed bug on accounts with only one village
    • fixed bug with coordinates
    • fixed bug with player's name on oasis
  • v0.4 (28-04-08)
    • added new languages: Arabic, Spanish (Argentina)
    • added player's name column with link to player's profile
    • added ally column with link to ally's profile
    • added column with distance (cells) between the farm and your active village
  • v0.3 (26-04-08)
    • added new languages: Russian, Lithuanian, German, Dutch
    • fixed bug with cyrillic village names on russian servers
    • fixed incompatibility with Travian QP Targets script
  • v0.2 (24-04-08)
    • farm list is now available on all pages
    • changed the "add farm" button with an option at the bottom of village page
    • changed the list default position
    • added "Drag" tooltip
  • v0.1 (23-04-08)
    • first release

Next improvements (maybe...)

  • setting profiles
  • column with checkbox for farming
  • column with date (added on...)
  • tracking of raids in progress

Script problems?

  • Instructions for newbies
  • Bugs / problems / etc...
    • Try to disable other GM scripts (for incompatibilities)
    • If the problem still exists please give me the following information:
      • Travian server where you play
      • Script version
      • Graphic pack used or if none is used
      • Describe the problem the best you can

Credits

This script idea was originally based on Travian Auto-farmscript (without the auto-farming option).
Thanks to: FDisk, Zezuma, usr8472, Titus, Risi, QP, MeXaon, ChuckyBoy, FranMod, Hmmm2.
Statistics provided by:

Screenshots

Full:
Image Hosted by ImageShack.us
Compact:
Image Hosted by ImageShack.us
Statistics popup:
Image Hosted by ImageShack.us
Time of travel popup:
Image Hosted by ImageShack.us
HTML note:
Image Hosted by ImageShack.us

Reviewed by




Jul 21, 2008
FranMod Scriptwright

Hi, I apologize for being MIA all this time, I tried your script (I jumped from 1.0 to 1.6) and the changes are awesome. Really a great job!!!

I'm thinking in a new feature, something I miss. What do u think to show the last report from a Raid or Attack? I can write the code and if you like insert in the script.

 
Jul 20, 2008
Zilogix Scriptwright

@johnsonbryce: The way that I organize my villages to overcome the problem you have identified is to always sort by the distance column. That way, whenever I view a different one of my own villages, the list updates automatically and puts the nearest villages that are in my Village Manager list at the top of the list.

 
Jul 20, 2008
Bolemeus User

Dutch update:

case 'nl': //Dutch, translation by Bolemeus
lang['VILLAGE'] = 'Dorp';
lang['ALREADY_LIST'] = 'staat al op de lijst';
lang['ADD_VILLAGE'] = 'Voeg toe aan';
lang['NO_VILLAGES'] = 'Geen dorpen in de lijst!';
lang['MAP'] = 'Kaart';
lang['PLAYER'] = 'Speler';
lang['PLAYER_PROFILE'] = 'Speler profiel';
lang['ALLY'] = 'Alliantie';
lang['ALLY_PROFILE'] = 'Alliantie profiel';
lang['DISTANCE'] = 'Afstand';
lang['DISTANCE_VILLAGE'] = 'Afstand vanaf';
lang['DELETE'] = 'Verwijder';
lang['SEND_TROOPS'] = 'Stuur troepen';
lang['DRAG'] = 'Slepen';
lang['HIDE'] = 'Verberg';
lang['SHOW'] = 'Toon';
lang['SORT_BY'] = 'Sorteer op';
lang['MINIMIZE'] = 'Minimaliseer';
lang['MAXIMIZE'] = 'Maximaliseer';
lang['YOUR_VILLAGE'] = 'je dorp';
lang['COLUMNS'] = 'kolommen';
lang['OPTIONS'] = 'opties';
lang['SEND_RESOURCES'] = 'Stuur handelaren';
lang['VILLAGE_PROFILE'] = 'Overzicht van het dorp';
lang['OTHER_OPTIONS'] = 'Andere opties';
lang['DELETE_ALL'] = 'Verwijder alle dorpjes';
lang['RESTORE'] = 'Standaardinstellingen';
lang['CONFIRM'] = 'Weet je het zeker?';
lang['LUMBER'] = 'hout';
lang['CLAY'] = 'klei';
lang['IRON'] = 'ijzer';
lang['CROP'] = 'graan';
lang['TRIBE'] = 'Stam';
lang['ROMANS'] = 'Romeinen';
lang['GAULS'] = 'Galliërs';
lang['TEUTONS'] = 'Germanen';
lang['UPDATE_CHECK'] = 'Controleer op updates';
lang['LAST_VERSION'] = 'Je beschikt al over de meest recente versie';
lang['NEW_VERSION'] = 'Er is een nieuwe versie beschikbaar';
lang['UPDATE_NOW'] = 'Update nu';
lang['DATE'] = 'Datum';
lang['POPULATION'] = 'Populatie';
lang['SERVER_DOWN'] = 'De statistieken server is tijdelijk niet beschikbaar, probeer het later nog eens...';
lang['CLOSE'] = 'Sluiten';
lang['TYPE'] = 'Type';
lang['VILLAGE_TYPE'] = 'Soort dorp';
lang['F1'] = '9 graner (3-3-3-9)';
lang['F2'] = '+ijzer (3-4-5-6)';
lang['F3'] = 'standaard (4-4-4-6)';
lang['F4'] = '+klei (4-5-3-6)';
lang['F5'] = '+hout (5-3-4-6)';
lang['F6'] = '15 graner (1-1-1-15)';
lang['W1'] = '+25% hout/uur';
lang['W2'] = '+25% hout/uur';
lang['W3'] = '+25% hout & +25% graan/uur';
lang['W4'] = '+25% klei/uur';
lang['W5'] = '+25% klei/uur';
lang['W6'] = '+25% klei & +25% graan/uur';
lang['W7'] = '+25% ijzer/uur';
lang['W8'] = '+25% ijzer/uur';
lang['W9'] = '+25% ijzer & +25% graan/uur';
lang['W10'] = '+25% graan/uur';
lang['W11'] = '+25% graan/uur';
lang['W12'] = '+50% graan/uur';
lang['WIDTH'] = 'Breedte van';
lang['SAVE'] = 'Opslaan';
lang['TROOPS'] = 'Troepen';
lang['TIME'] = 'Tijd';
lang['ARRIVAL'] = 'Aankomst';
lang['TOT'] = 'Reistijd';
lang['TOURNAMENT'] = 'Toernooiveld Niveau';
lang['SPEED'] = 'Speed server';
lang['POPUPS'] = 'Popups';
lang['TAG'] = 'Markering';
lang['NO_TAG'] = 'Geen dorpjes met markering';
lang['FILTER'] = 'Sorteer op: ';
lang['ADD'] = 'Voeg toe';
lang['REMOVE'] = 'Verwijder';
lang['NOTE'] = 'Notitie';
lang['EDIT'] = 'Wijzig';
lang['START_EDITING'] = 'Wijzig eerst!';
lang['LINK'] = 'Link';
lang['IMAGE'] = 'Plaatje';
lang['BOLD'] = 'Vet';
lang['ITALIC'] = 'Cursief';
lang['UNDERLINE'] = 'Onderstreept';
lang['STRIKET'] = 'Doorhalen';
lang['SUPERS'] = 'Superscript';
lang['SUBS'] = 'Subscript';
lang['JLEFT'] = 'Links uitlijnen';
lang['JCENTER'] = 'Centreren';
lang['JRIGHT'] = 'Rechts uitlijnen';
lang['JFULL'] = 'Uitvullen';
lang['OLIST'] = 'Geordende lijst';
lang['ULIST'] = 'Ongeordende lijst';
lang['HRULE'] = 'Horizontale streep';
lang['INDENT'] = 'Inspringing vergroten';
lang['OUTDENT'] = 'Inspringing verkleinen';
lang['UNFORMAT'] = 'Opmaak verwijderen';
lang['COLOR'] = 'Tekstkleur';
lang['IE_DATA'] = 'Data importeren/exporteren';

 
Jul 19, 2008
johnsonbryce User

I was having trouble keeping track of which contact/village I wanted to work with when I had multiple villages. So I decided to change your code to allow you to have a different list for each village. Here you go

....
//create unique suffix
var ownerId = getOwnerId();
var activeVillage = getActiveVillageId();
if (ownerId) suffix = server+'_'+ownerId+'_'+activeVillage;
else return;
.....

//retrieve current village id
function getActiveVillageId()
{
var z = dom.xs("//a[contains(@href,'newdid')][@class='active_vl']");
if (!z || z.snapshotLength == 0) return false;
aVillageID = z.textContent;
aVillageID = cleanStr(aVillageID);
return aVillageID;
}

 
Jul 12, 2008
polle1 User

@ Zilogix - It works :) thx

@ dbkiller - Can you get the merchents traveltime includet in the popup ?

 
Jul 12, 2008
polle1 User

Thx..I will try that :)

 
Jul 12, 2008
Zilogix Scriptwright

@polle1 - I found that naming my profiles the same as my tags, and then selecting the checkbox for "Link with tags" worked well, as long as I already had selected to view a specific tag set first BEFORE creating the profile.

  • choose a tag to filter for in the tag drop-down
  • show the columns that you want and set the sorting order, etc
  • save the new profile using a name that matches the tag and select "Link with tags"

  • I don't know if it needs to be the same as the tag name, but it seems to work for me.

     
    Jul 12, 2008
    polle1 User

    I can´t get the profiles to change when I switch over to another tag. Can you make a guide on how to do it?

     
    Jul 12, 2008
    Nataniel Klug User

    Dear friend dbKiller,

    I am trying to save my Village Manager data to put it in another computer but the import/export does not save notes and tags. Where is it holded (the files) so I can copy it all to another computer. Hope to have an answer... ;)

     
    Jul 11, 2008
    dbKiller Script's author

    @polle1
    download the Remotely hosted version
    it's still a work in progress but that feature is there already ;)

     
    Jul 11, 2008
    polle1 User

    Can you do so you can switch between the different profiles, in the same way as with tags

     
    Jul 3, 2008
    polle1 User

    I have different tags for my cities, city number 1, tag A1, A2, etc., etc.
    city number 2, tag B1, B2, etc. etc.
    Is it possible to create an automatic shift, so when I look at the tag A1, it automatically switches to the city number 1?
    hope you understand what I mean:

     
    Jun 27, 2008
    dbKiller Script's author

    @Zilogix, polle1
    You are right, the "update now" is just a delete and replace feature.
    I'll look into this issue for v1.7, but its release will be late 'cause I'm quite busy with my real life job at the moment (and I'm also working on another script :P...)

     
    Jun 27, 2008
    Zilogix Scriptwright

    I agree with polle1. The current "update" feature doesn't seem to be as much an update as a "delete and replace". I notice that the HTML notes also disappear when you "update" a village. Would be good to find a solution to this.

     
    Jun 27, 2008
    polle1 User

    Is it possible to create an automatic update of the cities without losing the tags

    Every time I have updated a city I have too put the tags back on

     
    Jun 24, 2008
    dbKiller Script's author

    @Zilogix
    thanks, your feedback is precious ;)

     
    Jun 24, 2008
    Zilogix Scriptwright

    The profile settings look great so far. I just have one minor suggestion. Could you include the x,y coordinates of the list itself in the profile settings? For instance, I have created a profile called "add village" which is the only time that I actually show the tags as a column. When I do that, I have to move the whole list sideways to the left, so that it doesn't scroll off the right hand edge of the screen Then, when I change back to the "farms" profile, I want the list to jump back to its regular location beside the right hand edge of the screen.

    I like the "Link with tags" idea, btw. Saves having a second drop-down box. Well done!

    For some reason, the "Speed server" setting is continually defaulting to "on" since I upgraded to v1.7.

    The statistics server is not being called for either players or alliances since I upgraded to v1.7.

     
    Jun 24, 2008
    dbKiller Script's author

    I need feedback for v1.7 beta (with setting profiles),
    try it out and let me know about any bugs/issues/etc please!

    Remotely hosted version

     
    Jun 23, 2008
    dbKiller Script's author

    @grooving
    not top priority now, but I'll give it a try ;)

     
    Jun 21, 2008
    grooving User

    @ZIlogix I also love this script with autofarm or without it, it is a great work, what i hate the most is to have to open all my farms windows one each time ( i open like 200 at day and i send the attacks myself)

    Would be nice to do the same pressing just a button for each farm, without the need to open all that windows.

    A feature like attack with X troops, configurable and besides each farm.

    maybe it would dont automate the account, just save me some farming steps.

    on top of village manager a window where you could put the troops to send. (configurable for romans, gauls or germans)
    and on a table a buton to send that troops on an specified mode (reinforcements, normal, attrack)

    Could you at least make this? please, please, please (as james Brown used to sign).

     
    Jun 21, 2008
    Zilogix Scriptwright

    I love to have 100 to 200 farms, will be nice to be able to attrack all of them while taking a shower, eating, sleeping
    @grooving: automatically sending attacks while you are "taking a shower, eating, sleeping" would definitely be against the game rules, whether you are attacking a farm or not.

    One of the main reasons why I use this script is that it doesn't have auto-farming ability.

    @dbKiller: Here is a little example of how I am using your script. Each time I attack a farm, I record the TraviLog report and put it in as an HTML link in a note in my Village Manager list, for the village that was farmed.

     
    Jun 21, 2008
    grooving User

    Well, it's not against rules to attack farms, i hope someone makes a version implementing it, like

    attack farm 1 with x troops ---> confirm ---> attack

    That way you will have to be online to attack

    It is a pain in the a..s, to have to open 200 windows to make your attacks.

     
    Jun 21, 2008
    Zilogix Scriptwright

    @grooving: This script was originally based on an auto-farming script, but dbKiller has not implemented any auto-attack features, so as to be more compliant with the game rules.

    @dbKiller: until you said so now, I did not know that English wasn't your mother tongue! I see no problems with the English version of your script.

     
    Jun 20, 2008
    remodaboss User

    Hello there, good work!! ..my contribution

    case 'sk': //Slovakia
    lang['ROMANS'] = 'Rimania';
    lang['GAULS'] = 'Galovia';
    lang['TEUTONS'] = 'Germáni';
    lang['VILLAGE'] = 'Dedina';
    lang['ALREADY_LIST'] = 'už je v zozname';
    lang['ADD_VILLAGE'] = 'Pridať do';
    lang['NO_VILLAGES'] = 'Zoznam dedín je prázdny!';
    lang['MAP'] = 'Mapa';
    lang['PLAYER'] = 'Hráč';
    lang['PLAYER_PROFILE'] = 'Profil hráča';
    lang['ALLY'] = 'Alliancia';
    lang['ALLY_PROFILE'] = 'Profil aliancie';
    lang['DISTANCE'] = 'Vzdialenosť';
    lang['DISTANCE_VILLAGE'] = 'Vzdialenosť od';
    lang['DELETE'] = 'Vymazať';
    lang['SEND_TROOPS'] = 'Poslať jednotky';
    lang['DRAG'] = 'Pretiahni';
    lang['HIDE'] = 'Skryť';
    lang['SHOW'] = 'Ukázať';
    lang['SORT_BY'] = 'Zotriediť podľa';
    lang['MINIMIZE'] = 'Minimalizovať';
    lang['MAXIMIZE'] = 'Maximalizovať';
    lang['YOUR_VILLAGE'] = 'tvoja dedina';
    lang['COLUMNS'] = 'stĺpce';
    lang['OPTIONS'] = 'nastavenia';
    lang['SEND_RESOURCES'] = 'Pošli suroviny';
    lang['VILLAGE_PROFILE'] = 'Profil dediny';
    lang['OTHER_OPTIONS'] = 'Ostatné možnosti';
    lang['DELETE_ALL'] = 'Vymazať všetky dediny';
    lang['RESTORE'] = 'Default nastavenia';
    lang['CONFIRM'] = 'Si pevne presvedčený, že chceš toto spraviť?';
    lang['LUMBER'] = 'drevo';
    lang['CLAY'] = 'hlina';
    lang['IRON'] = 'železo';
    lang['CROP'] = 'obilie';
    lang['TRIBE'] = 'Rasa';
    lang['UPDATE_CHECK'] = 'Skontrolovať update';
    lang['LAST_VERSION'] = 'Máš poslednú verziu skriptu!';
    lang['NEW_VERSION'] = 'Je k dispozícií nová verzia';
    lang['UPDATE_NOW'] = 'Updatni teraz';
    lang['DATE'] = 'Dátum';
    lang['POPULATION'] = 'Populácia';
    lang['SERVER_DOWN'] = 'Štatistický server neni k dispozícii, skús neskôr...';
    lang['CLOSE'] = 'Zavrieť';
    lang['TYPE'] = 'Typ';
    lang['VILLAGE_TYPE'] = 'Typ dediny';
    lang['F1'] = '9 obilie (3-3-3-9)';
    lang['F2'] = '+železo (3-4-5-6)';
    lang['F3'] = 'normálna (4-4-4-6)';
    lang['F4'] = '+hlina (4-5-3-6)';
    lang['F5'] = '+drevo (5-3-4-6)';
    lang['F6'] = '15 obilie (1-1-1-15)';
    lang['W1'] = '+25% dreva za hodinu';
    lang['W2'] = '+25% dreva za hodinu';
    lang['W3'] = '+25% dreva & +25% obilia za hodinu';
    lang['W4'] = '+25% hliny za hodinu';
    lang['W5'] = '+25% hliny za hodinu';
    lang['W6'] = '+25% hliny & +25% obilia za hodinu';
    lang['W7'] = '+25% železa za hodinu';
    lang['W8'] = '+25% železa za hodinu';
    lang['W9'] = '+25% železa & +25% obilia za hodinu';
    lang['W10'] = '+25% obilia za hodinu';
    lang['W11'] = '+25% obilia za hodinu';
    lang['W12'] = '+50% obilia za hodinu';
    lang['WIDTH'] = 'Šírka';
    lang['SAVE'] = 'Uložiť';
    lang['TROOPS'] = 'Jednotky';
    lang['TIME'] = 'Čas';
    lang['ARRIVAL'] = 'Príchod';
    lang['TOT'] = 'Čas cestovania';
    lang['TOURNAMENT'] = 'úroveň Arény';
    lang['SPEED'] = 'Speed server';
    lang['POPUPS'] = 'Popupy';
    lang['TAG'] = 'Tag';
    lang['NO_TAG'] = 'Žiadne dediny s týmto tagom';
    lang['FILTER'] = 'Filtruj podľa: ';
    lang['ADD'] = 'Pridať';
    lang['REMOVE'] = 'Odobrať';
    lang['NOTE'] = 'Poznámka';
    lang['EDIT'] = 'Edituj';
    lang['START_EDITING'] = 'Najskôr edituj!';
    lang['IMAGE'] = 'Obrázok';
    lang['BOLD'] = 'Bold';
    lang['ITALIC'] = 'Italic';
    lang['UNDERLINE'] = 'Podčiarknuté';
    lang['STRIKET'] = 'Prečiarknuté';
    lang['SUPERS'] = 'Horný index';
    lang['SUBS'] = 'Dolný index';
    lang['JLEFT'] = 'Zarovnaj vľavo';
    lang['JCENTER'] = 'Zarovnaj na stred';
    lang['JRIGHT'] = 'Zarovnaj vpravo';
    lang['JFULL'] = 'Celá šírka';
    lang['OLIST'] = 'Číslovaný zoznam';
    lang['ULIST'] = 'Odrážky';
    lang['HRULE'] = 'Horizontálna čiara';
    lang['INDENT'] = 'Odsek';
    lang['OUTDENT'] = 'Prísek';
    lang['UNFORMAT'] = 'Zruš formátovanie';
    lang['COLOR'] = 'Farba textu';
    lang['IE_DATA'] = 'Importuj/Export dáta';

     
    Jun 20, 2008
    grooving User

    Mate you a geanious, i love your work, could you please add a farming feature?

    I explain, you set a main village, set a number of troops and the machine starts sending atracks to all of your farms with an aleatory time of diference.

    I love to have 100 to 200 farms, will be nice to be able to attrack all of them while taking a shower, eating, sleeping...

    You could comment on this script if you were logged in.