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!

Reply
 
Thread Tools
  #1    
Old February 27th, 2010 (7:32 AM). Edited March 4th, 2010 by Giga Universe.
Giga Universe's Avatar
Giga Universe Giga Universe is offline
Working on a tool.
  • Crystal Tier
 
Join Date: Aug 2007
Location: South Africa
Age: 22
Gender: Male
Nature: Calm
Posts: 121
Send a message via ICQ to Giga Universe Send a message via AIM to Giga Universe Send a message via Yahoo to Giga Universe
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)
__________________
Reply With Quote

Relevant Advertising!

  #2    
Old February 28th, 2010 (4:38 AM).
Darkerm's Avatar
Darkerm Darkerm is offline
Darkness is Not always Evil
     
    Join Date: Jan 2010
    Location: Bangladesh
    Age: 24
    Gender: Male
    Nature: Gentle
    Posts: 401
    Can you explain it by posting a script for FR? I want to use this.
    __________________
    This signature has been disabled.
    Exceeds the 350px height limit.
    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.
    Reply With Quote
      #3    
    Old February 28th, 2010 (4:41 AM).
    HackMew's Avatar
    HackMew HackMew is offline
    Mewtwo Strikes Back
    • Crystal Tier
     
    Join Date: Jun 2006
    Posts: 1,314
    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 (7:48 AM). Edited February 28th, 2010 by Giga Universe.
    Giga Universe's Avatar
    Giga Universe Giga Universe is offline
    Working on a tool.
    • Crystal Tier
     
    Join Date: Aug 2007
    Location: South Africa
    Age: 22
    Gender: Male
    Nature: Calm
    Posts: 121
    Send a message via ICQ to Giga Universe Send a message via AIM to Giga Universe Send a message via Yahoo 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)
    __________________
    Reply With Quote
      #5    
    Old March 1st, 2010 (10:06 AM).
    Larsie13 Larsie13 is offline
    Gone
    • Crystal Tier
     
    Join Date: Oct 2006
    Location: The Netherlands
    Age: 26
    Nature: Modest
    Posts: 159
    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, 18 views) (Save to Dropbox)
    Reply With Quote
      #6    
    Old March 4th, 2010 (4:26 AM).
    Giga Universe's Avatar
    Giga Universe Giga Universe is offline
    Working on a tool.
    • Crystal Tier
     
    Join Date: Aug 2007
    Location: South Africa
    Age: 22
    Gender: Male
    Nature: Calm
    Posts: 121
    Send a message via ICQ to Giga Universe Send a message via AIM to Giga Universe Send a message via Yahoo to Giga Universe
    Thanks for that, I'll add it up right away.
    __________________
    Reply With Quote
    Reply
    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 GMT -8. The time now is 5:52 PM.