Go Back   The PokéCommunity Forums > ROM Hacking > Tools, Tutorials & Resources
Reload this Page [Tutorial] Locking your ROM with hex

Notices
For all updates, view the main page.

Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.
New threads in this forum are to be approved by a moderator before they are displayed.



Closed Thread
 
Thread Tools
  #1    
Old April 26th, 2008 (05:31 PM).
Trace Trace is offline
Team Unova
 
Join Date: Oct 2006
Posts: 358
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.
  #2    
Old April 28th, 2008 (06:40 AM).
hi sir tomato my password is syvniti's Avatar
hi sir tomato my password is syvniti hi sir tomato my password is syvniti is offline
gggggggggggggggggg
Team Sinnoh
 
Join Date: Jan 2007
Location: My user name _ asciii_ +&h1!" lulz
Posts: 581
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?

Quote:
[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)
__________________
THE CAKE IS A LIE!!!!!!!!!!!!!!!!!!!!!!!
  #3    
Old April 28th, 2008 (07:42 AM).
Binary's Avatar
Binary Binary is offline
え?
Team Johto
 
Join Date: Aug 2007
Age: 20
Posts: 3,994
That's a fairly easy tutorial, but hey! It's great.
Too bad I haven't done anything like releasing a beta XD
__________________
  #4    
Old April 28th, 2008 (08:45 AM).
tImE's Avatar
tImE tImE is offline
It's still me, 44tim44 ;)
Team Hoenn
 
Join Date: Mar 2007
Location: Somewhere in Scandinavia...
Nature: Relaxed
Posts: 684
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
__________________
  #5    
Old April 28th, 2008 (02:52 PM).
Trace Trace is offline
Team Unova
 
Join Date: Oct 2006
Posts: 358
Well...yes...I guess it does give the idea of unlocking a rom xD
But it's merely just to pass around knowledge.
  #6    
Old April 28th, 2008 (07:42 PM).
destinedjagold's Avatar
destinedjagold destinedjagold is online now
Oh Hai Thar~ 'ω'
Team Kalos
Silver Tier
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Posts: 7,209
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? :\
__________________


3DS FC: 0061-1111-6462
TSV: 1364(X), 0790(OR)

  #7    
Old April 29th, 2008 (02:32 AM).
Cartmic's Avatar
Cartmic Cartmic is offline
Veteran ROM Hacker
Team Hoenn
 
Join Date: Oct 2003
Location: Jaymore City, Crion
Gender: Male
Posts: 616
Quote originally posted by destinedjagold:
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.
  #8    
Old April 30th, 2008 (07:39 PM).
liuyanghejerry's Avatar
liuyanghejerry liuyanghejerry is offline
Team Kalos
 
Join Date: Jan 2008
Location: China,Xi'an
Nature: Calm
Posts: 218
Send a message via ICQ to liuyanghejerry Send a message via Windows Live Messenger to liuyanghejerry Send a message via Yahoo to liuyanghejerry
yes,this skill will lock your ROM for a long time , but more and more player have known this...Is there any better skills?
__________________
Zel,thethethethe,LU-HO,Darthatron,HackMew,ZodiacDaGreat,Juan,score_under,JPAN,Tamah-chan,I really appreciate your kindness and your help!:D


I did something that really bad.But made all Chinese can hack Pokemon, too.If you guys hate me, I totally understand,but cannot do anything but force to keep everything.
If there must be someone to undertake all spit and curse, it must be me.
  #9    
Old May 1st, 2008 (12:39 PM).
Golden Arceus's Avatar
Golden Arceus Golden Arceus is offline
The First
Team Hoenn
 
Join Date: Oct 2007
Location: Hall Of Origin
Gender:
Nature: Lonely
Posts: 23
Send a message via Windows Live Messenger to Golden Arceus
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..
__________________
Info, pics and other cool stuff about platinum will be posted all day as its discovered.

LINK: http://pokemonplatinumnews.blogspot.com/
-Closed
  #10    
Old June 23rd, 2008 (12:42 PM).
hi sir tomato my password is syvniti's Avatar
hi sir tomato my password is syvniti hi sir tomato my password is syvniti is offline
gggggggggggggggggg
Team Sinnoh
 
Join Date: Jan 2007
Location: My user name _ asciii_ +&h1!" lulz
Posts: 581
Quote originally posted by Golden Arceus:
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?
__________________
THE CAKE IS A LIE!!!!!!!!!!!!!!!!!!!!!!!
  #11    
