• 🏆 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!

[Crash] Syntax error

Status
Not open for further replies.
Level 2
Joined
Jul 7, 2016
Messages
5
I was editing a map terrain and when i saved the map it showed me this,
It saves the progress but i cant start the map,
I would be glad with any help I'm not really good with this jass stuff the only thing i can do is Tool Palette and Object Editor.
 

Attachments

  • Bez názvu.png
    Bez názvu.png
    21.6 KB · Views: 19

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,535
So you probably have 2+ copies of the same system. You can see in the error it shows you the function's name "ItemTable_DropItems". Find that function in your code and delete it, or you probably want to delete the whole script and see what happens.

Keep in mind when importing Jass stuff that two authors can create functions with the same exact names. Like maybe author A created an Item Stacking system and named a function "ItemSetup" while author B created an Item Recipe system with the same exact function name "ItemSetup". If these aren't setup the correct way then you'll have issues. (there's methods to make code private so this issue doesn't happen)

Another big thing is that a lot of Jass systems require and use more popular systems such as TimerUtils. You need to be aware of what you're importing into your map, because you only want ONE TimerUtils. You could import 5 different spells from 5 different authors which ALL use TimerUtils and provide it. Now you have 5 copies of TimerUtils when you only need 1.
 
Status
Not open for further replies.
Top