• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Cannot Click Missions on Custom Campaign screen after Ladik MPQ editor

Level 31
Joined
Jul 26, 2008
Messages
1,575
Hi,
I searched for the answer to this question on hive, and nothing came back, so I am asking here.
Basically, when I extract a map from a custom campaign file via Ladik's MPQ editor, then extract the WTS file (shows all the dialogue and stuff via triggers, etc) from that map, edit the WTS file in notepad, put it back into the map (via Ladik's MPQ editor), and put the map back into the campaign (also through Ladik)--- when I try to open up the custom campaign in Wc3, it won't let me click any buttons for the missions for the custom campaign. So, I can open up the individual custom campaign screen itself, but clicking on missions within that custom campaign has no response.

I last encountered this issue a few years ago, but I was able to remedy it by exporting the individual maps and reimporting the maps from the campaign file itself (everything else through Ladik's MPQ editor is fine, like opening the map itself for the WTS file, etc.) This time though, I have a campaign I cannot open in the world editor due to third party trigger functions, so I cannot circumvent this problem via my previous solution. I was wondering if anyone had any ideas on how to avoid this from happening. Thanks.


Edit1: I have played around with it more. Extracting a map, then readding it to the campaign file via Ladiq's MPQ editor in itself does not cause this "corruption" --- I tried doing it just now without editing the map itself, and it was still playable. Opening the map in Ladiq's MPQ seems to be causing the issue, and corrupting the map. Even if I do not edit anything in the WTS file in the map (just extracting the WTS file, and readding it right afterwards), the map apparently is corrupted, and the campaign becomes corrupted when i readd it. The only difference between opening the map and campaign is, when I open the campaign, it just opens it up in Ladiq's MPQ editor right away, but when I try to open a map, it gives me this screen (ignore the red, hiding my name):

1756982949670.png



I just click "Ok", since I do not know what I am doing. Anyone know if I am supposed to do something other than click "Ok"? Like I said above, opening the campaign file does not have this issue (opens directly into the file, as below):

1756982640194.png


Edit2: I noticed in the second picture, there are no attributes for any of the .w3x map files (every other file has an "attribute", mostly (C----)). Could this be somehow related? Since it is definitely something related to the maps that is causing this issue.


Edit3: I have tried adding the main campaign file to the base MPQ options as shown below. This allows me to re-add the map back to the campaign file without it being corrupted, but then I find that the changes I made to the WTS do not appear in the campaign. The campaign still shows the original texts. This problem seems to have been documented without an exact solution.

1757081297846.png
 
Last edited:
Would you be able to share a link to the campaign that you are trying to edit? (or send it via a DM?)

The "C" attribute usually just means the file is stored with compression--which is optional. So it might be something else.

P.S. you blocked out your name in the first screenshot but left it in the last screenshot lol
 
P.S. you blocked out your name in the first screenshot but left it in the last screenshot lol
Thanks, fixed.

I sent you a message with 3 variations of what I am talking about. A normal file, a corrupted file (can't click on the button), and one which the WTS was changed but the changes were somehow not applied to in-game (test the 2nd map from top, that's the one I was messing around with).
 
Thanks, fixed.

I sent you a message with 3 variations of what I am talking about. A normal file, a corrupted file (can't click on the button), and one which the WTS was changed but the changes were somehow not applied to in-game (test the 2nd map from top, that's the one I was messing around with).
Thanks for sending those over!

And turns out your intuition about the "C" attribute was totally right! That seems to cause problems with wc3 loading campaign levels. If I add the map file without compression, then it is selectable in-game just fine. :thumbs_up:

If I had to guess at the exact reason, it may be because maps are MPQ's themselves (i.e. already a compressed format) so they may not have expected those files to be stored with compression themselves. But that flag typically works on everything else.

To fix it:
  1. In the MPQ Editor, go to Tools > Game Compatibility:
    1757108510990.png
  2. Select Custom Ruleset and then select Edit Custom Ruleset.
    1. Select "New" and set the value as Mask:*.w3x. Then select the "Options" section for that mask and deselect the "Compress the file" option. Essentially, this will say: "hey whenever you add a file to an MPQ that has the extension .w3x, do not compress it".
      1757108852471.png
    2. Just in case, I recommend also adding a mask for Mask:*.w3m so that you won't run into problems adding files with either format. By the end, your ruleset should look like this (make sure you place your custom rules above the default rule):
      1757108651535.png
    3. After that's done, press OK. Make sure the "Custom ruleset" option is selected in the radio button in the "Game Compatibility" modal, and then press OK.
  3. Finally, you can delete and add the maps back as usual. This time, when you add a map it should show up without the "C" flag in the options.
Then try it out in game!
sample-translation.png
 
Thanks for sending those over!

And turns out your intuition about the "C" attribute was totally right! That seems to cause problems with wc3 loading campaign levels. If I add the map file without compression, then it is selectable in-game just fine. :thumbs_up:

If I had to guess at the exact reason, it may be because maps are MPQ's themselves (i.e. already a compressed format) so they may not have expected those files to be stored with compression themselves. But that flag typically works on everything else.

To fix it:
  1. In the MPQ Editor, go to Tools > Game Compatibility:
    View attachment 548576
  2. Select Custom Ruleset and then select Edit Custom Ruleset.
    1. Select "New" and set the value as Mask:*.w3x. Then select the "Options" section for that mask and deselect the "Compress the file" option. Essentially, this will say: "hey whenever you add a file to an MPQ that has the extension .w3x, do not compress it".
      View attachment 548578
    2. Just in case, I recommend also adding a mask for Mask:*.w3m so that you won't run into problems adding files with either format. By the end, your ruleset should look like this (make sure you place your custom rules above the default rule):
      View attachment 548577
    3. After that's done, press OK. Make sure the "Custom ruleset" option is selected in the radio button in the "Game Compatibility" modal, and then press OK.
  3. Finally, you can delete and add the maps back as usual. This time, when you add a map it should show up without the "C" flag in the options.
Then try it out in game!
View attachment 548579
Just to confirm, once you follow those steps, can you just normally extract the map and open it without going through what I described in the final picture (adding the campaign mpq to the path as well).

I really appreciate you going through all those steps. I honestly am not going to test it out cause I got so mad from constantly testing it that I am just choosing to investigate further how to delete every single piece of third party W.E triggers in the campaigns instead of resorting to MPQ editor stuff, because now I am scared it will randomly corrupt on me for unknown reasons, and that saps my motivation massively. If I really cannot delete the third party stuff, I will definitely try this method out. Thank you, PurgeAndFire.

Edit: I think this problem has been affecting people for a long time, but prior to 1.32 the issue would display as giving an error about invalid mission data when clicking on the campaign button, whereas post 1.32 I think it's a bug that it does not display that error and the buttons just seem unresponsive instead.

Edit2: This is an exact picture of what it used to look like. I even posted it myself ha-ha.
[General] - WTS Editing Error
 
Last edited:
Just to confirm, once you follow those steps, can you just normally extract the map and open it without going through what I described in the final picture (adding the campaign mpq to the path as well).

I really appreciate you going through all those steps. I honestly am not going to test it out cause I got so mad from constantly testing it that I am just choosing to investigate further how to delete every single piece of third party W.E triggers in the campaigns instead of resorting to MPQ editor stuff, because now I am scared it will randomly corrupt on me for unknown reasons, and that saps my motivation massively. If I really cannot delete the third party stuff, I will definitely try this method out. Thank you, PurgeAndFire.
haha no worries, this kinda thing can be incredibly frustrating. And yes, you can just extract it normally and open it normally without doing any of the stuff mentioned in your final pic. Just set-up that ruleset once and you're good to go forever! (even if you close and re-open the mpq editor, it'll keep your ruleset settings)
 
Back
Top