Icaria
Not enough ratings
Leahn Novash's Simple Script Collection
By Leahn Novash
This is a collection of solutions I came up with for common problems.
Current version of the scripts: 0.1
   
Award
Favorite
Favorited
Unfavorite
FAQ
Q. How do I import the strings?

A. On your hotbar, click the "+" sign on its left. On the dialog that appears, pick the "roles" tab. There will be an import button there. The action will be available on the "Import Action" button that is on top of the dialog where we write the scripts for the objects.
Find Top Left Corner
Notes:
1. NOT thread safe. Only one Drone can work at the same area at the same time.
2. Drones stationed in the area will break the script.
3. Trees within the area will break the script.
4. Buildings within the area will break the script.
5. Only works with rectangular X/Y areas.
6. The script saves the area in the # memory. Do not override this memory or the area is lost.
7. I left a blank "Reprogram" instruction at the end. Use it to redirect to whatever other script you want to run within the area.

Script string:

B0G3EEAKwKbGNSeMMo3HcQr+ni8lMenTNkbW/CayQdqvE24o+GhyKmqYBQ3TAtMUnzrey9U1hq+niDzQsl+f9/KkgWUzTm/9/sSbMFKqX08jvm8VorVPAKaG1bwgiNPcYeWczO1st0n8c05FAFfBEytFCLXkD08avUXcdtvCSaS8c0Jjoq8Hg8ZtyNnA4UIyzS1gGs4N90ABXMDmOiWfdqAWjlMZlyyOhlkObr/USZd9VIjPg/kWGWf1bM7MjoApWStgttb8vj7TgAIaLW9JFqQcLVpSy9xcyqEXPsVderB5nVzTLOgsjXEDKh6ggWhSpg23oXTPkMMV8ZHh9Bi1dJpc3WIO54Pj5ioujie3Qnpv4tB7+P69f4cT+2FZi04FgMKKEcQ5ToV5+hYQyI/gGu6OyvYg0ivje/7guXuuWgXaly5Hbw3ur5HTHfYBpH9ZU5AA==
Flat X/Y Terrain
1. NOT thread-safe. Only one Drone can work at the same area at the same time.
2. Drones stationed in the area will break the script.
3. Trees within the area will break the script.
4. Buildings within the area will break the script.
5. Only works with rectangular X/Y areas.
6. The script checks the # memory for the area to work on, save it before activating the script.

Script string:

B0G50PACwK7OYFoYSD36eh6gyG8FuYG+qRtIhd4yLqoVzEIT96fFIhcBNyS7e5UCHqRf0GaRgBak/7tXa66axGRVIgpBOzhCVCwmdneYeIVyKNTKImcv7tImiO5pTOBLxokoNfi+u0W9VJnfBVE63GpLFLifh+GoIg+kJOQdrtvmQsYAh6CjgLPL382HIfQMn9GQNAgGhziPW1Lh2A4JNWECrTc5oSDFZwe3adIJDWyqCpWWQkJLDm0dcRwMoYZzj6AppppfnO54x0Vwut2ZR+p9OTEarSx89VLAkIV4OXD201xaoLiNcInZLUwRljUn4dLMNyPdz/v/I5ME4f4NXB+Tr6rxQndFyNrk6yjBSLtDKnAKEGUZFWmd9mmC2dRdySNSEkmfmJwnxK8p/JWrEtZK5bIDYnnqiH20y21ZsFdMuaqUphs/Vf71z92broJFMRlFVnnjKJ3OPAAA96vN/rO26qEmKMBJdE5XESvsNikZR5tHFFFCiqhFVGJeU6te3BTMl/h6roCflQo/Ns0AFgjR3PUkus5bOB/wqzuwzLi7n+HAnYan6YXs1z38CsfvBPUUNp4apZ0rBIi4+OksWFjj5140xOUPcPPTP/8v5H5czTYO0oUtF6+/drZhhkMxKjSAhNCEpLNIMTfjuMk3q0G+XKwlrMmVoep8wAEHOkmOO88dN/Ha42wOOWizViJZhVMJAAB0LBwKAsBI6iiv3O9+bAcr1tooNw08c7CR0y0yaqRZfc/DfbpRq8ScGmpJ/glIPY6cR14uyNvWM1Z03N33RkVwznnlgKjDnE8EGHxEW6lOEtsx20QkZI4W6UFHzs9ZEfjQA=
Printer Fix
Printers are difficult to work with, as they neither output their product automatically nor allow drones to pick from them directly. This trick aims to make them slightly easier to work with.

Add an outbound conveyor and a storage after it. In my script, I do this with two printers, each producing a different product, but you can just delete what you don't need.

I gave the storage the role "Printer Output", and the conveyor the role "Printer Conveyor".

Give the storage the following script:

