Modding Help Compatibility with scripts?

Discussion in 'Starbound Modding' started by RainbowHannah, Jul 8, 2019.

  1. RainbowHannah

    RainbowHannah Void-Bound Voyager

    I have two mods that both patch a script to a container. Mod A adds a hook to change the object's color (custom addon for the Paint Gun mod), and Mod B changes the container to keep the items inside it when it drops (Enhanced Storage). Looking through the files, there's theoretically no reason they shouldn't both work together, if I were to merge the scripts into one. However, if I keep them separate, they share the same functions (such as init()), and so one overrides the other. How should I make these two mods work together?

    EDIT: Figured it out with some help. reassigning init() and any other overlapping function before it gets overwritten, and then calling it during the original, will fix this.
     
    Last edited: Jul 8, 2019

Share This Page