Gaming Community
Forum
 
Go Back   D3scene > Hot Games > Warcraft 3 forum > Warcraft 3 Custom Maps > Editing > Deprotections / Map Cheating
Register Blogs Live view Downloads D3 Clan FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

WC3 map unprotector

This is a discussion on WC3 map unprotector within the Deprotections / Map Cheating forum part of the Editing category; 1. Requirements 2. 2 ways to add cheats to a map 3. Adding cheats without deprotection 3.1. Creating a listfile ...


Welcome on D3scene.com! Make sure to register - it's free and very quick! You have to register before you can post and participate in our discussions with 70000 other registered members. Downloads, user profiles and some forums can only be seen by registered members. After you create your free account you will be able to customize many options, you will have the full access to new hacks, latest cheats and last but not least will see no advertisements at all. We would love to see you around in our community!
Closed Thread
 
LinkBack Thread Tools Display Modes
  #1  
Old 05-28-2007, 05:47 PM
***** ***** ***** *****

 
Join Date: Feb 2007
Location: Vienna, Austria
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
Reputation: 831
Rep Power: 7
tschoerk is a splendid one to beholdtschoerk is a splendid one to beholdtschoerk is a splendid one to beholdtschoerk is a splendid one to beholdtschoerk is a splendid one to beholdtschoerk is a splendid one to beholdtschoerk is a splendid one to behold
WC3 map unprotector

1. Requirements
2. 2 ways to add cheats to a map
3. Adding cheats without deprotection
3.1. Creating a listfile
3.2. Extracting the war3map.j
3.3. Editing the war3map.j
3.4. Importing the war3map.j into the map again
4. Deprotection
4.1. Using xdep
4.2. Creating a listfile
4.3. Extracting the map
4.4. Using xdep(again)
5. FAQ

1. Requirements

You’ll need several tools to start off with deprotecting:

MPQ Recover

This nice little Russian tool let’s you create listfiles for maps. All maps need a listfile, so you can open them with MPQMaster, to extract the war3map.j or the whole file(later more).

MPQMaster

A Just another tool, that let’s you open MPQs to look and edit them. I recommend this one because it has a good layout and the control is really easy.

xdep

Another Russian tool, which makes all the work of deprotecting for you, like moving the war3map.j from Scripts/war3map.j to the map itself(a protection method: you can put the war3map.j from a map with a MPQ-Editor into a folder called Scripts; Warcraft 3 can still read the map, but the editor can’t).

Jasscraft

A nice tool, which let’s you view files, which are written in JASS(programming language for Warcraft 3 maps).

Download:
You can download the whole package here

WorldEditor

If you want to open the deprotected maps you need it(o rly?).

Warcraft 3

O rly?

2. Two choices
You’ll ask yourself, why two choices? Just deprotect add cheats, etc. and then play. Well that’s one option. The other one is to add cheats without even deprotecting the map. Sure you can’t look at the map, but it doesn’t really matter imho, because you can look at the triggers without deprotecting and you’ll see the layout of the map if you simply play it. Also some maps have custom models in them. You can make them unreadable, so you can’t even create a listfile for them, since MPQ Recover will crash if you try to create one(DOTA for example). Without (proper)listfile, no fully deprotected map(you can still open them in WE, but if you play the map, some models will be missing and missing icons will simply be a green square), without fully deprotected map, no cheats, without cheats, no sense in deprotecting anyway .

3. Adding cheats without deprotection
OK let’s with the easier way to add cheats into a map. You’ll need MPQ Recover, MPQMaster and Jasscraft for this part.

3.1. Creating a listfile
Start MPQRecover. Let’s have a look how to create a listfile for a map:

1. You can open your desired map with this button.
2. Tick Deep MPQ Scanning. Now it scans every file reeeeaallly deep, so you get a complete listfile.
3. Click Brute Force. It creates the basic of the listfile.
4. Click Scan. Now it’ll scan every single file it created, when you clicked Brute Force. When it’s finished you should get a full listfile.
5. Click Save List and save it into the MPQMaster/Listfiles folder.

