Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Hotfix: only load prop mesh from own resource group. #2784

Merged
merged 1 commit into from
Aug 28, 2021

Conversation

ohlidalp
Copy link
Member

@ohlidalp ohlidalp commented Aug 28, 2021

Problem: when 2 mods (each with it's own bundle) contain mesh with the same file name, they will clash with each other. The first mod loaded will override the mesh for all others until the game is restarted. This applies to props (vehicle) and odefs (terrain).

Cause: class MeshObject was searching for the mesh name globally instead of using the mod's resource group. This is classic behavior, some mods might rely on it.

Fix: use the mod's resource group, as already done for most resources.

Mods I used for testing:
agora-meshmix1.zip
agora-meshmix2.zip

This may break props (truck) and odef meshes (terrain) for some mods, if the mesh is located in another resource bundle.
@tritonas00
Copy link
Collaborator

It fixes train valley trains also:

Master
screenshot_2021-08-28_12-20-20_1
This
screenshot_2021-08-28_12-21-01_1

@ohlidalp ohlidalp merged commit 64e7dbc into RigsOfRods:master Aug 28, 2021
@ohlidalp ohlidalp deleted the meshmix branch August 28, 2021 14:23
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants