• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Map Script Problem

Status
Not open for further replies.
Level 6
Joined
Sep 11, 2006
Messages
172
I just saved my project in newgen and received this error in Jass helper,

"Line 18508: Missing: endblock"

That's the very last line in the map script.

JASS:
function config takes nothing returns nothing
    call SetMapName( "TRIGSTR_005" )
    call SetMapDescription( "TRIGSTR_007" )
    call SetPlayers( 12 )
    call SetTeams( 12 )
    call SetGamePlacement( MAP_PLACEMENT_TEAMS_TOGETHER )

    call DefineStartLocation( 0, -9600.0, 10496.0 )
    call DefineStartLocation( 1, -9600.0, 10496.0 )
    call DefineStartLocation( 2, -9600.0, 10496.0 )
    call DefineStartLocation( 3, -9600.0, 10496.0 )
    call DefineStartLocation( 4, -9600.0, 10496.0 )
    call DefineStartLocation( 5, -9600.0, 10496.0 )
    call DefineStartLocation( 6, -9600.0, 10496.0 )
    call DefineStartLocation( 7, -9600.0, 10496.0 )
    call DefineStartLocation( 8, -9600.0, 10496.0 )
    call DefineStartLocation( 9, -9600.0, 10496.0 )
    call DefineStartLocation( 10, -19072.0, 12352.0 )
    call DefineStartLocation( 11, -17856.0, 5888.0 )

    // Player setup
    call InitCustomPlayerSlots(  )
    call InitCustomTeams(  )
    call InitAllyPriorities(  )
endfunction

I have not changed this script. The map will no longer open when I try to test it.

What broke?
 
Level 6
Joined
Sep 11, 2006
Messages
172
The endfunction was there. I just didn't copy the whole block on to the post. Still don't know what's wrong.

Any ideas? The last thing I did before I saved the map was import a model with some textures.
 
Last edited by a moderator:
Status
Not open for further replies.
Top