Script Summary: THIS SCRIPT DOES NOT WORK WITH LORD OF ULTIMA AFTER SEPTEMBER 2012 PATCHES. Adds incredible functionalities to Lord of Ultima, by turbo-charging LoU Tweak v1.6.0
In case you have any issues with the latest version 0.3.12, please try previous stable version, v0.3.8 (click on "Source Code" link, then on "...previous versions" and then click "install" for the entry dated Jun 9, 2012 04:13).
-Changes & Todos
|1) LoU Tweak Turbo is a fork of LoU Tweak 1.6.0. So you don't need to install LoU Tweak seperately. In fact, LoU Tweak Turbo may not work if you also have LoU Tweak installed...|
|2) If you are looking for LoU Tweak, this is NOT the same. See Credits below, to know where to get the latest version of that.||3) Using this script may not be as per Terms and Condition of Lords of Ultima.
Which means you may get KICKED OR BANNED from LOU!
Although I have taken care to not load the server and also added features to prevent detection of this program, use this at your own risk.
Turbo brings all the features of Lou Tweak 1.6.0 and also the following extra functionalities to get you through those grinding times.
First it allows entire cities to be constructed based on a map (sharestring format) that you specify for that city - sit back, as Turbo builds up your city for you, adding new buildings automatically into the build queue.
There is also an 'auto-upgrade building' feature where it tries to upgrade all the building levels in your cities - for auto-upgrades, you can specify which kind of buildings you want to focus on (either choose all the types of buildings you want to add or choose category of buildings to upgrade).
Finally, there's auto-purify which automatically purifies all resources above the threshold that you set for each city and Auto-attack for automatically raiding dungeons.
For all the above to work, Turbo has to cycle through each of your cities - this feature can be turned off or on too. But remember that if you turn off auto-switch city, auto-add, auto-upgrade, auto-purify and auto-attack (or whichever you enabled) would be active only on the current city you are in.
The main Turbo settings are available by clicking on the 'O' button (at the bottom of your screen) and then selecting the 'Turbo' tab.
Enable Auto Switch Cities: Check this to automatically switch to your next city in your currently selected city group, when there are no more auto-tasks for your current city.
Also see 'Minimum wait before switching city'.
The next section is for city specific settings.
cities drop down list: This lists all your cities along with the first entry called 'Default'. You can enable/disable Auto-Add Buildings, Auto-Upgrade Buildings, Auto-send Attack and Auto-Purify for each of your cities. The cities dropdown list gets populated correctly each time you open LoU in the browser, but for any new cities added after that, click on Refresh Cities to start displaying display new cities in the drop-down list.
Auto-Add buildings: Enabling this for a city automatically starts adding new buildings into build-queue, as long as you have sufficient resources for at least 1 building. The buildings are added based on a map (sharestring) that you specify for a each city that you want to auto-build - auto-build will not create a city for you if you have not specified the sharestring. See 'Auto-build Layout' below for specifying sharestring.
Auto-Upgrade buildings: If this is enabled for a city, this will automatically upgrade all buildings in your city 1-by-1 depending on available resources. You can specify the category of buildings to upgrade or even multiple building types - but these latter two are common settings to all your cities as of now.
Enable Auto-send attack: This automatically recruits the specified number of units (if not present in the city) and then tries to raid the specified target dungeon. When the units return, this raid will be sent again after auto-recruiting lost units.
This feature will not work if you did not specify the units/army you wanted, did not specify the target dungeon or specified an invalid dungeon, or if your city cannot recruit the specified units (eg: you wanted 1000 knights but your city does not have a level 10 stable). Refer 'Auto-attack Units' and 'Coordinates' below.
Auto-Purify: Automatically purifies resources in this city if enabled.
Auto-Purify Threshold: Autopurify uses this setting to decide how much of your resource should be purified. For eg:, if you specified 70%, and your max stone capacity for that city is 100000, and your actual stone resource in the city was 80000, this purifies 10000 stone (i.e., any stone resource above 70% of your max). Incoming resources are also included in this calculation. If you wanted all your resources to purified, you would set this to 0.
Use Default for all cities: If you tick this checkbox, the settings for your Default city will be temporarily applied to all your cities. Uncheck this and all your earlier city-specific settings will get restored.
Apply Current To All Cities: This copies the city specific settings of the city that is selected currently in the city-dropdown list and applies it to all your cities. Clicking this will permanently overwrite all city specific settings you made earlier.
The next section, Auto Upgrade Focus specifies what kind of buildings will be auto-upgraded. This is not city specific as of now.
For example, if you want to upgrade only Quarry and StoneMason buildings in all your cities, select the 'Stone' checkbox.
LoU Tweak users note: if you select any option other than 'Upgrade All...', this will override the upgrade feature of LoU Tweak.
In this section, there are also 2 other fields:
Minimum wait time between auto-topups:This is the number of seconds to wait before Turbo sends an auto-add/upgrade building, auto-purify or auto-attack command to the server. This is a precaution to enable that you are not kicked out of the server or identified as using a script. This value can be as low as 1 but recommended value is 3 seconds at least. Its max value depends on the auto-switch city interval below.
Minimum wait time before switching a city:This is the number of seconds to wait before Turbo sends an auto-switch city command to the server. This value can be as low as 3 seconds but recommended value is 5 seconds. Its minimum value is decided by auto-topup interval above.
The last section here Messagesjust shows some information while Turbo is running about what auto-features are executed. These can be usually ignored.
Some other settings are also present in the window opened by clicking on the 'L' button (towards right, above building queue) in the 'Turbo City Specific' tab.
MAKE SURE YOU CLICK ON APPLY BUTTON AFTER ANY CHANGES MADE IN THIS WINDOW.
The values you set here will be for the current city that you are viewing.
Also, these city specific settings are not affected by the 'Apply Current To All Cities' button or the 'Use Default for all cities' checkbox.
Auto-build layout: This text field is very important if you want to use Auto-add buildings feature of Turbo. This is where you have to paste the target map of your city in sharestring format (whats a sharestring? see http://www.lordofultimastrategies.com/qa/q-what...) that shows where you want your new buildings to be placed and what those new buildings are. The easiest way to set target map :
1) Open the L window, choose the Sharestring tab, and click on the 'Open in Flash City Planner 2' link.
2) This will open a new browser window and take you to http://city.louopt.com/ with your current city layout automatically listed. Use the features of that tool to generated your target city layout.
3) Finally, click on Import/Export from louopt.com and copy the new target sharestring.
4) Paste it back into the Auto-build layout text field of the turbo city specific tab.
5) Click apply.
Auto-attack units: This is where you select the army of units that you want to go out and raid a dungeon/boss from this city. This comprises of a list of all unit types that you can choose, then a quantity field to enter how many you want, and finally the right most list shows the unit types and number of units. For example, if you wanted to send an army of 1000 beserkers and 50 Rangers:
1) First find and select Beserkers on the left list.
2) Enter 1000 into the text field.
3) Then click the '>>' button. You will see Beserkers: 1000 listed on the left menu.
4) Similarly, find and select Rangers on the left side, enter 50 into the text field and click on the >> button to add Rangers: 50 into the left menu.
5) Finally click on Apply button to save your required army of 1000 beserkers and 50 Rangers.
Auto-attack Coordinates: Here you must specify the coordinates of the dungeon you want to raid within double quotes. eg "213:141" . You can also specify a boss raid, but this may not be a good idea as a boss will not be at the same coordinates forever and you can raid a boss only once.
There are some additional settings for Auto-Upgrade buildings reused from LoU Tweak options. This is available by clicking on 'O' and looking at the bottom of the General tab, under 'Select buildings you want to upgrade with L'. Here, you can choose which specific type of buildings you want to and dont want to upgrade, and is applicable for all your cities. Note that these options will be used by Turbo only if 'Auto Upgrade Focus' was set to Upgrade All on the 'Turbo' tab.
Once you have selected all your wanted settings, click on the 'Start Auto Pilot' button to start! This same button then toggles to 'Stop Auto Pilot' and can be used for stopping Turbo.
Important: All the auto-features work only when in City mode. If you start Turbo and then go to Region or World mode, Turbo's auto-pilot will pause till you change back to City mode.
Credits:Amlidude has done 99% of the hard work in making a SUPERB help script for LoU: LoU Tweak.
I just added a tiny extra bit, into LoU Tweak version 1.6.0.
Again, if you want to use a script that 100% complies with the terms and conditions of Lords of Ultima, you're probably better off with the original LoU Tweak.
Changes & Todos:Changes:
-Fixed: Script error after new patch released on some worlds by EA
-Fixed: City wall upgrade mixup for fresh cities.
-Fixed: AutoPurify was not working for values less than 500 in a specific scenario
-Fixed: Invalid Autoputify threshold value for new cities causes wrong autopurify.
-Fixed: Autoswitch city not working whenever one of the auto-purify/autiattack/etc options get stuck
Now, we autoswitch cities even whenever last 7 commnds of a certain type are identical
-Fixed: Problem in simple sharestring format not working if it contains newlines
-Added feature of city specific purification (THANKS TO KITSAB for idea and initial implemetation)
-Changed 'Apply Default to All Cities' functionality to 'Apply Current for all Cities'
-Fixed: Added trace level debugging so some extra debugs will be hidden during normal runtime
-Fixed: Autoupdate will now update Turbo instead of LoU Tweak
-Moved Auto-Add, Autobuild, autopurify and autoattack settings to be city-specific.
Cities will be listed in a drop down.
There is a 'Default' city added to top of list so that if the 'Use Default' checkbox is selected, all cities will use the 'Default' city setting.
Another button called Apply Default to All cities copies default settngs to all cities.
-Fixed: Autoupdate notification for LoU Tweak Turbo
-Fixed: After new EA update, script was failing after build queue in a city reached 2 or 3.
-Fixed: Townhall still gets upgraded even when not selected for selected once add building is stuck due to low townhall level.
-Fixed: Lowest building not being upgraded (sorting by building level was not working)
-Fixed?: Resources were being autodestroyed and some unselected buildings, auto-built. Added lots of additional conditional checks to ensure only the targetted city gets its auto-order.
-Fixed: Not all valid units were available in drop down for auto-raid.
-Fixed: City switchin happens too fast sometimes.
-Fixed: In Auto-build mode, when max city building limit reached due to low townhall level, it was always forcing townhall to be upgrade.
In this case, TH will now still be given preferred upgradation but only if it is in the current selection criteria.
-Fixed: Long standing issue of auto-switch city not working for certain scenarios
-Fixed: auto-switch city interval field got removed from options window in previous version.
-In addition to just time, message link now shows city, detailed level and also message.
-Tuned up message system performance
-Fixed: "Level 10 Moonglow tower not present" message which appeared even if auto-purify was not turned on.
-Fixed: auto-purification not working sometimes
-Added UI for choosing units and count when forming auto-attack army
-Adds to auto-build/upgrade items to queue without pre-paying if Build Minister present.
-corrected expected wood requirements at level 6 for some utility buildings (merged from fix in v1.6.4 LoU Tweak)
-Restored overlay window feature of v1.6.0 LoU Tweak
-Introduced new message system into UI that shows important updates, warnings and errors. This lets user know what auto-features are working (or not working).
-Resolved multi language support errors in original LoU Tweak.
-Data like sharestring, attack units,etc which are city specific, now considers that there can be different servers (so Turbo features now works even when user has presence on multiple worlds).
-Automatically trigger building upgrades a based on specific sets of buildings or use LOU Tweaks own detailed settings.
-Create new buildings from a provided layout!!!! If a valid sharestring is uploaded for a city, it uses that to AUTOMATICALLY create buildings as specfied in the sharestring!
-Auto reattack a target (dungeons for now - later cities!)
-Seperate button to start or stop auto-upgrade.
-Initiate only 1 upgrade at a time and with a user specified interval (interval required so that it wont be detected as a bot by the server).
-An additional random interval between 0 to 5 seconds is added on top of the user specified interval to arrive at the actual build interval (again, to throw off bot-detection).
-If current city has insufficient resources or free slots, automatically switch to next city after above specified interval.
-New Turbo tab in LOU Tweak menu for all options.
-Auto purify when resources reach 90% level including incoming
-Auto send resources to a city when it runs out, from another city (shd have parameters like surplus level in donating city, how far, etc).
-Auto send defence forces to a city thats under attack.
-If any incoming attacks, calculate success rate, recruit units if necessary and if necessary purify resources (BOS updateIcon()).
-Do all auto-stuff even without auto-cycling through cities!
-Build Priority for Auto-add like how it is there for Auto-upgrade
-In auto-add buildings mode, when limit is reached due to townhall not being of sufficient level, and if auto-upgrade is on, instead of trying to upgrade the townhall just once, it keeps focussing only on Townhall (this is usually only a problem when Build minister is on, since otherwise, there usually wont be enough resources for more than 1 townhall upgrade to go into queue)
-Show a warning countdown on screen before switching to another city!
-Add 3 radio buttons to filter messages by Info, Warn or Error (and 1 for debug too?)
-always auto-purify when hitting maximum capacity (without incoming resources).
-only auto-reattack based on level of target. and maybe recruit and prepare units before attacking to ensure success rate?
-Include ALL important events as messages to user.
-Auto upgrade category-focus radio buttons shd be checkboxes (just like buildingspecific-focus checkboxes)
eg: Show a message when no auto pilot options has been enabled but none have been turned on (line 1560)
-Support for attacking cities