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.

Difference between revisions of "User:Cegaiel/Macros/Crematory"

From A Tale in the Desert
Jump to navigationJump to search
 
(8 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
Instructions on his script says to use 1200x800. However, this resolution does not exist to me.  I tried at 1200x768 and 1200x880 and the macro was not clicking where it should.
 
Instructions on his script says to use 1200x800. However, this resolution does not exist to me.  I tried at 1200x768 and 1200x880 and the macro was not clicking where it should.
  
So, I finally figured out what needed to be edited to make it work at my resolution (1024x768). Each crematory has different slider bar/button combos. So I also pre-configured two different crematories and it will work, as is, at the below crematories.
+
So, I finally figured out what needed to be edited to make it work at my resolution (1024x768). Each crematory has different slider bar/button combos. So I also pre-configured some different guild's crematories and it will work, as is, at the below "Get Code" links.
  
  
<b>Get Code:</b>
+
<b><font color=maroon>Get Code:</font></b>
 
<BR>
 
<BR>
*[[User:Cegaiel/Macros/Crematory/SACFAR | SACFAR]]
+
*[[User:Cegaiel/Macros/Crematory/SACFAR | SACFAR Guild]]
*[[User:Cegaiel/Macros/Crematory/EL| Egyptian Life]] - <b>Updated Jan 25, 2010:</b> 2 buttons were backwards, sorry for any inconvenience, it will work correctly now!
+
*[[User:Cegaiel/Macros/Crematory/EL| Egyptian Life Guild]] - <b>Updated Jan 25, 2010:</b> 2 buttons were backwards, sorry for any inconvenience, it will work correctly now!
 +
*[[User:Cegaiel/Macros/Crematory/ZFree|ZFree Guild]]
  
 +
 +
 +
<B>UPDATES:</b>
 +
 +
<B>Jan 26, 2010:</b> Scripts now include a short routine to watch the red progress bar and exit the script when the red bar is no longer present. Credit to Daniels.
  
  
Line 20: Line 26:
  
  
<b>Minor Note:</b> Should you attempt to grab this script and attempt to alter it for your own building, I recommend grabbing the one from the "SACFAR" link. The reason is that EL's has a longer (3 line vs 2 line label in menu) that will cause it to miss the buttons on yours (if you don't have a long, 3 line label on the building menu). I also added more comments on the SACFAR version to make it easier for you to edit.
+
<b>Minor Note:</b> Should you attempt to grab this script and attempt to alter it for your own building, I recommend grabbing the one from the "SACFAR" link. The reason is that EL's has a label (causing an extra line on the menu) that will cause it to miss the buttons on yours (if you don't have a label in the building menu).
 +
 
  
 
----
 
----
Line 30: Line 37:
  
 
Pin up Crematory far top left. Have game running and bring AcTools to front as shown in image.  Load the crematory with all the ingredients, first. Click the Start button (in Actools) to begin. The Pinup window must not be blocked by the Actools program. As soon as you click Start, it will move over and click "Fire the Crematory" button and begin. Make sure you can see that option before clicking Start.
 
Pin up Crematory far top left. Have game running and bring AcTools to front as shown in image.  Load the crematory with all the ingredients, first. Click the Start button (in Actools) to begin. The Pinup window must not be blocked by the Actools program. As soon as you click Start, it will move over and click "Fire the Crematory" button and begin. Make sure you can see that option before clicking Start.
 +
 +
 +
<B>Make sure your pinup menu does NOT have the Take... option present. If so, then unload the crematory, close your pinup, and re-pin it!</b>
  
  
Line 51: Line 61:
 
3 = Vertical position of button centres AND Horizontal positions of five button centres
 
3 = Vertical position of button centres AND Horizontal positions of five button centres
 
<BR>
 
<BR>
4 = Position of left most point of red line (this should be the point to where if you go over left 1 more coordinate, then you will not be hovering red anymore)
+
4 = Position of left most point of red line (this should be the point to where if you go over left 1 more coordinate, then you will not be hovering red anymore). The script will watch for the red to disappear and exit the script.
 +
 
 +
 
  
 
{| border="1" cellpadding="20" cellspacing="0"
 
{| border="1" cellpadding="20" cellspacing="0"
Line 59: Line 71:
 
|[[Image:Crematory1.jpg]]
 
|[[Image:Crematory1.jpg]]
 
|[[Image:Crematory3.jpg]]
 
|[[Image:Crematory3.jpg]]
|}
+
|-
 
 
{| border="1" cellpadding="20" cellspacing="0"
 
 
!3
 
!3
 
!4
 
!4

Latest revision as of 23:18, 14 March 2010

Preconfigured SACFAR & EL Crematory 1024x768 (Actools)

CREDIT: Original script is Anukhu's Crematory Macro. Instructions on his script says to use 1200x800. However, this resolution does not exist to me. I tried at 1200x768 and 1200x880 and the macro was not clicking where it should.

So, I finally figured out what needed to be edited to make it work at my resolution (1024x768). Each crematory has different slider bar/button combos. So I also pre-configured some different guild's crematories and it will work, as is, at the below "Get Code" links.


Get Code:


UPDATES:

Jan 26, 2010: Scripts now include a short routine to watch the red progress bar and exit the script when the red bar is no longer present. Credit to Daniels.


Critical Note: The coordinates of: "Vertical position of the middle of slider bar" and "Vertical position of button center" is recorded (in the script) with the "Take..." option NOT present. Should you ever pinup the crematory menu with the "Take..." option present, then this macro will FAIL (because it will miss clicking the buttons). Clicking the crematory with items already loaded will cause the buttons to not be in the correct position. Make sure the crematory is completely empty when you pin it up! When the "Take..." option appears later, it will have a scroll bar, and not cause negative effects. The macro will still function correctly on future runs, as long as you do not unpin the menu.

Basically: The Take option is bad if it exists when your FIRST pinup the menu (makes buttons move lower). The Take option appearing later on, will not affect future runs (because the Take menu will appear with a scrollbar inside the pinup menu and not move button positions).


Minor Note: Should you attempt to grab this script and attempt to alter it for your own building, I recommend grabbing the one from the "SACFAR" link. The reason is that EL's has a label (causing an extra line on the menu) that will cause it to miss the buttons on yours (if you don't have a label in the building menu).



Instructions:


Copy/paste the actools script for the correct crematory, into notepad or something. Save As something.mac


Pin up Crematory far top left. Have game running and bring AcTools to front as shown in image. Load the crematory with all the ingredients, first. Click the Start button (in Actools) to begin. The Pinup window must not be blocked by the Actools program. As soon as you click Start, it will move over and click "Fire the Crematory" button and begin. Make sure you can see that option before clicking Start.


Make sure your pinup menu does NOT have the Take... option present. If so, then unload the crematory, close your pinup, and re-pin it!


Ceg crematory1.jpg



How to configure for resolution other than the default of 1024x768:


I use a program called Magnify (freeware). The screenshots, below, are from that program. Right click on program for help menu (key shortcuts).


To configure (edit script), gather coordinates from following positions, and update them where the notes are in the script:


1 = Vertical position of middle of slider bar
2 = Horizontal positions of slider bars
3 = Vertical position of button centres AND Horizontal positions of five button centres
4 = Position of left most point of red line (this should be the point to where if you go over left 1 more coordinate, then you will not be hovering red anymore). The script will watch for the red to disappear and exit the script.


1 2
Crematory1.jpg Crematory3.jpg
3 4
Crematory2.jpg Crematory4.jpg