Search: Home | Atlas | Guides | Tests | Research | Techs | Skills | Index | Recent Changes | Preferences | Login

Users > Cheos > Macros

Introduction

Macros I write all run within lazy tool macroing system. It is designed for linux operating system, and uses python programming language.

All these macros are released under the GNU GPL license.

LTool improvement

although the interface of ltool (as of version 0.3) allows to running multiple macros at the same time, it doesn't handle that function properly. I mean that you can run several macros but you'll have trouble killing them when you are done. This is because each macro writes its pid number in a running.pid file, which is written in the './ltmacros' directory. Each time you run a macro, even using several instances of ltool, the same running.pid file is overwritten.

I've made a small improvement to ltool so that the pid number is directly saved in a variable, directly in the macro plugin class. That way i can macro with my multiboxing setup :)

Another little improvement is that closing the plugin now automaticaly implies killing its macro if any is running. No more python processes which have to be killed by hand after ltool is closed.

To install my modified version, download this file and put it in './plugins' directory. Since i gave it a new name, your existing file won't get overwritten.

Macros

Here are a few macros i wrote which i find useful. These macros cover about 90% of my daily needs.

To install a macro, download and copy the file to ./ltmacros directory, then relaunches the "ltmacro" plugin if it was already running.

Resource Picker

Latest version can be found here.

Very simple macro that allows to pick resources, like slate, clay or grass.

Now you can move. Each time the icon appears, the macro automatically clicks it.

Note : the improvement from original version is that this macro check if the icon disappear before trying to click it again. Handy for clay, when you run out of 'water in jugs', so that many pop-up windows don't stack.

Auto Timer

Latest version can be found here.

Another simple macro, which is useful each time you wish to do something that relies on a timer : digging, breaking coconouts, etc.

Now, the macro will watch for the icon and click on the menu each times the icon disappears. It also checks that the icons appears right after it clicks, so that it can't go crazy and can't stack many "you're doing too fast" popup windows. If something goes wrong, it will simply pauses itself until you click on the menu again.

t3 mine

Latest version can be found here.

Improved version of previous macro, but for mining with multiple pinned menus. This is advised to mine that way this tale, so i wrote that little macro.

The macro will automaticaly mine, using the same mechanism as in the previous macro, so it will automatically pauses if anything goes wrong (for example : mine getting broken).

wheat

Latest version can be found here.

This macro doesn't automate the task but is meant to assist you while groing wheat. I strongly advice running a one or two test beds to get used to the macro before trying to grow large arrays you may loose on the end.

This macro only keep pressing "w" and "h" key until it's killed or "q" is pressed, but this last key you have to switch to the console from which you launched the macro and therefore run it directly from the console (python script.ltm), outside of ltool :/.

Keep moving the mouse over your wheat beds,, in regular movements.My strategy is as follows :

Slate Picker Improved

Latest version can be found here.

This macro works exactly like original slate picker but has a few improvements :

This Macro requires pyosd module.

Carpentry shop macro

Latest version can be found here.

Another simple, classic, macro :

Since this macro uses shorcuts you can't interact while it's running. This is why i've chosen the fixed number of loops method. But you can change that if you wish. This macro uses OSD too so pyosd module is required.

Kettle : flower fertilizer

Latest version can be found here.

Classic macro again. Makes a batch of flower fertilizer in an completely automated way : fills the kettles, start them, wait until it finished (lag doesn't matter) and take flower fert when finished.

In case you switch to another application, which covers atitd's window and prevents the macro from checking if batches are finished or not, i have made another macro, which simply takes flower fertilizer from kettles and saves me from all that clicking. Don't forget to edit your grid size in that macro too (or don't do something else with the computer while he macro is working :p).

This macro too uses OSD so don't forget to install pyosd module.


NameCreatorDateSizeDescription
IconPicker.ltmCheosApril 9, 2008 7:58 pm1972
LtMacroBetaCheos1.pyCheosApril 9, 2008 7:44 pm3546modified version of Ltmacro, to be put in ./plugins directory
LtMacroBetaCheos2.pyCheosMay 3, 2008 11:47 am3746to be put in ./plugins directory
SlatePickerOSD.ltmCheosMay 10, 2008 3:19 pm3120to be put in ./plugins directory
auto-end.ltmCheosApril 9, 2008 7:56 pm2606
auto-timer.ltmCheosApril 9, 2008 7:56 pm2845
carpentry.ltmCheosMay 10, 2008 3:18 pm2110to be put in ./plugins directory
example-carpentry.jpgCheosMay 10, 2008 3:25 pm51011
example-kettle-flower-fert.jpgCheosMay 10, 2008 3:27 pm66443
example-mine-menu.jpgCheosApril 9, 2008 8:16 pm17867
example-wheat.jpgCheosMay 3, 2008 12:22 pm40080
kettle-flower-fert.ltmCheosMay 10, 2008 3:21 pm2638
kettle-take.ltmCheosMay 10, 2008 3:21 pm1586
t3-mine.ltmCheosApril 9, 2008 7:56 pm3025
wheat.ltmCheosMay 3, 2008 12:04 pm2229

Home | Atlas | Guides | Tests | Research | Techs | Skills | Index | Recent Changes | Preferences | Login
You must log in to edit pages. | View other revisions
Last edited July 22, 2008 7:24 pm by Cheos (diff)
Search: