[OBSOLETE][Server] Icon Reloader 2.0.0 [94684]

Discussion in 'Released Mods' started by wondible, November 12, 2015.

  1. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Obsolete to allow for dependency migration.

    Formally: Provides limited support for shadowed strategic icons in server mods.

    - https://github.com/JustinLove/icon_reloader
    - http://wondible.com/pa/icon_reloader_v2.0.0.zip
    - Last functional: http://wondible.com/pa/icon_reloader_v1.4.2.zip
    - PAMM

    Changes

    ## 2.0.0 for > 89755

    This mod is obsolete and should be removed from mod dependencies. This is a stub release to keep current dependents working.

    If you were using Hodgepodge, v2.0.0 handles strategic icons internally. If not, icon mods are now trivial (see below)

    ## 1.4.2

    - Increase activation timeout to favor blip errors over no-icon errors.

    ## 1.4.1

    - Extend time between changing icons and freezing atlas, we should have at least five seconds before landing.

    ## 1.4.0

    - Icon aliasing allows fallback to vanilla icon if a slot is unavailable.

    Transition

    If you were using Icon Reloader with Hodgepodge, v2.0.0 handles icons internally, and you may simply remove the Icon Reloader dependency.

    If not, icon mods are now trivial:

    modinfo.json:

    "scenes": {
    "icon_atlas": [
    "coui://ui/mods/myawesomemod/icon_atlas.js"
    ]
    },

    Your `icon_atlas.js`

    model.strategicIcons.push(
    'icon1',
    'icon2',
    'icon3')

    Technical Notes

    - The maximum number of strategic icons is 315 or 158 depending on the system.
    - When a unit first appears, it looks up it's SI by name, and then is assigned that INDEX (or maybe texture offset) into the icon table (at least insofar as blip/not)
    - The name-to-slot mapping in the game engine is larger than the icon list (e.g. the slot-to-name mapping) Previously sent icons will remember thir slot number, which is what allows aliasing. (This one may last between games.)
    Last edited: June 7, 2016
  2. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Icon Reloader 1.1.0 - Supports allocating unused icons to new ids
  3. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
  4. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    I only really tested communication on the interactive console. Avoid programatic message speeds (which can include even that one second time out when under load) until the next update.
  5. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Icon Reloader 1.2.0

    - A delay before freeze is now enforced in the mod, to ensure that it happens relative to message receipt, and that the page has time to refresh before the game stops using updates
    - Fix typo in atlas message, and rewrite portions to preserve ordered messages during async page lookups
  6. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Future Work: I did a proof of concept for mapping multiple icon ids to one atlas slot and it worked. So for people without a client mod you could map units back to the nearest vanilla icon. Figuring out the interface for that and how to switch is a project for later.

    Essentially when you send a slot->name mapping, the game seems to invert it into some sort of name->slot map. When you update the icon list, the changes are merged into that map, leaving previous values.
  7. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Icon Reloader 1.3.0

    - Hook for Icon Extensions mod
    - Leave `deep_space_radar` as used in classic mode
    - Confirm the duplicate `commander` before using it
    - Change priority to ensure it's loaded for other mods
    - Reflect on image status to ensure load before freeze
    mwreynolds and proeleert like this.
  8. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Icon Reloader 1.4.0 - Icon aliasing allows fallback to vanilla icon if a slot is unavailable.
  9. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Icon Reloader 1.4.1 - Extend time between changing icons and freezing atlas, we should have at least five seconds before landing.
    killerkiwijuice likes this.
  10. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Icon Reloader 1.4.2 - Increase activation timeout to favor blip errors over no-icon errors.
    proeleert and Quitch like this.
  11. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Icon Reloader 2.0.0 (previously special published to Community Mods)

    This mod is obsolete and should be removed from mod dependencies. This is a stub release to keep current dependents working.

    If you were using Hodgepodge, v2.0.0 handles strategic icons internally. If not, icon mods are now trivial (see readme or OP)
  12. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    Finally disabled now that it's no longer a dependency of The Swarm.

Share This Page