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

Users > Pentanubis > Pentautomation > Treatment Tank

Treatment Tank v0.9 Pentautomation is now available for beta testing! It has not been tested by enough users to earn "safe" status yet, so please use at your own risk.

It can be downloaded here: http://www.nether-world.com/atitd/macros/treatment_tank/treatment_tank.zip

Please refer to the HOWTO for installation instructions.

Implementation

Before running this Pentautomation be sure to pin open the Wood Treatment Tank and push it up into the upper-left hand corner of your screen.

The core macro to run is Wood Treatment Factory.

Starting note: I have included 2 formulae that will appear in the main UI of this Pentautomation. To add more formulae, as you undoubtedly will want to do, follow the steps below.

Adding Formulae

There are 2 things you will want to do to add a new formula:

To add the recipe to Values_Treatment_Tank locate the TREATMENT FORMULA section of code. Include your own recipe in the following format (cutting and pasting this will work, for example):
<if_str>("%parWood% == Hard Glossy Black")
<varset>("parFormula=110 Water,60 Oil,30 Petroleum,7 Lead,9 Oil","")
<endif>
The Treatment Tank Pentautomation will expect to receive the parFormula variable in the following format:
<number of seconds to treat> <type of treatment>[,<number of seconds to treat> <type of treatment>]
Be sure there is a space separating only the # of seconds and the type of treatment, and no spaces before or after the commas.

To edit the Wood Treatment Factory macro simply locate the following line:

<form_item>("frmTreatmentFormulaPicker","Select an existing formula below.","LIST","Hard Glossy Black|Hard Glossy Blond","varWoodType")
Modify the value of "Hard Glossy Black|Hard Glossy Blond" to include your recipe. Thus, if you wanted to add Termite-Resistant Rotproof Black you would see the following in its place:
<form_item>("frmTreatmentFormulaPicker","Select an existing formula below.","LIST","Hard Glossy Black|Hard Glossy Blond|Termite-Resistant Rotproof Black","varWoodType")
The new value you add here should match the <if_str>("%parWood% == Hard Glossy Black") value you placed in Values_Treatment_Tank.

I hope to replace this some day with an automatic user interface, but that is currently more trouble than it is worth.

Please let me know if you have any issues, questions, comments, suggestions, improvements, rants, or other thoughts. Send questions to me in-game.

TODO

Add Images to Implementation Text
I will provide screenshots when I can.

Greater Detailed Implementation
I will provide more information (along with the screenshots) about how to make Pentautomation work.

Formula Editing
I would like to add a UI to allow for new formulas to be added via the Pentautomation, and not by editing the actual macro files.


Home | Atlas | Guides | Tests | Index | Recent Changes | Preferences | Login
View source text of this page | | Create/Edit another page | View other revisions
Last edited April 20, 2004 10:29 pm by Pentanubis (diff)
Users must be logged in to edit this page.
Search: