[Solved] Mass Compilation Error thread

Status
Not open for further replies.
Level 7
Joined
Oct 6, 2022
Messages
168
Hello please guys I need some help i have never encountered these errors before and it keeps growing, i just addes some region and this things showed up
Problem.PNG

i didn't even add these things and they said "Multiply defined"
Causing my triggers to breakdown into a "Mass Compilation Errors" to all my triggers like this in the second image
Result.PNG

i even renamed my regions and it did not worked, making these region thing to grow until there is 9 of them now.
Please guys i need your help, this map is the only thing i have 😭😭😭😭😭
 
Level 23
Joined
Feb 27, 2019
Messages
739
Dont overwrite your existing map right now, when you try to save, do it under a new name. The safe option would be to revert to before you created the regions.

I am not an expert on these kind of errors but it looks like the region names are exceeding their maximum size which has caused several regions to somehow incorrectly get the same name. The worst case scenario is that the map doesnt know which region is which but I wouldnt worry too much because if thats the case it can probably be fixed by editing the map script but I dont know how to that.

Another guess is that the editor is temporarily broken until you restart the editor. It can happen when disabling and enabling JassHelper.

Have you succesfully closed and opened the editor with JassHelper enabled yet?
 
Level 23
Joined
Feb 27, 2019
Messages
739
I can't follow what you are saying about the jassHelper, should i open Jasshelper.exe?
In your first picture, JassHelper is enabled. On your second picture JassHelper is disabled. Nowadays everytime one opens a new map they have to enable JassHelper. Its enabled by going into the Trigger Editor > JassHelper > Enable JassHelper. Make sure JassHelper is ticked √.
 
Level 7
Joined
Oct 6, 2022
Messages
168
JassHelper is not supposed to be opened as an .exe, its enabled inside the editor itself. World Editor > Trigger Editor > JassHelper > Enable JassHelper. Make sure JassHelper is ticked √. It has to be enabled again for each new map that is opened/created.
It happened again, this time. The jassHelper is active and it's not working.

I put the "Damage engine" but when i remove it, it's working
 
Last edited:
Level 7
Joined
Oct 6, 2022
Messages
168
I activate the "Automatically create unknown variables while pasting triggers"

From the map where i copied it works fine tho

But when i copied it on my map it happened
 
Level 23
Joined
Feb 27, 2019
Messages
739
There was an error when the variable DamageModifierEvent was pasted to the map. To fix it, find the variable DamageModifierEvent and make it into a real variable. It must be changed to a real variable but doing that may disable some things so make sure they get enabled and set as they should afterwards.
 
Level 7
Joined
Oct 6, 2022
Messages
168
I have tried to search it for a long period now but I can't find it anywhere, is it a bug?
Even if i undo/delete it the problem was still there, am I'm now stuck
 
Last edited:
Level 7
Joined
Oct 6, 2022
Messages
168
Yeah, it's not there. And even i use the "Edit >> Find..." It's not there.

Even if i undo/delete it the problem was still there, am I'm now stuck
 

Uncle

Warcraft Moderator
Level 69
Joined
Aug 10, 2018
Messages
7,265
Did you create the missing variable? If you can't find it then you should just create it yourself.

I've had this same exact issue before but I can't remember how I fixed it exactly, I do know that it was something along the lines of editing the code/fixing a variable.

There's another weird issue you'll encounter where a Variable's type gets unset. It's extra annoying because the editor won't tell you that this variable isn't working (normally with broken variables the triggers using them will get disabled, errors are thrown, etc). The variable will look perfectly fine in your trigger but when testing in-game it's as if the variable doesn't exist. The fix is easy enough, just give it the proper type again.
 
Level 7
Joined
Oct 6, 2022
Messages
168
@Gnuoy yeah i knew about it but for some reason it didn't work.

@Uncle i did that as my last resort/idea after almost "3 1/2" hours of figuring out how to solve the problem and it worked. So my guess is that the "Automatically create unknown variables while pasting triggers" had some bugs right at that point or something. So when it worked, i reinstall my WC3 then re activate the "Automatically create unknown variables while pasting triggers" to find out if it works and yeah it's working fine rn. It seems like I'm solving a Rubik's Cube and finally solved it for the first time.

i hope if anyone having the same issue as mine they can use this methods
 
Level 7
Joined
Oct 6, 2022
Messages
168
NOTE:

This method would be ppl's last resort if everything didn't worked, you wouldn't guess if you have all those variables due the trigger bug also(forgot to mentioned sorry) not even showing the possible missing variables caused by "Automatically create unknown variables while pasting triggers" in my case i didn't used any backup/testing maps to test the copy paste triggs.
So when doing copy paste triggs while "Automatically create unknown variables while pasting triggers" is activate, make sure you do it in a certain backup/testing maps first so you won't messed up.

Then Reinstall Wc3 to make the "Automatically create unknown variables while pasting triggers" worked.
 
Last edited:
Status
Not open for further replies.
Top