Found a bug? Post information about it here so we can fix it!
Moderator: Moderators
-
rrTea
- Posts: 383
- Joined: Sat Feb 15, 2014 9:54 am
-
Contact:
Post
by rrTea » Mon Apr 15, 2019 9:01 am
It seems strange that Variable1.T compiles, I'd expect only R/G/B/A and X/Y/Z are allowed.
Code: Select all
<?xml version="1.0" encoding="iso-8859-1" ?>
<ZApplication Name="App" Caption="ZGameEditor application" FileVersion="2">
<OnLoaded>
<ZExpression>
<Expression>
<![CDATA[Variable1.X = 1;
trace ("It doesn't exist but " + intToStr(Variable1.T) );]]>
</Expression>
</ZExpression>
</OnLoaded>
<Content>
<Variable Name="Variable1" Type="6"/>
</Content>
</ZApplication>
-
Ats
- Posts: 257
- Joined: Fri Sep 28, 2012 10:05 am
-
Contact:
Post
by Ats » Mon Apr 15, 2019 12:44 pm
That's interesting. I would expect only X and Y in your example since it's a vec2...
But almost all the letters are working, the commented ones are not:
Code: Select all
//trace ("A " + intToStr(Variable1.A) );
//trace ("B " + intToStr(Variable1.B) );
trace ("C " + intToStr(Variable1.C) );
trace ("D " + intToStr(Variable1.D) );
trace ("E " + intToStr(Variable1.E) );
trace ("F " + intToStr(Variable1.F) );
trace ("G " + intToStr(Variable1.G) );
trace ("H " + intToStr(Variable1.H) );
trace ("I " + intToStr(Variable1.I) );
trace ("J " + intToStr(Variable1.J) );
trace ("K " + intToStr(Variable1.K) );
trace ("L " + intToStr(Variable1.L) );
trace ("M " + intToStr(Variable1.M) );
trace ("N " + intToStr(Variable1.N) );
trace ("O " + intToStr(Variable1.O) );
trace ("P " + intToStr(Variable1.P) );
trace ("Q " + intToStr(Variable1.Q) );
trace ("R " + intToStr(Variable1.R) );
trace ("S " + intToStr(Variable1.S) );
trace ("T " + intToStr(Variable1.T) );
trace ("U " + intToStr(Variable1.U) );
trace ("V " + intToStr(Variable1.V) );
//trace ("W " + intToStr(Variable1.W) );
trace ("X " + intToStr(Variable1.X) );
trace ("Y " + intToStr(Variable1.Y) );
//trace ("Z " + intToStr(Variable1.Z) );
-
VilleK
- Site Admin
- Posts: 2029
- Joined: Mon Jan 15, 2007 4:50 pm
- Location: Stockholm, Sweden
-
Contact:
Post
by VilleK » Tue Apr 23, 2019 10:09 am
Indeed this should not compile

. I will stop it from working so please don't write code that relies on it working.