The Perfect Tower II – How to Set Auto Crafting Script Guide

The Perfect Tower II – How to Set Auto Crafting Script Guide 1 - steamlists.com
The Perfect Tower II – How to Set Auto Crafting Script Guide 1 - steamlists.com

This set of scripts manages auto-crafting of everything in the factory.
 
 
It will prioritize using items already present in your inventory instead of crafting new ones, and it will always leave at least one dust of each tier. It can manage ore processing, dust up-tiering, and everything related.
 
 
It can also mass-craft groups of items for scanning in the Crafter.
 
 
If there isn’t enough ore or rubber, the package will try to craft as much as it can and will simply halt progress when it runs out of material.
 
 
You can safely leave the factory and come back while the scripts are running, the craft will just continue where it left off.
 
 

How to install

Normally, I would post the import code(s) here directly. However, these scripts are quite complicated, and some of them are too large to fit within Steam’s limits for a guide section.
 
 
Thus, you’ll have to download it from my GitHub at https://github.com/d0sboots/PerfectTower/blob/main/README.md#factory-automation – [github.com] , which doesn’t have length-limitations. A benefit is that all the imports are bundled in a single string. On GitHub if you hover on the right side of the import box, there’s a clipboard icon that will directly copy it to your clipboard without worrying about how many times you clicked.
 
 
The Perfect Tower II - How to Set Auto Crafting Script Guide - How to install - 068CB6B
 
 
You will also need turbo exec from https://github.com/Xenos6666/TPT2_scripts/tree/main/common/execution_stack – [github.com] . Without this package, the factory package won’t do anything.
 
 
My GitHub also has more in-depth instructions, as well as other useful scripts.
 
 
 

How to Use

To use this, import and enable all the scripts in both this package and turbo exec, and then edit launch factory craft. Modify the variables target_tier, target_type and factory_target_amount to reflect the tier, type, and amount you wish to produce.
 
 
The Perfect Tower II - How to Set Auto Crafting Script Guide - How to Use - AE54E26
 
 
Then press “f” to start the crafting.
 
 
The list of all valid types can be found in the source code of factory_constants – [github.com] 
 
 
 

Basic Features

The package will prioritize using items already present in your inventory instead of crafting new ones, and it will always leave at least one dust of each tier.
 
 
It can manage ore processing, dust tiering, and everything related. If more dust of a certain tier is needed then there is in the inventory, the package will first use all ores of that tier, then use dust of the previous tier. (This package assumes you have the chemical lumps exotic skill.)
 
 
It uses a different up-tiering mechanism than my uptierer, and the two aren’t aware of each other, but despite that they usually work fine together. If you completely run out of dust you may need to temporarily disable the uptierer in order to finish crafting, though.
 
 
If there isn’t enough ore or rubber, the package will try to craft as much as it can and will simply halt progress when it runs out of material.
 
 
You can safely leave the factory and come back while the scripts are running, the craft will just continue where it left off.
 
 
 

Advanced Features

There is error reporting if you misspell the item name or specify an invalid tier. You can also use either “Xenos original” names or the game-internal names (which are also those used by Kyromyr’s factory package).
 
 
“Item groups” are added to allow quickly crafting large batches of items, for scanning in the Crafter. Some of them take a lot of space and/or time, especially the “all” group, so use with caution. (Maybe try out the narrower groups first.)
 
 
Because this is a fork of Xenos’ factory AI, many of the scripts have the same names. It cannot exist side-by-side with original Xenos; delete or at least disable the other package first.
 
 
 

Troubleshooting

This is what a working factory should look like:
 
 
The Perfect Tower II - How to Set Auto Crafting Script Guide - Troubleshooting - AB8384D
 
 
Things in that screenshot to note, and how to fix if yours doesn’t look like that:
 

  • The AI overlay itself. If you don’t have that, you need to press F4.
  • The presence of master in the active scripts list. If that isn’t there, you didn’t download turbo exec, or didn’t activate it, or didn’t re-toggle the AI after doing those things.
  • The presence of D0S.factory vX.Y.Z. If this isn’t there, did you enable everything? It also won’t show up if turbo exec isn’t working, you’ll see D0S.init factory vX.Y.Z instead.
  • TURBO_COUNTER is around 1400, and the FPS is low. This indicates that it’s processing. If this is not the case, either it completed right away, or never started. If it never started, look for a variable labled “error”: This will tell you if you have a wrong item or tier. If you don’t know what item name to use, check the list in factory_constants – [github.com] 
  • If TURBO_COUNTER is high, but it’s still not working, you are probably out of some resource. If you have plenty of dust, the likely culprit is rubber.

 
 

Written by d0sboots

 
 
This is all about The Perfect Tower II – How to Set Auto Crafting Script Guide; I hope you enjoy reading the Guide! If you feel like we should add more information or we forget/mistake, please let us know via commenting below, and thanks! See you soon!
 
 


Be the first to comment

Leave a Reply

Your email address will not be published.


*