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

WorldEditor Critical Error after PTR Patch

Status
Not open for further replies.
Level 3
Joined
Mar 15, 2018
Messages
31
Hey Community,

after the new patch I got these errors. This is more than unfortunate. I can't open my map anymore! :(

Why would Blizzard remove a function that they just added?

Is there a way to repair it?


Wj5uoYa.png

"Error"
"trigger function does not exist in the library.: SetUnitArmor"
jyTC2k6.png

"Not enough space available for this command."

I've got a quite good gaming laptop. This is not about performance issues.

I really hope theres someone who can help.

Thanks in advance guys.
 
Level 3
Joined
Mar 15, 2018
Messages
31
Sorry if I didn't point that out clearly:

I actually did open that with the PTR Editor. And I updated the PTR version, so they did apparently remove this.

Or is this some kind of strange bug?

Anyway if I won't be able to open this again I have wasted my free time of the last almost two months now.. :/
 
Level 13
Joined
May 10, 2009
Messages
868
Well, if you don't have the very first 1.29 PTR version, then I'm afraid that you'll have to reconstruct your triggers. Blizzard has changed their new native functions name by adding "Blz" prefix to them. That's why your map won't open in 1.29.1.

Backup your map, download an MPQ Editor (Ladik's version, preferably), then open your map with it. Delete War3map.wtg, and extract war3map.j. Now, close the mpq editor, and you'll be able to open your map with the vanilla editor. However, you'll notice that all your trigger data is gone. Here comes the worst part: with war3map.j, you'll have to reconstruct your trigger editor by manually re-creating variables first, then your actual triggers later. Unless anyone else knows how to edit war3map.wtg file - it's responsible for storing trigger editor data.


This is how your map trigger data looks like after doing the steps above. Please, for now, try to not save your map.
T00.png

I advise to use a notepad, notepad++, or even JassCraft to open your war3map.j file while you reconstruct your triggers. First, re-declare your user-defined variables. The lines below "// Generated" are your triggers and probably preplaced units being used by triggers (don't worry about these).
T01.png

Recreate your triggers based on their names in "// Generated" section. It should look like this, in my case:
T02.png

Convert your triggers to Custom Text. Now, it's time to restore their code. Go back to war3map.j, scroll down a little bit, and you'll see a chunk of code with your trigger functions separated by comments, which is quite easy to find and distinguish from one trigger to another.
T03.png


T04.png


The last bit is to rename the new native functions (add "Blz" prefix). After doing so, you'll be able to save your map. Also, beware that SetUnitNameAll has been removed/disabled from the latest version.
 
Last edited:
Level 3
Joined
Mar 15, 2018
Messages
31
Well, if you don't have the very first 1.29 PTR version, then I'm afraid that you'll have to reconstruct your triggers. Blizzard has changed their new native functions name by adding "Blz" prefix to them. That's why your map won't open in 1.29.1.

Backup your map, download an MPQ Editor (Ladik's version, preferably), then open your map with it. Delete War3map.wtg, and extract war3map.j. Now, close the mpq editor, and you'll be able to open your map with the vanilla editor. However, you'll notice that all your trigger data is gone. Here comes the worst part: with war3map.j, you'll have to reconstruct your trigger editor by manually re-creating variables first, then your actual triggers later. Unless anyone else knows how to edit war3map.wtg file - it's responsible for storing trigger editor data.


This is how your map trigger data looks like after doing the steps above. Please, for now, try to not save your map.
View attachment 296733
I advise to use a notepad, notepad++, or even JassCraft to open your war3map.j file while you reconstruct your triggers. First, re-declare your user-defined variables. The lines below "// Generated" are your triggers and probably preplaced units being used by triggers (don't worry about these).
View attachment 296734
Recreate your triggers based on their names in "// Generated" section. It should look like this, in my case:
View attachment 296735
Convert your triggers to Custom Text. Now, it's time to restore their code. Go back to war3map.j, scroll down a little bit, and you'll see a chunk of code with your trigger functions separated by comments, which is quite easy to find and distinguish from one trigger to another.
View attachment 296736

View attachment 296737

The last bit is to rename the new native functions (add "Blz" prefix). After doing so, you'll be able to save your map. Also, beware that SetUnitNameAll has been removed/disabled from the latest version.

Thanks very much for the effort, but I very much prefer anything far away from reconstructing this. I don't even know what I did so for far. This is not an option.

No need to reset your map triggers. You can fix your map with GUI-isator. Simply recreate all the blizzard functions you were using on your map before.
If you don't know how to do this, send me the map and I can fix it for you (might take like 2 days, since I'm somewhat busy atm)

This sounds good, although I don't fully understand what you mean by "recreate all blizzard function"

Also I don't know how I could send you a file or a private message. Is it possible?

Thanks guys. Have a good morning!

Cheers
old_edge5
 
Thanks very much for the effort, but I very much prefer anything far away from reconstructing this. I don't even know what I did so for far. This is not an option.



This sounds good, although I don't fully understand what you mean by "recreate all blizzard function"

Also I don't know how I could send you a file or a private message. Is it possible?

Thanks guys. Have a good morning!

Cheers
old_edge5

I'll send you a PM, it should show up on your Inbox.
 
Status
Not open for further replies.
Top