XCOM 2
SwappImg
65 kommentarer
Zyxpsilon  [ophavsmand] 3. sep. 2020 kl. 7:49 
@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 2. sep. 2020 kl. 23:53 
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  [ophavsmand] 2. sep. 2020 kl. 15:55 
Still the same answer here -- this doesn't change any Plating images.
Zyxpsilon  [ophavsmand] 30. juni 2020 kl. 6:22 
Small repair to the LOG flow.
Zyxpsilon  [ophavsmand] 5. maj 2019 kl. 9:12 
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 5. maj 2019 kl. 6:55 
@Zyxpsilon
This mod does a lot of log spam, could you please disable logs being enabled by default?
Zyxpsilon  [ophavsmand] 9. okt. 2018 kl. 17:34 
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  [ophavsmand] 20. sep. 2017 kl. 11:16 
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  [ophavsmand] 20. sep. 2017 kl. 11:12 
@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 20. sep. 2017 kl. 9:57 
@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 20. sep. 2017 kl. 7:08 
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 18. sep. 2017 kl. 14:13 
@3D Master:
Nope. Binary search [www.mwmythicmods.com]. Link is for Morrowind, principle applies to any game you play with mods.
3D Master 18. sep. 2017 kl. 13:42 
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  [ophavsmand] 18. sep. 2017 kl. 13:11 
Duh-- it took me just 10 seconds to find that "Troubleshooting Mods" guide by Mythrell; https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=683218526
Zyxpsilon  [ophavsmand] 18. sep. 2017 kl. 13:09 
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 18. sep. 2017 kl. 12:38 
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 18. sep. 2017 kl. 6:18 
Great. Do this. Thanks
Zyxpsilon  [ophavsmand] 18. sep. 2017 kl. 6:15 
Good to know.. i should contact him directly at Discord to discuss some "repair attempts" -- thank you.
p6kocka 17. sep. 2017 kl. 21:36 
Musashis stealth overhaul or 2 his stealth mods
Zyxpsilon  [ophavsmand] 17. sep. 2017 kl. 17:53 
Do you know which mod precisely??
p6kocka 17. sep. 2017 kl. 14:13 
OK. It was another mod
p6kocka 17. sep. 2017 kl. 12:02 
Is it possible to mod it or edit it? Simply to disable it?
Zyxpsilon  [ophavsmand] 17. sep. 2017 kl. 12:00 
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 17. sep. 2017 kl. 11:46 
This [pasteboard.co]
p6kocka 17. sep. 2017 kl. 11:40 
There is a icon when you are concealed on top of the screen in the middle . And this dissappeares when cjhanging soldiers...
Zyxpsilon  [ophavsmand] 17. sep. 2017 kl. 11:36 
Although it could be indicative of a slowly "failing" Graphics Card or other setting options for Graphics in the usual Menu.
Zyxpsilon  [ophavsmand] 17. sep. 2017 kl. 11:34 
@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 17. sep. 2017 kl. 11:20 
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 16. sep. 2017 kl. 13:48 
So far so good. No crashes yet, I think whatever you did did actually ifx it :D. Nice work.
ShunBrokuSatsu 16. sep. 2017 kl. 12:16 
@Zyxpslison That's greate :). Im going to make a backup of my save and give this a try. I'll let you know.
Zyxpsilon  [ophavsmand] 16. sep. 2017 kl. 7:53 
@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 16. sep. 2017 kl. 4:08 
@JM001 I would but I have a lot, I do have gotchaAgain but I don't think that one is the problem.
ShunBrokuSatsu 14. sep. 2017 kl. 21:45 
@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  [ophavsmand] 14. sep. 2017 kl. 16:56 
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 14. sep. 2017 kl. 16:27 
@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  [ophavsmand] 14. sep. 2017 kl. 16:09 
@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 14. sep. 2017 kl. 13:53 
@JM001 I have the same problem, it's unplayable.
ShunBrokuSatsu 14. sep. 2017 kl. 13:53 
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  [ophavsmand] 13. sep. 2017 kl. 21:54 
@Jeremy.. Glad i could be of reasonable help -- it's part of the Modders' "Job/Task", IMHO.
Jeremy 13. sep. 2017 kl. 20:00 
: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  [ophavsmand] 13. sep. 2017 kl. 17:46 
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 13. sep. 2017 kl. 16:17 
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  [ophavsmand] 13. sep. 2017 kl. 11:19 
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 13. sep. 2017 kl. 11:03 
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 13. sep. 2017 kl. 10:54 
Thank you so much! Sorry for bothering you by the way. I'll do that right away! Love your mods!
Zyxpsilon  [ophavsmand] 13. sep. 2017 kl. 10:53 
@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 13. sep. 2017 kl. 10:41 
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 12. sep. 2017 kl. 12:50 
I don't know coding, but this sounds amazing.
Zyxpsilon  [ophavsmand] 7. sep. 2017 kl. 19:52 
It will also be required for a number of WotC related updates i'll be doing over the coming weeks.
Zyxpsilon  [ophavsmand] 1. feb. 2017 kl. 20:30 
Essential tool for the newest "qUIck_LW2" mod.