"Number Expected" error when compiling MAPINFO

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!)
supercaca
Posts: 2
Joined: Tue Dec 13, 2022 5:46 pm

"Number Expected" error when compiling MAPINFO

Post by supercaca »

I am trying to get my custom player model to appear in Doom Builder 2 so I created a map info file to assign a doom ED number to my player class. However when I try to run the WAD I this message:

Script error, "LLCDUMMIES.wad:ZMAPINFO" line 5: Number expected

I'm not too sure how to move forward here since I have followed how to define editor numbers on the wiki and I can't find another WAD that implements this.

Here's my code:

ZMAPINFO

Code: Select all

DoomEdNums
{
	11001 = Vyshnav
{
ZSCRIPT

Code: Select all

version "4.1.3";

Class Vyshnav: PlayerPawn
{


	default{
		  Health 100;
		  Radius 16;
		  Height 56;
		  Mass 100;
		  Painchance 255;
		  Speed 1;
		  +SOLID;
		  +SHOOTABLE;
		  +DROPOFF;
		  +PICKUP;
		  +NOTDMATCH;
		  +FRIENDLY;
		  +SLIDESONWALLS;
		  +CANPASS;
		  +CANPUSHWALLS;
		  +FLOORCLIP;
		  +WINDTHRUST;
		  +TELESTOMP;
		  +NOBLOCKMONST;
		  Player.AttackZOffset 8;
		  Player.JumpZ 8;
		  Player.GruntSpeed 12;
		  Player.FallingScreamSpeed 35, 40;
		  Player.ViewHeight 41;
		  Player.UseRange 64;
		  Player.ForwardMove 1,1;
		  Player.SideMove 1,1;
		  Player.ColorRange 0,0;
		  Player.SoundClass "player";
		  Player.DamageScreenColor "ff 00 00";
		  Player.MugShotMaxHealth 0;
		 }
		 
		 States{
		 
		 Spawn:
			VYSH A -1;
			Stop;
			
		 See:
			VYSH AAAAABBBBB 1;
			VYSH CCCCCDDDDD 1;
			Goto Spawn;
		 Pain:
			VYSH I 4;
			Goto Spawn;
		 Melee:
			VYSH D 5;
			Goto Missile;
			
		Missile:
			VYSH E 8;
			Goto Spawn;
		
		Death:
			VYSH J 3;
			VYSH K 6;
			VYSH L 6;
			Stop;
		XDeath:
			VYSH J 3;
			VYSH K 6;
			VYSH L 6;
		 
		 
 
	}

}
Last edited by supercaca on Tue Dec 13, 2022 9:32 pm, edited 1 time in total.
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed

Re: "Number Expected" error when compiling MAPINFO

Post by wildweasel »

It looks like the problem with your ZMAPINFO is that the brace on line 4 is facing the wrong direction - you need a }, not a {.
supercaca
Posts: 2
Joined: Tue Dec 13, 2022 5:46 pm

Re: "Number Expected" error when compiling MAPINFO

Post by supercaca »

wildweasel wrote: Tue Dec 13, 2022 7:37 pm It looks like the problem with your ZMAPINFO is that the brace on line 4 is facing the wrong direction - you need a }, not a {.
Damn my bad

thanks for the response
Last edited by supercaca on Tue Dec 13, 2022 9:39 pm, edited 2 times in total.

Return to “Scripting”