• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Odd error

Status
Not open for further replies.
Level 14
Joined
Oct 18, 2013
Messages
736
All of the sudden, I get an error saving my map. xD Has nothing to do with any customs script I've made (afaik, unless it *somehow* interacted with this)

When I save, it gives the compile error, "Missing: endblock" for this line:

call SetStartLocPrio( 9, 5, 5, MAP_LOC_PRIO_HIGH )

what could be causing this? This seems to be in the same category as all the stuff the compiler does to create units that I've placed in the editor, etc. I've only heard of this happening when you have a bad copy of war3 or something?
 
Please post the entire function in which it's giving the error, that would help.
 
function InitAllyPriorities takes nothing returns nothing

call SetStartLocPrioCount( 0, 11 )
call SetStartLocPrio( 0, 0, 1, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 0, 1, 2, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 0, 2, 3, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 0, 3, 4, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 0, 4, 5, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 0, 5, 6, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 0, 6, 7, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 0, 7, 8, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 0, 8, 9, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 0, 9, 10, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 0, 10, 11, MAP_LOC_PRIO_HIGH )

call SetStartLocPrioCount( 1, 11 )
call SetStartLocPrio( 1, 0, 0, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 1, 1, 2, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 1, 2, 3, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 1, 3, 4, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 1, 4, 5, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 1, 5, 6, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 1, 6, 7, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 1, 7, 8, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 1, 8, 9, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 1, 9, 10, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 1, 10, 11, MAP_LOC_PRIO_HIGH )

call SetStartLocPrioCount( 2, 11 )
call SetStartLocPrio( 2, 0, 0, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 2, 1, 1, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 2, 2, 3, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 2, 3, 4, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 2, 4, 5, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 2, 5, 6, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 2, 6, 7, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 2, 7, 8, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 2, 8, 9, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 2, 9, 10, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 2, 10, 11, MAP_LOC_PRIO_HIGH )

call SetStartLocPrioCount( 3, 11 )
call SetStartLocPrio( 3, 0, 0, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 3, 1, 1, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 3, 2, 2, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 3, 3, 4, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 3, 4, 5, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 3, 5, 6, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 3, 6, 7, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 3, 7, 8, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 3, 8, 9, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 3, 9, 10, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 3, 10, 11, MAP_LOC_PRIO_HIGH )

call SetStartLocPrioCount( 4, 11 )
call SetStartLocPrio( 4, 0, 0, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 4, 1, 1, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 4, 2, 2, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 4, 3, 3, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 4, 4, 5, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 4, 5, 6, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 4, 6, 7, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 4, 7, 8, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 4, 8, 9, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 4, 9, 10, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 4, 10, 11, MAP_LOC_PRIO_HIGH )

call SetStartLocPrioCount( 5, 11 )
call SetStartLocPrio( 5, 0, 0, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 5, 1, 1, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 5, 2, 2, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 5, 3, 3, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 5, 4, 4, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 5, 5, 6, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 5, 6, 7, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 5, 7, 8, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 5, 8, 9, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 5, 9, 10, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 5, 10, 11, MAP_LOC_PRIO_HIGH )

call SetStartLocPrioCount( 6, 11 )
call SetStartLocPrio( 6, 0, 0, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 6, 1, 1, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 6, 2, 2, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 6, 3, 3, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 6, 4, 4, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 6, 5, 5, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 6, 6, 7, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 6, 7, 8, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 6, 8, 9, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 6, 9, 10, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 6, 10, 11, MAP_LOC_PRIO_HIGH )

call SetStartLocPrioCount( 7, 11 )
call SetStartLocPrio( 7, 0, 0, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 7, 1, 1, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 7, 2, 2, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 7, 3, 3, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 7, 4, 4, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 7, 5, 5, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 7, 6, 6, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 7, 7, 8, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 7, 8, 9, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 7, 9, 10, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 7, 10, 11, MAP_LOC_PRIO_HIGH )

call SetStartLocPrioCount( 8, 11 )
call SetStartLocPrio( 8, 0, 0, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 8, 1, 1, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 8, 2, 2, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 8, 3, 3, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 8, 4, 4, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 8, 5, 5, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 8, 6, 6, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 8, 7, 7, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 8, 8, 9, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 8, 9, 10, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 8, 10, 11, MAP_LOC_PRIO_HIGH )

call SetStartLocPrioCount( 9, 11 )
call SetStartLocPrio( 9, 0, 0, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 9, 1, 1, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 9, 2, 2, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 9, 3, 3, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 9, 4, 4, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 9, 5, 5, MAP_LOC_PRIO_HIGH ) <--- Only this one is highlighted.
call SetStartLocPrio( 9, 6, 6, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 9, 7, 7, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 9, 8, 8, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 9, 9, 10, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 9, 10, 11, MAP_LOC_PRIO_HIGH )

call SetStartLocPrioCount( 10, 11 )
call SetStartLocPrio( 10, 0, 0, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 10, 1, 1, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 10, 2, 2, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 10, 3, 3, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 10, 4, 4, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 10, 5, 5, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 10, 6, 6, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 10, 7, 7, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 10, 8, 8, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 10, 9, 9, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 10, 10, 11, MAP_LOC_PRIO_HIGH )

call SetStartLocPrioCount( 11, 11 )
call SetStartLocPrio( 11, 0, 0, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 11, 1, 1, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 11, 2, 2, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 11, 3, 3, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 11, 4, 4, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 11, 5, 5, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 11, 6, 6, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 11, 7, 7, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 11, 8, 8, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 11, 9, 9, MAP_LOC_PRIO_HIGH )
call SetStartLocPrio( 11, 10, 10, MAP_LOC_PRIO_HIGH )


I don't think anything is wrong with that function, because I haven't changed it afaik. Yet, it stll gives an error.
 
Are you missing an endfunction? Or endlibrary/endscope?
 
Odd that it wouldn't show where the actual error is. Idk, I can't think of anywhere in my map where I would be missing one. Is my only option to single out every single trigger in my map? I might just backtrack and use one of the backups from a couple days ago, rather than do all that. Idk yet.
 
Haha! That is rather ironic, isn't it? :p My Bad. There actually IS an endfunction on that script that the editor created. Anyways, I just backtracked to before I had this error. I'll probably check differences in trigger to see in I can find out what is actually causing this.
 
Status
Not open for further replies.
Back
Top