• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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