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:Eldrad/Macros"

From A Tale in the Desert
Jump to navigationJump to search
Line 5: Line 5:
  
 
Version 2 of the macro watches your stats instead of just closing the stat pop up and now works with all mines regardless of them being guilded, public, labeled, repaired, and/or empty.
 
Version 2 of the macro watches your stats instead of just closing the stat pop up and now works with all mines regardless of them being guilded, public, labeled, repaired, and/or empty.
 +
 +
Note: If you're here for Humbuk's version capable of mining Tungsten, download [[:Image:MacrosHumbuk.jar | this instead]].
  
 
== Ores ==
 
== Ores ==

Revision as of 23:32, 20 March 2010

Mining Macro

Setting Up

This is a macro for mining. It will run on any operating system. To run it you just need to have Java installed. Download this file and run it. To download the file click the link, then check that the "current" version was uploaded by someone who you trust then click on the "Macros.jar" link at the top of the page. (Note it's important to check who uploaded the file before downloading it. As this is a wiki anyone could change the file to something malicious)

Version 2 of the macro watches your stats instead of just closing the stat pop up and now works with all mines regardless of them being guilded, public, labeled, repaired, and/or empty.

Note: If you're here for Humbuk's version capable of mining Tungsten, download this instead.

Ores

Currently the macro works with the following types of ore:

  • Iron
  • Copper
  • Tin
  • Zinc
  • Antimony (I don't believe Egypt currently has the right method for mining Antimony, but this one does a passible job)
  • Lead
  • Silver
  • Aluminum
  • Titanium
  • Magnesium

It does not currently work for, but will if I ever need to mine them:

  • Tungsten
  • Lithium

It probably won't ever do these unless I need a lot of them:

  • Gold
  • Platinum
  • Strontium

Trouble Shooting

There are a couple things that can commonly go wrong I'll try to keep a list of them here. First step to trouble shooting is make sure you've got the most recent copy of the macro.

  • Download the new version of the Macro VERSION 2.
  • You must have "Right Click opens menus pinned" turned OFF. The macro will not work if this feature is on.
  • The window that opens when you click on a crystal must be far enough away from the sides of the game window that it doesn't touch. If it does the macro will get stuck.
  • If you change the camera position or move your avatar you will have to restart the macro.
  • The macro is not perfect it will sometimes fail to mine the right crystal. For ores that use the memory game this will result in a large number of failures in a row.
  • Any ore that uses the memory game will start off by getting a few pulls at the minimum then a number of pulls that get no ore per pull (or randomly get lucky and get a bit). Before they start getting a steady 7 ore per pull (or slightly less if your OE level isn't 5 for copper and iron).

Source Code

If you'd like to take a look at the source code it's here.


Tools

These aren't actually macro's but tools I use to do certain computationally expensive tasks with game mechanics. These won't be helpful to you unless you both know what you're doing and want to accomplish these particular tasks.

Mutagenics Helper

This was written in T3 and I haven't actually touched it since so it might not work perfectly for T4 (but I think it actually should). The file and source code can be found here.

What you need to know to use this:

  • This is written in Python with a text based UI so should be started from a command prompt with "python mutagenics.py"
  • It expects 3 files in the same directory as the program with the default names of "flowers.txt", "mutagens.txt" and "names.txt" (alternatively you can specify up to 3 other files in that order when you run the program).
    • flowers.txt should have one plant on each line with the following format:
      • "<Long Plant Name>(tab)<genome without spaces and including the Ks>" (doesn't actually handle extra white space but is case insensitive)
      • Note that the flowers.txt file should refer only to one species of plants not all of them. If you are working with multiple species you can make a file for each species and specify which file to use in the first command line argument.
    • mutagens.txt should have one "hit" on each line (ie where the A or B side of a particular mutagen hits a particular plant) with the following format:
      • "<plant name, doesn't actually have to match anything>(tab)<Short Mutagen Name>(tab)<A|B>(tab)<# of the gene that is hit, 1 is the first gene>(tab)<length of the genome>
    • names.txt should have one mutagen or plant per line with the following formats:
      • "<Long Plant Name>(tab)<Short Plant Name>" Note: the Long Plant Names must match the Long Plant Names from the flowers.txt file.
      • "<Short Mutagen Name>(tab)<Long Mutagen Name>" Note: the Short Mutagen Names must match the Short Mutagen Names from the mutagens.txt file.

Chemistry Recipe finder

This program finds the cheapest recipe for each possible required Chemistry Extract Recipe. The file and source code can be found here.

What you need to know to use this

  • This is written in Python with text output and should be started from a command prompt with "python chemrecipes.py"
  • It expects 1 file in the same directory as the program named "essences.txt" with one essence on each line with the following format:
    • "<Essence Name>(tab)<-3 to 3>(tab)<-3 to 3>(tab)<-3 to 3>(tab)<-3 to 3>(tab)<-3 to 3>(tab)<-3 to 3>(tab)<-3 to 3>(tab)<-3 to 3>(tab)<Cost>"
      • the 8 values from -3 to 3 are the attribute values, the Cost is how much you value that material (the lower the value the more likely it is to use it)
  • This program takes a while to run (especially for Set). Currently the program doesn't run Set which can be changed by changing the two lines bellow the comment "# bellow is "if not(SET)""
  • Currently it's multi-threaded with 4 threads which can be changed by setting "numProc = 4" to something else. The multi threading is bugged so the threads don't close properly most of the time so you won't get the final print (just the during execution print which is out of order) and you'll have to manually kill the process.