You are viewing a potentially older version of this package. View all versions.
w00dst0ckOos-GK2CraftMax-0.4.2 icon

GK2CraftMax

Adds convenient maximum crafting controls to Graveyard Keeper 2 crafting interfaces.

Date uploaded 2 weeks ago
Version 0.4.2
Download link w00dst0ckOos-GK2CraftMax-0.4.2.zip
Downloads 18
Dependency string w00dst0ckOos-GK2CraftMax-0.4.2

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2305

README

Graveyard Keeper 2 - Craft Max

A small quality-of-life mod for Graveyard Keeper 2 that adds a MAX button to the crafting interface.

The button automatically selects the maximum number of crafts possible with the currently available ingredients.

Features

  • Adds a MAX button next to the vanilla craft quantity controls
  • Automatically calculates the maximum craftable amount
  • Supports recipes with multiple ingredients
  • Uses the currently selected ingredient variants
  • Supports fuel crafting and respects the remaining fuel capacity
  • Adds a MAX button for Study Table Science decomposition
  • Science MAX decomposes all available selected items
  • Full mouse and controller support
  • Preserves the normal Graveyard Keeper 2 crafting and queue system
  • Designed to match the vanilla crafting UI

Requirements

  • Graveyard Keeper 2
  • BepInEx 5.4.23.5

Installation

  1. Install BepInEx 5.4.23.5.
  2. Extract the archive into your Graveyard Keeper 2 installation directory.

The DLL should end up here:

BepInEx/plugins/GK2CraftMax/GK2CraftMax.dll

Usage

Open a crafting window and press MAX.

The selected craft quantity will be set to the maximum amount possible with the currently available ingredients.

Building

Create a local Directory.Build.props based on Directory.Build.props.example and set GameDir to your Graveyard Keeper 2 installation.

Then run:

dotnet build -c Release

CHANGELOG

Changelog

All notable changes to Graveyard Keeper 2 - Craft Max are documented in this file.

0.5.0

Added

  • Added LB/RB shortcuts for changing item transfer amounts by 10.
  • Added hold-to-repeat support for LB/RB quantity shortcuts.
    • Repeating starts after 0.5 seconds.
    • The amount then changes by 10 every 0.2 seconds.
  • Added LB/RB -10/+10 gamepad hints to the item transfer window.

Changed

  • Crafting LB/RB shortcuts are no longer limited by currently available ingredients.
    • Larger craft amounts can now be selected and queued.
    • The game still handles available materials and queue processing normally.
  • LB/RB hold-to-repeat is now available while changing crafting quantities.

Fixed

  • Fixed controller navigation in crafting interfaces with multiple ingredient slots.
  • Fixed navigation issues in interfaces such as the Distillation Cube.
  • MAX is now inserted into the crafting navigation loop without skipping native ingredient slots.

0.4.3

Added

  • Added controller shortcuts for changing the crafting quantity by 10.
  • LB decreases the selected crafting quantity by 10.
  • RB increases the selected crafting quantity by 10.
  • Quantity changes use the existing crafting limits and remain within valid minimum and maximum values.

Changed

  • Improved controller-based quantity adjustment for faster crafting setup.
  • Existing MAX button behavior and controller navigation remain unchanged.

0.4.2

Changed

  • Reduced repeated reflection work during crafting window redraws.
  • Reduced unnecessary callback allocations when MAX buttons already exist.
  • Improved reuse of MAX button UI references.
  • Reduced repeated UI hierarchy work during crafting window updates.
  • Improved controller navigation setup efficiency while preserving existing navigation behavior.
  • Improved controller navigation for the MAX button.
  • Added cyclic controller navigation between the crafted item, ingredients and MAX button.
  • Added controller support for the MAX button at the Kiln.
  • Added controller support for the MAX button at the Compost Pile.
  • Improved controller navigation for fuel crafting, including the Firewood Shed.
  • Refactored Craft Max helper logic for cleaner internal structure.

Performance

  • Reduced unnecessary work performed during repeated crafting UI redraws.

0.4.1

Added

  • Added MAX button support for single-craft windows.
  • Added support for the Kiln.
  • Added support for the Compost Pile.
  • Other crafting stations using the same single-craft interface are now supported automatically.

0.4.0

Added

  • Study Table Science decomposition MAX button.
  • Decompose all available selected items with one action.
  • Full controller support for Science MAX.
  • Controller navigation between the selected Science item and MAX.

Changed

  • Refactored shared MAX button creation.
  • Refactored shared gamepad navigation code.
  • Existing Craft and Fuel MAX behavior remains unchanged.

0.3.0

Added

  • Added gamepad/controller support for the MAX button.
  • MAX can now be reached using controller navigation.
  • Added controller support for both normal crafting and fuel crafting interfaces.
  • Pressing the controller confirm button while MAX is focused now calculates and selects the maximum craftable amount and immediately starts crafting or placing the selected amount.