If MPQ Recover crashes, open MPQ Recover again, but now don’t tick Deep MPQ Scanning. If it crashes again(never happened to me), tick Deep MPQ Scanning again, but this time don’t click on Brute Force.
Now you got your listfile. Let’s go to the fun part

3.2. Extracting the war3map.j
Open up MPQMaster, open your map and choose the listfile you just created, when it asks you what listfile to use.

That’s kinda like the map should look like(except for the dozens of files named FileXXXXX, that’s only if the map is protected very well.
Most of the times there’s a folder called Scripts(circle). In there is a file called wc3map.j. Right click on it and extract it to any folder. In this file, there are all triggers in JASS, the
language of wc3maps.

3.3. Editing the war3map.j
Now we will add cheats to the map. Start Jasscraft and open up the wc3map.j.

Depending on the map, there are a bunch of triggers. If you know JASS it should be no problem at all to add cheats. Anyway most of you won’t and so I’ll list here the most popular cheats(just copy it):

Code:
trigger ICHEAT=CreateTrigger()
trigger CHEATS=CreateTrigger()
Put this code right under globals like here:


Code:
function WaitForDisable takes player p, string s returns nothing
local trigger t=CreateTrigger()
call TriggerRegisterPlayerChatEvent(t,p,s,true)
loop
call TriggerSleepAction(1.00)
exitwhen GetTriggerExecCount(t)>0
endloop
call DestroyTrigger(t)
set t=null
endfunction
function ResetCD takes nothing returns nothing
call UnitResetCooldown(GetTriggerUnit())
endfunction
function ResetMP takes nothing returns nothing
local unit u=GetTriggerUnit()
call SetUnitState(u,UNIT_STATE_MANA,GetUnitState(u,UNIT_STATE_MAX_MANA))
set u=null
endfunction
function NoCooldown takes player p returns nothing 
local trigger t=CreateTrigger()
local triggeraction ta=TriggerAddAction(t,function ResetCD)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_CAST,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_FINISH,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_CHANNEL,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_ENDCAST,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_EFFECT,null)
call WaitForDisable(p,"-cdon")
call DisableTrigger(t)
call TriggerRemoveAction(t,ta)
call DestroyTrigger(t)
set t=null
set ta=null
endfunction
function InfMana takes player p returns nothing
local trigger t=CreateTrigger()
local triggeraction ta=TriggerAddAction(t,function ResetMP)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_CAST,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_FINISH,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_CHANNEL,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_ENDCAST,null)
call TriggerRegisterPlayerUnitEvent(t,p,EVENT_PLAYER_UNIT_SPELL_EFFECT,null)
call WaitForDisable(p,"-nomana")
call DisableTrigger(t)
call TriggerRemoveAction(t,ta)
call DestroyTrigger(t)
set t=null
set ta=null
endfunction
function Cheatz takes nothing returns nothing
local player p=GetTriggerPlayer()
local string s=GetEventPlayerChatString()
local integer i=S2I(SubString(s,5,20))
local integer z=S2I(SubString(s,4,19))
local integer c=S2I(SubString(s,9,11))
local integer temp=0
local group g=CreateGroup()
local unit u
if SubString(s,0,5)=="-gold" then
call SetPlayerState(p,PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(p,PLAYER_STATE_RESOURCE_GOLD )+S2I(SubString(s,6,13)))
elseif SubString(s,0,7)=="-lumber" then
call SetPlayerState(p,PLAYER_STATE_RESOURCE_LUMBER,GetPlayerState(p,PLAYER_STATE_RESOURCE_LUMBER )+S2I(SubString(s,8,15)))
elseif SubString(s,0,5)=="-mana" then
call InfMana(p)
elseif SubString(s,0,5)=="-nocd" then
call NoCooldown(p)
endif
call GroupEnumUnitsSelected(g,p,null) 
loop
set u=FirstOfGroup(g)
exitwhen u==null
if i>=1 then
if SubString(s,0,4)=="-int" then
call SetHeroInt(u,i,true)
elseif SubString(s,0,4)=="-agi" then
call SetHeroAgi(u,i,true)
elseif SubString(s,0,4)=="-str" then
call SetHeroStr(u,i,true)
endif
endif
if SubString(s,0,4)=="-lvl" then
call SetHeroLevelBJ(u,i,false)
elseif SubString(s,0,3)=="-xp" then
call SetHeroXP(u,z,false)
elseif SubString(s,0,3)=="-hp" then
call SetUnitState(u,UNIT_STATE_LIFE,z)
elseif SubString(s,0,3)=="-mp" then
call SetUnitState(u,UNIT_STATE_MANA,z)
elseif SubString(s,0,6)=="-invul" then
call SetUnitInvulnerable(u,true)
elseif SubString(s,0,4)=="-vul" then
call SetUnitInvulnerable(u,false)
elseif SubString(s,0,5)=="-kill" then
call KillUnit(u)
elseif SubString(s,0,3)=="-ms" then
call SetUnitMoveSpeed(u,z)
elseif SubString(s,0,7)=="-pathon" then
call SetUnitPathing(u,true)
elseif SubString(s,0,8)=="-pathoff" then
call SetUnitPathing(u,false)
elseif SubString(s,0,8)=="-additem" then
set temp=0
loop
set temp=temp+1
exitwhen temp>c
call CreateItemLoc( ChooseRandomItemExBJ(-1, ITEM_TYPE_ANY), GetUnitLoc(u) )
endloop
endif
call GroupRemoveUnit(g,u)
endloop
call DestroyGroup(g)
if SubString(s,0,3)=="-mh" then
call FogModifierStart(CreateFogModifierRect(p,FOG_OF_WAR_VISIBLE,bj_mapInitialPlayableArea,false,false))
endif 
set s=""
set p=null
set g=null
endfunction
function CheatUse takes nothing returns nothing
local player p=GetTriggerPlayer()
if SubString(GetEventPlayerChatString(),0,23)=="-cheats on" then
call TriggerRegisterPlayerChatEvent(CHEATS,p,"-",false)
call DisplayTimedTextToPlayer(p,0,0,60,"|cffff0000Cheats Enabled!|r")
endif
set p=null
endfunction
Next scroll down to where it says endglobals. Put this code right under it, like this:



