• 0

Question

So, I am trying to create a MAPINFO cluster, but I am failing. Whenever I load my pk3, it complains that "Flat is an unknown top level keyword". I have confirmed that the language is ZDoom MAPINFO, and if I put the code in curly braces ({}), it complains about them. This is the exact MAPINFO lump:

 

map MAP01 "Blood Falls"
levelnum 1
next MAP02
secretnext MAP02
sky1 SKY1 0
cluster 0
par 120

map MAP02 "Hell's Greeting"
levelnum 2
next MAP03
secretnext MAP03
sky1 SKY1 0
cluster 0
par 60

map MAP03 "Fire Hazard"
levelnum 3
next MAP04
secretnext MAP04
sky1 SKY1 0
cluster 0
par 120

map MAP04 "Techno"
levelnum 4
next MAP05
secretnext MAP05
sky1 sky1
cluster 0
par 180

map MAP05 "The Followers"
levelnum 5
next MAP06
secretnext MAP07
sky1 sky3
cluster 1
par 180

cluster 1
    flat "Floor4_8"
    music "D_Victor"
    exittext "You have been encountering these strange creatures for many days now. You don't know what they are, or how they keep finding you. As you walk over the corpse of one of the mechanized Imps, you notice a scrap of bloody paper."

 

 

I also have included the full pk3, so you guys can have the context. Somebody please help me...
 

Unknown.zip

Edited by StevenC21
Added File

Share this post


Link to post

4 answers to this question

  • 1

Why do so many people still use the old syntax!? Try this:

 

Spoiler

map MAP01 "Blood Falls"
{
	levelnum = 1
	next = "MAP02"
	secretnext = "MAP02"
	sky1 = "RSKY1"
	cluster = 0
	par = 120
}

map MAP02 "Hell's Greeting"
{
	levelnum = 2
	next = "MAP03"
	secretnext = "MAP03"
	sky1 = "RSKY1"
	cluster = 0
	par = 60
}

map MAP03 "Fire Hazard"
{
	levelnum = 3
	next = "MAP04"
	secretnext = "MAP04"
	sky1 = "RSKY1"
	cluster = 0
	par = 120
}

map MAP04 "Techno"
{
	levelnum = 4
	next = "MAP05"
	secretnext = "MAP05"
	sky1 = "RSKY1"
	cluster = 0
	par = 180
}

map MAP05 "The Followers"
{
	levelnum = 5
	next = "MAP06"
	secretnext = "MAP07"
	sky1 = "RSKY3"
	cluster = 1
	par = 180
}

cluster 1
{
	flat = "FLOOR4_8"
	music = "D_VICTOR"
	exittext = "You have been encountering these strange creatures for many days now. You don't know what they are, or how they keep finding you. As you walk over the corpse of one of the mechanized Imps, you notice a scrap of bloody paper."
}

 

 

Edited by Nevander

Share this post


Link to post
  • 0
2 hours ago, Nevander said:

Why do so many people still use the old syntax!?


I think it's because there's so much content on Google from years and years of ZDooming.

@StevenC21 In the future if you see something on the wiki that says, "deprecated" (in red) it means that it is recommended that you don't use it.

Share this post


Link to post
  • 0

This problem is a textbook example for why the old syntax got deprecated.

 

The issue is that for the old syntax, due to naming collision, a cluster cannot be started with a 'cluster' keyword because due to lack of structure all keywords must be distinct. So 'clusterdef' needs to be used. But as things are, the old syntax is deprecated and it is highly recommended not to use it anymore, unless you have to support ports like ZDaemon, which are based on ancient ZDoom versions.

 

2 people like this

Share this post


Link to post
  • 0

Ok guys, thanks for the help. I actually didn't realize that I was using the old syntax, the idiot I am. I have officially switched!

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now