wc3edit.net

United Warcraft 3 map hacking!
It is currently October 20th, 2018, 10:22 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: April 20th, 2018, 11:55 pm 
Offline
Moderator
User avatar

Joined: February 14th, 2018, 5:35 am
Posts: 516
Title: Just Another Mod
Hi. devoltz asked to update haxorico's guide, so here we go.

Image


1) Can't open map using MPQ Editor.



2) Can't find the war3map.j file.



3) Can't edit the map/There's a read-only tag.
    That means that the MPQ is corrupted/optimized/protected. In order to fix it you can:
      3.1. Use a different older version of Ladik's MPQ Editor (you can find it by clicking here! Look for useful tools.rar);
      or
      3.2. Rebuild the MPQ (Tutorial: Click here).



4) Can't host/play korean maps.
    Usually these kind of maps are using SProtect or SSProtect. If you wanna know how to bypass it click here!



5) Can't get RAWCODES.
    There are some maps you can't get the rawcodes because they are protected. You can fix it by rebuilding the mpq.
    Let's use this map as example: http://forum.wc3edit.net/fulfilled-requ ... 34874.html
    When you try to open it with RMPQex, that's what happens:
    Spoiler:
    Image

    So let's fix that.
      5.1. Open the map in Ladik's MPQ Editor;
      Spoiler:
      Image

      5.2. Extract all the files;
      Spoiler:
      Image

      5.3. Go to the folder where you extracted them and delete all the unknown files;
      Note: Doesn't matter how many unknowns files you got since we are worried about to get only the rawcodes.
      Spoiler:
      Image

      5.4. Open up Ladik's MPQ Editor, click on File and then New MPQ;
      Spoiler:
      Image

      5.5. Enter any name you want;
      Spoiler:
      Image

      5.6. Tick the Build the MPQ archive from a file or directory option and set the directory where you extracted all the files and then set the Game Compatibility to Warcraft III - The Frozen Throne.
      Spoiler:
      Image

      5.7. Next, Next, and then click on Finish
      Spoiler:
      Image

      5.8. Now you should be able to open the map in RMPQex and get the rawcodes.
      Spoiler:
      Image



Image


1) JassCraft shows the $ error.
    The map is optimized. It basically tries to obfuscate the errors you made when editing the map.
    When you try to use the JassCraft's syntax error, that's what happens:
    Spoiler:
    Image

    To fix it follow these steps:
      1.1. Download this tool: [FukKi]Hex Fixer v28 (click here)
      1.2. Open it, select the .j file, click on Save and then click on Fix Now.
      Spoiler:
      Image

      1.3. Now you should be able to use the JassCraft's syntax error without the $ error.
      Spoiler:
      Image



2) Function/Variable collisions.
    Some russian maps, DotA and etc use in their code the same function and variable names such as common cheat-pack. To fix it follow these steps:
    Use this war3map.j (it's the JJ CP's):
    Attachment:
    war3map.j

      2.1. Open up Ladik's MPQ Editor, click on File and then New MPQ;
      Spoiler:
      Image

      2.2. Enter any name you want;
      Spoiler:
      Image

      2.3. Next,Next, Next, and then click on Finish
      Spoiler:
      Image

      2.4. Drag and drop the war3map.j attached above into the MPQ File;
      Spoiler:
      Image

      2.5. Open up RMPQEx, select the MPQ File and then click on Deobfuscate JASS script..
      Spoiler:
      Image

      2.6. Set the outpute file name, tick Maintain line numbers (optional) and then click on OK;
      Spoiler:
      Image

      2.7. Now the cheatpack is free from any function/variable collision.
      Spoiler:
      Image



3) Anti-cheats problem.
NOTE: There are many ways to make an anti-cheat system... it's just a matter of knowledge and creativity from the map's creator. Do not expect that this method will work on every map.
    Some maps don't let you use -gold, -spawn commands and so on. Let's use this request as example: http://forum.wc3edit.net/fulfilled-requ ... 34917.html
    Whenever you try to use -gold or any cheat, that's what happens:
    Spoiler:
    Image

    So in order to fix that, we must look for -gold, -spawn etc in war3map.j file.
      3.1. As you can see, there are some anti-cheat triggers;
      Spoiler:
      Image

      3.2. Remove all of them
      Spoiler:
      Image

      3.3. Now you should be fine.
      Spoiler:
      Image



4) Single player problem.
NOTE: There are many ways to make an anti-sigle player system... it's just a matter of knowledge and creativity from the map's creator.
NOTEĀ²: Some maps have advanced methods to avoid single player... which means that removing only those commands won't work.
    I'll list here the four most commons anti-single player system.
  • The first thing you should do before is search for: if bj_isSinglePlayer and remove it. Example:
    Spoiler:
    Image


      4.1) Insta back to the lobby:
      Spoiler:
      Image

        4.1.1) In order to bypass it search for call CustomVictoryBJ and replace them with call DoNothing() or you can just delete them.



      4.2) Defeat when the game starts:
      Spoiler:
      Image

        4.2.1) In order to bypass it search for call CustomDefeatBJ and replace them with call DoNothing() or you can just delete them.



      4.3) Permanent loading:
      Spoiler:
      Image

        4.3.1) In order to bypass it search for call RestartGame(false) and replace them with call DoNothing() or you can just delete them.



      4.4) The game just ends:
      Spoiler:
      Image

        4.4.1) In order to bypass it search for call EndGame(false) and replace them with call DoNothing() or you can just delete them.

Well, that's it. I hope that this guide helps you guys.


You do not have the required permissions to view the files attached to this post.


Last edited by devoltz on April 21st, 2018, 1:22 pm, edited 2 times in total.
Edit to fix first line.


Top
 Profile  
 
PostPosted: April 21st, 2018, 12:44 pm 
Offline
Super Moderator
User avatar

Joined: March 23rd, 2016, 8:06 pm
Posts: 1985
Title: big brain
Nice guide.


Top
 Profile  
 
PostPosted: April 21st, 2018, 1:15 pm 
Offline
Shopping Maul USA Creator
User avatar

Joined: January 18th, 2007, 11:07 am
Posts: 1342
Location: Calgary Canada
Title: The Watcher
That's a lot of spoilers.

Great work.


Top
 Profile  
 
PostPosted: April 21st, 2018, 5:27 pm 
Offline
Moderator
User avatar

Joined: February 14th, 2018, 5:35 am
Posts: 516
Title: Just Another Mod
Thank you guys.

Yeah that's a lot... :lol:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)