The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > ROM Hacking > Research & Development
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

Research & Development Got a well-founded knack with ROM hacking? Love reverse-engineering the Pokémon games? Or perhaps you love your assembly language. This is the spot for polling and gathering your ideas, and then implementing them! Share your hypothesis, get ideas from others, and collaborate to create!
Research & Development programs in this forum are subject to moderator approval before they are displayed.


Advertise here

Reply
 
Thread Tools
  #1    
Old February 27th, 2010, 07:32 AM
Giga Universe's Avatar
Giga Universe
Working on a tool.
 
Join Date: Aug 2007
Location: South Africa
Age: 19
Gender: Male
Nature: Calm
Send a message via ICQ to Giga Universe Send a message via AIM to Giga Universe Send a message via Yahoo to Giga Universe Send a message via Skype™ to Giga Universe

Advertise here
Ok, so I've been creating these for a while now. They're pretty useful (at least to me) and I've given some out to others already. So I'll post all my header files for XSE here, and then give an explanation to each one.

How to use a Header File:
1. Download the ZIP file attached to this post.
2. Unzip and extract the contents to the directory where XSE is installed.
3. Then, whenever you need to use the header file, in your script, type #include "name of header file".rbh (without the quotes)
4. Then you can use the contents of the file in that script.
Variable RAM Addresses (FireRed/LeafGreen):
This header file contains the RAM Addresses to the location where the data in a variable is stored. This file contains addresses for ALL the variables. Probably more useful for ASM hackers, it is nevertheless useful to oridnary scripters - especially when copying data from a variable to another RAM Address (that isn't a variable)
Link: Download Here
Example:
Spoiler:
#dynamic 0x800000
#include stdvariableaddresses.rbh //(Change to the name of your header file. This is the default name.)
//This script copies the contents of LASTRESULT to 0x3005537 and 0x3005538 three times,
//In three different ways

#org @start
//Copies contents of LASTRESULT to 0x3005537 and 0x3005538
copyvar 0x3005537 0x202E5B2
copyvar 0x3005538 0x202E5B3
//Same function as above
copyvar 0x3005537 VAR_800D
copyvar 0x3005538 VAR2_800D
//Same function as above
copyvar 0x3005537 VAR_LASTRESULT
copyvar 0x3005538 VAR2_LASTRESULT
end


Applymovement Numbers (All Versions):
This header file contains numbers to help you easily plan applymovement commands.
Link: Download Here
Credits: Larsie13


If you have any header files you think are useful, post them here and I'll add them to this post (Remember to specify whether they are for FireRed/LeafGreen, Ruby/Sapphire or Emerald). Also, when I find mine I'll add them as well.

Please post any you have, remember to include a description, what game its for, a download link, and a example script (in a spoiler)
Attached Files
File Type: zip Variable RAM Addresses.zip‎ (567 Bytes, 50 views) (Save to Dropbox)
__________________

Last edited by Giga Universe; March 4th, 2010 at 04:33 AM. Reason: Added movement header file
Reply With Quote
  #2    
Old February 28th, 2010, 04:38 AM
Darkerm's Avatar
Darkerm
Darkness is Not always Evil
 
Join Date: Jan 2010
Location: Bangladesh
Age: 21
Gender: Male
Nature: Gentle
Can you explain it by posting a script for FR? I want to use this.
__________________


"My Hack"


Banner By "YAS"
Avatar By "HackMew"
Reply With Quote
  #3    
Old February 28th, 2010, 04:41 AM
HackMew's Avatar
HackMew
Mewtwo Strikes Back
 
Join Date: Jun 2006
Sorry but... that header file is totally wrong. First of all, variables are 0x4000 - 0x7FFF.
Plus the temporary variables (0x8000, 0x8001, etc.) Either way, all the variables in FR/LG/E don't have a static address!
The only exception being the temp ones.
__________________
Reply With Quote
  #4    
Old February 28th, 2010, 07:48 AM
Giga Universe's Avatar
Giga Universe
Working on a tool.
 
Join Date: Aug 2007
Location: South Africa
Age: 19
Gender: Male
Nature: Calm
Send a message via ICQ to Giga Universe Send a message via AIM to Giga Universe Send a message via Yahoo to Giga Universe Send a message via Skype™ to Giga Universe
Quote:
Originally Posted by HackMew View Post
Sorry but... that header file is totally wrong. First of all, variables are 0x4000 - 0x7FFF.
Plus the temporary variables (0x8000, 0x8001, etc.) Either way, all the variables in FR/LG/E don't have a static address!
The only exception being the temp ones.
The first bit I knew, but since the header was automatically generated, I forgot to delete the excess. But, the second bit I didn't know, because they seemed static when I checked. But anyway, I'll take it down and change it.
EDIT: Fixed the variable RAM addresses header file. It now includes only 0x800X variables (temp variables)
__________________

Last edited by Giga Universe; February 28th, 2010 at 07:59 AM.
Reply With Quote
  #5    
Old March 1st, 2010, 10:06 AM
Larsie13
Gone
 
Join Date: Oct 2006
Location: The Netherlands
Age: 23
Nature: Modest
Guess I'll share my header files. See attachment. They're movements for applymovement. Both FR/LG and R/S/E are in the zip.
For instance, in FR/LG, if you want an OW to pop up an !-box, and then face right, you would use this:
Code:
applymovement 0xXX @face

#org @face
#raw FACE_>
#raw !_BOX
#raw END_MOVE
Attached Files
File Type: zip stdmove.zip‎ (1.5 KB, 17 views) (Save to Dropbox)
Reply With Quote
  #6    
Old March 4th, 2010, 04:26 AM
Giga Universe's Avatar
Giga Universe
Working on a tool.
 
Join Date: Aug 2007
Location: South Africa
Age: 19
Gender: Male
Nature: Calm
Send a message via ICQ to Giga Universe Send a message via AIM to Giga Universe Send a message via Yahoo to Giga Universe Send a message via Skype™ to Giga Universe
Thanks for that, I'll add it up right away.
__________________
Reply With Quote
Reply
Quick Reply

Sponsored Links


Advertise here
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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 07:05 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.