About this mod
A framework that splits apart locomotive meshes for compatibility between mesh-altering mods.
- Requirements
- Permissions and credits
- Changelogs
- Donations
So Rearranged S282 can edit the cylinders, a different mod could move the headlight, etc.
With just this mod installed, you won't visually notice anything different. It's a framework that other mods can use to edit parts of the S282A and S060.
For now, I'm just supporting the S282A and S060, although I might support more in the future if people request more. Let me know if you need something split apart further for your mod, and I can look into it.
Installation
Just drag and drop the zip file into Unity Mod Manager like any other mod.
For Mod Authors
If you're just trying to use a mod that depends on this mod, feel free to ignore this section.
To make mods depending on this framework, you'll need to know how to code and know C#.
The easiest way to figure out how this mod works is to download and install the Runtime Unity Editor mod, find a spawned LocoS282A in the Object Browser, and navigate to the transform "LocoS282A_Body/Static_LOD0/s282a_split_body(Clone)". There, you'll see all the game objects that the locomotive mesh has been split into. I've also split apart the smokebox lid and put those meshes in "LocoS282A_Body/Static_LOD0/s282a_split_smokebox_door(Clone)".
Note that I'm not modifying the prefab: I'm spawning in these items by patching the TrainCar.Start() method. If you want your code to modify or move the split meshes, you'll have to write a postfix patch for TrainCar.Start(). See the Harmony docs if you don't know how to do this. Make sure your patch loads after this mod's patch, by using the HarmonyAfter annotation:
Source code
You can find the source code here.