Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
aimshows

anything wrong with this code?

Question

this is the code i have so far for my mega wad. when i get to the 4th map the game crashes. i have 5 maps made and i wanna halt on the coding so i can get this fixed before continuing. can anyone see what the problem is with the code? i wanna have somethings different for some maps and have different skys for different maps so a lot of the code is the same.

 

 

map MAP01 "The Awakening"
{
    levelnum = 1
    next =    "MAP02"
    secretnext = "MAP02"
    sky1 = "SKY3"
    cluster = 5
    par = 60
    music = "$MUSIC_IN_CIT"

}

map MAP02 "Welcome Home"
{
    levelnum = 2
    next = "MAP03"
    secretnext = "MAP03"
    sky1 = "SKY1"
    cluster = 5
    par = 120
    music = "$MUSIC_DOOM"
}

map MAP03 "Hell On Earth"

{
    levelnum = 3
    next = "MAPO4"
    secretnext = "MAP04"
    sky1 = "SKY1"
    cluster = 5
    par = 130

}

 

 

EDIT: i think i found the problem and it might have been fixed

Share this post


Link to post

6 answers to this question

Recommended Posts

  • 0
2 minutes ago, aimshows said:

map MAP03 "Hell On Earth"

{
    levelnum = 3
    next = "MAPO4"
    secretnext = "MAP04"
    sky1 = "SKY1"
    cluster = 5
    par = 130

}


You have a O-letter instead of the number 0 in the part where it says next = "MAPO4".

Share this post


Link to post
  • 0
Just now, Worst said:


You have a O-letter instead of the number 0 in the part where it says next = "MAPO4".

OMG thanks dude. idk why Slade is like that where the "O" and "0" look very similar thanks

Share this post


Link to post
  • 0

hey guys. i added a line of code to the script

 

map MAP04 = "a new time"
{  

    levelnum = 4
    next "MAP05"
    secretnext = "MAP05"
    sky1 = "SKY2"
    cluster = 5
    par = 60
}

 

when i boot the wad in GZdoom it says

 

" Script error, "the awakening.wad:MAPINFO" line 37:
Expected '{', got 'a new time'. "

 

does anyone know what this means? i can't see anything wrong with the script

Screenshot 2023-10-15 103750.png

Share this post


Link to post
  • 0
1 minute ago, aimshows said:

when i boot the wad in GZdoom it says

"Script error, "the awakening.wad:MAPINFO" line 37:
Expected '{', got 'a new time'.

I think you need to remove the equals sign "=" before the "a new time" part.

 

Share this post


Link to post
  • 0

hey guys quick edit. i fixed the game script thing but a new isue has come up.

 

map MAP04 "a new start"
{     
    levelnum = 4
    next = "MAP05"
    secretnext = "MAP05"
    sky1 = "SKY2"
    cluster = 5
    par = 60
    exittext = "this is a test",
}

map MAP05 "The Bidding"
{
    levelnum = 5
    next = "MAP06"
    secretnext = "MAP06"
    sky1 = "SKY2"
    par = 120
    music = "$MUSIC_DOOM2"
}

map MAP06 "All Hope Is Gone"
{
    levelnum = 6
    next = "MAP07"
    sky1 = "SKY2"
    par = 120
}

 

when i finish the 4th map i want text to pop up. "this is a test" (for now) but when i finish map04 text pops up but not the text i want. is there any way i can fix this? i want there to be a text transition from map05 - map06 (i put it in map04 cause i can't be bothered to ctrl+c ctrl+v it.)

Edited by aimshows

Share this post


Link to post
  • 0

You want to specify a cluster number for all of your maps, and to show the text you want, the number has to change from map 4 to map 5.

 

 

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
×