ifBars-BotanistFixIl2cpp icon

BotanistFixIl2cpp

Fixes the no seeds lag bug with the Botanist employee

Last updated a day ago
Total downloads 102
Total rating 0 
Categories IL2CPP
Dependency string ifBars-BotanistFixIl2cpp-1.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

LavaGang-MelonLoader-0.7.0 icon
LavaGang-MelonLoader

The World's First Universal Mod Loader for Unity Games compatible with both Il2Cpp and Mono

Preferred version: 0.7.0

README

BotanistFix

A small mod that fixes the no seeds bug with the Botanist employee.

Installation

For IL2CPP Version (Main Steam Branch)

  1. Download the IL2CPP version of the mod from the releases/files page.
  2. Extract the zip file.
  3. Make sure you have MelonLoader installed. If not, install it first.
  4. Move the BotanistFix_Il2cpp.dll file to the Mods folder in your game directory.
  5. Start the game.

For Mono Version (Alternate Steam Branch)

  1. Download the Mono version of the mod from the releases/files page.
  2. Extract the zip file.
  3. Make sure you have MelonLoader installed. If not, install it first.
  4. Move the BotanistFix_Mono.dll file to the Mods folder in your game directory.
  5. Start the game.

What is the no seeds bug?

The no seeds bug, was a bug that caused the game to lag/hitch every second, when the Botanist employee(s) had no seeds in their supplies.

What caused it?

The bug lies in the Botanist class, in the UpdateBehaviour method. Inside of this method, there is a check to see if the employee can access the point, before checking if there are any seeds in the supply. This caused the game to calculate the navigation path to the point, even if there were no seeds in the supply.

How does this mod fix it?

This mod puts a Prefix patch in front of the GetPotsReadyForSeed method. This patch checks if there are any seeds in the supply, before getting the pots ready for seed, effectively skipping the navigation check when there are no seeds in the supply.