RigsOfRods / rigs-of-rods

Main development repository for Rigs of Rods soft-body physics simulator
https://www.rigsofrods.org
GNU General Public License v3.0
995 stars 175 forks source link

Vehicle spawning fixes #2987

Closed ohlidalp closed 1 year ago

ohlidalp commented 1 year ago

Fixes:

ohlidalp commented 1 year ago

@tritonas00 Great, but got a new issue in master: airplanes segfault, like skyvan

Thanks for testing, and good catch! That segfault was actually introduced by this: https://github.com/RigsOfRods/rigs-of-rods/pull/2925#issuecomment-1320942624. Airplanes have a special 'spin prop' which doesn't get the mesh attached on spawn but only when the rotor reaches certain RPM.

tritonas00 commented 1 year ago

Same crash with Fica 750 also

kk

ohlidalp commented 1 year ago

@tritonas00 Same crash with Fica 750 also

Might be a bad prop with missing mesh file, anything in RoR.log?

tritonas00 commented 1 year ago

Can't tell: RoR.log

Again commenting that line (GUI_FlexbodyDebug.cpp:195) works. So it needs a check there probably.

ohlidalp commented 1 year ago

It's a missing mesh file indeed:

14:09:55: Mesh: Loading dashboard-none.mesh.
14:09:55: FileNotFoundException: Cannot locate resource dashboard-none.mesh in resource group bundle /home/babis/.rigsofrods/mods/Fica 750.zip. in ResourceGroupManager::openResource at /home/babis/Downloads/ror-dependencies/Source/ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 704)
14:09:55: [RoR] Error creating entity of mesh 'dashboard-none.mesh' (group: 'bundle /home/babis/.rigsofrods/mods/Fica 750.zip'), message: FileNotFoundException: Cannot locate resource dashboard-none.mesh in resource group bundle /home/babis/.rigsofrods/mods/Fica 750.zip. in ResourceGroupManager::openResource at /home/babis/Downloads/ror-dependencies/Source/ogre/OgreMain/src/OgreResourceGroupManager.cpp (line 704)
14:09:55: [RoR|Actor|Warning] 1965 Zastava 750 "Fića" (props): Failed to create entity: continuing without it ...

I'll patch it.