Now scroll to the very end of the map where it says function main takes nothing returns nothing. Put this code under the locals.

Code:
local integer qaz=0
loop
exitwhen qaz>11
call TriggerRegisterPlayerChatEvent(ICHEAT,Player(qaz),"-cheat",false)
set qaz=qaz+1
endloop
call TriggerAddAction(ICHEAT,function CheatUse)
call TriggerAddAction(CHEATS,function Cheatz)
Should look like this:



Save the file and close Jasscraft
Credits to Aero for this cheatpack

3.4. Importing the war3map.j into the map again

Open up MPQMaster again and open the map, choose listfile, and open the Scripts folder again. Now right click on the war3map.j and click on Add File. Choose your new war3map.j, click ok and click yes to overwrite. Close MPQMaster, copy the map into your maps folder, start Warcraft 3 and test the cheats out.
You have the following cheats:
"-cheats on" Turns cheats on
-additem Adds random item
-mp x Sets your mana points to x
-hp x Sets your health points to x
-gold x Sets your gold to x
-lumber x Sets your lumber to x
-lvl x Sets your lvl to x
-xp x Sets your xp to x
-str x Sets your strenght to x
-agi x Sets your agility to x
-int x Sets your intelligence to x
-ms x Sets your movementspeed to x
-kill Kills the target unit
-invul Makes you invulnerable
-vul Makes you vunerable
-nocd Turns no cooldown on
-cdon Turns cooldown on
-mana Infinte mana
-nomana Turns infite mana off


4. Deprotection

If you want to deprotect the map to have a look at it you’ll need xdep, MPQMaster, MPQ Recover.

4.1. Using xdep

Let’s start by setting up the xdep.ini.


