Professional Documents
Culture Documents
Hack Tuto 2
Hack Tuto 2
Sup everyone! Nice to see you're still learning. Today we'll see how to
hack PTD2, in a continuation of the PTD1 tutorial. If you haven't checked
it out, I heavily recommend it, for it contains all the starting stuff. For this
one, I will assume that you already know what AS and P-Code are, what a
decompiler is for and that your hacking folder is already set up.
Today, we're going to-
Enfin bref1. Today, I will show you how to work PTD2 in Jpexs, and a
little hack that I know you'll appreciate. Perhaps even more than a Shiny
Rate hack.
Today, we're getting rid of this:
*click*
Hm, what could we search? “Ad”, “popup”, perhaps “sponsor”? Let's try it
out.
Always in P-Code, mind. If you could get away with AS search in PTD1,
this time it will fry up your poor computer. Hope you like frozen stuff.
It might be scary to find up so much stuff, but let's act logically. Your
results might likely be on top of the list, for everything below is graphic
stuff. You're not looking for anything sound-related, for controls or stuff
outside of “code”: see, you've already eliminated a good chunk of search
results. Save yourself a lot of time searching all of these, and try to think
about what are the most likely options.
We did find some stuff related to the ad, but how can we be sure it's the
right file? If you have doubts, you can try another file, or another search.
Personally, I don't see anything here I could use to get rid of the ad popup.
Maybe you do, and that's good. There's not only one way to achieve a
given result: this tutorial is not a rulebook to follow at all costs, only a
guide. If something doesn't work as intended, but you tweak it so that it
does anyway, then it's great: it shows your resourcefulness. And that's
something no tutorial can teach you.
I just remembered, the Trainer Pass thing allows you to bypass ads
altogether, right? Let's see if we can maybe…
Don't forget to save. Which brings us to a lil technical point, which is that
if you've opened binary data as SWF data, you need to save twice.
The blue area is the “inside” of the SWF data. When you modify
something in there, it needs to be translated back into hexadecimals as
seen before. So you need to save once while you're in the blue area (the
Jpexs header will read “SWF Data”), and then once more when you're in
the orange area so that the file as a whole saves (the header will show the
filepath of your .swf). If you want to Save As another version, you can do
it in the orange area.
Aight, let's test it out!
...black screen. Well, no one said it'd be easy! When it fails, try again.
Code is capricious, remember. This time, we'll try something else.
Let's look at the code again. The way the ad system works is that if the
adCount value reaches 0, it will display an ad. With adMax being 10, you
get an ad every 10 levels. What if we turned adCount to 999? That means
it'd take 999 levels to get one ad. And just to be sure, let's give ourselves
trainer_pass = true.