Old June 23rd, 2008 (10:13 PM).
Tropical Sunlight's Avatar
Tropical Sunlight Tropical Sunlight is offline
The Faltine
Team Kanto
 
Join Date: Mar 2008
Location: Slovenia
Age: 19
Gender: Male
Posts: 3,578
Send a message via Windows Live Messenger to Tropical Sunlight
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.
__________________
  #12    
Old June 29th, 2008 (03:46 AM).
GiantGroudon's Avatar
GiantGroudon GiantGroudon is offline
I doubled myself now
Team Sinnoh
 
Join Date: Dec 2007
Location: Austria
Gender: Male
Nature: Relaxed
Posts: 73
Send a message via Yahoo to GiantGroudon
There is a much simplier way to lock a rom. Just use RHEA.
__________________
This signature has been disabled.
Too wide. If you just stack those images on top of one another, you should be fine.
Please review and fix the issues by reading the signature rules.

You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.
  #13    
Old July 29th, 2008 (11:16 AM).
master morty's Avatar
master morty master morty is offline
Master Spriter
Team Hoenn
 
Join Date: May 2008
Location: The world I created yesterday
Gender:
Nature: Mild
Posts: 93
uh how do you repoint data to lock your rom?

It sounded promising
__________________
  #14    
Old July 29th, 2008 (05:35 PM).
IIMarckus's Avatar
IIMarckus IIMarckus is offline
J946@5488AA97464
Team Hoenn
 
Join Date: Oct 2007
Gender:
Posts: 402
Quote originally posted by mattsna:
uh how do you repoint data to lock your rom?

It sounded promising
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.
__________________
iimarck.us / hax.iimarck.us

If you want me, please contact me by email. [email protected]

If you want to hack Pokémon RBY or GSC, read, read, and read some more. This has tons of valuable information.

Pokémon Red disassembly project

Rules that should be rethought: 25charlimit, bumping.
Bad posts are bad posts, regardless of how many words are in them or how old the thread is.
Good posts are good posts, regardless of how old the thread is—and brevity is underrated.
  #15    
Old July 29th, 2008 (06:03 PM).
cooley's Avatar
cooley cooley is offline
///Keepin' it simple
Team Hoenn
Silver Tier
 
Join Date: Feb 2007
Location: United States
Age: 20
Gender: Male
Nature: Impish
Posts: 1,150
Send a message via Windows Live Messenger to cooley Send a message via Skype™ to cooley
Quote originally posted by GiantGroudon:
There is a much simplier way to lock a rom. Just use RHEA.
RHEA does the same as this tutorial...

Quote originally posted by Cartmic:
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...
__________________

  #16    
Old July 30th, 2008 (03:21 AM).
master morty's Avatar
master morty master morty is offline
Master Spriter
Team Hoenn
 
Join Date: May 2008
Location: The world I created yesterday
Gender:
Nature: Mild
Posts: 93
Quote originally posted by IIMarckus:
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?
__________________
  #17    
Old July 30th, 2008 (03:37 AM). Edited July 30th, 2008 by hi sir tomato my password is syvniti.
hi sir tomato my password is syvniti's Avatar
hi sir tomato my password is syvniti hi sir tomato my password is syvniti is offline
gggggggggggggggggg
Team Sinnoh
 
Join Date: Jan 2007
Location: My user name _ asciii_ +&h1!" lulz
Posts: 581
Quote originally posted by mattsna:
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

Quote:
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...

Quote:
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

Quote:
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...

Quote originally posted by cooley:
RHEA does the same as this tutorial...


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!!!!!!
__________________
THE CAKE IS A LIE!!!!!!!!!!!!!!!!!!!!!!!
  #18    
Old July 30th, 2008 (06:30 AM).
master morty's Avatar
master morty master morty is offline
Master Spriter
Team Hoenn
 
Join Date: May 2008
Location: The world I created yesterday
Gender:
Nature: Mild
Posts: 93
well thanks that helped but how and where do you find the pointer and how do you reverse it?
__________________
  #19    
Old July 30th, 2008 (08:57 AM).
hi sir tomato my password is syvniti's Avatar
hi sir tomato my password is syvniti hi sir tomato my password is syvniti is offline
gggggggggggggggggg
Team Sinnoh
 
Join Date: Jan 2007
Location: My user name _ asciii_ +&h1!" lulz
Posts: 581
Quote originally posted by mattsna:
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
__________________
THE CAKE IS A LIE!!!!!!!!!!!!!!!!!!!!!!!
Closed Thread
Quick Reply

Sponsored Links
Thread Tools

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

Forum Jump


All times are UTC -8. The time now is 10:51 PM.