Page 1 of 1
Integer constant problem
Posted: Thu May 26, 2022 2:38 am
by Black Devil
There is an error message that starts up in my wad and it complains about one of the translation codes. The translation works perfectly fine, the specific colors have been changed accordingly, but it still issues me a mathematical error. Since the translation is taking an effect, it seems like the error isn't really necessary.
Re: Integer constant problem
Posted: Thu May 26, 2022 3:55 am
by Enjay
Curious. I just tried:
Code: Select all
Actor TestMe
{
Radius 16
translation "5:8=123:127"
height 24
+noclip
Scale 0.35
States
{
Spawn:
BAL7 AAAA 3 A_FADEOUT
Stop
}
}
and I get no errors at all (and I always run with developer mode on, so I would get any warnings if they were there).
Obviously I don't see a translation because the sprites I chose don't have the relevant palette entries, but the actor works as expected.
I tried in GZDoom official, and a couple of different git builds (including the most recent). All worked fine.
Re: Integer constant problem
Posted: Thu May 26, 2022 4:53 am
by Graf Zahl
Also, screenshots cannot be debugged. You got to post the actual code, preferably as an attachment so that the forum does not reformat it.