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

Fixed mods not loading from `app_extra_mod_path` #3161

Closed ohlidalp closed 4 months ago

ohlidalp commented 4 months ago

Fixes #3149

Problem was caused by myself in 74ed1083cb9e53e38096ec96b6a7b1f0b237ce01 - apart from fixing the bug, I also made a cosmetic edit of resource group names - Instead of it being 'bundle $FULLPATH', I made it '{bundle $LOCALPATH}'. But I botched the code, causing exception "invalid string position" to be thrown.

Solution: keep pretifying the resource group names, but account for all locations. I added a location-label to the name to avoid RG name clashes.

RoRAustin commented 4 months ago

Able to successfully load into a terrain and vehicles from extramodpath now. 👍