# xiv_csolver A rust program for solving FFXIV craft recipe, offering both cli and a gui. Based on the original project [xiv_craft_solver] by [RikaKagurasaka](https://github.com/RikaKagurasaka)
This repository has been archived on 2026-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Dandaedre ecb66b5157 Bugadd(Refactor) - First step of the refactor, mess everything up 2023-02-23 04:44:59 +01:00
.github/workflows Rework(module) - rework for even more modularity 2023-02-20 05:31:39 +01:00
configs reworked the whole logic behind the gui, this is starting to look decent 2023-02-23 04:44:38 +01:00
python Bugadd(Refactor) - First step of the refactor, mess everything up 2023-02-23 04:44:59 +01:00
src Add(Binding) - Add binding file 2023-02-22 01:20:29 +01:00
.gitignore reworked the whole logic behind the gui, this is starting to look decent 2023-02-23 04:44:38 +01:00
Cargo.lock Fix(Modules) - Finally managed to get both to compile 2023-02-20 06:45:53 +01:00
Cargo.toml Bugfix(Core) - Clean of some bindings and errors, adds a compiler feature for faster build 2023-02-21 23:00:58 +01:00
README.md Bugadd(Refactor) - First step of the refactor, mess everything up 2023-02-23 04:44:59 +01:00
craft.toml Added a lot of comments and tweaks, no real progress tho 2023-02-18 07:46:43 +01:00
example.py Bugfix(Speed) - Removes a useless chck 2023-02-22 00:16:50 +01:00
img.png
…
img_1.png
…
pyproject.toml Bugadd(Refactor) - First step of the refactor, mess everything up 2023-02-23 04:44:59 +01:00
requirements.txt Bugadd(Refactor) - First step of the refactor, mess everything up 2023-02-23 04:44:59 +01:00
requirements_dev.txt Bugadd(Refactor) - First step of the refactor, mess everything up 2023-02-23 04:44:59 +01:00
setup.cfg Bugadd(Refactor) - First step of the refactor, mess everything up 2023-02-23 04:44:59 +01:00
tox.ini Bugadd(Refactor) - First step of the refactor, mess everything up 2023-02-23 04:44:59 +01:00

README.md

xiv_craft_solver

A rust program for solving FFXIV craft recipe.

Originaly written by RikaKagurasaka, it now is widely improved and provides python bindings for a GUI (or anything else really)

Usage

  1. Download the latest release.
  2. Unzip the file.
  3. Edit the craft.toml file.
  4. Run the program.
  5. Wait for about 1-3 seconds.
  6. Copy the output.
  7. Import to other simulators.

CLI

When building the CLI invocation is done with the following parameters

Small XIV solver library in rust, with python and rust bindings

Usage: ffcraft [OPTIONS]

Options:
  -r, --recipe-name <RECIPE_NAME>
          Name of the receipe [default: default_recipe]
  -c, --character-name <CHARACTER_NAME>
          Name of the character [default: default_character]
  -f, --file-name <FILE_NAME>
          The ml file name [default: craft.toml]
  -v, --verbose...
          The verbose flag
  -d, --depth <DEPTH>
          The depth of the first pass [default: 8]
  -t, --threads <THREADS>
          Thread counts, default is 4 [default: 4]
  -D, --desperate
          Desperate mode, will try to finish the craft above all
  -l, --long
          Long mode, will try to find more solutions, at the expense of time
  -h, --help
          Print help
  -V, --version
          Print version

Python

To build the python module, run maturin develop or maturin build then maturin install

Example

Note: The recipe data can be retrieved from a FFXIV Crafting Optimizer with checking of Custom Recipe after selecting the recipe. img.png

[default_recipe]
durability = 70
progress = 5060
quality = 10920
progress_divider = 130
quality_divider = 115
progress_modifier = 80
quality_modifier = 70

[recipe_35]
durability = 35
progress = 3696
quality = 8200
progress_divider = 130
quality_divider = 115
progress_modifier = 80
quality_modifier = 70

[default_character]
craftsmanship = 4041
control = 3959
max_cp = 602

Output

Solving...

 > SOLUTION [Least steps] <
Quality: [10941/10920] | Durability: [0/70] | Cp : [14/602] | Steps : 18
["muscleMemory", "manipulation", "veneration", "wasteNot2", "groundwork", "delicateSynthesis", "basicSynth", "innovation", "preparatoryTouch", "preparatoryTouch", "preparatoryTouch", "preparatoryTouch", "greatStrides", "innovation", "basicTouch", "standardTouch", "greatStrides", "byregotsBlessing", "basicSynth2"]

 > SOLUTION [Most durability] <
Quality: [10923/10920] | Durability: [15/70] | Cp : [4/602] | Steps : 22
["muscleMemory", "manipulation", "veneration", "groundwork", "carefulSynthesis", "prudentTouch", "innovation", "prudentTouch", "prudentTouch", "prudentTouch", "prudentTouch", "manipulation", "innovation", "prudentTouch", "basicTouch", "standardTouch", "advancedTouch", "innovation", "prudentTouch", "basicTouch", "greatStrides", "byregotsBlessing", "basicSynth2"]

 > SOLUTION [Most quality] < 
Quality: [12142/10920] | Durability: [-5/70] | Cp : [1/602] | Steps : 22
["muscleMemory", "manipulation", "veneration", "wasteNot2", "groundwork", "carefulSynthesis", "basicTouch", "innovation", "preparatoryTouch", "basicTouch", "standardTouch", "advancedTouch", "innovation", "prudentTouch", "basicTouch", "standardTouch", "advancedTouch", "innovation", "prudentTouch", "trainedFinesse", "greatStrides", "byregotsBlessing", "basicSynth2"]

Program finished successfully in 954ms
Press enter to exit...

You can copy the array part and import to other simulators.

img_1.png