Modding Help Replace String from another mod.

Discussion in 'Starbound Modding' started by Leutech, Mar 31, 2019.

  1. Leutech

    Leutech Big Damn Hero

    Greetings guys my question is, how i can replace a string from another mod so

    So let me notice.

    I have mod 1 (My Mod) and the mod 2 (the other mod).
    I want to have both mods active and in mod 2 is a string that i would have to replaced by mod 1.
    How i can do this?
     
  2. projectmayhem

    projectmayhem Spaceman Spiff

    with a patch, and set your mod to require the other mod, so the other mod loads first, or set your mods priority to 99 so it loads last
     
  3. Leutech

    Leutech Big Damn Hero

    Ok?

    If i understand, if the mod 2 have an item or object what else and in this is such like this, we named it test.item:

    Mod 2 | mod/items/generic/testing/test.item
    {
    .....
    "description" : ".....",
    "shortdescription" : "...."
    ....
    }

    And i have to do in my mod like this:

    Mod 1 | mymod/items/generic/testing/test.item.patch
    [
    {
    "op": "replace", "path": "/description", "value": "my string"
    },
    {
    "op": "replace", "path": "/shortdescription", "value": "my string"
    }
    ]

    And in mymod.modinfo or _metadata or .metadata i have to write

    {
    ...
    "required" : [ "Mod 2" ],
    ...
    }

    And then i have a replaced string in mod 2 with my string or?
     
  4. projectmayhem

    projectmayhem Spaceman Spiff

    yup, that should do it.

    im not sure if the tag is required or requires though
     
  5. Leutech

    Leutech Big Damn Hero

    ok and another question how its handled with the _metadata file from the mod 2 how i can add an feature such like "include" or "required" or "priority"?
     
  6. Nexus Of Chaos

    Nexus Of Chaos Parsec Taste Tester

    none of those r needed for mod 2. the required tag forces mod 1 to load after mod 2 no matter the priority. basically mod 2 has priority N and mod 1 has priority N+1
     
    projectmayhem likes this.
  7. Leutech

    Leutech Big Damn Hero

    ok but this is not that i mean directly im going further. I have now 3 mods, mod 1 (my mod have replacing things for mod 2), mod 2 (then other mod with the thing that is replaced by mod 1), mod 3 (have things that replaced from mod2)

    So if i start starbound with these mods, the mod 2 is loading before mod 3 and mod 1, and mod 1 is loading before mod 3.
    So now i would like to have these loading order:
    1. mod 3
    2. mod 2
    3. mod 1
    And the mod 1 have the replace things for mod 2 and mod 2 have replace things for mod 3
    How i can handle this?

    If that's too complicated for you, I'll make it easier for you.

    And a little information about that, i can't edit mod 3!
     
    Last edited by a moderator: Apr 1, 2019
  8. Nexus Of Chaos

    Nexus Of Chaos Parsec Taste Tester

    same way u did 1 replace 2
     
    projectmayhem likes this.

Share This Page