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.)
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.
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
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.
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
Icon Reloader 1.4.1 - Extend time between changing icons and freezing atlas, we should have at least five seconds before landing.
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)