B0G9gDAKwOzFOjo4TBBl438GkjMxk0t6nHpQ9losBFmkoW0zqIDYUGaUlrWw0g1WM9cbn/bVP9VcbeDZGxrQuoAAs08AA90myzVUQOguqhe+h120vmR6RoEutIm/uB3Iqzl4JjZH4J6xw1bt7zjtt4ieZQj6wHD7GNXiKHJp3g87dAZHYYY6EUJyWdwCm+bQmThvtkW4goJG4pi2uNzWNXzVNs4338/LK8xDXRvPI7yQu/At0FTGnWt4Uq1Hzm20YXHyrdom88OluozPCrLlDfGfEhgnDu16UZHRztsA2S9Nh4j8nrr5vBn+Ep/HPtfmWBPev4F5PtD/Uv9+sVc969U2FNpPkOtwnzNSZhqEciNknHpYQCUv0E7T3R6E2LNIgT3f94AA==

And the conveyor the following script:

B0G5IBABypnX557GbE3GbCvJE+lJl9pXI0rotoaRSFeCiMnjalilQLBOfuvAM2X2o4nA10n3M6ctU6kCGn1frmX7YiQw69B2f33+Uex/8SMrTQLwALRgLzsBTPt85ztiGgcJzc6MTBW4npWaUUPx0gs//pADGW5xnRNFndtBIwj+ENcd0UOeCQ5TvMAbXz/xjLIe+WR79u/zqbVbLgsvCGpJTAcfv8JrEE7oIZd4cxpMn6vNudnzn+QLRFtpkWh0FJo1V8gJtGc8ObcFxxr51kSR0=

What this does is that the storage will check its inventory for Trusses and Motors. If they don't have any, they will create a request. The conveyor monitors those requests and unloads the printer if there is one.
Better Crane Script
Notes:

1. Create a role "Terrain" (on whatever you feel like) for the areas you want the crane to work on and remember the role as the # memory.
2. Remember the crane itself as the @ memory.
3. The crane will dutifully swap between areas of that role and dig until full or until it cannot find any more areas to dig.
4. Then it will look for areas to fill, until the storage is empty.
5. If the storage is full, it sleeps.

Script string:

B0GwUOAJwF7t4OM/ondG0FIPoMkFvRoy966iL/PSxB6oSNwXGhALmZv3dhg2uSqlr93uk/CIfDaZAgQaHMHXOUVtNl65d9L62r0oWLjIzQqskIk8dwLnGPRhfE8cFqI7OqDAqxSRP1eXR46G/GJhQyk7Ra9s0bvc7XnvpTAlvR0jKiNsqjJFcF3TmNN3shPakFNDhJxMooRps+kZkqqVsVmAxOooP7lYEJT3J9ywc5dLqW5mtukAvWkPjfOklJJ0z6ABEgQvBzkOLelePKlXdJxB5Xk0QypyiV4m8l5xfT7WkLLw/j4YmcdySxRi1pxRaivjnNT3dIjTGXCBncjClag9o/RRdO9QU7kpkTJFYdnKtDGW3yynRfbYIOK/9UMp1xPR78XidPD+akzgHzzckudYlkIxwYNbf/Wzw6k2sdu8/xRGlRe26BGAFSu6xHzT6AO9rY23dElE8+e4bsc0rGqvSlbmychDwTbDK6VncyhztidpivEfFxzy2yz5TldwF3JW+hXNeeaNOpi9+U+Jg+3lWbT0XjxREeNOzDsY0oJYr8R7GA2b3zdwbsMksHK2Oj+bbDC3b/bCtmBQYBCBDIwZY/duDKqLK3tYEuPu++aA3OU76oub1Pb3ttIrfGlPpPnzIYq5uvJ1XjIQHIVmfH66Z586N/XNrsUIWEPTx2vP+dF/tpZO2nGYI2C/ZW9Ng2YremIfz73/GRbJyv+JMXJM07VNbqJOWTyc8YrZt1beyuqAU=
Universal Kiln
This script will attempt to produce one of each item that the Kiln can produce, by cycling the crafting recipes.

Remember to put the kiln in script mode.

Script string:

B0G+IHACwKbFuRfhCtsyhmvhkcCMMISTqP5oZ6JC0U04v7BB7qxCwfJH5DoUEaWtJWD/jQuWZRuKFMI8kGtP6oFu3QCrAn/jcf2wW0W6uEXEnPOcap9hDMf6DNZn5b+G4Q3dqsbqcRJvDC+3MfvlWoNqjOHLVqQbi1RlBlMEFiPL9hxohUQDMSw0hHDAKZ75CEyaNgEGiW2mdriM4MrghsdDqptFO34AUGcbkaYHi4BFBtX04RGacATX+FQG2zMUuQvW1Eu+GNUpZhxJgfXfXTBHoc6ZlZmJx6KFOt7EbEHCwj7RAYEjqWGIkLbpFuI7odfF8stsCnbfqZHsmSHqUHakym4w/Lw9pZRngWNtZOP/XLzGtLjDsUWK6ZuDbeMwN9FP+39Zxa4c4LL8AfeMe2JxziouLGPfYs3TayBenhqJkeq8EIPio5OoNrkgLdGm2ZpnZyl4SX4W9AcZKYGfDEK3BUSGcPdLKUnFqh6NKjYvtUNSxVbGvYt4MzJohDzmoqwfazI/StMYb0/JGQDA==
2 Comments
Leahn Novash  [author] 25 Jul @ 4:46am 
@CptVodka Add the instructions as a FAQ at the beginning.
CptVodka 24 Jul @ 4:41am 
How do you export/import script strings?