Jump to content
Sign in to follow this  
adanteh

[bug report] String syntax cutRsc not compatible with bis_fnc_rscLayer

Recommended Posts

Wanted to report a bug for 1.58.135656

 

New syntax for https://community.bistudio.com/wiki/cutRscis not compatible with BIS functions. The actual problem lies in BIS_fnc_rscLayer not taking any layers used with "string" cutRsc into account. 

As an example I'll use BIS_fnc_showNotification, because it's a function a lot of people use, but this problem will happen anywhere where BIS_fnc_rscLayer is used. 

Using BIS_fnc_showNotification the following code inside it is used (Linke 91 and 92)

				("RscNotification_1" call bis_fnc_rscLayer),
				("RscNotification_2" call bis_fnc_rscLayer)

There return 6 and 7 respectively. Now in my case when I use 

testVar = "FRL_mainUI_cooldownLayer" cutRsc ["FRL_mainUI_RscCooldown", "PLAIN", 0, true];

testVar turns into 7 as well. This means that the same layer is used, where obviously it shouldn't be. In BIS_fnc_showNotification line 107

(_layers select _layerID) cutrsc ["RscNotification","plain"];

will use the layer that is already used by my custom Rsc and thus closing it and replacing it with the BIS notification instead. 

 

 

 

tl;dr: BIS_fnc_rscLayer and new syntax for cutRsc don't work together

Share this post


Link to post
Share on other sites

Thanks for the fix. It's easy to work around (Switched to usage of BIS_fnc_rscLayer instead of string syntax) everywhere for now, but made a nice command update useless. 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×