Sep 8, 2012

Decepticon Invading Travian Villages

This script was written in 2007 to automate the tedious resource fields and buildings upgrade in Travian 3.  Travian is a multi-player strategy game you can play on web browsers.  For beginners it looks like SimCity, but if you play it just that way then you're fcuked as battles are inevitable.  With minor regex tuning, the script works well on Travian version 4. It's for experiment and scripting practice hence no alliance was joined to keep the game fair played.  Travian Team implemented Bot Detection System back in 2006 but we're good while testing the script.  They modify the HTML and Javascript code from time to time to keep the script kiddies away though.

Autobots, rev your engine!

Script output:

Travianer v1.11

Server: tsX.travian.com.XX
---------- [villageName] Resources ----------
          Lumber: 11644/25900 (862/17)
            Clay:  7034/25900 (800/25)
            Iron:  5672/25900 (878/29)
            Crop:  3347/21400 (401/27)
Crop consumption:  1165/ 1566
      Hungry for: Iron
---------- [villageName] Fields ----------
Site 1: Woodcutter Level 10
Site 2: Cropland Level 10
Site 3: Woodcutter Level 10
Site 4: Iron Mine Level 10
Site 5: Clay Pit Level 10
Site 6: Clay Pit Level 10
Site 7: Iron Mine Level 10
Site 8: Cropland Level 10
Site 9: Cropland Level 10
Site 10: Iron Mine Level 9
Site 11: Iron Mine Level 9
Site 12: Cropland Level 10
Site 13: Cropland Level 10
Site 14: Woodcutter Level 9
Site 15: Cropland Level 10
Site 16: Clay Pit Level 10
Site 17: Woodcutter Level 9
Site 18: Clay Pit Level 10
---------- [villageName] Buildings ----------
Site 19: Marketplace Level 14
Site 20: Grain Mill Level 5
Site 21: Warehouse Level 14
Site 22: Granary Level 13
Site 23: Hero's Mansion Level 10
Site 24: Iron Foundry Level 4
Site 25: Embassy Level 3
Site 26: Main Building Level 20
Site 27: Cranny Level 10 (capa: 1000)
Site 28: Cranny Level 10 (capa: 1000)
Site 29: Barracks Level 15
Site 30: Stonemason Level 19
Site 31: Bakery Level 1
Site 32: Cranny Level 10 (capa: 1000)
Site 33: Smithy Level 11
Site 34: Cranny Level 10 (capa: 1000)
Site 35: Cranny Level 10 (capa: 1000)
Site 36: Cranny Level 10 (capa: 1000)
Site 37: Cranny Level 10 (capa: 1000)
Site 38: Cranny Level 10 (capa: 1000)
Site 39: Rally Point Level 1
Site 40: City Wall Level 19

Total cranny capa: 8000
Upgrading Iron Foundry Level 4 (site 24)...

Screenshots:

 Resource fields view in Travian 4

Buildings view in Travian 4

Sep 2, 2012

Minus'es in Google Plus

Regressions in Picasa and Google+ integration:
  • Album and photo geotags not shown
  • Album descriptions not shown
  • Photo descriptions now shown in slideshow and thumbnails
  • Takes longer time rendering album list (guess for the fancy visual effects)
+'s :
  • Fancy album list
  • Better screen asset usage in photo browse UI
  •  Photo resolution < 2048px does not count in disk usage