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
1.03k stars 178 forks source link

Actors with matching filenames don't spawn correctly #3166

Open CuriousMike56 opened 4 months ago

CuriousMike56 commented 4 months ago

If you have multiple zips containing truck files with the same filenames (common with private mods) only one will spawn correctly. image The first mod in the selector spawns OK, any duplicate filenames will fail to load all assets (meshes, materials etc): screenshot_2024-07-17_16-52-32_1

16:52:08: Ogre::ItemIdentityException::ItemIdentityException: Cannot locate a resource group called '' in ResourceGroupManager::resourceExists at C:\Users\runneradmin\.conan2\p\b\ogre30c15d995aab6a\b\OgreMain\src\OgreResourceGroupManager.cpp (line 1566)
16:52:08: [RoR|Actor|Error] (Keyword: managedmaterials) Ogre::ItemIdentityException::ItemIdentityException: Cannot locate a resource group called '' in ResourceGroupManager::resourceExists at C:\Users\runneradmin\.conan2\p\b\ogre30c15d995aab6a\b\OgreMain\src\OgreResourceGroupManager.cpp (line 1566)
16:52:08: Ogre::ItemIdentityException::ItemIdentityException: Cannot find a group named  in ResourceGroupManager::isResourceGroupInitialised at C:\Users\runneradmin\.conan2\p\b\ogre30c15d995aab6a\b\OgreMain\src\OgreResourceGroupManager.cpp (line 1772)
ohlidalp commented 3 months ago

Thanks for reporting, this doesn't surprise me, some of the spawn logic is old code that uses resource groups wrong or not at all and I didn't change it to avoid backwards compatibility regressions.

I should be able to patch it without major remake.