XML talk:BINA/OBJC/TRGV: Difference between revisions
(ok, the TRGV string bug is clear now, but how is the DOOR texture bug a similar issue?) |
Paradox-01 (talk | contribs) mNo edit summary |
||
Line 6: | Line 6: | ||
Can someone describe the bug in more detail so I can take a look? --[[User:Geyser|geyser]] ([[User talk:Geyser|talk]]) 14:39, 14 May 2020 (CEST) | Can someone describe the bug in more detail so I can take a look? --[[User:Geyser|geyser]] ([[User talk:Geyser|talk]]) 14:39, 14 May 2020 (CEST) | ||
:Oh, OK, silly me, I should have read the TRGV page to learn about the string comparison bug. However, I don't understand how the TRGV string comparison is related to DOOR textures (DOOR textures are a permanent level setting, nothing to do with BSL - right?) --[[User:Geyser|geyser]] ([[User talk:Geyser|talk]]) 16:20, 14 May 2020 (CEST) | :Oh, OK, silly me, I should have read the TRGV page to learn about the string comparison bug. However, I don't understand how the TRGV string comparison is related to DOOR textures (DOOR textures are a permanent level setting, nothing to do with BSL - right?) --[[User:Geyser|geyser]] ([[User talk:Geyser|talk]]) 16:20, 14 May 2020 (CEST) | ||
This is what s10k wrote: https://wiki.oni2.net/w/index.php?title=XML%3ABINA%2FOBJC%2FTRGV&type=revision&diff=26530&oldid=26524 | |||
Basically "String" eq "String" returns false when one expression is delivered by TV and one expression delivered from a 'native' BSL variable. | |||
Maybe the comparison fails because at some side (left or right) the string is made toUpper. We have seen a similar bug when the engine reads texture names. | |||
So the idea is that "STRING" eq "STRING" might work, just maybe. --[[User:Paradox-01|paradox-01]] ([[User talk:Paradox-01|talk]]) 16:25, 14 May 2020 (CEST) |
Revision as of 14:25, 14 May 2020
Failing string comparison
There is also a bug with DOOR textures. XML:BINA/OBJC/DOOR#tags
We could try to capitalize everything, maybe that helps. --paradox-01 (talk) 12:12, 14 May 2020 (CEST)
Can someone describe the bug in more detail so I can take a look? --geyser (talk) 14:39, 14 May 2020 (CEST)
- Oh, OK, silly me, I should have read the TRGV page to learn about the string comparison bug. However, I don't understand how the TRGV string comparison is related to DOOR textures (DOOR textures are a permanent level setting, nothing to do with BSL - right?) --geyser (talk) 16:20, 14 May 2020 (CEST)
This is what s10k wrote: https://wiki.oni2.net/w/index.php?title=XML%3ABINA%2FOBJC%2FTRGV&type=revision&diff=26530&oldid=26524
Basically "String" eq "String" returns false when one expression is delivered by TV and one expression delivered from a 'native' BSL variable.
Maybe the comparison fails because at some side (left or right) the string is made toUpper. We have seen a similar bug when the engine reads texture names.
So the idea is that "STRING" eq "STRING" might work, just maybe. --paradox-01 (talk) 16:25, 14 May 2020 (CEST)