Improved

  • Improved controller navigation handling across different crafting UI layouts.
  • MAX now integrates with the active vanilla navigation group instead of relying on the + button navigation group.
  • Preserved vanilla controller behavior when MAX is not focused.
  • Mouse and controller input continue to use the same MAX calculation logic.

Fixed

  • Fixed MAX being unreachable with a controller in some crafting interfaces.
  • Fixed navigation differences between normal crafting and fuel crafting windows.
  • Fixed controller confirmation on MAX triggering the vanilla Craft/Place action without applying MAX first.

0.2.0

Added

  • Added MAX support for fuel crafting.
  • Added support for fuel-based crafting interfaces such as Firewood Sheds.
  • Added automatic detection of the fuel container capacity.
  • Added calculation of the remaining available fuel capacity.

Improved

  • MAX now respects both available crafting materials and remaining fuel container capacity.
  • Fuel limits are calculated dynamically from the game's data instead of using hardcoded capacity values.
  • MAX only selects complete crafts that fit into the remaining fuel capacity.

Fixed

  • Prevented materials from being wasted by selecting crafts that would exceed the fuel container capacity.
  • Improved handling of fuel crafting quantities.

Example

With a fuel container at 290 / 500 and a recipe producing 20 fuel per craft:

  • Remaining capacity: 210
  • Maximum complete crafts: 10
  • Fuel added: 200
  • Final amount: 490 / 500

The remaining 10 capacity is intentionally left unused because another complete craft would exceed the container capacity.

0.1.0

Added

  • Initial release.
  • Added a MAX button to the crafting interface.
  • MAX automatically calculates the maximum number of crafts possible with the currently available ingredients.
  • Supports recipes with multiple ingredient requirements.
  • Uses the currently selected ingredient variant when calculating the maximum amount.
  • Integrates with the existing Graveyard Keeper 2 crafting interface.

Behavior

Pressing MAX selects the highest craft quantity that can be produced with the currently available materials.

The mod uses the game's normal crafting flow after the quantity has been selected.

[0.4.1]

Added

  • Added MAX button support for single-craft windows.
  • Added support for the Kiln.
  • Added support for the Compost Pile.
  • Other crafting stations using the same single-craft interface are now supported automatically.

[0.4.0]

0.4.0

Added

  • Study Table Science decomposition MAX button.
  • Decompose all available selected items with one action.
  • Full controller support for Science MAX.
  • Controller navigation between the selected Science item and MAX.

Changed

  • Refactored shared MAX button creation.
  • Refactored shared gamepad navigation code.
  • Existing Craft and Fuel MAX behavior remains unchanged.

[0.3.0]

Added

  • Added gamepad/controller support for the MAX button.
  • MAX can now be reached using controller navigation.
  • Added controller support for both normal crafting and fuel crafting interfaces.
  • Pressing the controller confirm button while MAX is focused now:
  • Calculates and selects the maximum craftable amount.
  • Immediately starts crafting or placing the selected amount.

Improved

  • Improved controller navigation handling across different crafting UI layouts.
  • MAX now integrates with the active vanilla navigation group instead of relying on the + button navigation group.
  • Preserved vanilla controller behavior when MAX is not focused.
  • Mouse and controller input continue to use the same MAX calculation logic.

Fixed

  • Fixed MAX being unreachable with a controller in some crafting interfaces.
  • Fixed navigation differences between normal crafting and fuel crafting windows.
  • Fixed controller confirmation on MAX triggering the vanilla Craft/Place action without applying MAX first.

[0.2.0]

Added

  • Added MAX support for fuel crafting.
  • Added support for fuel-based crafting interfaces such as Firewood Sheds.
  • Added automatic detection of the fuel container capacity.
  • Added calculation of the remaining available fuel capacity.

Improved

  • MAX now respects both:
    • Available crafting materials.
    • Remaining fuel container capacity.
  • Fuel limits are calculated dynamically from the game's data instead of using hardcoded capacity values.
  • MAX only selects complete crafts that fit into the remaining fuel capacity.

Fixed

  • Prevented materials from being wasted by selecting crafts that would exceed the fuel container capacity.
  • Improved handling of fuel crafting quantities.

Example

With a fuel container at 290 / 500 and a recipe producing 20 fuel per craft:

  • Remaining capacity: 210
  • Maximum complete crafts: 10
  • Fuel added: 200
  • Final amount: 490 / 500

The remaining 10 capacity is intentionally left unused because another complete craft would exceed the container capacity.


[0.1.0]

Added

  • Initial release.
  • Added a MAX button to the crafting interface.
  • MAX automatically calculates the maximum number of crafts possible with the currently available ingredients.
  • Supports recipes with multiple ingredient requirements.
  • Uses the currently selected ingredient variant when calculating the maximum amount.
  • Integrates with the existing Graveyard Keeper 2 crafting interface.

Behavior

Pressing MAX selects the highest craft quantity that can be produced with the currently available materials.

The mod uses the game's normal crafting flow after the quantity has been selected.