XCOM 2
SwappImg
65 Comments
Zyxpsilon  [author] Sep 3, 2020 @ 7:49am 
@superman81906 --- Sure.. the basic trick would be to create a valid UPK library that has the correctly formatted GFX resource(s) & then to define the wanted assets in the "Extension" file. Finally, assemble and compile the necessary local MOD from SDK (Buddy).
superman81906 Sep 2, 2020 @ 11:53pm 
Can I use this for LW, and if I follow the steps in your instructions can I change an xcom2 official armor image into an image of mine in another file?
Zyxpsilon  [author] Sep 2, 2020 @ 3:55pm 
Still the same answer here -- this doesn't change any Plating images.
Zyxpsilon  [author] Jun 30, 2020 @ 6:22am 
Small repair to the LOG flow.
Zyxpsilon  [author] May 5, 2019 @ 9:12am 
I know.. it's one of those things "InfectedM" insisted on having extensive direct feedback steps. Sadly, i can't touch the Mod code anymore since my SDK (early version) was fucked up by WoTC updates.
Sorry.
Iridar May 5, 2019 @ 6:55am 
@Zyxpsilon
This mod does a lot of log spam, could you please disable logs being enabled by default?
Zyxpsilon  [author] Oct 9, 2018 @ 5:34pm 
It doesn't require an update.. since the needed Extension(s) are dealing with WotC factors if the output scope hooks to it. Indirectly, TLP is oblivious to any changes as long as its custom (via SwappIMG base) UI-Listeners are made with WotC components in mind.
Zyxpsilon  [author] Sep 20, 2017 @ 11:16am 
And another theory.. if you are using Neonin Ranks Symbols.. he embedded it into his mod directly. Which would indeed, create a terrible conflict. Technically -- the WotC XPack changed how code objects get cleared up from the DataFeed & we needed to adjust the simulated function to account for that extra instruction set.
Maybe Neonin (or anyone else.. trying to create custom extensions) didn"t fix their own base code.
Zyxpsilon  [author] Sep 20, 2017 @ 11:12am 
@3D Master.. the real question here is == Do you really need SwappIMG & if so.. why exactly? I can only see ONE reason ... having access to the (WC_)qUIck_RCP images.
Dragon32 Sep 20, 2017 @ 9:57am 
@3D Master:
Guess I don't get it then. Ensure you always keep this mod enabled then disable half. Does it crash? If no then problem mod is in the disabled half.
Unless you're saying that this mod conflicts with two or more unknown mods, causing the crash. But only in combination.
In which case I don't see how disabling mods one by one would help, as you wouldn't be able to test for that combination of mods which causes a crash.
Or maybe I'm just being thick.
3D Master Sep 20, 2017 @ 7:08am 
That only works always if 1 mod is the problem, if there's more than one that has an interaction that causes the problem, you could get a result that niether set triggers the problem; you're now right back square one.
Dragon32 Sep 18, 2017 @ 2:13pm 
@3D Master:
Nope. Binary search [www.mwmythicmods.com]. Link is for Morrowind, principle applies to any game you play with mods.
3D Master Sep 18, 2017 @ 1:42pm 
How many mods is a factor; because the only way to find out which mod, is to turn off all the mods, except this one, and then activate one other, see if it works, or crashes, and then the next mod, and go down the list. The more mods, the longer it takes to go down the list.
Zyxpsilon  [author] Sep 18, 2017 @ 1:11pm 
Duh-- it took me just 10 seconds to find that "Troubleshooting Mods" guide by Mythrell; https://steamcommunity.com/sharedfiles/filedetails/?id=683218526
Zyxpsilon  [author] Sep 18, 2017 @ 1:09pm 
First.. this ISN'T a mod that anyone should play with or install for a very specific reason; as a necessary tool that allow dispatch of custom images from other mods.
Namely my own (WC_)qUIck_RCP which provides colored Ranks & Classes Icons and other HUD assets.

It's also not really about how *many* Mods are installed but rather which.. precisely.

Secondly.. there's no way for me to detect what happens on your PC and under what conditions. If there is a conflict somewhere -- i doubt "SwappIMG" would be the direct cause, alone!

Thirdly.. it is well known that a number of tricks can solve some (if not most) problems in your case & more. Mythrell created a special guide that suggest such many steps. I don't have the LINK handy -- it should be easy to find anyway in the Steam Guides tab for Xcom2.

