Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
LobbySkinPreviewFix
Fixes modded skins that look wrong only on the character select screen (vanilla model, pink model, leftover parts from the previous skin).
| Last updated | a month ago |
| Total downloads | 2193 |
| Total rating | 1 |
| Categories | AI Generated |
| Dependency string | EVReborns-LobbySkinPreviewFix-1.0.1 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
bbepis-BepInExPack
Unified BepInEx all-in-one modding pack - plugin framework, detour library
Preferred version: 5.4.2122README
LobbySkinPreviewFix
Some modded skins look fine in a run but wrong on the character select screen: the vanilla model shows instead, the model turns pink, or parts of the previously selected skin stay on the model. This mod fixes the lobby preview only.
What it does
- Rebuilds the lobby model on every skin change. The lobby normally applies each new skin on top of the old one, so leftovers stay (hair, extra bones, custom visuals). Now each skin starts from a fresh model, the same way it does in a run. Changing skills does not rebuild it.
- Uses the real SkinDef instead of the lobby copy. The lobby model holds copies of the skins (
skinName(Clone)). Skin mods that check "is this my skin?" by name or by reference fail on the copy and show the vanilla model. The copies are swapped back to the originals from the body model. - Adds placeholders for parts that the lobby model lacks. The display model is missing some parts that the body model has (for example Artificer's jet fire). An older-style skin that targets them throws a NullReferenceException halfway through, leaving the model pink. Invisible placeholders let the skin finish applying.
- Matches different model paths. If a skin looks for
parent/partbut the lobby model haspartdirectly, the part is moved under a matching parent on the lobby model. - Removes DynamicSkinsFix's "apply default skin first" lobby hook, which raced with the selected skin. It is no longer needed because the model is rebuilt. You can turn this off in the config.
- Skips skin parts outside the skin's root object instead of failing. Some skins point at a part that is not under their
rootObject(for example Mym Acolyte 2.0'sHarvester_Body). The game throwsis not a child ofand the whole skin fails. Now only that part is skipped, and the rest of the skin applies. - Ryoshu (Xion) skin: retargets its mesh from a particle renderer to
MercMesh(it picked its renderer by index).
All lobby changes affect only the character select model. The Ryoshu retarget and the outside-part skip also apply in a run, but the skip only triggers where the game would otherwise throw an error.
Tested with: Kanade Yoisaki Artificer, Angelina Artificer, Trigger Railgunner, SAO Sinon Railgunner, Miyabi Mercenary, Ryoshu, Mym Acolyte 2.0, together with DynamicSkinsFix, MwSkinAdditions and LobbySkinsFix.
This is visual only. Each player only needs it for their own screen.
Config
RemoveDynamicSkinsFixZeroFirst(default true)LogDiagnostics(default false): writes the lobby model's skins and renderers to the log on every skin change, for reporting a skin that still looks wrong.
Changelog
- 1.0.1: Skin parts outside the skin's root object are skipped instead of failing the whole skin (fixes Mym Acolyte 2.0 in the lobby).
- 1.0.0: First release.
Credits
Thanks to the authors of these skin mods. This mod does not include or change any of their files.
- Kanade Yoisaki Artificer by KanadeFan: https://thunderstore.io/c/riskofrain2/p/KanadeFan/Kanade_Yoisaki_Artificer/
- Angelina Artificer by skybird233: https://thunderstore.io/c/riskofrain2/p/skybird233/AngelinaArtificer/
- Trigger Railgunner by Randy7: https://thunderstore.io/c/riskofrain2/p/Randy7/Trigger_Railgunner/
- SAO Sinon Railgunner by KrononConspirator: https://thunderstore.io/c/riskofrain2/p/KrononConspirator/SAO_Sinon_Railgunner/
- Miyabi Mercenary by Miyabi: https://thunderstore.io/c/riskofrain2/p/Miyabi/Miyabi_Mercenary/
- Ryoshu by Xion: https://thunderstore.io/c/riskofrain2/p/Xion/Ryoshu/
- Mym Acolyte by MiminiSusuki: https://thunderstore.io/c/riskofrain2/p/MiminiSusuki/MymAcolyteSkin/
Mods this one works together with:
- DynamicSkinsFix by mwmw: https://thunderstore.io/c/riskofrain2/p/mwmw/DynamicSkinsFix/
- MwSkinAdditions by mwmw: https://thunderstore.io/c/riskofrain2/p/mwmw/MwSkinAdditions/
- LobbySkinsFix by KingEnderBrine: https://thunderstore.io/c/riskofrain2/p/KingEnderBrine/LobbySkinsFix/
Libraries:
- BepInExPack by bbepis: https://thunderstore.io/c/riskofrain2/p/bbepis/BepInExPack/
- HarmonyX (bundled with BepInEx), used for runtime patching.
Source code is in the src folder. Contact: https://github.com/EVReborns