Travian ModKit 2.0 is a Travian plugin based on FireFox's GreaseMonkey extension. It gathers resources and buildings info from all villages and shows them in every page, so that we don't need to browse from village to village to see what's happening on each of them.
This compiled info helps us to have a whole idea of resources and upgrades inside our empire, saving us unnecessary clicks and greatly optimizing our time.
Travian ModKit 2.0 supports and works together with Travian Beyond. It limits on reading HTML that is received from the server and improving this HTML, it sends no data and makes no requests to the server, and also does no automatic actions.
You are in full control of your game, Travian ModKit 2.0 just does automatically what you would do manually with a calculator or a spreadsheet.
- Requirements & Install
- Support & Requests
- Related Posts
- Comments (22)
During the old days of Travian, before version 3.5 was launch, we had a plugin named Travian ModKit. It basically gathered resources info from all villages, summed them and showed the result on a table, so that we could see our total production, stock and capacity. It also used to register resource fields and buildings upgrades from all villages and show them inside main villages list, with time counters that expired when each upgrade was finished.
With Travian 3.5, most old plugins stopped working, incluiding Travian ModKit. Its original author (IRoll11!~s I believe, but not totally sure) had already stopped playing Travian and didn't bother to update it. Luckly a guy named underke took its code, studied it, found where it was broken and fixed it.
From my side, still before Travian 3.5, I've done a few tweaks in Travian ModKit. I wasn't able to find out how it gathered those data, but I found the variables that stored them and was able to tweak HTML generation codes to show improved info calculated based on those data.
When Travian 3.5 was launch, my modded ModKit stopped working too, and I was unable to fix it. But months later I found underke's ModKit version, and with his help I made it work on my server.
I'm proud of what I've done, I've learned a lot during its development! I know my work isn't perfect yet, but I'm also sure ModKit is even better now. This release is the result of it, and I hope it to be useful to you too
- Travian ModKit gathers and stores each village's resources capacity, current stock and production
- these data are summed and it shows your whole empire's total capacity, total stock and total production
- it also shows a window with each village's stock (value and percentage), free space, and those resources that are almost overflowing
- resources stock is predicted based on last update and passed time since so, this way we don't need to go back to each village to update stock (as long as its marcket is not used)
- Production Factor: resources with higher value should get priority to increase their production
- some villages events are captured and shown, so that we don't need to browse villages to remember about them:
- resources and buildings upgrades
- buildings demolition
- Blacksmith and Armoury upgrades
- Town Hall celebrations
- Barrack, Stable and Workshop troops training
- troops and mercants movements
- every event is listed with its cooldown time
- once expired, events remain listed so that we can remember what was done
- events can be added and refreshed
- unwanted events can be removed to clean up the list
- "next events to expire" list, listing each village's event with shortest cooldown
- villages with no events are listed too, to make it easy to find which villages we can improve
- 4 dots are used to help us quickly see events status:
- red: village was never browser and is still unknown
- blue: no events ATM
- green: event up and running
- yellow: expired event, remove current one from the list and go there start next!
- Culture Points efficiency suggestions: most efficient buildings are suggested to be upgraded first, to give most CP with least cost
- suggestions list can be sorted by village or by rank, showing most efficient buildings among all villages
(http://img10 NULL.imageshack NULL.us/img10/213/travian01 NULL.png)
Main buildings page (dorf2), with resources info, some events running and 2 expired events, CP suggestions sorted by rank, and each village stock resources
(http://img171 NULL.imageshack NULL.us/img171/8860/travian02 NULL.png)
Same as above, now on main resources page (dorf1) with CP suggestions sorted by village and each village's resources free space available
(http://img3 NULL.imageshack NULL.us/img3/4331/travian03 NULL.png)
Barrack page, with 'how much time since each village was last visited' info and CP suggestions window minimized
' rel="external nofollow"> (http://img233 NULL.imageshack NULL.us/img233/8651/travian04 NULL.png)
Here we have Travian Beyond enabled, and also showing resources that are overflowing (Warehouse near to get full)
Travian ModKit 2.0 is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0
To view a copy of this license, please visit Creative Commons (http://creativecommons NULL.org/licenses/by-nc-sa/3 NULL.0/)
© Copyright Hikari (http://Hikari.ws), 2009
If you want to redistribute this script, please leave a link to this post
Parts of this code are provided or based on ideas and/or code written by others
Translations to different languages are provided by users of this script
Important contributors to this script (listed in alphabetical order):
Travian ModKit 2.0 can be download at userscripts.org (http://userscripts NULL.org/scripts/show/57667) (direct link (http://userscripts NULL.org/scripts/source/57667 NULL.user NULL.js))
There are also several ways you can show your appreciation:
- blogging about it
- linking it from your site (without using rel=nofollow)
- browsing the site sidebars
- suggesting it to your friends
- visiting other posts thru the site and adding valuable comments
- saying thanks on comments
- offering codes that add new features
- etc, use your imagination
Travian ModKit 2.0 is used to enhance Travian experience. To use it, you must have FireFox (http://www NULL.mozilla NULL.com/en-US/firefox/) and GreaseMonkey addon (https://addons NULL.mozilla NULL.org/en-US/firefox/addon/748).
It was tested and works fine with Travian Beyond, not requiring it to work.
It was tested under following versions:
- FireFox 3.0.13
- GreaseMonkey 0.8.20090123.1
- Travian3 Beyond - ML&CN (optional) v22.214.171.124.6.3 (latest version tested)
Yeah, these are some old versions. I don't update very often but if you have at least these versions you should be fine.
Internet Explorer IS NOT supported.
- Make sure you have at least FireFox 3.0 installed and opened.
- Go to GreaseMonkey download page (https://addons NULL.mozilla NULL.org/en-US/firefox/addon/748) and install it.
- Restart FireFox.
- Go to userscripts.org page and click Install link, or just open direct install link (available on download section).
- As FireFox with GreaseMonkey opens Travian ModKit install link, GreaseMonkey should notice it is one of its applications and show a message asking if it should be installed, click Install on it.
- You should NOT need to download Travian ModKit to your HD, just opening the page should be enough to trigger GreaseMonkey and it take care of everything.
- Go to your Travian server page, login and see if new windows are being shown.
This is GreaseMonkey installation window. It shows up just after you enter installation link, instead of normal download window. If it doesn't appear, probably you don't have GreaseMonkey installed yet!
If something goes wrong after installing, make sure to set Travian ModKit on top of all plugins list, just below Travian Beyond.
Support & Requests
If you want to request any new feature, leave a comment on this post explaining it with as many details as possible. I can't assure it will be added, but if it is viable, I like it AND have the time, I'll do my best.
If something seems to not be working and you need help, first read the FAQ (will be posted soon) and then leave a comment explaining what's happening. If you need to post a picture, please link it instead of using a img tag.
Travian ModKit 2.0 currently doesn't support translations (I prefered to do it simpler and have it ready sooner instead of worrying about localization support and taking more time, sorry), and most events text is copied directly from Travian anyway.
Culture Point suggestions, on the other hand, depends on comparing buildings names to identify each building, and these internal names must be translated. It will still work on servers that it wasn't translated, it will just not automatically identify each building, and you will have to do it manually by removing buildings that were already upgraded.
Currently, there are translations for the following languages/servers:
- .br (main development server)
- .pt (should be the same as br, not tested)
- .nl (translated by underke)
- .com (names taken from Travian help page, not tested)
- .us (should be the same as .com)
If you know any other server that uses the same language of those above, please leave a comment and I'll add it.
If you want to translate it to your language, please use the following code, translating the right side text (not the xLang one) and leaving a comment with the translation:
case 'com': xLang['Main']='Main Building'; xLang['Market']='Marketplace'; xLang['Academy']='Academy'; xLang['Embassy']='Embassy'; xLang['Granary']='Granary'; xLang['Stable']='Stable'; xLang['Wall']='City Wall'; // roman wall xLang['Gaul Wall']='Palisade'; xLang['Teuton Wall']='Earth Wall'; xLang['Warehouse']='Warehouse'; xLang['Rally']='Rally Point'; xLang['Blacksmith']='Blacksmith'; xLang['Armoury']='Armoury'; xLang['Palace']='Palace'; xLang['Residence']='Residence'; xLang['Workshop']='Workshop'; xLang['Barracks']='Barracks'; xLang['Town Hall']='Town Hall'; xLang['Trade']='Trade Office'; xLang['Wood Field']='Woodcutter'; xLang['Clay Field']='Clay Pit'; xLang['Iron Field']='Iron Mine'; xLang['Crop Field']='Cropland';
Thanks to everybody that made Travian ModKit possible, to IRoll11!~s for the original idea and implementations. Thanks A LOT to underke for all the help and explanations that made me able to understand original code. If it wasn't for you guys, this wouldn't be possible.
And of course, thanks to you that came to this post and uses my little creation!