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.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.
