Quick Travian Tractor

By Mordred Last update Feb 12, 2010 — Installed 25,592 times.


Script Summary: Quick Travian Tractor version 1.7.0

Version: 1.7.1

Description

Quick Travian Tractor

The original purpose of this script was to create a way to speed up the tedious Copy&Paste process to send battle reports to Travian Tractor. Clicking this link will parse the report and submit it to the Tractor (you must already be logged in). I recommend keeping the tractor window open as the script will always paste to the same window. Because Travian Tractor sometimes times out during heavy load I added a small check which lets you know if the Tractor responded in a reasonable amount of time (default timeout is set to 10 seconds).

There is also a method to add villages on BP to Travian Tractor. To do this, you must first go to the village's page (karte.php) and then select attack from there, and get the "Village is under Beginner's Protection until..." message. You will then see a link allowing you to add the village to Tractor.

Due to user requests I added the ability to send battle reports to Travilog. You can anonymize the report and also "clean" the report by removing all attacker info in case you don't want to give that away.

This script only makes changes to berichte.php and a2b.php, adding a link to tractor/travilog. This script does not and will never perform any action within Travian itself. You are not getting any additional information/features that you couldn't get by copy and pasting the info to another website... which is essentially what the script does. As such it is probably considered legal to use, but I guess your MH will have the final say. In figuring out how to make this work I looked at some code from Travian Beyond. Because of that, I attempted to make QTT play nicely with TB and any other scripts. If for some reason your battle reports are not being submitted/formatted properly, move this script above any other Travian scripts. It might fix the issues you are having.

One benefit of using QTT is that your tractor reports should all look exactly alike. Plus, they will take up MUCH less space in the Travian Tractor itself because I only submit information the tractor requires. Hopefully the Tractor admins will appreciate that.

This script assumes your language is English and as such will only work on English language servers. This shouldn't be a problem as I don't think Travian Tractor supports any other languages anyway.

This script is updated frequently so check back often.

Comments, suggestions and bug reports are welcome.

