The Wiki for Tale 4 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.

If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.

User:Jimbly/Macros

From A Tale in the Desert
Jump to navigationJump to search

All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine. I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!

VeggieTales

Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe

LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)

General usage info - to come!

Notes on Specific Macros

All of these are available by installing VeggieTales (above), this page just lists information on these macros. Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).

In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment). You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).

Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors).

Carrot Mode

NOTE: On the original shard, please only use this on the Shabbat Ab Aqueduct Towers until I (Jimbly) pass the Test of Life. On Bastet, use this as much as you want (though you will need to edit config.txt to make it work without aqueduct towers).

This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct. Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not. If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately. The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).

If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.

barrel_grinder.lua - Solo barrel grinding

Set up to run the barrel grinder solo, winding every 20 seconds until it breaks, then repairing, waiting 2 minutes, and restarting. For non-solo grinding, the script would need to be modified a bit (would not want automated repair and restart).

dig.lua

Simple dig script and a good example to learn from. Monitors for a red Endurance stat and finds the "dig deeper" button to click on when appropriate.

flax.lua

Must have Options|One-click|Enabled hotkeys on flax disabled.

Flax macro specifically designed for planting 6x6 arrays of Tedra #660 flax (requires exactly one weeding, no watering). Macro and image could be modified to handle other configurations. Edit the script if you cannot handle a 6x6 grid of flax at once (probably need 3 Dexterity).

If you can carry 2500 (3 STR and 3 DEX and 1000 base), then grab 216 flax seeds, have it run 6 passes, come back in a few minutes and you'll have 2160 flax.

flax_seeds.lua

Same as above, but for gathering seeds, not flax.

onions.lua

Grows 9x9 grids of onions, expects a fill jugs with water icon visible.

pump.lua

Simple macro to pump an aqueduct tower. Same as dig, but looks for different buttons.

quarry.lua - Automated Quarrying!

Works for 2-4 people. Not all people need to be running it (though much faster if they are!). Uses the "alphabetical" method of choosing a direction to work. Testing so far shows it can easily keep and Endurance value of 22 constantly red on all workers, yielding about 1 marble/stone removed per minute.

May need to be manually restarted if someone trips up and it was at a span of 0 to start with. To restart, if something is wrong, stop the script on all clients, get the quarry to a "clean" state (e.g. have 1 person intentionally trip the quarry, or manually have all 4 mine once), and then have the scripts restart. I only needed to do this once in my time testing, and that was when we were starting on a quarry and someone had clicked manually once before starting the script (so it tripped up immediately).

raeli_color_mon.lua

Automatically saves a screenshot, with timestamp, every time a specified pixel changes color. When first burning a Raeli Oven, this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.

sand_mine.lua

Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).

timer.lua

A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)

UITest.lua

A couple examples of UI functions.