[ZScript]return bool/int/float not recognized

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
Major Cooke
Posts: 8212
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Contact:

[ZScript]return bool/int/float not recognized

Post by Major Cooke »

Much like the state problem. They error out instead of printing a warning.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [ZScript]return bool/int/float not recognized

Post by Graf Zahl »

Please post an example of what doesn't work.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [ZScript]return bool/int/float not recognized

Post by Graf Zahl »

Repeating above message. What's up here?
User avatar
Major Cooke
Posts: 8212
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Contact:

Re: [ZScript]return bool/int/float not recognized

Post by Major Cooke »

Eh nevermind. I just went through and wound up replacing them all with true/false etc. They are deprecated after all.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [ZScript]return bool/int/float not recognized

Post by Graf Zahl »

I asked what did that not work here. If something you did produced an error I at least need to see it to decide whether I need to change something.
User avatar
Major Cooke
Posts: 8212
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Contact:

Re: [ZScript]return bool/int/float not recognized

Post by Major Cooke »

Code: Select all

Class dumm : CustomInventory
{
	States
	{
	Pickup:
		TNT1 A 0
		{
			return bool(true);
		}
		Stop;
	}
}
Bool isn't recognized.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [ZScript]return bool/int/float not recognized

Post by Graf Zahl »

That cast is even totally unnecessary because true is already bool, but it should work.
User avatar
Major Cooke
Posts: 8212
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Contact:

Re: [ZScript]return bool/int/float not recognized

Post by Major Cooke »

Agreed. Int works, however. I've already replaced them all to be direct instead.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [ZScript]return bool/int/float not recognized

Post by Graf Zahl »

Yeah, bool was missing.
Post Reply

Return to “Closed Bugs [GZDoom]”