PDA

View Full Version : [Tutorial] Locking your ROM with hex


Trace
April 26th, 2008, 05:31 PM
Warning: This tutorial is for releasing betas or alphas. If you do this to a ROM, tools will not load it. Use with extreme caution.

What is the point in locking a ROM?
----------------------------------------
When releasing a beta or alpha or whatever of your hack, would you want people to go into advanced map and maybe cheat some stuff? Edit movement permissions? Or steal? I know I wouldn't. Locking your ROM changes the ROM code, so most programs
won't recognize it. Meaning they won't load it.

You will need...
------------------
- A ROM (don't ask for one!)
- A hex editor (I use hex workshop.)


The First Step
----------------
Open your ROM in your hex editor. Fairly easy step. XD


The Second Step
-------------------
Look for where it says:
BPRE (For Firered)
AXVE (For Ruby)
(Or any other four letter code if your using a different ROM)

The Third Step
----------------
Enter your own 4 letter code over it.

The Last Step
---------------
Save! Your done! That was horribly simple, wasn't it?



Credits
--------
Me, for writing the tutorial.

Hope you found this helpful.

hi sir tomato my password is syvniti
April 28th, 2008, 06:40 AM
Omg, Great! Ehmm... What's the reason for this?
First of all it don't realy look the rom... Second, Could you not tell about how the code works (If you are using a spanish rom, then the last letter would be S)? (Or any other four letter code if your using a different ROM)..? You wont to crash people's hacks? If you just tell them to look for some thing with four letters?
And give some offsets?

[AXVJ]
Pokémon Ruby (Japanese)

[AXVE]
Pokémon Ruby (English)

[AXVI]
Pokémon Rubino (Italiano)

[AXVS]
Pokémon Rubi (Español)

[AXVF]
Pokémon Rubis (Français)

[AXVD]
Pokémon Rubin (Deutsch)

[AXPJ]
Pokémon Sapphire (Japanese)

[AXPE]
Pokémon Sapphire (English)

[AXPI]
Pokémon Zaffiro (Italiano)

[AXPS]
Pokémon Zafiro (Español)

[AXPF]
Pokémon Saphir (Français)

[AXPD]
Pokémon Saphir (Deutsch)

[BPEJ]
Pokémon Emerald (Japanese)

[BPEE]
Pokémon Emerald (English)

[BPEI]
Pokémon Smeraldo (Italiano)

[BPES]
Pokémon Esmeralda (Español)

[BPEF]
Pokémon Emeraude (Français)

[BPED]
Pokémon Smaragd (Deutsch)

[BPRJ]
Pokémon Fire Red (Japanese)

[BPRE]
Pokémon Fire Red (English)

[BPRI]
Pokémon Rosso Fuoco (Italiano)

[BPRS]
Pokémon Rojo Fuego (Español)

[BPRF]
Pokémon Route Feu (Français)

[BPRD]
Pokémon Feuerrote (Deutsch)

[BPGJ]
Pokémon Leaf Green (Japanese)

[BPGE]
Pokémon Leaf Green (English)

[BPGI]
Pokémon Verde Foglia (Italiano)

[BPGS]
Pokémon Verde Hoja (Español)

[BPGF]
Pokémon Vert Feuille (Français)

[BPGD]
Pokémon Blattgrüne (Deutsch)

[ADAE]
Pokémon Diamond (English)

[ADAS]
Pokémon Diamonte (Español)

Binary
April 28th, 2008, 07:42 AM
That's a fairly easy tutorial, but hey! It's great.
Too bad I haven't done anything like releasing a beta XD

tImE
April 28th, 2008, 08:45 AM
Well this is a great tut,
but because you distribute
it like this, it also means people now also
know how to "UN-lock" Betas/Alphas XD

So it is a great function but not great when
Everybody knows about it XD

//44tim44

Trace
April 28th, 2008, 02:52 PM
Well...yes...I guess it does give the idea of unlocking a rom xD
But it's merely just to pass around knowledge.

destinedjagold
April 28th, 2008, 07:42 PM
hm.., I see...
well.., pretty useless if everyone now knows about it. xD

but hey, great tutorial! I was about to ask how to lock my ROM when releasing betas... Thanks so much~

btw... will they be able to find our own codes if they'll try opening it up? :\

Cartmic
April 29th, 2008, 02:32 AM
hm.., I see...
well.., pretty useless if everyone now knows about it. xD

but hey, great tutorial! I was about to ask how to lock my ROM when releasing betas... Thanks so much~

btw... will they be able to find our own codes if they'll try opening it up? :\

Indeed.

A better way of doing this is to repoint everything you dont want people to fiddle aound with. Though if your not just your average Poke Community pokemon rom hacker you will still be able to find the stuff.

So this really applies to those you havn't a clue about searching for data them selves.

liuyanghejerry
April 30th, 2008, 07:39 PM
yes,this skill will lock your ROM for a long time , but more and more player have known this...Is there any better skills?

Golden Arceus
May 1st, 2008, 12:39 PM
I'm working on a hack and Ive been testing it on an ancient flash cart that holds one rom.. normally diamond and pearl would recognize a regular unhacked rom in the cart.. but if I do this to my hack (which will from now on live on the cart) will D/P still recognize it? or trading with any 3rd gen? I thought they read the header information to determine the ability to connect to other carts..

hi sir tomato my password is syvniti
June 23rd, 2008, 12:42 PM
I'm working on a hack and Ive been testing it on an ancient flash cart that holds one rom.. normally diamond and pearl would recognize a regular unhacked rom in the cart.. but if I do this to my hack (which will from now on live on the cart) will D/P still recognize it? or trading with any 3rd gen? I thought they read the header information to determine the ability to connect to other carts..
DP will check the header... I think I got the pointier to the data in DP i you want to hack that?

Tropical Sunlight
June 23rd, 2008, 10:13 PM
I think there is a program RHEA - Rom Header Editor Advance - Made by HackMew that does exactly the same, only more. So I think this tutorial is useless.

GiantGroudon
June 29th, 2008, 03:46 AM
There is a much simplier way to lock a rom. Just use RHEA.

master morty
July 29th, 2008, 11:16 AM
uh how do you repoint data to lock your rom?

It sounded promising

IIMarckus
July 29th, 2008, 05:35 PM
uh how do you repoint data to lock your rom?

It sounded promisingTo repoint data, you need to know the location of the data and where the pointer to the data is. Then just move the data somewhere else in ROM and change the pointer to point to the new location.

cooley
July 29th, 2008, 06:03 PM
There is a much simplier way to lock a rom. Just use RHEA.
RHEA does the same as this tutorial...:tired:

Indeed.

A better way of doing this is to repoint everything you dont want people to fiddle aound with. Though if your not just your average Poke Community pokemon rom hacker you will still be able to find the stuff.

So this really applies to those you havn't a clue about searching for data them selves.
Well that will help, but don't repoint anything like scirpts, because then that will affect gameplay. Only a Dumb Person would do that though...

master morty
July 30th, 2008, 03:21 AM
To repoint data, you need to know the location of the data and where the pointer to the data is. Then just move the data somewhere else in ROM and change the pointer to point to the new location.


How do you find the location of the data and the pointer? (for example disabling them from opening it in advance map)

How do you move the data somewhere else in the rom?

And finally how do you change the pointer to point to the new location?

Sorry if I'm being annoying but, I really want to know.

Can you tell me how to in, emerald, ruby, and fire red?

hi sir tomato my password is syvniti
July 30th, 2008, 03:37 AM
How do you find the location of the data and the pointer? (for example disabling them from opening it in advance map)¨
Hi, You find the data, then you just reverse te pointier and seach of that

How do you move the data somewhere else in the rom?
You copy it, propply replace the old data with some FF's or another mark if you want to keep it as free space...

And finally how do you change the pointer to point to the new location?
You just overwrite the old reversed pointier with the new reversed pointer

Sorry if I'm being annoying but, I really want to know.

Can you tell me how to in, emerald, ruby, and fire red?
It's 100% the same in all the games... Not just these games... ALL...

RHEA does the same as this tutorial...:tired:


Well that will help, but don't repoint anything like scirpts, because then that will affect gameplay. Only a Dumb Person would do that though...



What do you mean by that?
I don't really understand...

But neather can I see a point of that... Old scripts - DIE!!!!!!

master morty
July 30th, 2008, 06:30 AM
well thanks that helped but how and where do you find the pointer and how do you reverse it?

hi sir tomato my password is syvniti
July 30th, 2008, 08:57 AM
well thanks that helped but how and where do you find the pointer and how do you reverse it?

Well, you should know the pointier... I don't know what you are looking for... But reversing it is simpel... Just reversed evey byte, not number fx 123456 would be 563412, if you want to limit your seach then put 08 in the end, which tells it's a pointier....
12 34 56
I
56------I

12 34 56
I
34

12 34 56
I
I-------12

Putted toghetter 563412 + 08 ------- 56341208