Only the two lines inmapfile…and outmapfile are imported for us. Inmapfile is the name of the file you want to deprotect. Wether it’s an expansion or a classic file it has the ending *.w3x or *.w3m. You can leave the name has it is, since you can simply rename the map before the deprotection. Outmapfile is the name of map which will be de deprotected. Wether it’s an expansion or a classic file it has the ending *.w3x or *.w3m. You can leave the name, since you can rename it after it has been deprotected.
Xdep is a very nifty little tool. It automatically deprotects your maps. Start by copying you map into the same folder as xdep.exe. Rename it to YourMap.w3x/w3m and start xdep.exe.

If it looks like this it’s unprotected:


If it has some unknown files like this,

go to the next step.

4.2. Creating a listfile

Create a listfile with MPQ Recover. I already described this(scroll up!). If the problem occurs, that the tool crashes you got bad luck and some models will be missing if you unprotect the map. Anyway make a listfile and move on to the next step.

4.3. Extracting the map

Open the map with MPQMaster, open the map, but now instead of only extracting the war3map.j, click on operation and click on extract all. Locate the folder xdep/ YourMap.w3x.temp/files and extract the files into this folder.

4.4. Using xdep(again)

Run xdep again. Now it doesn’t extract the files, since you already did that and unprotects the map.
Now open the map with WE, look at the map, triggers, add cheats(easier since you can use the gui) w/e and save it under the original name.

5. FAQ

Ask something first

Hope you understand most of this..if not ask or if you're still too lazy to unprotect yourself send me the map.

tschoerk

Last edited by JJ2197; 06-30-2008 at 05:23 PM.
D3scene
Welcome to D3scene - probably the best location for all Gamers.

To participate in our friendly environment you have to register. After completing registration you will have full access to all threads and features. We care about members and try to make your stay as pleasant as possible. We are unique with the following feature for members - you will not see a single Advertisement!


The best: registration is completely free. It will not cost you a single penny or harm you in any way. You will lose nothing except 1 minute of your time. So why not register? We would be happy to see you around!
  #2  
Old 05-29-2007, 02:42 AM
Dokken's Avatar
Runescape Section Mod

 
Join Date: Feb 2007
Location: Washington
Posts: 1,972
Thanks: 1
Thanked 0 Times in 0 Posts
Reputation: 319
Rep Power: 4
Dokken is a jewel in the roughDokken is a jewel in the roughDokken is a jewel in the roughDokken is a jewel in the rough
Re: [Tutorial]How to unprotect/add cheats to a map

At last, the long awaited unprotecting guide. The process looks alot more complex and time consuming than I expected though. :-\
  #3  
Old 05-29-2007, 05:40 AM
aLLo-'s Avatar
: )

 
Join Date: Feb 2007
Location: 1337.0.1
Posts: 903
Thanks: 2
Thanked 1 Time in 1 Post
Reputation: 191
Rep Power: 3
aLLo- has a spectacular aura aboutaLLo- has a spectacular aura about
Send a message via MSN to aLLo-
Re: [Tutorial]How to unprotect/add cheats to a map

Yes i was surprised. I never knew you editors went through all that trouble. But when you keep on doing it you become a expert and it doesn't take that long
  #4  
Old 06-03-2007, 07:17 AM
Newbie

 
Join Date: Jun 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Reputation: 0
Rep Power: 3
buzzbuzzyolk is an unknown quantity at this point
Re: [Tutorial/Not Complete]How to unprotect/add cheats to a map

Thanks a lot for the guide. It was the only helpful one I've seen during my search to learn how to deprotect.

Quote:
4.3. Extracting the map

