Solved variables for colordiffuse broken in Nexus 20.1?
#1
Is anyone else seeing issues with the colordiffuse tag on their textures using a variable in Nexus 20.1?

All of a sudden this doesn't work:

xml:
<control type="image">
   <texture colordiffuse="$VAR[Home_Artwork_Diffuse]">texture</texture>
</control>

<variable name="Home_Artwork_Diffuse">
  <value>ff808080</value>
</variable>

But this does:

xml:
<control type="image">
   <texture colordiffuse="ff808080">texture</texture>
</control>

Just wanted to check it's not just me before flagging it
Reply
#2
Have you tried moving the colordiffuse out of the texture tag:-

xml:
<control type="image">
  <colordiffuse>$VAR[Home_Artwork_Diffuse]</colordiffuse>
  <texture>texture</texture>
</control>
Reply
#3
Hi @roidy same difference for me. Works if it's a hardcoded value, but breaks if its a variable, even if the variable has no conditionals in it. Is it working for you in 20.1? I've seen this behaviour in Windows and Android versions
Reply
#4
@realcopacetic Just tested 20.1 under Windows and both:-

Code:
<colordiffuse>$VAR[mycolor]</colordiffuse>
and 
Code:
<texture colordiffuse="$VAR[mycolor]">texture.png</texture>

Work fine.

Tested using:-
Build 20.1 (20.1.0)
Git 20230312-289ec664e3
Compiled 2023-03-12
Reply
#5
Thanks so sorry for wasting your time @roidy - I somehow managed to introduce a typo into an XML I wasn't actively editing just at the time I updated to 20.1. Apologies!
Reply
#6
@realcopacetic No worries, typos always get me too  Big Grin Glad you fixed it.
Reply

Logout Mark Read Team Forum Stats Members Help
variables for colordiffuse broken in Nexus 20.1?0