The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script XSE Not Compiling

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 July 6th, 2018 (2:57 PM).
Babyswagmonster Babyswagmonster is offline
 
Join Date: Apr 2014
Gender: Male
Posts: 32
So this is making really mad as it is the last thing needed for my project. I couldn't get a trainer battle to work then I saw that in pokemon you cant rewrite a longer message than the original. So I used free space funder on the emerald rom and found an offset. I changed the advanced map offset to this new one and wrote the script. Now when I compile and open it up again it all is gone. Pls help.

Here is my script.

dynamic 0x800000

'---------------
#org 0x23CA49
trainerbattle 0x0 0x126 0x0 0x823CB14 0x823CB58
msgbox 0x823CB75 MSG_NORMAL '"RED: Wow, you beat me. It seems I\..."
end


'---------
' Strings
'---------
#org 0x23CB14
= RED: Well if it isn't the champ!\pI was just on my way to KANTO.\nYou saved the region, no?\pWhat?\nA battle? Hahaha\pFine then, just be warned.\nI won't hold back!\pShow me the power of a\nHOENN CHAMPION!!

#org 0x23CB58
= ..................

#org 0x23CB75
= RED: Wow, you beat me. It seems I\nneed more training.\pMaybe Mt. Silver?\nHmm.... \p[player]!!!\n Keep training and keep battling. The \pPOKéMON world is big and full of\nchallenges!\p BON VOYAGE!
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old July 6th, 2018 (5:19 PM).
BirdstarCat13 BirdstarCat13 is offline
 
Join Date: Nov 2017
Gender: Male
Posts: 476
Use dynamic offsets.
__________________
-------------------------
I hate signatures that are just a line of text without any clear division. You weirdos know who you are ;)
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old July 7th, 2018 (6:56 AM).
Babyswagmonster Babyswagmonster is offline
 
Join Date: Apr 2014
Gender: Male
Posts: 32
Quote:
Originally Posted by BirdstarCat13 View Post
Use dynamic offsets.
What does that mean?
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old July 7th, 2018 (11:36 AM).
Karl's Avatar
Karl Karl is offline
Creator of Pokémon Darkfire
 
Join Date: Nov 2010
Location: London, UK
Gender: Male
Nature: Calm
Posts: 168
Searching for free space in Pokémon Emerald 0x800000 is generally not good practice. 0x800000 is generally used for FR/LG.

The true free space offsets in a clean Pokémon Emerald ROM are as follows:

Code:
0x9C0B20 to 0xAFFFFF
0xB98B30 to 0xBFFFFF
0xD3CEA0 to 0xD437EF
0xDE4018 to 0xE3CF48
0xE3CF64 to the end of the ROM
Taking the above into consideration, you would want your script to read something like this:

Spoiler:
Code:
#dynamic 0xE3CF64

#org @start
trainerbattle 0x0 0x126 0x0 @see @win
msgbox @after 0x6
end

#org @see
= RED: Well if it isn't the champ!\pI was just on my way to KANTO.\nYou saved the region, no?\pWhat?\nA battle? Hahaha\pFine then, just be warned.\nI won't hold back!\pShow me the power of a\nHOENN CHAMPION!!

#org @win
= \hb0

#org @after
= RED: Wow, you beat me. It seems I\nneed more training.\pMaybe Mt. Silver?\nHmm.... \p[player]!!!\n Keep training and keep battling. The \pPOKéMON world is big and full of\nchallenges!\p BON VOYAGE!
__________________

Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old July 8th, 2018 (5:44 AM).
hjk321's Avatar
hjk321 hjk321 is offline
 
Join Date: Sep 2017
Posts: 219
Quote:
Originally Posted by Synonym View Post
Searching for free space in Pokémon Emerald 0x800000 is generally not good practice. 0x800000 is generally used for FR/LG.

The true free space offsets in a clean Pokémon Emerald ROM are as follows:

Code:
0x9C0B20 to 0xAFFFFF
0xB98B30 to 0xBFFFFF
0xD3CEA0 to 0xD437EF
0xDE4018 to 0xE3CF48
0xE3CF64 to the end of the ROM
...aaaannnd this is why people hack FireRed.

Also, side note, but...
Red talks?!
__________________
Binary is dead.
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old July 8th, 2018 (5:58 AM).
Karl's Avatar
Karl Karl is offline
Creator of Pokémon Darkfire
 
Join Date: Nov 2010
Location: London, UK
Gender: Male
Nature: Calm
Posts: 168
Quote:
Originally Posted by hjk321 View Post
...aaaannnd this is why people hack FireRed.

Also, side note, but...
Red talks?!
Emerald is a great ROM to hack if you actually know what you're doing, and has great advantages over Fire Red.

I hack Emerald and I have absolutely no issues with freespace. It's made me a much better ROM hacker.
__________________

Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old July 8th, 2018 (9:07 AM). Edited July 8th, 2018 by STikER.
STikER's Avatar
STikER STikER is offline
 
Join Date: May 2014
Location: Ukraine
Age: 23
Gender: Male
Posts: 275
Quote:
Originally Posted by hjk321 View Post
...aaaannnd this is why people hack FireRed.

Also, side note, but...
Red talks?!
Hacking Emerald is completely fine and it has some more features over FireRed. Just make some notes about where is free space located in Emerald ROM and you're good to go.
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:20 AM.