Symbol not declared when choosing Enabled custom script setting system save/load

Level 4
Joined
Sep 19, 2025
Messages
34
he problem is that I copied the relevant save/load triggers from another map to a new map, but the custom scripts are missing and show an error Symbol not declared(CodeGen_Int) for the

custom script call CodeGen_Init() for the parameter setup trigger

and Symbol not declared(CodeGen_ConvertItem) for the custom script set udg_Save[udg_SaveCount] = CodeGen_ConvertItem(GetItemTypeId(udg_Item)) for the save trigger

and Symbol not declared(CodeGen_Load) call CodeGen_Load(udg_Code) for the load trigger. Where should I find or create those values.
I'm just a newbie, if there's anything missing please let me know, I'll try to implement it.
Thanks for stopping by
 

Attachments

I believe this option is only available on 1.31+. Edit: I think it was added in 1.29.
1759411300873.png

I'm not sure what to do when using Newgen, I figured that would just work out of the box. It's either incompatible or you have to find a Newgen specific solution. There's likely multiple threads regarding this topic. Try searching for: "JassHelper and Newgen", "Code won't work in Newgen", "Error in Newgen".
 
Last edited:
You have to enable JassHelper and vJass before saving the map. Latest patch broke those features if I'm not mistaken.
Do you know any tutorial on adding JassHelper to WE. I'm using WE so that part isn't there.

I believe this option is only available on 1.31+.
View attachment 550524
I'm not sure what to do when using Newgen. It's either incompatible or you have to find a Newgen specific solution. There's likely multiple threads regarding this topic. Try searching for: "JassHelper and Newgen", "Code won't work in Newgen", "Error in Newgen".
I looked at jasshelper and newgen but didn't find a solution so I will try at war1.31. Thanks for the help
 
I looked at jasshelper and newgen but didn't find a solution so I will try at war1.31. Thanks for the help
I would just update to the latest version unless you have a good reason to stick to 1.31. Also, I think it was actually 1.29 that made JassHelper a default feature.

Someone else may have a better suggestion, I only got serious about modding once all of the 3rd party solutions were out of the mix and you could just use the standard WE.
 
Last edited:
I believe this option is only available on 1.31+. Edit: I think it was 1.29+.
View attachment 550524
I'm not sure what to do when using Newgen, I figured that would just work out of the box. It's either incompatible or you have to find a Newgen specific solution. There's likely multiple threads regarding this topic. Try searching for: "JassHelper and Newgen", "Code won't work in Newgen", "Error in Newgen".
It doesn't work. I just tried jasshelper on war1.31, it seems the problem is not there.
 
It doesn't work. I just tried jasshelper on war1.31, it seems the problem is not there.
I tested the map you sent on the latest patch with JassHelper enabled and did not get any errors. Was I supposed to enable some of the disabled triggers first?

Edit:
I see now, you're missing the actual code that goes with CodeGen. It may have been in the Header of the World Editor or it's in separate Triggers (scripts).
1759412745891.png

Until you import the code used by those disabled Triggers you won't be able to enable them.

Sorry, I should've realized this sooner, I just assumed the map was ready to go.
 
Last edited:
I tested the map you sent on the latest patch with JassHelper enabled and did not get any errors. Was I supposed to enable some of the disabled triggers first?

Edit:
I see now, you're missing the actual code that goes with CodeGen. It may have been in the Header of the World Editor or it's in separate Triggers (scripts).
View attachment 550528
Until you import the code used by those disabled Triggers you won't be able to enable them.

Sorry, I should've realized this sooner, I just assumed the map was ready to go.
I understand, I will try to find it again.

I tested the map you sent on the latest patch with JassHelper enabled and did not get any errors. Was I supposed to enable some of the disabled triggers first?

Edit:
I see now, you're missing the actual code that goes with CodeGen. It may have been in the Header of the World Editor or it's in separate Triggers (scripts).
View attachment 550528
Until you import the code used by those disabled Triggers you won't be able to enable them.

Sorry, I should've realized this sooner, I just assumed the map was ready to go.
Thanks again. Just as you instructed, it is in the Header.
 
For those who are curious, JassHelper and vJass were introduced in in the vanilla World Editor starting with 1.30 patch, so if you are using higher WC3 patches (like 1.31 or 2.0.3), then you will be able to use that feature instead of relying on 3rd party World Editors like JNGP or WEX. The only downside is that on the latest patch Blizzard broke JassHelper and vJass intentionally, though you can still revert those changes by enabling them manually in the Trigger Editor. Also, there's no built-in syntax highlighting with this version, though you can still get an updated TESH which integrates with the vanilla WE.
 
Back
Top