• 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.

Unusual Errors When Saving

Status
Not open for further replies.
Level 20
Joined
Mar 16, 2008
Messages
812
I get lots of unusual syntax type errors that didn't happen before patch 1.34. I haven't changed anything with this file but when I try to resave under a different name, it turns off dozens and dozens of triggers for syntax errors. I don't even think these are syntax errors, for example it said "globals" at the start of a global variable section was an error.

I just have a simple jass function here for the multiboard, that I call with other gui trigger, but newer version saying I can't do it this way???
JASS:
function getPower takes integer strength, integer agility, integer intelligence, integer level returns integer
    local integer x = 0
    set x = strength + agility + intelligence + (level * 3)
    return x
endfunction

1677108391731.png

I hosted to see if it would "update" but seemed to do nothing

Has anyone else experienced a similar bug?

Thank you for reading.

update:
1677109604347.png
 
Last edited:
Level 42
Joined
Feb 27, 2007
Messages
5,320
JASSHelper is now disabled by default in the WE for all maps. You have to enable it for you map before saving. From the trigger editor menu bar: JASSHelper > Enable JASSHelper and Enable vJASS both need to be checked on.

Without JASSHelper you are using the normal wc3 precompiler which doesn't know how to process globals blocks and expects that triggers all have an InitTrig function that matches.
 
Status
Not open for further replies.
Top