You are viewing a potentially older version of this package. View all versions.
Doetope-Skillfern_Triforce_Compat_Fix-1.0.0 icon

Skillfern Triforce Compat Fix

Compatibility patch for SkillFern and Triforce. Prevents their shared Photon event code 187 from being misread by the other mod. Requires both originals.

By Doetope
Date uploaded 2 days ago
Version 1.0.0
Download link Doetope-Skillfern_Triforce_Compat_Fix-1.0.0.zip
Downloads 41
Dependency string Doetope-Skillfern_Triforce_Compat_Fix-1.0.0

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
Omniscye-Triforce-1.0.1 icon
Omniscye-Triforce

The Triforce Revives everyone, heals everyone, and blasts everything back.

Preferred version: 1.0.1
DaJadeNinja-SkillFern-1.2.0 icon
DaJadeNinja-SkillFern

Replaces shop upgrades with a polished skill tree system

Preferred version: 1.2.0

README

Skillfern-Triforce Compat Fix

A small compatibility patch for DaJadeNinja's SkillFern and Omniscye's Triforce.

What it fixes

SkillFern and Triforce both use Photon event code 187, but their payload formats are different. Without a guard, each mod can receive the other mod's packet and try to parse it as its own data. In the observed failure, Triforce attempted to convert SkillFern's Steam ID string into a float, throwing a FormatException and interrupting SkillFern's network upgrade handling.

This patch leaves both original mods installed and unchanged. At runtime it adds a small Harmony prefix to each event handler:

  • Triforce only handles event 187 when the payload matches its expected four-value form: int, float, float, float.
  • SkillFern only handles event 187 when the payload matches SkillFern's format, including the Steam ID string in slot 1.
  • All non-187 events pass through untouched.

Requirements

  • Omniscye - Triforce 1.0.1
  • DaJadeNinja - SkillFern 1.2.0

Both are declared as Thunderstore package dependencies and remain the actual mods providing their features. This package does not contain or replace either original DLL.

Multiplayer

For consistent behavior, use the patch anywhere SkillFern and Triforce are being used together in the same lobby.

Credits

SkillFern is by DaJadeNinja. Triforce is by Omniscye. This package only provides compatibility logic between them.

CHANGELOG

Changelog

1.0.0

  • Initial compatibility patch.
  • Prevents Triforce from parsing SkillFern Photon event 187 packets.
  • Prevents SkillFern from parsing Triforce Photon event 187 packets.
  • Requires the original SkillFern and Triforce packages instead of replacing either mod.