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

Trigger Error

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,285
If you are using a Non-English localized operating system then there is a chance it is being caused by incorrect numeric delimiters.

For example in German the number "10000.25" would be "10000,25".

The problem is the JASS script is only designed for English localization. The automatic statements generated by GUI for units and map initialization calls will use your system localization for the real numbers. The JASS compiler then interprets these as two separate parameters so throws an invalid number of parameters error.

The solution is to change your delimiter in...
Control Pannel -> Region -> Additional Settings...

This error started with one of the patches. Blizzard must have unintentionally linked in a localized output producing function (eg some versions of printf) when the output for the script should never be localized (since JASS only supports US localization).
 
Status
Not open for further replies.
Top