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

LegacyBundleFontFix

Fixes bugged/broken TextMeshPro text in custom levels and mods whose Unity 2022 AssetBundles load directly via AssetBundle.LoadFromFile (such as FNAFLevel) by routing them through REPOLib's legacy font fixer.

By Factor
Date uploaded 2 hours ago
Version 1.0.0
Download link Factor-LegacyBundleFontFix-1.0.0.zip
Downloads 21
Dependency string Factor-LegacyBundleFontFix-1.0.0

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

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

Preferred version: 5.4.2100
Zehs-REPOLib-4.5.1 icon
Zehs-REPOLib

Library for adding content to R.E.P.O.

Preferred version: 4.5.1

README

LegacyBundleFontFix

Fixes bugged/broken TextMeshPro text in custom levels and mods (such as FNAFLevel) whose Unity 2022 AssetBundles call AssetBundle.LoadFromFile directly instead of going through REPOLib's bundle loader.

What it does

  • Intercepts direct AssetBundle.LoadFromFile_Internal calls for Unity < 6000 bundles and passes them through REPOLib's FontAssetMaterialPatch.BeginLegacyBundle / EndLegacyBundle.
  • Performs a safe startup/scene-load sweep to register any already-loaded legacy TMP_FontAsset / TMP_SpriteAsset instances with REPOLib and refresh active TMP_Text components.

CHANGELOG

Changelog

1.0.0

  • Initial release.