The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page approach for creating an original region based hack

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old February 6th, 2017 (3:29 AM).
lotta65 lotta65 is offline
 
Join Date: Jul 2013
Posts: 8
I will be using Fire Red as a base to construct an original region for my hack, but I have a question about the best way to approach it. Does it make more sense to use JPAN's cleaning patch and write 100% original scripts from the ground up (I have a limited understanding of what everything in the games scripts do when I reference them, so I'm concerned if I start from scratch I may miss something important, or use the wrong flags, etc) or does it make more sense to leave the games scripts intact and try to rebuild them with my own routines.

Some of the main ones I dont understand are most of the map scripts, and why they exist. (Some are very self explanitory, such as oak checking your pokedex when you enter pallet town, but others such as this one baffle me. This is "on entering map/not on menu close script #0 for pallet town."
Spoiler:
'---------------
#org 0x165465
setworldmapflag 0x890
checkflag 0x291
if 0x1 call 0x8165488
compare 0x4070 0x0
if 0x1 call 0x81654A8
compare 0x4070 0x1
if 0x1 call 0x81654A2
end

'---------------
#org 0x165488
checkflag 0x83E
if 0x0 goto 0x81A77A9
compare 0x4070 0x1
if 0x4 goto 0x81A77A9
setvar 0x4070 0x1
return

'---------------
#org 0x1654A8
checkflag 0x291
if 0x1 goto 0x81654BD
movesprite2 0x1 0x5 0xF
spritebehave 0x1 0x7
return

'---------------
#org 0x1654A2
setvar 0x4070 0x2
return

'---------------
#org 0x1A77A9
return

'---------------
#org 0x1654BD
movesprite2 0x1 0xC 0x2
spritebehave 0x1 0x8
setvar 0x4002 0x1
return


I feel very lost navigating the games scripts most of the time, maybe there is a tutorial someone could steer me towards to help with that?

Anyways, I'm rambling. My apolagies. Any help with this would be much appreciated. Or tips in general. :)
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

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 GMT -8. The time now is 9:23 AM.