The Wiki for Tale 5 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:Qu/Macros/QGlass

From ATITD5
Jump to navigationJump to search

Version 1.0.

Download: File:QGlass.zip

I'm very satisfied with how this macro came out. The main loop that adds cc and makes glass products is fairly simple and predictable. I started writing this one about a month ago but couldn't make anything satisfactory, as my goal was to have it as lag-proof as possible. Then I wrote (and rewrote) my charcoal and crematory macros and applied everything I learned here.

What is it?

  • Maintains working temperature on glazier's benches.
  • Makes glass products depending on type of glass on the bench.
  • Shuts down bench when empty.
  • Can work with as many benches as can fit on the screen without overlap.
  • A lot of features missing as it's still a work in progress. However, the core functionality is rock solid.

Installation

  • Extract all files to the same directory. Requires Autohotkey 1.0.48 or later.

Setup

  • First open QGlassConfig.ini and make sure the right glass products will be made for each type of glass.
  • Open and pin bench windows. Make sure nothing overlaps them.
  • Run the macro. It will tell you how many benches it found. After this point you should not move any of the windows by even a pixel, as doing so will stop that bench from working.
  • There's two ways to go from here:
    • Either add 2 cc to each bench and then let the macro take over with Ctrl+Alt+a. (The macro is not very good at this part yet, but will reach working temps within a few minutes)
    • Or raise the temps manually and then start the macro with Ctrl+Alt+a.

Running the macro

  • Make sure you have enough charcoal on you. No error checking here.
  • You can pause/unpause the macro with Ctrl+Alt+Shift+` (tilde key).
  • You can change what the macro makes by editing the .ini file. It re-reads the file prior to making each item. I recommend pausing the macro before switching away from ATITD.
  • Macro will not interfere with typing.
  • You should be able to use the mouse without interfering with the macro.
  • You can disable/enable a bench by hovering your mouse over the window and pressing Ctrl+Win+d.
  • When a bench runs out of glass it will stop adding charcoal.

Hotkeys

Ctrl+Alt+a starts the macro
Ctrl+Alt+Shift+` (Tilde) pauses/unpauses the macro
Ctrl+Alt+Shift+r reloads the macro
Ctrl+Alt+Shift+e edits the macro
Ctrl+Win+d disables/enables a bench (make sure your mouse is hovering over it)

Technical Details

  • Macro estimates the temperature by looking at the length of the temperature bar.
  • The macro adds charcoal when it sees a drop in temperature.
  • It will also spike the temperature to bring it to 2400.
  • The macro is almost lag-proof except for the temp spiking part. Here it has to convert from teppytime to real time. If the server lags a lot while the bench is spiking, the spiking will overshoot its goal of 2400 and the item will be ruined.
  • I recommend changing the MaxDV variable to the highest Drop Value of the benches you're running. This will lead to less frequent spiking and slightly better charcoal efficiency. All my benches have DV value of 140 or less, so I set MaxDV to 140.
  • The macro might have trouble running well on single core systems.