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

[General] Opening Unprotected Maps

Status
Not open for further replies.
Level 32
Joined
Apr 2, 2013
Messages
3,954
This probably should be something simple, but I'm clueless. Is there a reason why when I open unprotected maps, that the triggers get destroyed/missing? Not all maps do this, but a handfull. Is it because they don't want it to be stolen?

Sometimes I get a message something like "destroy trigger doesn't exist" but I'm not sure if that's connected to it.
 

EdgeOfChaos

E

EdgeOfChaos

Sounds like someone didn't deobfuscate the map script with RMPQEx when they were deprotecting the map. (Not saying you necessarily deprotected it, but it's probably a (poorly) deprotected map if the triggers are gone. That, or the mapmaker did it on purpose to hide them)
 

EdgeOfChaos

E

EdgeOfChaos

To be clear, when you open the map there are no triggers, right? Just the map icon with the map name, no folder or triggers below?
If so, there are 2 ways this can happen.

1) Mapmaker obfuscates his script but leaves the rest of the map unprotected for some reason (they don't want people copying code)
2) Mapmaker protects his map, people poorly deprotect it without deobfuscating scripts, resulting in loss of triggers. They then release this deprotected map.

It would help if you post the map.
 

EdgeOfChaos

E

EdgeOfChaos

Just view the script manually through war3map.j (extract via mpqmaster). The mapmaker hid it from being viewed in world editor.

Attached the war3map.j for the first map if you want to see.
 

Attachments

  • war3map.j
    44.3 KB · Views: 122
(1) If it is "Destroy trigger doesn't exist", or some error along those lines, then they likely used WEU custom triggers or EGUI. Those were both popular mods for the trigger editor that added extra GUI functions, events, etc. (or they could be using their own modifications). You can open the map only if you have the mod they used (WEU or EGUI) or if you modify your own editor to include those trigger functions.

Usually, those maps aren't protected, but those functions may act as "soft protection" against users without the mod. That sort of protection usually isn't intentional though (it is often better to destroy the triggers file completely)

(2) If triggers are destroyed/missing, they have either deleted the editor's trigger files or they have replaced it with a blank one. The only thing that matters for the map is the war3map.j, so deleting/replacing the triggers file is usually for map protection/optimization. If the user did that, then the map likely considered "protected" by the author (unless he says otherwise). You can try requesting an unprotected version from the author.

We don't support deprotecting maps or the discussion of it. Make sure the maps in question are the original ones. Even if someone else did the deprotecting, we don't support it.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,198
Vexorian's map optimizer can be set to remove all World Edit trigger data so the map still works and can load in the editor but triggers are all missing from the editor and saving does not work (it overwrites the map script deleting all triggers so you end up with a triggerless map).

You cannot modify the triggers using World Edit. You can modify the trigger script file directly using any text editor and then using a MPQ editor like MPQEdit you can import it back into the map. You can use World Edit to modify the map as long as you remember to import the trigger script back into the map (replacing the generated blank one) before you can play it. Obviously you cannot test from World Edit until this is done and may require closing the map within World Edit to allow MPQEdit write permission of the map archive file.

It is still recommended to try and obtain the original version of the map from the map author. If you plan to modify the map you should really ask permission from the maker first as they may not want you modifying it, even if you have good intentions.
 
It is because of the war3map.w3t file, which contains all the info needed for the trigger editor. Map makers can import a blank one of these files into the map to protect the triggers from being directly edited, but still make the map openable in the editor. Deleting this file simply causes the editor to crash, or not load the map (please correct me if the file I named is not the correct one).The missing trigger function is indeed that the trigger editor file is present, but contains data pointing to a GUI function that was added to the TriggerData.txt file on the computer that saved the map (or such a function added because of a 3rd party editor). There is no* way to fix this, and is pretty much as good as protected.

*You can add such a function to match the signature of the used function to make it load, or modify the trigger data file to remove that line of GUI code from the trigger that uses it. Both are guesswork and/or extremely difficult to manage.*
 
Status
Not open for further replies.
Top