[BUG] Translation in Decorate error reporting

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
Dinosaur_Nerd
Posts: 253
Joined: Wed Feb 21, 2018 5:31 pm
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia (Modern GZDoom)
Location: timelocked USA 1994
Contact:

[BUG] Translation in Decorate error reporting

Post by Dinosaur_Nerd »

When attempting to to set translation by name rather than by number as seen here:

Code: Select all

Actor EnemyPlasmaBall : PlasmaBall
{
	Damage (15)
	DamageType Plasma
	Speed 26
	Translation "Blue"		// This line causes the error!
	-THRUACTORS
	-THRUSPECIES
	+DONTHURTSPECIES
	+THRUGHOST
}
The resulting error code looks like this

Code: Select all

LoadActors: Load actor definitions.
Error in translation 'Blue':
Script error, "translation" line 1:
Expected integer constant but got identifier 'Blue' instead.
This isn't really very helpful in trying to isolate the problem, especially in very large mods.
Again, I understand that this is a newbie mistake to use the "Translation" property incorrectly, however, I'm not sure if this is the desired way for the engine to report this particular error.

Thanks again for hearing me out.
Here is a link to a .wad file that can be used to repeat this error: Broken Translation
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [BUG] Translation in Decorate error reporting

Post by Graf Zahl »

Improved the error output for this case.
Post Reply

Return to “Closed Bugs [GZDoom]”