Architect Archive
Thread: Macro Tutorial 101
Okay I've decided to help out crafting professions in general and specifically architects that may be getting tired of grinding along to get to master. I've created the following macro which will allow you to simply click on the resources needed and the end item will result in a practice item. You can remove the practice mode from the macro if you want real items. The macro will allow you to bypass many of the standard crafting screens and it saves a ton of time, not to mention a sore hand.
Here is the macro: (Note: Any notes and colored sections are NOT part of the macro so remove them. They are there for reference only.)
- (NOTE: 1) /pause 1;/ui action toolbarSlot11;
- (NOTE: 2) /pause 1;/selectDraftSchematic50;
- (NOTE: 3) /pause 4;
- (NOTE: 4) /nextCraftingStage;/nextCraftingStage;/nextCraftingStage;
- (NOTE: 5) /createPrototype practice no item;/createPrototype practice no item;
- (NOTE: 6) /pause 5;/ui action toolbarSlot10;
- /pause 1;/selectDraftSchematic50;
- /pause 4;
- /nextCraftingStage;/nextCraftingStage;/nextCraftingStage;
- /createPrototype practice no item;/createPrototype practice no item;
- /pause 5;/ui action toolbarSlot09;
- /pause 1;/selectDraftSchematic50;
- /pause 4;
- /nextCraftingStage;/nextCraftingStage;/nextCraftingStage;
- /createPrototype practice no item;/createPrototype practice no item;
- /pause 5;/ui action toolbarSlot08;
- /pause 1;/selectDraftSchematic50;
- /pause 4;
- /nextCraftingStage;/nextCraftingStage;/nextCraftingStage;
- /createPrototype practice no item;/createPrototype practice no item;
- (NOTE: 7) /pause 7;/ui action toolbarSlot01;
Prep Work
Place the macro above on the far left slot F1 (toolbarSlot00) and if you want to use 8 crafting kits instead of 4, place a duplicate macro on F2 (toolbarSlot01) and exchange the ui action toolbarSlot numbers accordingly.
Next, place a crafting kit on each of the slots named in the macro which are F12 (toolbarSlot11), F11 (toolbarSlot10), F10 (toolbarSlot09), and F9 (toolbarSlot08). If you want to use 8 kits and keep the macro flowing non-stop then put more kits on F8, F7, F6, and F5 (toolbarSlot07 - toolbarSlot04).
Starting the Macro(s) - Hit your F1 button to begin and wait for the schematic to open and the resources are required. Quickly click on the resources to fill the slots and the macro finishes everything and brings up the next kit, etc.
Understanding the Macros and Notes
Note 1 - the ui action toolbarSlot11 points to F12 and your first crafting kit. When this action hits, the crafting kit is accessed and opened.
Note 2 - the selectDraftSchematic## refers to the number of the draft schematic you want to pull up. Now this is the hardest part for most people to figure out but the easiest way to remember how to find the correct number is to do the following. The "type" of kit you are using can only access certain schematics. So, if you are using a structure and furniture crafting kit then it can only access architectural items, components, and furniture items. Go into your datapad (CTRL + D) and click on ALL schematics. You now see a list of ALL the schematics you know for any profession you are. Open a crafting kit and then type /selectDraftSchematic10 and see which schematic pops up. Find the schematic in your datapad and then count lower or higher to the schematic you want, remembering to skip those schematics which the crafting kit would never be able to produce. (e.g. If you have a chair, a couch, a shirt, a pants, and a structure module in your datapad in order from left to right / top to bottom, if selecting schematic 10 gives you the chair and you want the structure module you would count the following: chair (10), couch (11), structure module (12). The shirt and pants cannot be made by the structure and furniture crafting kit so it doesn't consider them when you call up a schematic. You would then plug in /selectDraftSchematic12 for your macro)
Note 3 - This is the pause command that allows you to select resources to place in the schematic. This is a very important number and the best way to use it would be to count 2 pause seconds for every resource or component needed. If you need 3 separate resources and 2 components then that is 5 clicks. Use pause 10 in that case and test out the macro. If it is too slow you can lower the number based off how fast you move. Always account for some lag.
Note 4 - /nextCraftingStage moves you through the crafting windows. The 3 stages are used because if you are standing near a crafting station you will get a third window instead of 2. These three allow you to use schematics at a crafting station.
Note 5 - This creates a prototype in practice mode, producing no items as the output. You can remove the practice mode if you want items by removing the "practice no item" from this line.
Note 6 - A 5 second pause allows for the transition from one crafting kit to the next and the new ui action toolbarSlot number opens the "next" crafting kit.
Note 7 - This gives you a short breather before accessing the next macro which will repeat for kits on the F5 - F8 keys.
Conclusion
This macro instructional tutorial is simply given so that you can keep your fingers from tireing. What is nice about it is you have to be at the keyboard when using it so it's not an away from keyboard macro. It is a legal use of a macro that allows you to automate your movements a little more fluidly. There are some situations in which you may want to cancel the macro. You can do this by using the /dump command. The /dump command removes paused commands which are the equivallent of macros. Use this command when you need to stop the macro or any macro you may be using.
You can also access numerous text commands by typing // (two forward slashes) and hitting enter while in the game. A large helpful list is there and many commands can be used by architects that allow you to access your harvesters and structures a little easier. In fact, one night my harvester was accidentally built underneath another house (the objects on the server hadn't loaded when I built it and so I didn't know a house was there) and I didn't want to wait for a CSR to come help me. I targeted my non-seeable harvester (the game said I couldn't see it but I could) and I used a few commands to check the status, pay the maintenance up and destroy (re-deed) the structure. I even emptied out the hopper.
I hope this tutorial helps you out greatly and if you have any questions, please don't hesitate to ask.
Take care mates,
I forgot to mention something in note 7. In note 7, you can place another macro for the next toolbar kits and place it on F2 (toolbarSlot01). What occurs is the macro will finish and then call up the F2 slot which contains another macro and it uses that macro then. In the second macro you can use everything you are using in the first only substitute the toolbarSlot numbers for the next 4 kits down the line. I hope this clears that up.
Thanks,
The "/selectDraftSchematic50;" command is not working for me, whenI use it I get the following error message..."No such command, mood, chat type: selectDraftSchematic50".
Please help.
XcanuckX wrote:
The "/selectDraftSchematic50;" command is not working for me, whenI use it I get the following error message..."No such command, mood, chat type: selectDraftSchematic50".
Please help.
You need to read the notes I gave for that line. I put notes with every command because this macro is an example and you have to modify it for your own use.
/selectDraftSchematic50 is asking the device you are crafting with to pull up the 50th Draft Schematic "IT" can use. In order to find the correct draft schematic "you" want to craft with you have to run a test like I suggested. Open the crafting kit as if you are going to craft an item and then type /selectDraftSchematic10 or 1 or 5 or 7 (something low). Then make a note of what schematic comes up. Open up your Datapad (CTRL+D) and click on the show all schematics tab at the top. Find the schematic you got when you ran your test. Now, once you find it, look for the one that you want to craft with. If it's further down the list, count all the architectural schematic until you get there. If you ran a test with Schematic10 and you get a chair schematic and there are 20 clothing schematics after it and then 2 architectural schematics and then the one you want to craft with it would be selectDraftSchematic13:
Chair = 10
Skip the 20 clothing schematics because the crafting kit can't make those
Skip the 2 architectural schematics you didn't want (but you have to count these as 11 and 12).
Select the one you do want which is now 13.
The above is just an example. You can keep doing /selectDraftSchematic tests until you find the one you want and then write that number down. Remember that it's case sensitive. That means you have to use /selectDraftSchematic(number) without the parenthesis. (e.g. /selectDraftSchematic20)
Please make sure to read all the notes that follow the macro. The macro itself has note entries beside the lines that matter. Some lines you will have to change. If you tell me what you are trying to craft, I can tell you the schematic number when I get home from work tonight. It's not hard to do. You just have to get familiar with it is all.
I hope this helps.
Take care,
Bah I just realized what the problem is:
/selectDraftSchematic 10 (MAKE SURE TO PUT A SPACE AFTER THE SCHEMATIC) ![]()
I didn't realize I closed that in on accident. Sorry about that.
This is the corrected macro from above. Remember to follow the examples. the /ui action toolbarSlot(numbers) do not have spaces though. Only the schematics. My apologies.
The /ui action toolbarslot11 command won't work for me. I've tried substituting toolbarslot0 thru 11 and nothing happens. Tried it on the command line as well, and there is no error message. On slots 8,9,10 and 11 I have structure tools. I tried typing /ui action all by itself and do get an error message "ui action: not enough arguments" so I know the command should work with the correct parameter. I'm not new to programming or making macros, so either I am missing something really subtle here, or perhaps there is a CTRL-O check box or something else that might be disabling this? Any ideas please?
/pause 1;/ui action toolbarslot11;
/pause 1;selectdraftschematic 26; <-- this does work, but without the tool opening, no good
/pause 4;
/nextcraftingstage;/nextcraftingstage;/nextcraftingstage;
/createprototype;/createprototype;
Did I mess this macro up somehow?
Thank you