xivcrafter

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2023 License: MIT Imports: 1 Imported by: 0

README

XIVCrafter

Go Release Build Go Report Card License

A FFXIV CLI app that activates multiple crafting macros while refreshing food and potion buffs.

Tested on Windows and Keyboard only.

Packages Used

Using the Tool

Download the Windows binary in the Releases page.

Need help? Check out the Wiki.

How to Run

Run:

.\xivcrafter

If .xivcrafter.json does not exist in your home directory, XIVCrafter will create it upon launch. It will then prompt you to fill out the XIVCrafter settings and one recipe.

Flags

Only needed if you want different settings than .xivcrafter.json.

      --cancel string        cancel hotkey
  -c, --config string        config file (default is $HOME/.xivcrafter.json)
      --confirm string       confirm hotkey
      --debug                enable debugging (debug log location is $HOME/.xivcrafter-debug.log)
  -h, --help                 help for xivcrafter
      --start-pause string   start/pause xivcrafter hotkey
      --stop string          stop xivcrafter hotkey

Prepping the Game

In order for XIVCrafter to work properly:

  1. Make sure you are not near anything that can be interacted with.
    • This is important to make sure you don't accidentally target something else and thus being unable to craft.
  2. Open the Crafting Log and select the item you want to craft with XIVCrafter.
  3. To ensure your character is in the correct state, start and then cancel the craft without any additional inputs.
    • Press the Synthesize button in the Crafting Log window. When the Synthesize window appears, press the Quit button.

Once that is done, press the Start/Pause XIVCrafter hotkey to start XIVCrafter.

Config

Default Location: $HOME/.xivcrafter.json

Config File:

{
  "start_pause": "",
  "stop": "",
  "confirm": "",
  "cancel": "",
  "recipes": [
    {
      "name": "",
      "food": "",
      "food_duration": 30,
      "potion": "",
      "macro1": "",
      "macro1_duration": 1,
      "macro2": "",
      "macro2_duration": 1,
      "macro3": "",
      "macro3_duration": 1
    }
  ]
}
  • start_pause: XIVCrafter hotkey to start or pause the program
  • stop: XIVCrafter hotkey to stop the program
  • confirm: FFXIV hotkey for the confirm action
  • cancel: FFXIV hotkey for the cancel action
  • recipes: JSON array of settings representing a crafting recipe in FFXIV
    • name: Name of the crafting recipe
    • food: OPTIONAL FFXIV hotkey for the food item to use
      • Leave as "" if no food is needed
    • food_duration: How long the food will last (minutes)
      • Default: 30 minutes
      • Should be either 30, 40 or 45 minutes depending on whether food buffs are used
    • potion: OPTIONAL FFXIV hotkey for the potion item to use
      • Leave as "" if no potion is needed
      • The default length of the potion is 15 minutes
    • macro1: FFXIV hotkey for the first crafting macro
      • This field must have a value for the recipe to be valid
    • macro1_duration: Duration the first crafting macro (seconds)
    • macro2: OPTIONAL FFXIV hotkey for the second crafting macro
      • Leave as "" if no second crafting macro is needed
    • macro2_duration: Duration the second crafting macro (seconds)
    • macro3: OPTIONAL FFXIV hotkey for the third crafting macro
      • Leave as "" if no third crafting macro is needed
    • macro3_duration: Duration the third crafting macro (seconds)

For more information on filling out the config file, go to the Config section of the User Guide.

Accepted Keys

https://github.com/kn-lim/xivcrafter/wiki/User-Guide#accepted-keys

FAQ

Does the game need to be in focus?

Yes. Otherwise, whatever program is in focus will receive the inputs.

Am I able to use the keyboard to type/move while the program is active?

No, since XIVCrafter tracks all key presses and may act accordingly to the config provided.

Am I able to use the mouse while the program is active?

No, as it may cause XIVCrafter to malfunction and not start the craft properly.

How do I get the macro duration?

Count all the seconds the macro steps delays for.

General Rule: # of Lines * 3

Will this work with the latest patch?

Unless the robotgo package stops working or FFXIV blocks virtual keyboard inputs, XIVCrafter should work on any patch.

Will this work with any craft?

As long as you are able to start the craft, XIVCrafter will work on any craft.

My craft didn't complete! What happened?

Usually, latency can prevent the keys from being inputted properly to the client. If this happens, cancel the craft manually in-game. Get back into the initial starting state and wait till XIVCrafter completes the "craft". Make sure to stop any existing crafting macro before XIVCrafter starts a new craft. It should continue without having to reapply food and potion buffs.

You may need to cancel the current active crafting macro in order to get back to the initial starting state. To do that, you will need to interrupt that macro. You can do that by having this as a macro: /e end. By activating that one line macro, it should interrupt any currently running crafting macro to allow you to get back into the initial starting state.


For more information, go to the Wiki.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
tui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL