The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Hex via scripts

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 October 22nd, 2016 (9:56 PM).
Froosty's Avatar
Froosty Froosty is offline
The_Learner
 
Join Date: Sep 2014
Location: Somewhere in this world.
Age: 25
Gender: Male
Nature: Brave
Posts: 535
Hello everyone...
I wanted to ask if we can make changes to the hex values in a rom via scripts...

For eg.
If there is 12 34 56 at pointer 0x800000 then can i make such acript that i can change the bytes from 12 34 56 to AB CD EF....
I have actually got a cool idea about using the season system with this edit...
So if anyone know if this can be done or not pls tell me... :)
__________________
My works:
TOOL: TL's Quick Enhancer
TUTORIAL: Fire red habitat editing
TUTORIAL: Fire red Transparent text-box


| |
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old October 22nd, 2016 (10:02 PM).
Joexv's Avatar
Joexv Joexv is offline
ManMadeOfGouda
joexv.github.io
 
Join Date: Oct 2012
Location: Oregon
Age: 25
Gender: Male
Nature: Sassy
Posts: 1,035
Sadly you can't change bytes mid game.
__________________
New living flesh vessel who dis?
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old October 22nd, 2016 (10:54 PM).
Froosty's Avatar
Froosty Froosty is offline
The_Learner
 
Join Date: Sep 2014
Location: Somewhere in this world.
Age: 25
Gender: Male
Nature: Brave
Posts: 535
Quote:
Originally Posted by Joexv View Post
Sadly you can't change bytes mid game.
Its so sad... if it would have been possible then I had a nice idea for season (graphical) :(
still thanks for the reply :)
__________________
My works:
TOOL: TL's Quick Enhancer
TUTORIAL: Fire red habitat editing
TUTORIAL: Fire red Transparent text-box


| |
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old October 23rd, 2016 (4:02 AM).
miksy91's Avatar
miksy91 miksy91 is offline
Dark Energy is back in action! ;)
 
Join Date: Oct 2008
Location: Finland
Gender: Male
Posts: 1,480
You can achieve this by asm hacking. What you're practically trying to do is to make CPU read values "12 34 56" from address 0x8000000 if some bit a == 0. In case a == 1 instead, it should read from some other address than 0x8000000 where you may have written your hard-coded values AB CD EF.

You have probably done these kind of things by scripting already. Now all you have to do is to write an asm routine that does a similar thing:

1. Read byte value from ram address X where bit a resides.
2. Check bit a in the byte you read.
3. if a == 0: read values starting at 0x8000000.
4. else: read values from some other address.
__________________
Pokémon Dark Energy
Some ROM hacking related stuff
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old October 23rd, 2016 (4:48 AM).
BluRose BluRose is offline
blu rass
 
Join Date: Apr 2014
Location: michigan tech
Age: 22
Gender: Male
Nature: Timid
Posts: 812
+ if you'd like hook positions they should all be here:
http://www.pokecommunity.com/showthread.php?t=270288

it really shouldn't be that hard and i'm sort of surprised no one has done it yet, to be honest. you can just increment the value loaded into the register signifying tileset number and then have the game load that instead. myou can even make the value a constant increment , but you still need to make it like te EXACT same tileset but with a different season in mind
__________________
heyo check out my github:

BluRosie
highlights:
battle engine for heartgold
various feature branches in heart gold (fairy type, odd egg, mud slopes)

i'm a big part of the development team of pokemon firegold! all the code that i develop for that hack is also on my github

also on discord: BluRose#0412
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old October 23rd, 2016 (5:19 AM).
Froosty's Avatar
Froosty Froosty is offline
The_Learner
 
Join Date: Sep 2014
Location: Somewhere in this world.
Age: 25
Gender: Male
Nature: Brave
Posts: 535
Quote:
Originally Posted by miksy91 View Post
You can achieve this by asm hacking. What you're practically trying to do is to make CPU read values "12 34 56" from address 0x8000000 if some bit a == 0. In case a == 1 instead, it should read from some other address than 0x8000000 where you may have written your hard-coded values AB CD EF.

You have probably done these kind of things by scripting already. Now all you have to do is to write an asm routine that does a similar thing:

1. Read byte value from ram address X where bit a resides.
2. Check bit a in the byte you read.
3. if a == 0: read values starting at 0x8000000.
4. else: read values from some other address.
This seems a good idea to me.... if i remember well its something similar that jambo51 has done with day night shift ox pokemon.... i will try it out once though :)
Thanks for helping out.



Quote:
Originally Posted by BluRose View Post
+ if you'd like hook positions they should all be here:
http://www.pokecommunity.com/showthread.php?t=270288

it really shouldn't be that hard and i'm sort of surprised no one has done it yet, to be honest. you can just increment the value loaded into the register signifying tileset number and then have the game load that instead. myou can even make the value a constant increment , but you still need to make it like te EXACT same tileset but with a different season in mind
Well i understood somehow what you said... but i am unfamiliar to asm writing though :P
__________________
My works:
TOOL: TL's Quick Enhancer
TUTORIAL: Fire red habitat editing
TUTORIAL: Fire red Transparent text-box


| |
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old October 23rd, 2016 (5:30 AM).
Froosty's Avatar
Froosty Froosty is offline
The_Learner
 
Join Date: Sep 2014
Location: Somewhere in this world.
Age: 25
Gender: Male
Nature: Brave
Posts: 535
Y the way can the work done with writebyte to offset command???
Its used in ruby(might be) for transparent... will it work ???
__________________
My works:
TOOL: TL's Quick Enhancer
TUTORIAL: Fire red habitat editing
TUTORIAL: Fire red Transparent text-box


| |
Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old October 23rd, 2016 (8:08 AM).
Blah's Avatar
Blah Blah is offline
Free supporter
 
Join Date: Jan 2013
Location: Unknown Island
Gender: Male
Posts: 1,924
No, writebytetooffset is for RAM only, ROM as it's name suggest cannot be written to.
__________________
...
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
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 GMT -8. The time now is 9:18 AM.