Obelixdk Posted May 30, 2016 Share Posted May 30, 2016 (edited) I've been trying to see if there was a way to get past the 12 loop limit in a screenlistener to make my mod able to support more icons, and was thinking perhaps something like a dynamic screenlistener would be possible From what I can understand after talking with Zyx there is only so many if -- then commands it can support Was thinking something perhaps it would be possible for the script to see the DLCName="whatever" in the XComContent.ini and use the name put in to adjust the actual UISL Don't know if any of this makes sense though, but any help would be greatly appreciated Edited May 30, 2016 by Obelixdk Link to comment Share on other sites More sharing options...
Deleted32045420User Posted May 30, 2016 Share Posted May 30, 2016 Loop limit? Link to comment Share on other sites More sharing options...
Obelixdk Posted May 30, 2016 Author Share Posted May 30, 2016 (edited) Yes.. I think that's what Zyx called it when we talked about why I got an error in the build after the 12th icon. I can only have 12 if --then commands in the UISL, and if I try and put more in it is says limit exceeded, meaning I can only support up to 12 different flair icons I am still very new to all this stuff so I might have the terminology wrong :) Edited May 30, 2016 by Obelixdk Link to comment Share on other sites More sharing options...
Deleted32045420User Posted May 30, 2016 Share Posted May 30, 2016 (edited) Try switch case maybe? It might trigger the 12 limit bug but it won't hurt to try. I'd not just having an outside function you call (let's say from a dummy ui screen) with an event trigger (or just calling the function regularly) should work. Edited May 30, 2016 by Guest Link to comment Share on other sites More sharing options...
Obelixdk Posted May 30, 2016 Author Share Posted May 30, 2016 (edited) What do you mean switch case? Sorry for being dense:/ The mod I am talking about is this one http://www.nexusmods.com/xcom2/mods/577/? Edited May 30, 2016 by Obelixdk Link to comment Share on other sites More sharing options...
Deleted32045420User Posted May 30, 2016 Share Posted May 30, 2016 https://wiki.beyondunreal.com/Switch_statement Link to comment Share on other sites More sharing options...
Obelixdk Posted May 30, 2016 Author Share Posted May 30, 2016 ok thanx for that link, ill see if i can figure this out with the case instead of if :) Link to comment Share on other sites More sharing options...
Zyxpsilon Posted May 30, 2016 Share Posted May 30, 2016 I've already mentionned the "Case" tricks to you ObelixDK, btw. ;) The loop troubles are similar to some Array declaration of stack limits also. Yet, every unique codes have different perspectives on whichever demands for various instructions while specific workaround solutions (such as the embedded Case dispatch calls) can always stand in place of strict situations. Basic programming is a low-level assembly of particular components. Once you find what is (or should be) most optimal, it's only a matter of proper structure where functions interact with variables & constants along arrays and/or conditional elements. If-Then-Else is the elephant in the room in most hooking choices we must make. Link to comment Share on other sites More sharing options...
Recommended Posts