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

Script Error :( pls help!

Status
Not open for further replies.
Level 2
Joined
Jan 23, 2009
Messages
14
I keep getting this script error ..
4219 compile errors
keeps disabling my trigger spells ..
and keeps popping up when i try to save my map ..
can't test my maps keeps aborted due to script error ..
pls help .. :(
this start to happen when i switch my version from 1.20 to 1.24d
can't save my map can't test it can't make a trigger spell!
i've just started to make this map and i want to finish it .. >.<
but i don't want to do it allover again ..
 

Attachments

  • Game.w3x
    43.5 KB · Views: 119
Level 2
Joined
Jan 23, 2009
Messages
14
weird .. may be its just me .. or the WE.exe
can anyone send me a warcraft WE.exe 1.24d pls .. :((
cause i just have the switcher and don't update it through battle.net

yup .. still causes error to me .. :((

pls help!
 
Level 2
Joined
Jan 23, 2009
Messages
14
the problem is i no longer have the WC3 installer ..
i just copied my warcraft from a friend computer ..
so i just download version switchers for those kind of people ..
the switcher consist only .MPQ and no world editor ..
i currently have 1.20,1.21,1.22,1.23,1.24,1.24b and 1.24d
i started having this problem when i open my map with 1.24d version ..
so i think the problem is the WE exe?
can anyone help me with this .. :((
pls ..
i really want to finish this map ..

other thing ..
since i switch my version to version 1.21 above ..
i started to have this problem .. :((

so i think it's really the WE exe

can anyone pls send me a we exe :((

EDIT:added this pic cause i'm starting to get really annoyed

http://www.hiveworkshop.com/forums/attachment.php?attachmentid=75225&stc=1&d=1265872496

i can't enable my trigger in that pic ..

http://www.hiveworkshop.com/forums/attachment.php?attachmentid=75226&stc=1&d=1265872496

i can't save the map in that pic

pls help ..!
 

Attachments

  • cant enable trigger.JPG
    cant enable trigger.JPG
    130.1 KB · Views: 9,031
  • cant save.JPG
    cant save.JPG
    163.3 KB · Views: 742
Last edited:
Level 5
Joined
May 31, 2009
Messages
122
Your copy probably got screwed over by a virus, or something caused a certain file to be corrupted.

Can you log onto battlenet?
If you cant (and you've switched versions, etc.) then you probably have a stray corrupted file. It happened to me. You might also want to do a virus scan on your computer, in case.
 
Level 1
Joined
Jan 5, 2023
Messages
1
CodeGen Init
Events
Map initialization
Conditions
Actions
-------- -------------------- --------
-------- The below options are for saving load codes to the Warcraft III folder. --------
-------- You can modify the filename via the SaveLoad_Filename variable within the save trigger. --------
-------- -------------------- --------
Set SaveLoad_SaveToDisk = True
Set SaveLoad_Directory = Save
-------- -------------------- --------
-------- Some configurables --------
-------- -------------------- --------
Set SaveLoad_Alphabet = abcdefghkmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ0123456789
Set SaveLoad_CheckName = True
Set SaveLoad_Security = True
Set SaveLoad_HyphenSpace = 4
Set SaveLoad_SeperationChar = -
Set SaveLoad_Lower = |c002a4580
Set SaveLoad_Number = |cffffcc00
Set SaveLoad_Upper = |cff008000
-------- -------------------- --------
-------- Increase the value if you want to save bigger numbers --------
-------- Decrease it if you want to generate a smaller save code but only be able to save smaller values --------
-------- It's suggested to not increase it above 7 --------
-------- -------------------- --------
Set SaveLoad_MaxValue = 6
-------- -------------------- --------
-------- Store all the heroes you want to be able to be saved below. --------
-------- -------------------- --------
Set SaveLoad_Hero[0] = Blood Mage
Set SaveLoad_Hero[1] = Lich
Set SaveLoad_Hero[2] = Blademaster
Set SaveLoad_Hero[3] = Demon Hunter
Set SaveLoad_HeroCount = 3
-------- -------------------- --------
-------- Store all the abilities you want to be able to be saved below. --------
-------- -------------------- --------
Set SaveLoad_Abilities[0] = Flame Strike
Set SaveLoad_Abilities[1] = Siphon Mana
Set SaveLoad_Abilities[2] = Phoenix
Set SaveLoad_Abilities[3] = Banish
Set SaveLoad_AbilityCount = 3
-------- -------------------- --------
-------- Store all the items you want to be able to be saved below. --------
-------- -------------------- --------
Set SaveLoad_Item[0] = (Item-type of No item)
Set SaveLoad_Item[1] = Claws of Attack +15
Set SaveLoad_Item[2] = Crown of Kings +5
Set SaveLoad_Item[3] = Kelen's Dagger of Escape
Set SaveLoad_Item[4] = Mask of Death
Set SaveLoad_Item[5] = Orb of Frost
Set SaveLoad_Item[6] = Ring of Protection +5
Set SaveLoad_ItemCount = 6
-------- -------------------- --------
-------- Don't modify below this line. --------
-------- This is just here to copy variables to your map --------
-------- -------------------- --------
Set SaveLoad_Full = SaveLoad_Alphabet
Set SaveLoad_Error = <Empty String>
Set SaveLoad_Base = (Length of SaveLoad_Alphabet)
Set SaveLoad_Char[0] = <Empty String>
Set Load[0] = 0
Set LoadCount = 0
Custom script: call CodeGen_Init()
I don't Know why it tells me script error in the last line of the Trigger (Custom script : call CodeGen_Init())
 
Level 19
Joined
Feb 27, 2019
Messages
563
CodeGen Init
Events
Map initialization
Conditions
Actions
-------- -------------------- --------
-------- The below options are for saving load codes to the Warcraft III folder. --------
-------- You can modify the filename via the SaveLoad_Filename variable within the save trigger. --------
-------- -------------------- --------
Set SaveLoad_SaveToDisk = True
Set SaveLoad_Directory = Save
-------- -------------------- --------
-------- Some configurables --------
-------- -------------------- --------
Set SaveLoad_Alphabet = abcdefghkmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ0123456789
Set SaveLoad_CheckName = True
Set SaveLoad_Security = True
Set SaveLoad_HyphenSpace = 4
Set SaveLoad_SeperationChar = -
Set SaveLoad_Lower = |c002a4580
Set SaveLoad_Number = |cffffcc00
Set SaveLoad_Upper = |cff008000
-------- -------------------- --------
-------- Increase the value if you want to save bigger numbers --------
-------- Decrease it if you want to generate a smaller save code but only be able to save smaller values --------
-------- It's suggested to not increase it above 7 --------
-------- -------------------- --------
Set SaveLoad_MaxValue = 6
-------- -------------------- --------
-------- Store all the heroes you want to be able to be saved below. --------
-------- -------------------- --------
Set SaveLoad_Hero[0] = Blood Mage
Set SaveLoad_Hero[1] = Lich
Set SaveLoad_Hero[2] = Blademaster
Set SaveLoad_Hero[3] = Demon Hunter
Set SaveLoad_HeroCount = 3
-------- -------------------- --------
-------- Store all the abilities you want to be able to be saved below. --------
-------- -------------------- --------
Set SaveLoad_Abilities[0] = Flame Strike
Set SaveLoad_Abilities[1] = Siphon Mana
Set SaveLoad_Abilities[2] = Phoenix
Set SaveLoad_Abilities[3] = Banish
Set SaveLoad_AbilityCount = 3
-------- -------------------- --------
-------- Store all the items you want to be able to be saved below. --------
-------- -------------------- --------
Set SaveLoad_Item[0] = (Item-type of No item)
Set SaveLoad_Item[1] = Claws of Attack +15
Set SaveLoad_Item[2] = Crown of Kings +5
Set SaveLoad_Item[3] = Kelen's Dagger of Escape
Set SaveLoad_Item[4] = Mask of Death
Set SaveLoad_Item[5] = Orb of Frost
Set SaveLoad_Item[6] = Ring of Protection +5
Set SaveLoad_ItemCount = 6
-------- -------------------- --------
-------- Don't modify below this line. --------
-------- This is just here to copy variables to your map --------
-------- -------------------- --------
Set SaveLoad_Full = SaveLoad_Alphabet
Set SaveLoad_Error = <Empty String>
Set SaveLoad_Base = (Length of SaveLoad_Alphabet)
Set SaveLoad_Char[0] = <Empty String>
Set Load[0] = 0
Set LoadCount = 0
Custom script: call CodeGen_Init()
I don't Know why it tells me script error in the last line of the Trigger (Custom script : call CodeGen_Init())
You can make your trigger more readable by highlighting all the text you copied from the trigger editor and press the yellow cogwheel which will automatically apply [.trigger]hightlighted text[./trigger] (without the dots) alternatively you can write those trigger brackets manually. Edit your post and try it now.

Its also usually better to make a new thread on World Editor Help Zone than to post in an old one.

Back to your question. JassHelper usually gives a cause for Script Errors. What does JassHelper say is the cause?
Since CodeGen_Init() is a function the most probable cause is that it doesnt exist or is in the wrong place in which case JassHelper would say something like: undeclared function. The reason for this may be that the function is located under the trigger that uses it in the trigger list or that you forgot to add the part that contains the function. Solution could be: 1. Make sure you added the part containing the function, 2. Make sure the part containing the function is located above the trigger that uses it in the trigger list.
 
Last edited:
Level 38
Joined
Feb 27, 2007
Messages
4,951
I don't Know why it tells me script error in the last line of the Trigger (Custom script : call CodeGen_Init())
The people updating Wc3 now both literally don't know what they're doing and have no intention to fix any of the ridiculous bugs and issues they've introduced into it. They have set JASSHelper to be disabled by default for all new maps created in the editor as well as sometimes it applies when you open a map for the first time! From the Trigger Editor navigate to the top bar and make sure JassHelper > Enable JassHelper and JassHelper > Enable vJASS are both checked on.
 
Status
Not open for further replies.
Top