Lastly -- important enough detail; your crashes happen with XCom2 or WotC??
3D Master Sep 18, 2017 @ 12:38pm 
This mod crashes my game. If it is in combination with another mod, I have no idea which, with the number of mods I have installed it would take ages to figure out.
p6kocka Sep 18, 2017 @ 6:18am 
Great. Do this. Thanks
Zyxpsilon  [author] Sep 18, 2017 @ 6:15am 
Good to know.. i should contact him directly at Discord to discuss some "repair attempts" -- thank you.
p6kocka Sep 17, 2017 @ 9:36pm 
Musashis stealth overhaul or 2 his stealth mods
Zyxpsilon  [author] Sep 17, 2017 @ 5:53pm 
Do you know which mod precisely??
p6kocka Sep 17, 2017 @ 2:13pm 
OK. It was another mod
p6kocka Sep 17, 2017 @ 12:02pm 
Is it possible to mod it or edit it? Simply to disable it?
Zyxpsilon  [author] Sep 17, 2017 @ 12:00pm 
Oh.. yes -- that one! I've read about this weird flaw at CX community, but nobody could risk an explanation as we just don't know (yet) which specific MOD(s) have an impact on that precise UI location. Some day.. someone will figure this out probably.
p6kocka Sep 17, 2017 @ 11:46am 
This [pasteboard.co]
p6kocka Sep 17, 2017 @ 11:40am 
There is a icon when you are concealed on top of the screen in the middle . And this dissappeares when cjhanging soldiers...
Zyxpsilon  [author] Sep 17, 2017 @ 11:36am 
Although it could be indicative of a slowly "failing" Graphics Card or other setting options for Graphics in the usual Menu.
Zyxpsilon  [author] Sep 17, 2017 @ 11:34am 
@p6kocka.. hard for me to tell without some snapshot of that "Assassin Head Icon" when normal on the Tactical HUD. But.. ultimately, i doubt --WC_qUIck_RCP/SwappIMG-- combo would be responsible for such UI behavior since nothing in it touches the "Chosen" GFX systems.
p6kocka Sep 17, 2017 @ 11:20am 
Can this issue be related to your mod? The concealment icon up on the screen (This assassin head icon when concealed) flickers short after selecting next unit and then dissappears... I didn´t have this before.
ShunBrokuSatsu Sep 16, 2017 @ 1:48pm 
So far so good. No crashes yet, I think whatever you did did actually ifx it :D. Nice work.
ShunBrokuSatsu Sep 16, 2017 @ 12:16pm 
@Zyxpslison That's greate :). Im going to make a backup of my save and give this a try. I'll let you know.
Zyxpsilon  [author] Sep 16, 2017 @ 7:53am 
@Destro & @JM001 (etc)... Whatever "conflict(s)" happened recently should now be solved since i've fused WC_qUIck_RCP with FIX(es) to prevent SwappIMG from getting stuck in its "Web/Helper(s) + ERLInterrupt looping" cycle.

Problem solved! :)
Destro Sep 16, 2017 @ 4:08am 
@JM001 I would but I have a lot, I do have gotchaAgain but I don't think that one is the problem.
ShunBrokuSatsu Sep 14, 2017 @ 9:45pm 
@Zyxpsilon yeah I kind of figured. There is defintely a mod conflict somewhere and at this point I am willing to bet that it is indeed gotcha that is conflicting but I can't be 100% certain. I'd have to compare my mod list with someone else that has the same problems I do.
Zyxpsilon  [author] Sep 14, 2017 @ 4:56pm 
Ok.. just ran a few solid Debug steps against this & other Mods that might have been involved in such weird crashes & i can confirm at 99.99% -- they all worked fine and as predicted without any flaws.

