Update Integrator For Mods

  • cyberdragon
    15th Apr 2013 Member 0 Permalink

    I just had an awsome idea...but it's very extensive and would require the creation of a mini-compiler for mods. Jacob's mod has an update feature that alows it to update...but now it doesn't work right anymore because it got to old. :(

        So I thought of this. A small compiler with no user interface (other than the normal notification/install) that would allow a modified version to use the official updates without damaging it. It would work by discretely editing files with updates instead of overwriting them. (as in down to idevidual lines) It would also add new files for new elements and such.

     

    "But what if I edited something that get's updated?"

    You probably shouldn't be editting these lines...you might break something. But with no interface then it   can't discriminate. An interface would be going to far.

     

    "Can I add an update for the mod?"

    If you ask the developers.

     

    "Will it take a long time to update?"

    Yes...but your mod won't be broken by updates....either way you put that.

     

    "What if a whole file changes?"

    You're screwed!

  • jacob1
    15th Apr 2013 Developer 0 Permalink
    all I read was that you said my mod's updater didn't work, but yes, it still does. One version of it (I can't remember which one) has broken updates, but anything recent within a few months will update.
  • tommig
    15th Apr 2013 Member 0 Permalink

    That would be fantastic for people with old mod they've given up on (like me) because the mod remains relavent!

  • cyberdragon
    15th Apr 2013 Member 0 Permalink

    Jacob....I think mines is broken. Why do I gotta get the broken one? I'll see if there are any newer ones.

     

    EDIT: That's better. (deletes old one)

  • boxmein
    22nd Apr 2013 Former Staff 0 Permalink
    The only problem with that is similar to what happens to git merges - programs can't know for sure which code is old and removed and which code is yours and added.
    Given an old file that contains
    This file contains 205 elements, with modded BEER and BARF
    which you edited to
    This file contains 1337 elements, with modded SHE, TURNED, ME, INTO, A, NEWT, BEER and BARF
    but the "new" official file contains
    This file contains 204 elements, with modded I, GOT, BETTER! and BARF
    What to add, lose? Users themselves can only understand that....
    Just simply adding the modified file and newest together will not work as easily... Considering some mods have changed default functionality a lot, and defining something twice with two different outcomes would break a lot of things.
    Mod updating however could be adapted to with releasing a sort of 'build server' tool for web hosts (to get their mods to ask for new versions there) and letting the game choose its build server via a configuration entry.
  • cyberdragon
    23rd Apr 2013 Member 0 Permalink

    Like I said...it would only add information, but overwrite when absolutely neccessary. For example, in your example above, "I", "GOT", and "BETTER!" would be added, and BARF would get overwritten. But the other files would be undisterbed. For the files that include new elements, it would disassemble them and add/change only lines it was programmed to, others would be left alone. Yes, I realize this would require a simple A.I. that would eat old computers...but...oh well.