Giter Site home page Giter Site logo

xivcrafter's Introduction

XIVCrafter

Go Release build Coverage Status 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-log.jsonl)
      --delay int            crafting delay in milliseconds
  -h, --help                 help for xivcrafter
      --key-delay int        keyboard input delay in milliseconds
      --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:

{
  "delay": 1000,
  "key_delay": 500,
  "start_pause": "",
  "stop": "",
  "confirm": "",
  "cancel": "",
  "recipes": [
    {
      "name": "",
      "food": "",
      "food_duration": 30,
      "potion": "",
      "macro1": "",
      "macro1_duration": 1,
      "macro2": "",
      "macro2_duration": 1,
      "macro3": "",
      "macro3_duration": 1
    }
  ]
}
  • delay: XIVCrafter setting to set the crafting delay (milliseconds)
    • Default: 1000 milliseconds
  • key_delay: XIVCrafter setting to set the keyboard input delay (milliseconds)
    • Default: 500 milliseconds
  • 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.

xivcrafter's People

Contributors

dependabot[bot] avatar kn-lim avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.