Ikariam Auto Build & Upgrade

By PhasmaExMachina Last update Nov 12, 2009 — Installed 35,134 times. Daily Installs: 1220, 756, 339, 352, 332, 278, 279, 252, 228, 283, 223, 236, 225, 185, 200, 199, 165, 198, 210, 275, 150, 167, 176, 1167, 934, 426, 454, 364, 308, 235, 210, 229
Script Summary:
Automate building construction and upgrades to happen as resources become available.
Version: 0.39
Recently Updated TopicsPosts
Count remaining resources a...1
Translation project12
Spy queue1
How to upgrade non-built bu...1

this script has 38 topics, 148 posts

Review Summary
5 stars
4 reviews (4)
4 stars
2 reviews (2)
3 stars
0 reviews (0)
2 stars
0 reviews (0)
1 star
0 reviews (0)

this script has 6 reviews

Thumb Thumb Thumb Thumb

       

Disclaimer / Warning

This script automates tasks that are supposed to be performed manually, or can be automated to a degree by paying for a plus account. As such, it will never be approved for legal use. This was never my intention. Be aware that there is a very small chance that the Ikariam staff detects that you are using this script and bans your account. By installing this script, you signify that you understand this risk and take full responsibility for any potential consequences resulting from its use.

Features

Current Features

  • Turn auto building on or off with a single click.
  • Add new buildings to queue.
  • Add building upgrades to queue.
  • Queue is automatically processed every 5 to 15 minutes
  • Queue shows resources needed for buildings
  • Move buildings up or down in the queue.
  • Set buildings to auto upgrade when queue is empty
  • Collapsible Auto Build pane
  • Show what building is currently queued for a particular spot and allow queuing of upgrade requests on the unbuilt building
  • Auto destroy building in one click

Planned Features

  • Automatic shipping functions
  • Add more time intervals to checking delay options
  • Auto pillage functions
  • Ability to add new colonies to queue

 

 

 

 

 

 

Instructions

How it Works

The queue is processed every 5 to 15 minutes (set in Ikariam Options page) if the check box in the Auto Build header is checked. Each time the queue is processed, the script looks to see if there are any buildings in the queue. You will automatically be redirected to the first building's page if it's an existing building or to the build site if it's a new one. If something is already being built, the script will redirect you back to the town view. Otherwise, the script will check to see if you have enough resources, and will build or upgrade the building. This building will then be removed from the queue, and the process will start all over.

Adding Buildings to the Queue

To add new buildings, choose a construction site and then click the "Add to Queue" button next to the type of building you would like to have constructed at that site. The queue will automatically remember the location and type of building you choose. To queue an upgrade, go to the building you wish to upgrade and click the "Add to Queue" button under the upgrade section.

Enabling / Disabling Auto Build

The queue will only be processed if the check box next to "Auto Build" is checked. Use this to your advantage to avoid being redirected all over the place while you are actually playing. The best strategy is to uncheck the box while you queue up a bunch of buildings and take care of any other things like war, trading, etc. When you are done playing, just re-check the box and leave your browser running. The script will handle the rest, processing the queue every five minutes.

Auto Upgrade

Buildings listed under Auto Upgrade will be upgraded as resources become available. This list is always sorted by the total number of resources needed to perform the upgrade, starting with the least. It will only be processed every 4 minutes if the checkbox next to "Auto Build" is checked, there are no buildings in the queue, and the checkbox next to "Auto Upgrade" is checked. This way you can create a list of buildings you want to have automatically upgraded, but disable it while you save up for something more expensive.

To add buildings to the auto upgrade list, just go to the building's page and check the box at the bottom of the upgrade section (below the "Add to Queue" button).

FAQ

Q: Why is auto build disabled when I come back to my computer after leaving it on overnight?

The script is designed to automatically disable auto-build if the script has not run for a very long time. This is so that if you play on multiple computers or just turn your computer on after not having played for a few days, you have time to re-adjust the build queue before it is automatically processed.

If you find that auto-build has disabled itself in the morning, chances are your computer may have gone into sleep mode or hibernation. The queue is only processed when the timer reaches 0. If your computer is in sleep mode when that happens, the script's not running to handle the event and nothing happens. When your computer wakes back up, it disables auto build because it thinks you've just come back to this computer after a long time.

Q: Can you add some kind of auto-ship feature?

I am planning on putting something like this in at some point, but it may take a little while given other obligations. Please bear with me.

Known Bugs

If you add a new building to the queue then build something else in that location using the "Yes! Build Now" button, the original build request will not be automatically removed from the queue and will prevent the queue from advancing any further. You will have to remove it manually

External Scripts

Version History

v0.39
  • Added Greek translation (thanks mpithulaka!)
  • Fixed a small text issue on options page
  • Fixed auto-demolish (again)
v0.38
  • Fixed bug caused when auto build box is collapsed but auto build is not
v0.37
  • Fixed bug in auto-demolish
v0.36
  • Fixed line height of buildings in queue on Ikariam Options page
  • Added script updates & history button to Ikariam options page
  • Added translation capabilities
  • Added automatic complete building demolition
  • Removed unnecessary delay when clicking on building name in queue
v0.35
  • Added 2 to 15 second delay before redirecting to a new page to avoid script detection
v0.34
  • Excluded Ikariam v0.3.2 detailed battle report screen to avoid conflict
v0.33
  • Fixed a typo
  • Added support for temple (again)
  • Increased support for new 0.3.2 urls (occasional lack of index.php)
v0.32
  • Reduced likelyhood of queue getting emptied due to a glitch
v0.31
  • Fixed Town Hall not being included when clicking "Auto Update All" in town view
v0.30
  • Fixed problem saving option to turn auto disable on/off
v0.29
  • Performance improvements and code simplifications
  • Made "auto disable" a selectable option that is off by default
  • Improved "auto disable" feature stability
  • Improved performance when Auto Build info box is collapsed
  • Improved rendering and design of Auto Build info box
  • Added "Auto Upgrade All" button to city view
  • Buildings for which you have enough resources are now listed in green
  • Added row highlighting (can be turned off on Ikariam options page)
  • Auto upgrade list can now be collapsed
  • Fixed processing of auto upgrades even when they weren't enabled
v0.28
  • Reduced the number of redirects when processing the queue
v0.27
  • Added "Smart Checking" option (in testing)
  • Cleaned up and organized code
  • Made minor performance improvements
  • Resource requirements in queue now update once every 60 seconds
v0.26
  • Fixed script dying when trying to upgrade twice while other building is under construction (thanks Overkill & DannyKWL)
v0.25
  • Fixed corruption of current city data when viewing someone else's city with a spy
v0.24
  • Fixed queue info box not being drawn on museum page
  • Fixed centered allignment of text in info box on some pages
v0.23
  • Building ground page now lists which building is queued for that position
  • New buildings in queue are now drawn as ghost buildings in city view
v0.22
  • Improved formatting of timer so that hours display correctly
  • Improved enable/disable methods in code
v0.21
  • Added check to disable auto build on first load after a long time
v0.20
  • Attempted to fix duplication of queue requests under certain circumstances.
v0.19
  • Fixed handling of sulfur
v0.18
  • Added check to make sure nothing is already under construction
  • Added check to make sure there are enough resources to build/upgrade a building
v0.17
  • Fixed another issue where buildings in auto upgrade might get pushed onto the queueu
v0.16
  • Fixed another issue where buildings in auto upgrade might get pushed onto the queueu
v0.16
  • Buildings in auto upgrade list are now grouped by city like those in the queue
v0.15
  • Added automatic checking for new versions once every 24 hours
v0.14
  • Fixed specific instance under which a building would be removed from the queue before being processed
  • Attempted to fix 404 error that people are experiencing with v0.013
v0.13
  • Buildings in queue are now grouped by city
  • Fixed ordering and deletion bugs in queue when only showing buildings in current city
v0.12
  • Completely overhauled queue processing
  • Better handling of multiple cities - the first building in the queue for each city will be processed or the first building in auto upgrades for cities with no buildings in queue
  • Ability to filter buildings in Auto Build box by current city
  • Building names that can be built are now in bold
  • Reduced font size a little to save space.
  • Added row highlighting on mouse over in Auto Build box for visibility.
  • Buildings are now removed from queue if they no longer exist.
  • Fixed bug where sort arrows were not always being drawn in the queue.
  • Fixed broken building links to new construction sites
  • Fixed bug where auto upgrade attempts during construction got pushed onto beginning of queue
  • Added "The auto build queue is empty" to Auto Build box when there's nothing queued
v0.11
  • Trimmed long building names like "Governor's residence" in queue
  • Vastly improved change city methods to reduce redirects
  • The first building in the queue for each city should be processed now instead of just the first building in the queue.
  • Fixed minor bug in calculation of required resources
v0.10
  • Fixed several bugs related to missing resources and having multiple cities.
v0.09
  • Fixed distortion of unit description help page in Ikariam v0.3.2
v0.08
  • Fixed bug in calculation of current city resources when resource was over 1,000 (now correctly strip commas and periods)
v0.07
  • Additional fix on queue that prevented moving a building down if there was more than one upgrade request for that building.
  • Re-check now happens randomly between a set amount of time (defaults to re-check every 5 to 15 minutes).
  • Added Auto Build settings to Ikariam Options page to set re-check minimum and maximum delay.
  • Added countdown timer to Auto Build box to show you when the queue will be re-checked.
  • Click on countdown timer to force re-check.
  • Missing resources in Auto Build box now update once a minute (they didn't update at all before)
v0.06
  • Fixed bug that caused multiple upgrade requests on the same building to be collapsed into a single request when re-ordering queue.
v0.05
  • Expand / collapse button is now an icon
  • Added move up / move down buttons to queue
v0.04
  • Fixed bug in auto upgrade sorting that caused buildings with same number of required resources (e.g. 0) to overwrite each other
v0.03
  • Added Auto Upgrade list that used when the queue is empty is automatically sorted by resources needed.
  • Auto build box is now collapsable
v0.02
  • Fixed break in auto queue processing due to trying to build when another building is under construction.
  • Fixed removal of upgrade requests in queue when another building is under construction.
  • Fixed error right after install that caused queue not to render if the town view had not been looked at since install.
  • Reduced queue processing interval from 10 minutes to 5 minutes.