You are viewing a potentially older version of this package. View all versions.
L4zerShark_Team-BreedingUpgradesChickenEggFix-1.1.0 icon

BreedingUpgradesChickenEggFix

Valheim 1.0 support: keeps chicken eggs unstarred, repairs old starred eggs, and fixes BreedingUpgrades console registration.

Date uploaded 3 weeks ago
Version 1.1.0
Download link L4zerShark_Team-BreedingUpgradesChickenEggFix-1.1.0.zip
Downloads 114
Dependency string L4zerShark_Team-BreedingUpgradesChickenEggFix-1.1.0

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2351 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2351
Dumba-BreedingUpgrades-1.0.2 icon
Dumba-BreedingUpgrades

Gives offspring of your tamed creatures a rare chance to spawn with an extra star.

Preferred version: 1.0.2

README

BreedingUpgrades Chicken Egg Fix 1.1.0

  • Keeps vanilla chicken eggs unstarred and usable by normal recipes.
  • Stops BreedingUpgrades from selecting protected eggs for quality upgrades.
  • Repairs already-starred protected eggs on load/save when enabled.
  • Leaves live-born creature upgrades, Asksvin eggs, and other eggs unchanged by default.
  • Supports Valheim 1.0's inventory loading and repairs BreedingUpgrades 1.0.2 console registration.

What it fixes

BreedingUpgrades 1.0.2 treats any item whose shared name contains egg as upgradeable. A starred chicken egg can then fail recipes that expect the normal quality-1 item.

This add-on:

  • excludes vanilla ChickenEgg from BreedingUpgrades' egg-upgrade selection;
  • keeps a quality-1 failsafe in case another path tries to star a protected egg;
  • optionally repairs already-starred protected eggs during world/inventory load and save;
  • leaves Asksvin and every other egg unchanged by default;
  • supports optional additional protected prefab names;
  • performs no recipe scan and no per-frame egg processing.

Choose combined or standalone

Do not install this together with ValheimCompatibilityFixes. They contain the same egg patch and are marked incompatible to prevent duplicate patching.

You may install this package together with the separate AzuCraftyBoxesBuildingOnly package.

Requirements and checked versions

  • Valheim 1.0; compiled and checked against the supplied 1.0.12 game assemblies.
  • BepInExPack Valheim 5.4.2350 or newer
  • BreedingUpgrades 1.0.2

The build uses the game's actual managed assemblies and the updated profile's BepInEx 5.4.23.5 / HarmonyX 2.9.0 libraries. The package requires the Valheim 1.0 loader baseline, BepInExPack Valheim 5.4.2350.

This release explicitly handles both Inventory.Load overloads, avoiding an ambiguous Harmony target. It also replaces BreedingUpgrades 1.0.2's outdated console-registration call with the Valheim 1.0 constructor, retaining the original three command callbacks and permissions. Future dependency versions retain their own console registration.

The actual breeding bytecode still contains the Character.SetLevel and ItemDrop.SetQuality calls expected by BreedingUpgrades 1.0.2. Compilation, target/signature checks, and dependency-link checks passed. No live Valheim or multiplayer session was run here; use the copied-profile test below before the main world. See VALIDATION.md for the exact evidence and limits.

Install with Thunderstore Mod Manager or r2modman

  1. Download this ZIP without extracting it.
  2. Open the Valheim profile that will use it.
  3. Open Settings and choose Import local mod.
  4. Select BreedingUpgradesChickenEggFix-1.1.0.zip.
  5. Confirm this package and BreedingUpgrades appear under Installed.
  6. Put the same package on every client and the dedicated server, then launch once to generate the config.

If local import is unavailable, manually place BreedingUpgradesChickenEggFix.dll in BepInEx/plugins/BreedingUpgradesChickenEggFix/.

Config

Generated at:

BepInEx/config/local.valheim.breedingupgradeschickeneggfix.cfg

Setting Default Purpose
1 - General / Fix Enabled true Turn all protection off or on.
2 - Repair / Repair Existing Chicken Eggs true Normalize already-starred protected eggs to quality 1 on load/save.
2 - Repair / Additional Protected Egg Prefabs blank Optional comma/semicolon list of modded egg prefab names.

These settings are local; this add-on does not add its own ServerSync protocol. Distribute the same config to the server and clients for consistent behavior.

Performance

New eggs are checked only when Valheim calls ItemDrop.SetQuality during the relevant creation path. Existing inventories are checked only on load/save when repair is enabled. There is no recipe discovery, world-wide object search, or per-frame egg loop.

Copied-profile test

  1. Temporarily set BreedingUpgrades' upgrade chance to 100% in a test world.
  2. Produce a chicken egg. Confirm it remains quality 1/unstarred and works in recipes.
  3. Produce an Asksvin egg and confirm this add-on does not normalize it.
  4. Place an existing starred chicken egg in an inventory, save/reload, and confirm it becomes quality 1.
  5. Restore the intended BreedingUpgrades chance and check the BepInEx log for errors.
  6. Check a dropped old starred chicken egg after reload, then test with repair disabled and protection disabled separately.
  7. Run breeding_info, breeding_simulate 10, and breeding_debug in the console. Confirm there is no missing-constructor error; toggle debug back to its original value.
  8. Repeat a chicken breeding/repair check with another client and after changing the area owner. Check the server and both client logs.

Uninstall

Remove this package and restart. BreedingUpgrades can star chicken eggs again. Eggs already repaired to quality 1 cannot recover their previous quality automatically.

Source is included under src/ and released under the MIT License. See CONFIG_REFERENCE.md for every setting and THUNDERSTORE_LISTING.md for publication metadata.

CHANGELOG

Changelog

1.1.1

  • Honor Repair Existing Chicken Eggs=false when world eggs load or repeat their current quality during initialization.
  • Preserve existing quality through both inventory-load overloads when repair is disabled; clear the load scope even when malformed data throws.
  • Keep new quality upgrades blocked while protection is enabled.
  • Restored a clean SDK project and clarified setup, config behavior, supported dependency and removal effects.

1.1.0

  • Update the build to Valheim 1.0, checked against the 1.0.12 managed assemblies.
  • Require the Valheim 1.0 loader baseline, BepInExPack Valheim 5.4.2350.
  • Fix ambiguous inventory-load patch targeting and repair protected eggs through both Valheim 1.0 load overloads.
  • Fix BreedingUpgrades 1.0.2 console registration for the changed command constructor; retain its original commands and permissions.
  • Use exact signatures for the item-quality, world-drop-load, and inventory-save patches.
  • Include a reproducible build script using the installed game's actual assemblies and a validation report.

1.0.1

  • No gameplay changes.

1.0.0

  • Exclude vanilla ChickenEgg from BreedingUpgrades' egg-upgrade selection.
  • Add a quality-1 failsafe for newly created protected eggs.
  • Add optional repair of existing starred chicken eggs on load/save.
  • Leave Asksvin and other eggs unchanged unless explicitly configured.
  • Add an optional protected-prefab list and copied-profile test checklist.
  • Include complete Thunderstore listing, configuration and source-build references plus high-resolution icon masters.