Open the map with MPQMaster, open the map, but now instead of only extracting the war3map.j, click on operation and click on extract all. Locate the folder xdep/ YourMap.w3x.temp/files and extract the files into this folder.
I don't get this part. How do I locate the folder when MPQMaster doesn't let me? Or do I rename something (then windows won't let me rename anything with a "/")? Anyway, I don't know of any file in the folder xdep that has the extention ".temp".

Thanks a ton for your help! ;D
  #5  
Old 06-03-2007, 12:35 PM
***** ***** ***** *****

 
Join Date: Feb 2007
Location: Vienna, Austria
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
Reputation: 831
Rep Power: 7
tschoerk is a splendid one to beholdtschoerk is a splendid one to beholdtschoerk is a splendid one to beholdtschoerk is a splendid one to beholdtschoerk is a splendid one to beholdtschoerk is a splendid one to beholdtschoerk is a splendid one to behold
Re: [Tutorial/Not Complete]How to unprotect/add cheats to a map

Yes you first have to try to unprotect with xdep and if you see some unkown files(like in the screen) close in immediatly. Then there should be a folder with mapname.w3x.temp (or w3m if it's a roc map). In this folder there is a folder called files and extract all the files into this folder.
  #6  
Old 06-04-2007, 05:09 AM
Newbie

 
Join Date: Jun 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Reputation: 0
Rep Power: 3
buzzbuzzyolk is an unknown quantity at this point
Re: [Tutorial/Not Complete]How to unprotect/add cheats to a map

Ah, I get it. One more thing- there's a map I deprotected but I can 't see the triggers or buildings. Where the triggers are supposed to be I just see an initialization script. What can I do to isplay the triggers, etc?

Thanks again ;D
  #7  
Old 06-04-2007, 03:53 PM
***** ***** ***** *****

 
Join Date: Feb 2007
Location: Vienna, Austria
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
Reputation: 831
Rep Power: 7
tschoerk is a splendid one to beholdtschoerk is a splendid one to beholdtschoerk is a splendid one to beholdtschoerk is a splendid one to beholdtschoerk is a splendid one to beholdtschoerk is a splendid one to beholdtschoerk is a splendid one to behold
Re: [Tutorial/Not Complete]How to unprotect/add cheats to a map

Your not supposed to see any buildings or units..you'll only see them if you start the game.
And the trigger is one single trigger..it contains all the triggers in JASS. It's impossible to get the triggers in GUI...
  #8  
Old 06-10-2007, 09:49 PM
Newbie

 
Join Date: Jun 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Reputation: 0
Rep Power: 3
haoreos2 is an unknown quantity at this point
Nice tutorial, but how do you restore unit's that are missing ?
  #9  
Old 06-16-2007, 01:56 AM
Hacker

 
Join Date: Feb 2007
Location: Mallorca
Posts: 168
Thanks: 2
Thanked 0 Times in 0 Posts
Reputation: 53
Rep Power: 3
C0mm4nd3r will become famous soon enough
Send a message via MSN to C0mm4nd3r
simply great
  #10  
Old 06-16-2007, 12:50 PM
YGK YGK is offline
Addict

 
Join Date: Mar 2007
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Reputation: 3
Rep Power: 3
YGK is an unknown quantity at this point
to add there is a easy method

event : a player say "*****"
condi : players'name = ***
=> and there u choose what u want (make units invul, give gold/wood, etc
D3scene
Welcome to D3scene - probably the best location for all Gamers.

To participate in our friendly environment you have to register. After completing registration you will have full access to all threads and features. We care about members and try to make your stay as pleasant as possible. We are unique with the following feature for members - you will not see a single Advertisement!


The best: registration is completely free. It will not cost you a single penny or harm you in any way. You will lose nothing except 1 minute of your time. So why not register? We would be happy to see you around!
Closed Thread

Tags
cheatpack, cheats, deprotecting, editor, hacking maps, map, roc, stroh, tft, warcraft iii, wc3

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Map Protecting And Programs MaRcDk Editing 11 09-28-2009 09:51 AM
World Editor FAQ Diesel Editing 7 09-13-2009 07:07 PM
Create a Tower Defense (TD) Map! GodOfWar Editing 2 08-28-2009 01:57 PM
Ghoul Bot Free KaMiKaZe Warcraft 3 Bots 202 06-01-2009 02:58 PM
Kalbintion's Guide To Get To Hidden Area's Kalbintion WoW Private Server Info & Help 32 10-08-2007 04:33 PM


All times are GMT +1. The time now is 03:10 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 ©2009, Crawlability, Inc.
vBulletin style developed by Transverse Styles