Integer constant problem

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Black Devil
Posts: 5
Joined: Thu Jul 08, 2021 12:19 am
Graphics Processor: nVidia (Modern GZDoom)

Integer constant problem

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
Posts: 26413
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: Integer constant problem

Post by Enjay »

Curious. I just tried:

Code: Select all

Actor TestMe
	Radius 16
	translation "5:8=123:127"
	height 24
	Scale 0.35
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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 48041
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Integer constant problem

Post 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.

Return to “Scripting”