Version 1.7.0 (September 16th, 2009)

  • Travian again made the script ugly, I prettied it back up.
  • Removed Travilog (which can't recognize tribes properly) and replaced it with Travian-Reports.net which works much better. If you have problems please let me know in the comments section.

Version 1.6.6 (July 27th, 2009)

  • Removed the ugly boxes around the links and fixed the formatting.
  • Fixed the Add to Beginner's Protection link as well.

Version 1.6.5 (July 23rd, 2009)

  • Fixed this mornings changes for s7 (and probably some other servers). Script now works with .usx as well.
  • Travian Beyond broke the script on some servers, but that's also been fixed now.

Version 1.6.0 (July 9th, 2009)

  • Travian once again updated their source code. I've updated the script so that things work. I know the links aren't pretty, I'll try to fix that soon. This was the same problem people were seeing on s7.com for the past few weeks, so they should be good now too.
  • 1.6.2 fixes problems with tractor's "cannot read defender" error

Version 1.5.0 (June 27th, 2009)

  • Added an "Update QTTractor" link to the left side of the page. You can click this link to automatically update the script, or to see if you have the latest version.
  • Travian Beyond apparently broke the script. Should work now.

Version 1.4.6 (May 28th, 2009)

  • Fixed the problem with sending reports from s7.com (and potentially other .com servers).

Version 1.4.5 (May 27th, 2009)

  • Travilog reports shouldn't require you to choose the races anymore.
  • Attempted to fix the unknown defender bug reported in forum here. Let me know if the problem is still occurring.

Version 1.4.1 (May 14th, 2009)

  • Those who were using the script on us8 or other servers that don't display a "carry0/500" string on battle reports were not getting the links. There's no need to update unless you are having this problem.

Version 1.4.0 (May 12th, 2009)

  • Some reports gave "unable to read defender" error in TT. Not sure if something changed in Travian, TT or was an error on my part.

Version 1.3.9 (May 11th, 2009)

  • Fixed the script to respond to changes made by TT in the formats that they accept. Also hopefully unbroke non-T35 battle reports.

Version 1.3.5 (May 8th, 2009)

  • Travian changed some things in their battle reports (AM/PM is back!) and Tractor changed the report formats that they accept. Fixed the script to account for the changes.
  • T3.5 changed how beginners protection works. Fortunately it made things easier for us. Now to add BP, just go to the village page, and click the link. I also added a checkbox so you can add the coords if the village name is something common. You won't be able to automatically go to the village from the tractor, but you'll at least know the coords.
  • If I broke anything for non-T3.5 please let me know in the forums. Thanks!

Version 1.2.0 (May 7th, 2009)

  • Added support for T3.5. The Tractor does not currently support T3.5 reports so they are still being formatted just as they were in T3.0. There might be bugs with this, so let me know.

Version 1.0.2 (Apr 21st, 2009)

  • Minor update to fix problem with new BP layout on the tractor

Version 1.0 (March 5th, 2009)

  • Scrubbing battle reports for Travilog always removed the attacker. Now it removes the troop values of whichever side your account was on. If you were account was not in the BR at all, it will remove the defenders numbers.
  • Scout reports can be sent to Travilog now

Version 0.9 (February 27th, 2009)

  • New Feature: Paste to Travilog. You can now automatically submit your reports to Travilog. For some reason this didn't work quite as automatically as I wanted, so I load a travilog page, then populate it with the BR and submit. It wouldn't autodetect troop types for some reason unless I did it this way. The check box to Remove Troop Counts will set the attackers troops/losses to 0.
  • Added a User Settable Variables section at the top of the script. You can disable either the Travilog link or the Tractor link if you want.
  • You should never see "undefined" on the page ever again. Finally fixed this nagging problem.

Version 0.8 (February 26th, 2009)

  • Rewrote the entire parser to completely eliminate all errors (Prisoners were still causing problems). Report should now be identical to copy/pasting it yourself. This paves the way for a brand new feature coming tomorrow.

Version 0.7 (February 25th, 2009)

  • QTT now lets you know when it's waiting on Travian Tractor. If you start seeing "?"s it's possible the Tractor timed out. Initial timeout value is ~10 seconds, but you can adjust it in the script, as well as how often QTT polls to see if Tractor did anything.
  • Still attempting to remove the flash of "undefined" on the screen. Yesterday's "fix" made it worse, hopefully today's took care of it.

Version 0.6 (February 24th, 2009)

  • Added a way to add villages under Beginners Protection to Travian Tractor. Because this script will NEVER automate any function in Travian, or automatically load any Travian pages, for this feature to work you must do the following: First visit the village page, then attempt to send an attack and then receive the BP notice. The link will only be visible if you have followed all of those steps. There are some checks to make sure you are looking at the same village as well.

Version 0.5 (February 20th, 2009)

  • Mainly a cosmetic update to visually confirm that you've clicked the link

Version 0.4 (February 19th, 2009)

  • Now can only submit your own battle reports
  • Link not shown for scouting reports

Version 0.3 (February 18th, 2009)

  • "Undefined" was being displayed on the travian page when you clicked on the link
  • Should no longer interfere with Travian Beyond, so doesn't need to be placed above other scripts. If you have problems though, move it back above all other scripts.
  • Deleted a lot of unnecessary code, speeding up execution and reducing size considerably.
  • Better link location
  • Some log information was always being sent to the console

Version 0.2 (February 17th, 2009)

  • Tractor windows should now always open up in the same new window/tab -- no more closing constantly!
  • Prisoners no longer shown as "casualties" on reports
  • If no soldiers returned, bounty now shown as "0"s instead of "undefined"
  • Added proper logging ability
  • Cleaned up and hopefully sped up code

Version 0.1 (February 16th, 2009)

  • Initial Revision