[GUIDE] Deprotecting / Inserting a CP / Enabling SP
Posted: March 19th, 2009, 10:26 pm
by Risen
Note: I haven't played / cheated any wc3 maps in a long while, thus I probably won't reply to a "Oh mah gahd, I need halp!" PM. I might make a cheating guide for SC2, depending on how SC2 generally is.
Due to all of the requests I've seen from here, I've decided to create a little guide to teach you how to either deprotect, insert a cheatpack, or enable singleplayer.
The first guide is deprotection. I'll go ahead and split the three parts into spoilers for better view.
P.S.: You don't have to deprotect to do enable singleplayer or insert a cheatpack. You can completely skip this if you don't plan to completely change your map.
Spoiler:
I'm using Battlestadium DON as an example, since it's right here in my maps folder and it has plenty of files. First off, go ahead and open the map with RMPQEx: Make sure you "auto search", and "add listfile". (find the listfile that came with x-Dep and use it.) We need to get a complete listfile; listfiles are lists of the filenames, and without a listfile the filenames would be "file00001.xxx" or something similar.
Pictures help you see where you are and where you're supposed to be, so I made a bunch of screenshots.
Next, save the listfile, and put it in the x-Dep folder as well as your map.
To save a little time, open up the x-Dep configuration settings and change your first line to what mine is:
After you've done that, rename your map name to mymap.w3x so that x-Dep will use it. Also, make sure your listfile is named "listfile.txt". Run x-Dep after you've ensured both of these things.
Since Battlestadium is primarily a Chinese map, SILK Object Console has problems dealing with it. So for now, my Battlestadium DON isn't deprotected completely, but most maps don't use the Widgetiser tool, so most of the time you won't need to worry about it.
(P.S.: Any map that MPQMaster won't open has their MPQ header damaged. Extract all of the files, and then try to use MPQEditor to generate a new .w3x archive with all of the files.)
Second guide, adding a cheatpack.
Spoiler:
I'll be using Twilight ORPG v1.11 as an example, and since it's played rather frequently and easy to crack, it's a good example. Go ahead and run MPQMaster, open your map, select your listfile, and your map should be opened.
If you see a file called "Attributes", DELETE IT, as it'll crash your game after editing the .j file. Now, we'll be looking for the war3map.j, and it'll be either at the bottom of the page, or in a folder called scripts at the top.
I'll go ahead and open up scripts, and here's my war3map.j file.
The war3map.j file is basically the triggers, and a few other things are stored in it, too. You should hopefully know that. Next, we'll go ahead and extract it to desktop.
When you get it on desktop, open JASSCraft and open up that .j file.
As you see, I highlighted "globals": that's where all the variables and triggers are set. Our key places for the cheatpack are "globals", "endglobals" and "function main".
You should already have JJ's CP open in notepad. Next, I copied the "globals" part of the CP and pasted it under globals in the .j file.
After you've done that, use CTRL+F and search for "endglobals". Look here:
Now, find the "endglobals" part of JJ's CP and copy it. Paste it under endglobals like I've done.
Now, Search for "function main". Once you've found it, copy JJ's "function main" part of his CP, and paste it. NOTE: If you see "locals" under the function main, paste JJ's part AFTER them.
function main takes nothing returns nothing
local something
local weathereffect e
local rawr
local blah
[JJ's CP]
endfunction
After you've done that, do a syntax check to make sure you didn't make any mistakes.
After that, save.
Close JassCraft, go to desktop, open MPQMaster and find the war3map.j again. Right click it and use "add files".
Add your *new* war3map.j.
After you've done that, you'll need to flush the map:
"--> Operation --> Compact(Flush)"
Walah! You've successfully inserted a cheatpack.
Third guide: Enabling SinglePlayer.
Spoiler:
Open your war3map.j in JassCraft, CTRL+F, and search for "singleplayer".
Why search for singleplayer? Most anticheat functions use "bj_isSinglePlayer" to detect if you're in a singleplayer game. If it is a singleplayer game, it kicks you, disables the save/load functions, or some other horrible thing that prevents you from playing.
Anyways, you should come across something like this:
Copy what I did here:
Make sure you don't delete the function itself, but delete the functions that relate to "bj_isSinglePlayer".
After you're done, do a syntax check, and you should know the rest. Reinsert the *new* .j file into your map.
Have fun cheating!
If you have any questions, feel free to ask, and me or another staff member will add them to the Q&A.
- Q&A -
Spoiler:
Q 1.)Do I need to deprotect my map to add a cheatpack or enable singleplayer?
A.) Nope, you can do either of the three without needing to do the other.
Re: [Guide] Deprotecting / Inserting a Cheatpack / Enabling SP
Posted: March 20th, 2009, 12:54 am
by Senethior459
Very nice. Hopefully, the number of requests will drop somewhat, as people will learn to do it on their own from this.
Oh, and I have one question. Would you like to play a game, professor?
Seriously, whatever font JassCraft is using looks a lot like the ones they used in War Games.
Re: [Guide] Deprotecting / Inserting a Cheatpack / Enabling SP
Posted: March 20th, 2009, 1:04 am
by Risen
Senethior459 wrote:Very nice. Hopefully, the number of requests will drop somewhat, as people will learn to do it on their own from this.
Yeah, I noticed there's a shitload of requests.
Senethior459 wrote:Oh, and I have one question. Would you like to play a game, professor?
What's that supposed to mean? o.O...
Senethior459 wrote:whatever font JassCraft is using looks a lot like the ones they used in War Games.
Lol, I customized my JassCraft a little bit, Including adding vJass hotkey templates =), The text is 'Letter Gothic Std'
Re: [Guide] Deprotecting / Inserting a Cheatpack / Enabling SP
Posted: March 20th, 2009, 6:59 pm
by gudluck01
THANK YOU VERY MUCH......^^
this Guide really helps me thank you ...^^
Re: [Guide] Deprotecting / Inserting a Cheatpack / Enabling SP
Posted: March 20th, 2009, 8:59 pm
by Risen
Woot, No problem mate.
Re: [Guide] Deprotecting / Inserting a Cheatpack / Enabling SP
Posted: March 20th, 2009, 9:07 pm
by Kryptonyte
You guys do know that we already have a guide for all these...
actually, we have two for deprotecting... a guide for each CP...
and JJ's guide for enabling SP... We could have just put all those
into one post...? Also, you only showed JJ's CP.
Anyways, it's pretty nice I guess. Though if you wanted to make
it better, I'd suggest reducing the size of the pictures... they're a
little big... you could crop out most of the picture and just show
you what need.
Re: [Guide] Deprotecting / Inserting a Cheatpack / Enabling SP
Posted: March 20th, 2009, 9:20 pm
by Risen
Most of the guides are outdated and bad format.
And err.. I'm a little too lazy to recrop/reduce size =)
Re: [Guide] Deprotecting / Inserting a Cheatpack / Enabling SP
Posted: March 25th, 2009, 4:46 pm
by tatata87
Thanks for the detailed guide, it is really good enough for dummies like me too, especially with screenshot, I was so delighted when I saw the deprotected map, but still can't open it.
I attempted on Castle Fight v1.13b.
Please help me?
Re: [Guide] Deprotecting / Inserting a Cheatpack / Enabling SP
Posted: March 26th, 2009, 9:55 am
by gudluck01
what do you mean you cant open it ? in world editor?
Re: [Guide] Deprotecting / Inserting a Cheatpack / Enabling SP
Posted: March 26th, 2009, 3:33 pm
by tatata87
gudluck01 wrote:what do you mean you cant open it ? in world editor?
yes.. I cannot open Castle Fight in world editor. the map after deprotect is called "deprotected".
This application has encountered a critical error:
Not enough storage is available to process this command.
Program: f:\program files\warcraft iii\worldedit.exe
Object: WERandomGroupSet(.?AUWERandomGroupSet@@}