How to set music lump and background lump for castcall screen?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
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!)
User avatar
JtoTheB
Posts: 55
Joined: Sat Aug 09, 2025 9:46 am
Operating System Version (Optional): Windows 11
Location: New Jersey

How to set music lump and background lump for castcall screen?

Post by JtoTheB »

I don't know if this is the right forum for this, but if it is I need help. I've been making a custom cast call screen (using MAPINFO) and want to set a custom background, and custom music for it. Whenever I try to add it, it gives me the error shown below.

Code: Select all

Expected Identifier but got '=' instead.
I don't really know what to do about it.
User avatar
Redneckerz
Spotlight Team
Posts: 1146
Joined: Mon Nov 25, 2019 8:54 am
Graphics Processor: Intel (Modern GZDoom)

Re: How to set music lump and background lump for castcall screen?

Post by Redneckerz »

JtoTheB wrote: Sat Oct 04, 2025 9:32 am I don't know if this is the right forum for this, but if it is I need help. I've been making a custom cast call screen (using MAPINFO) and want to set a custom background, and custom music for it. Whenever I try to add it, it gives me the error shown below.

Code: Select all

Expected Identifier but got '=' instead.
I don't really know what to do about it.
It means it is seeing a = in the code where it isn't supposed to be a =. Perhaps it helps posting the wad and/or the full code (in a code tag obviously or a spoiler if it is too big).
User avatar
JtoTheB
Posts: 55
Joined: Sat Aug 09, 2025 9:46 am
Operating System Version (Optional): Windows 11
Location: New Jersey

Re: How to set music lump and background lump for castcall screen?

Post by JtoTheB »

I'll send the code.

Code: Select all

Intermission Doom2Cast
{
Music = D_HEAVEN
Background = "GP"
Cast
	{
		CastClass = "Zombieman2"
		CastName = "Missile Man"
		AttackSound = "Missile", 1, "skeleton/attack"
	}
	Cast
	{
		CastClass = "Shotgunguy2"
		CastName = "Missile Man but Bald"
		AttackSound = "Missile", 1, "fatso/attack"
	}
	Cast
	{
		CastClass = "Perforator"
		CastName = "Perforator"
		AttackSound = "Missile", 1, "weapons/minigunfire"
	}
	Cast
	{
		CastClass = "DoomImp2"
		CastName = "Grenadier Imp"
	}
	Cast
	{
		CastClass = "Pinky"
		CastName = "Speedy Pinky"
		AttackSound = "Melee", 1, "demon/melee"
	}

	Link = Doom2Cast
}
User avatar
Enjay
 
 
Posts: 27306
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: How to set music lump and background lump for castcall screen?

Post by Enjay »

Have you tried putting D_HEAVEN in quotes?

i.e.

Code: Select all

Music = "D_HEAVEN"
User avatar
JtoTheB
Posts: 55
Joined: Sat Aug 09, 2025 9:46 am
Operating System Version (Optional): Windows 11
Location: New Jersey

Re: How to set music lump and background lump for castcall screen?

Post by JtoTheB »

Enjay wrote: Sat Oct 04, 2025 10:21 am Have you tried putting D_HEAVEN in quotes?

i.e.

Code: Select all

Music = "D_HEAVEN"
Already have, still gives me the same error.
User avatar
JtoTheB
Posts: 55
Joined: Sat Aug 09, 2025 9:46 am
Operating System Version (Optional): Windows 11
Location: New Jersey

Re: How to set music lump and background lump for castcall screen?

Post by JtoTheB »

When I boot it up, it also gives me this:

Code: Select all

Script Error, epicmod.wad:MAPINFO line 174:
Unknown intermission type 'music'
Apologies for not providing it sooner.
User avatar
Enjay
 
 
Posts: 27306
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: How to set music lump and background lump for castcall screen?

Post by Enjay »

Ah, OK, I *think* I see the problem. The music instruction (I think) needs to go in a sub block.

So, it might work if you just put it inside your first cast definition (because you won't be changing it after that).

However, what I did with one of my own projects was this...

Code: Select all

Intermission WaterlabCast0
{
	Image
	{
		Background = "WLBACK"
		Time = -1
		Music = "D_EVIL2"
	}
	Link = WaterlabCast
}

Intermission WaterlabCast
{
	Cast
	{
		CastClass = "ZombieScientist"
		CastName = "Zombie Scientist"
		AttackSound = "Melee", 0, "skeleton/swing"
		AttackSound = "Melee", 1, "AxeHit"
	}
	
	Cast
	{
		CastClass = "ZombieScientist2"
		CastName = "Zombie Scientist"
		AttackSound = "Melee", 0, "skeleton/swing"
		AttackSound = "Melee", 1, "femscientist/KnifeHit"
		AttackSound = "Melee", 2, "skeleton/swing"
		AttackSound = "Melee", 3, "femscientist/KnifeHit"
	}
	
and so on, and so on

Return to “Scripting”