Hi everyone! I couldn't find anything in searches related to this question so I hope someone will be able to explain it to me how it works in BeamNG. Thank you in advance. Let's say I have a hypothetical situation. I have mod (A) that edits something in the base game files, let's say modifying the a file to an already existing vehicle. And there is mod (B) that also changes the same file. So as an example there is a mod that adds a new engine to a car and modifies a base game config with these changes; and I made an other mod that takes this and changes the dashboard to something else. What decides which mod has load priority and how to make sure to keep it that way? Is it possible to add dependencies to mods like it's possible in some mod managers or if a mod loads after some other mod in the "db.json" it won't be changed, how to make sure the order will stay as intended and so on. Thx.
It's best if neither of the mods overwrites base game files, but instead they both add new variants of existing parts. If you find any mods on the repository that overwrite official content, you should report them, it's against the repository guidelines.
I haven't found one that would edit base game files from the repo; and I understand why it's best if nothing overwrites anything, but I'm still curious if there is a defined behaviour in these cases or it's an undefined behaviour or is it possible to make mod dependencies for other mods. Thank you.
I don't recall any effort has been put into ensuring any particular ordering happens, but I may be mistaken. This would require doing a code review in all involved areas. But my guess is it's probably down to filesystem implementation details in the end.
I see; so it's not something that has a simple answer. Thank you, I still think something like this would be useful to have, but as it's not a priority and would involve quite some work it's not something to likely happen. Nevertheless thank you for the answers