Sooooo.. there is definitely another type of "Loaded" Mod(s) conditions (I've seen "GotchaAgain" crashing a few times already, btw). At this point, most modders (including me) are leaning towards a direct bug in the Map Initialization process under some defective UC_Scripts by WotC Vanilla. We can only wait & see if the upcoming Patch would repair such situations.

Sorry.. but the blame isn't on me -- at all.
ShunBrokuSatsu Sep 14, 2017 @ 4:27pm 
@Destro coudl you send me a list of your mods? I'll compare to mine to see if we have any overalpping mods which we can try to narrow it down to. I am pretty sure it isn'tt his mod that is causing the probelm and indeed a mod conflict.

To be honest I almost want to say it's conflicting with Gotcha Again but then again I have crashed on the strategic layer with this active as well so I couldn't say.
Zyxpsilon  [author] Sep 14, 2017 @ 4:09pm 
@JM001 + @Destro.. i'll look into it -- thanks for reporting.
But as far as i could test recently.. SwappIMG & WC_qUIck_RCP are **NOT** responsible for such "crashing" conditions.
I'm also 100% certain WC_GeoscApps isn't either.
Destro Sep 14, 2017 @ 1:53pm 
@JM001 I have the same problem, it's unplayable.
ShunBrokuSatsu Sep 14, 2017 @ 1:53pm 
If I try to run this with WC _qUIck_RCP and WC_GeoscApps I get constant crashes. Mostly I get crashes when tying to move a unit. I have uninstalled this and that has fixed the problem. Actually there is one exception and is a VERY specific case. It is with the mission type where you have to rescue a resistance VIP and 2 other escorts on the map. If you move to one of the escorts and get control of them, once you move them the game crashes. On top of that it only happens with the first escort. The second escort is just fine. This happens EVERY time I get that mission type and is reproduceable which has me thinking it is a mod conflict but I couldn't even begin to tell you which one it would be.
Zyxpsilon  [author] Sep 13, 2017 @ 9:54pm 
@Jeremy.. Glad i could be of reasonable help -- it's part of the Modders' "Job/Task", IMHO.
Jeremy Sep 13, 2017 @ 8:00pm 
:steamhappy: Thank you so much! I saw the 'sample only' and figured if I customized the img:/// paths that would be enough, but I'm glad you mentioned the class name, I got half way through your sentence and face-palmed.
I had no idea that was what `XEVENTMGR did - lol.
It's working now, thanks again!
Zyxpsilon  [author] Sep 13, 2017 @ 5:46pm 
NOTE: There's a comment above in that __Extension file ... //This is a sample only!!

But i can help here.. WotC introduced a secondary object instruction that MUST be written up in a subsequent function like this...

-----
simulated function EventListenerReturn ApplyImageOverrides(Object EventData, Object EventSource, XComGameState GameState, Name EventID, object CallbackData )
-----

Secondly.. the Class name must have a distinct ID by convention to prevent conflict(s) with other extensions provided by different other mods.. mine, yours or anyone else's;

SwappImg(...)_UIScreenListener_Extension

PS; `XEVENTMGR... line is a Log reference only and has no impact on the generic functionality.
Jeremy Sep 13, 2017 @ 4:17pm 
I imported the SwappImg_UIScreenListener_Extension.uc file into my Classes folder and modified the Helper.Path = Repl() line so that the paths are correct - double checked - but I'm getting an error when I try to build: SwappImg_UIScreenListener_Extension.uc(12) : Error, 'ApplyImageOverrides' mismatches delegate 'OnEventDelegate'
That is this line: `XEVENTMGR.RegisterForEvent(ThisObj, 'ProcessImageOverrides', ApplyImageOverrides);
Is this compatible with WOTC? Or am I doing something wrong? I even tried copying over the base .uc file and enabling the override in the Engine.ini, but I didn't get a different result.
Zyxpsilon  [author] Sep 13, 2017 @ 11:19am 
SwappIMG needs to be installed once only (you certainly should have it active since the WC_qUIck_RCP is what produces the Rank Icons).
WC_GeoscApps doesn't require SwappIMG.
Unktray Sep 13, 2017 @ 11:03am 
Whelp, seems to work fine now as I disabled this mod/tool (SwappIMG) and restored my "Config" folder. Both WC_qUIck_RCP and WC_GeoscApps seem to work fine, but now I'm missing the color-coded rank icons for my troops... Could it have to do with this said mod being disabled or?
Unktray Sep 13, 2017 @ 10:54am 
Thank you so much! Sorry for bothering you by the way. I'll do that right away! Love your mods!
Zyxpsilon  [author] Sep 13, 2017 @ 10:53am 
@Unktray.. this looks very much like a corrupt Config folder in "MyDocuments\MyGames\...". The only way to re-set these is to delete the INI files in that folder & restart the game twice.. so that the Engine can reorganize everything according to your active MODs.

SwappIMG is just a tool to allocate the "swapping" of Images called by other mods -- like RCP, FIX, etc.
Unktray Sep 13, 2017 @ 10:41am 
Sorry for the stupid question, but how do I remove this mod? It seems that my weapons (modded) disappeared and all my saves are with soldiers having no weapons at all, shooting nothing at the enemy. I was under the impression that I needed this mod to have geoscape icons & those sweet soldier icons. Anyway, I tried unchecking this (and your two other mods) in Mod Launcher, then I unsuscribed. But the new icons & geoscape are still unchanged for some reason.
Insufferable Smartypants Sep 12, 2017 @ 12:50pm 
I don't know coding, but this sounds amazing.
Zyxpsilon  [author] Sep 7, 2017 @ 7:52pm 
It will also be required for a number of WotC related updates i'll be doing over the coming weeks.
Zyxpsilon  [author] Feb 1, 2017 @ 8:30pm 
Essential tool for the newest "qUIck_LW2" mod.