Train skeletal mesh replacement breaks derailment and coupling

This is a very odd one. I'm using an SCS hook to add a component to trains that simply changes the skeletal mesh the skeletal mesh component (M Mesh) on the locomotive to a custom one. The custom skeletal mesh has the exact same setup as the original (as far as I can tell), other than one additional material, and a slightly modified mesh. It also uses the exact same skeleton as the original (not newly imported, it actually points towards the original skeleton) Animations and all that work fine, but when a new locomotive is placed, no new freight cars can be coupled, and train derailments (the locomotives just stop dead) I'm currently under the assumption it's something to do with how the skeletal mesh is used by coupling and derailments in the original locomotive BP, but that's pretty much all I have right now. The train BP is mostly C++, which I'm not too familiar with, so if someone here knows how the code for trains works, your help would be highly appreciated.
Solution:
I see it in the files, but not in the project. It might be there in a full dump though
No description
Jump to solution
20 Replies
Rex
Rex5w ago
If you swap the mesh back to the original one after X seconds, can you couple freight cars again?
The Urban Goose
The Urban GooseOP5w ago
Good idea, I'll try that
D4rk
D4rk5w ago
Idk about the coupling, but the derailment issue might have something to do with the physics asset. Does it show up in your new skeletal mesh asset, because it seems to be missing from the project.
The Urban Goose
The Urban GooseOP5w ago
That might be it then I assumed it needed to have one, but there wasn't one in the project
Rex
Rex5w ago
Oh, physics asset. You might need to make a placeholder
Solution
D4rk
D4rk5w ago
I see it in the files, but not in the project. It might be there in a full dump though
No description
Rex
Rex5w ago
I don't think the Asset Dumper can do physics assets
The Urban Goose
The Urban GooseOP5w ago
I'll try making a placeholder and generating one
D4rk
D4rk5w ago
It probably needs that to do its crash thing
The Urban Goose
The Urban GooseOP5w ago
Worth a try 100% Actually no need to generate one I'll make the placeholder, and point to it
Rex
Rex5w ago
You don't need the full asset if you can just reference it, yes
The Urban Goose
The Urban GooseOP5w ago
Completely forgot about the physics asset in Fmodel
Rex
Rex5w ago
I've been able to reference a base game Wwise AkEvent by making an empty asset with the right name in the right path
The Urban Goose
The Urban GooseOP5w ago
I just imported the glb for the locomotive again, which auto generated a physics asset. Then I just named it the right thing and put it in the right place, since the placeholders don't get touched anyway Let's see if this works no lol Oh wait, Fmodel was still open
Rex
Rex5w ago
Yeah, FModel is annoying and loads mod files :REEEE:
The Urban Goose
The Urban GooseOP5w ago
(left some debug code in, removed it, testing now) Yeah, that was it Good to know that now 100% of the files are in the placeholders Thanks for both of your help
D4rk
D4rk5w ago
Did that fix the coupling issue as well?
The Urban Goose
The Urban GooseOP5w ago
Yep I'm assuming the coupling uses the physics asset to find the bounding box of the train
D4rk
D4rk5w ago
cool, i thought that might be a missing socket problem, but glad it's fixed. 👍
The Urban Goose
The Urban GooseOP5w ago
Coupling worked fine on trains that existed before, but when I tried attaching stuff to the locomotive, the freight car hologram just passed straight through So it must be figuring out where on the rail it can place the trains using the physics asset
Want results from more Discord servers?
Add your server