Bio Engineer Archive
Thread: Anyone have a good crafting macro to share?
My apologies to the original author of this post. I didn't save your name so I can't give proper credit.
Someone asked the exact macro be posted, so here it is. You can adjust the timing to suit your own needs, and of course the draft schematic number when you know what yours is. You will need to make 7 macros and have 5 crafting tools.
1. Controller (or whatever name you choose)
/ui action toolbarSlot07; /pause 10;
/ui action toolbarSlot08; /pause 10;
/ui action toolbarSlot09; /pause 10;
/ui action toolbarSlot10; /pause 10;
/ui action toolbarSlot11; /pause 10;
/ui action toolbarSlot05; /pause 10;
2. Dump
/dump;
3-7. Grind1 (grind2, grind3, grind4, grind5)
/ui action toolbarSlot00; /pause 1;
/sel 29; /pause 4;
/nextCraftingStage;
/nextCraftingStage;
/createPrototype practice no item;
/createPrototype practice no item;
*note* for grind2, change the number in the first line from/ui action toolbarSlot00; /pause 1; to /ui action toolbarSlot01; /pause 1;
For each subsequent macro add a number-for grind3 it is /ui action toolbarSlot02; /pause 1; for grind 4 it is /ui action toolbarSlot03; /pause 1; and grind5 is /ui action toolbarSlot04; /pause 1;
Next is how to set this up. Go to an unused set of hotbars, mine is on 6 (ctrl+F6). Put the crafting tools in F1-5. In F6 place the controller macro. In F7 place the dump macro. In F8-12 place grind 1-5 in order, grind1 should be in F8, and grind5 should end up in F12.
To determine which draft schematic you need, open your datapad and switch to the schematic view. Then open your craft tool and in your chat text type /sel <number>. This is a shortcut for /selectDraftSchematic. The number you choose will be different for each person depending on the order they received schematic recipies. When you see which item shows up, look at your datapad and see where that item is relative to the item you want for grinding. Add or subtract from that initial test /sel number, close the crafting tool, reopen it and try again with the new number. When you have the correct item show up, then remember that number, and change the grind macros line where I wrote /sel 29 and replace 29 with the number you need.
Next, test the macros individually, as it is easy to catch syntax errors when you start small and work up. Check grind 1 through 5 first to make sure that each one opens to the correct schematic. Then lastly try the controller and the dump macros. Let the controller macro cycle through 6 times to make sure it is self-perpetuating. Then hit the dump macro to make sure it ends the macro successfully. Then you are ready to begin.
I removed all non-essential items from my main inventory, as excess clutter made it difficult to doubleclick the ingredients in time. Remember you can use the dump macro to end the cycle, so when you need a new stack of resources, get it from your backpack.
Lastly, I will explain what these macros do. The grind macros are individual ones that select the toolbar slot that your craft tools are in. It pauses one second, then changes to the correct schematic that you want for grinding. It then pauses 4 seconds to allow you time to doubleclick the resources into the ingredient slots.After that it finishes making the item, which in this case is a practice item and does not actually create anything that you need to destroy.
The controller macro runs the grind macros in sequence, meaning all you will ever need to do is start it running, doubleclick the resources, and end it with the dump macro. The controller starts with toolbar slot F8, and starts it running. It pauses 10 seconds to allow that macro to run, then starts the macro you have in F9 and so on. When it gets to the last grind macro it starts over again at grind 1. All this does is alleviate the excessive clicking you have to do for crafting. It is not fully automatic, because you still must manually add the resources required to craft the items. But all the rest of the time-consuming and carpal tunnel-causing clicking is removed.
Adjust the times to suit you. For a little slower times, increase the time in the grind from 4 to 5 or 6. If you do this, remember to adjust the pause times in the controller macro from 10 to 11 or 12. And that is all there is to it.
Sometimes you will have a crit fail, when that happens a small box will pop up saying no draft schematic or somesuch. Just click the x quickly to get rid of it. After each item finishes, you will see a line of text in your chatbox saying that the craft session has ended. Do not be alarmed by this and think your macros failed or that you are not making anything. If you look at the craft tool you will see the countdown number on it that shows you have successfully created a practice item.