[DEV] UI-Mod-Loader

Discussion in 'Mod Discussions' started by iceDrop, December 22, 2013.

  1. iceDrop

    iceDrop Active Member

    Messages:
    143
    Likes Received:
    99
    Unlike most mods posted so far, this runs outside of PAMM, and currently has to, because its goal is not centered on mod functionality, but instead on supporting the new mod folder locations provided by Uber.

    This mod provides a working modinfo.json and set of directories, as well as a sample ui_mod_list.js, which is basically the minimal framework needed to migrate away from the current game-files-based mod folder location, and supports the "application data" based mod folder location instead.

    It should be installed in the 'new' mod location for your OS type (find "Mod Home" in this post), noting also that you may need to create the 'mods' directory if it does not already exist.
    https://forums.uberent.com/threads/beta-mod-changes.51520/page-2#post-835217

    Once installed, you should move (or copy, if you're tentative) the contents of your existing game-file-based mod folder, into the deeply nested mods/UI-Mod-Loader/ui/mods location. The existence of two directories named "mods" is unfortunately unavoidable in this case, at this point in time.
    Additionally, be sure to replace my sample ui_mod_list.js with yours, or you won't be happy (if you use PAMM, keep reading). But, also feel free to peek at my version of that file for some clues about what else I've tested, and some possible alternate strategies to use while generating that file (hint, hint).

    [Edit: PAMM integration unnecessary; next version of PAMM supports this]
    If you use PAMM, you are my initial target for helping figure out if this will really work for the larger community. I don't use PAMM, and have not tested it with this, but my running assumption is that you should be able to run PAMM pointing it at this new location (the deeply nested one, where my sample file is). Please let me know if there are other considerations with PAMM integration that I'm unaware of.


    As an added bonus, this new mods location should be right next to your logs folder location (it is on the mac, anyway). If you peek at the logs after loading this, you should see confirmation such as:
    Code:
    ...
    [16:38:56.398] INFO Loading mod : UI-mod-loader
    [16:38:56.398] INFO Client loaded 5 mods
    
    though in your case it will probably only list one.

    Hope this is helpful, even if it's just a starting point or reference for others.

    Edit: some typos

    Attached Files:

    Last edited: December 22, 2013
    Raevn and LavaSnake like this.
  2. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    Neat tool. It should be quite useful for switching over to the new system.
  3. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Just a heads up that the next version of PAMM has full support for this new modding system (and handles ui_mod_list.js too)
  4. iceDrop

    iceDrop Active Member

    Messages:
    143
    Likes Received:
    99
    Ok, good to hear! I guess this is mostly superceded for the majority of mod users then.

    Hopefully at least a few folks who don't (or can't) use PAMM can still get some value out of it though.
    stormingkiwi likes this.
  5. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    It may be a few days or more before the next version of PAMM is out (due to Christmas), so this is certainly helpful if people want to test out their mod under the new system.

Share This Page