Hello! I deprotected myself Herocraft 2.5c (http://epicwar.com/maps/66207/), but now i dont know what to do with this. Any time i write code to execute new trigger/function, and replace War3map.j via mpq Master, the game refuses to start. If i create it, it doesn't show any player information, just clean screen and map preview picture. If i push start, it just plays animation in menu and brings me back to blank map preview screen. I noted, that if i change existing functions or triggers, or add new, but not execute them, all works fine. But each time i execute in some part of code new trigger or function, game refuses to start. wtf?
P.S. Attributes file deleted.
Here's an idea...
make a blank map in World Editor...
Make the triggers you want to add
into that map... open the .j file,
copy the triggers...
then, open the map you want to
add the triggers to, DON'T deprotect it. (It will corrupt the map...)
And open it's .j file, place the triggers
in the proper places (globals/endglobals/function main) or w/e,
then play the map. It will work. (delete attributes)
P.S. I don't get why people think
deprotecting a map helps with editing
the triggers in JASS, it corrupts unit models/triggers/everything. (not all the time... but still...)
Ok. Now when i make changes in worldedit, then save the map it appears to be completely corrupted. When i do this, i change war3map.w3i to blank one, then edit map, then change it back to old one. When I save, it finds 2000 compilation errors, and after that war3map.w3i doesnt work as it should, player's data doesn't display at map preview, even name of the map is lost. I saw deprotected version of herocraft 2.03 here, how did u manage to deprotect that war3map.w3i file?
there is no deprotecting in this process!
Open World Editor. Make a new, blank map. It's NOT corrupted.
Make the triggers and save the map. Open it in MPQMaster,
copy the triggers, save them to a notepad.txt.
With MPQMaster, open the ORIGINAL version of the map
you want to add triggers in, NOT the deprotected one.
Add the triggers in the proper places.
Save the .j file, add it to the map.
Done.
Where are you getting a corrupted map? You don't have
to deprotect ANYTHING.
I understood what should i do with triggers. But how do i change abilities? Map refuses to save, i've got loads of compilation errors, similiar to some other users here. (Expected a variable name/Expected a name etc..) Can i edit .w3a file some way?
...Yes? You can edit the ENTIRE map without deprotecting it.
Make a blank map in World Editor. Open the map that you
want to change in MPQMaster, extract the files you want
to change. Add them to the blank map, change, save.
Rinse, repeat. gg'd.