1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice

Mods load order and overwriting priority explanation.

Discussion in 'General Discussion' started by Davoda1, Sep 17, 2023.

  1. Davoda1

    Davoda1
    Expand Collapse

    Joined:
    Jun 18, 2023
    Messages:
    19
    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.
     
  2. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,492
    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.
     
  3. Davoda1

    Davoda1
    Expand Collapse

    Joined:
    Jun 18, 2023
    Messages:
    19
    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.
     
  4. stenyak

    stenyak
    Expand Collapse
    Programmer
    BeamNG Team

    Joined:
    Aug 6, 2012
    Messages:
    2,035
    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.
     
  5. Davoda1

    Davoda1
    Expand Collapse

    Joined:
    Jun 18, 2023
    Messages:
    19
    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 :)
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice