The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script XSE won't compile

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 April 4th, 2019 (6:50 PM). Edited April 6th, 2019 by PokemonXO.
PokemonXO PokemonXO is offline
 
Join Date: Oct 2014
Gender: Male
Posts: 44
when I edit a script, including shortening or lengthening it, it will revert back to it's original length

When I add a script, it will self delete immediately.

Getting very frustrated.

Using V1.1.1

I tried to move the script to the new free space in the 32MB rom, but when I try to use #org 0x1000000+, it throws a Bad Record Number in XSE

54 Views and no answer?
__________________
If your interested in tutoring me on how to use the scripting and answering all my questions, send me a PM and we can discuss contacting each other in further details.

A little info about me and my goals:

I am burned out on Pokemon games, which, since emerald, have gradually grown worse to me. I am a fan of Generation 3 and earlier. I have some creature ideas I'd rather keep to myself and friends, due to personal reasons. Thus, I want to make my first game encompassing them. I do not know how to program, so I'll learn by using pokemon essentials. Once I complete the game, I'll enjoy it, and work on an entirely new project.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old April 5th, 2019 (9:16 AM).
Avara's Avatar
Avara Avara is offline
 
Join Date: Dec 2011
Gender: Female
Nature: Relaxed
Posts: 1,305
Quote:
Originally Posted by PokemonXO View Post
54 Views and no answer?
You'll just need to be patient I'm afraid, people will generally only answer if they think they can help =) anyway, are you sure you're compiling the correct way? Also, wouldn't recommend editing existing scripts.

0x1000000+ doesn't sound right either. Remember to count in hex when working with offsets. =)
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old April 5th, 2019 (9:58 AM). Edited April 5th, 2019 by PokemonXO.
PokemonXO PokemonXO is offline
 
Join Date: Oct 2014
Gender: Male
Posts: 44
Quote:
Originally Posted by Avara View Post
You'll just need to be patient I'm afraid, people will generally only answer if they think they can help =) anyway, are you sure you're compiling the correct way? Also, wouldn't recommend editing existing scripts.

0x1000000+ doesn't sound right either. Remember to count in hex when working with offsets. =)
Well, it is in HEX, those offsets. That's because it's a 32 MB rom.

1FFFFF4 is the highest for a 32 MB rom.

Also, goto 0x81000000 throws a type mismatch error as well. Does this mean that XSE is not as updated as we once thought?
__________________
If your interested in tutoring me on how to use the scripting and answering all my questions, send me a PM and we can discuss contacting each other in further details.

A little info about me and my goals:

I am burned out on Pokemon games, which, since emerald, have gradually grown worse to me. I am a fan of Generation 3 and earlier. I have some creature ideas I'd rather keep to myself and friends, due to personal reasons. Thus, I want to make my first game encompassing them. I do not know how to program, so I'll learn by using pokemon essentials. Once I complete the game, I'll enjoy it, and work on an entirely new project.
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old April 5th, 2019 (11:25 PM).
DrFuji's Avatar
DrFuji DrFuji is offline
Heiki Hecchara‌‌
 
Join Date: Sep 2009
Location: Aussie
Age: 30
Gender: Male
Nature: Jolly
Posts: 1,693
Quote:
Originally Posted by PokemonXO View Post
when I edit a script, including shortening or lengthening it, it will revert back to it's original length

When I add a script, it will self delete immediately.

Getting very frustrated.

Using V1.1.1
While most tools are fine, make sure you don't have your ROM open in one that could be messing with your changes like a hex editor.

Quote:
Originally Posted by PokemonXO View Post
Well, it is in HEX, those offsets. That's because it's a 32 MB rom.

1FFFFF4 is the highest for a 32 MB rom.

Also, goto 0x81000000 throws a type mismatch error as well. Does this mean that XSE is not as updated as we once thought?
When you're working with any pointers over 16MB, you need to use the correct notation. For instance, if I wanted to point a script to 0x123456 I would write 'goto 0x8123456', but if I wanted to point to 0x1234567 I would write 'goto 0x9234567'. You just do basic addition with the pointer you want to the 0x8000000 base.
__________________
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old April 6th, 2019 (12:27 PM).
PokemonXO PokemonXO is offline
 
Join Date: Oct 2014
Gender: Male
Posts: 44
Goto 0x9234567? Doesn't that just go to address 9234567?
__________________
If your interested in tutoring me on how to use the scripting and answering all my questions, send me a PM and we can discuss contacting each other in further details.

A little info about me and my goals:

I am burned out on Pokemon games, which, since emerald, have gradually grown worse to me. I am a fan of Generation 3 and earlier. I have some creature ideas I'd rather keep to myself and friends, due to personal reasons. Thus, I want to make my first game encompassing them. I do not know how to program, so I'll learn by using pokemon essentials. Once I complete the game, I'll enjoy it, and work on an entirely new project.
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old April 6th, 2019 (1:49 PM). Edited April 7th, 2019 by DrFuji.
DrFuji's Avatar
DrFuji DrFuji is offline
Heiki Hecchara‌‌
 
Join Date: Sep 2009
Location: Aussie
Age: 30
Gender: Male
Nature: Jolly
Posts: 1,693
0x9234567 is still beyond the ending of an expanded ROM (0x1FFFFFF) so no, you're not pointing there.

Here's an example script before and after compiling that uses the goto command beyond 0x1000000 to illustrate how it works.

Code:
#dynamic 0x1234567

#org @start
goto @continue

#org @continue
end
Code:
'---------------
#org 0x1234567
goto 0x923456E

'---------------
#org 0x123456E
end
__________________
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old April 7th, 2019 (3:11 AM).
STADIUM_TOKEN STADIUM_TOKEN is offline
 
Join Date: Mar 2019
Posts: 20
I'm having similar problems,

My XSE won't compile the chosen script

It says compiled in xxz seconds but doesn't give any offsets. Anyone had this issue before?
Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old April 7th, 2019 (3:50 AM).
DrFuji's Avatar
DrFuji DrFuji is offline
Heiki Hecchara‌‌
 
Join Date: Sep 2009
Location: Aussie
Age: 30
Gender: Male
Nature: Jolly
Posts: 1,693
Quote:
Originally Posted by STADIUM_TOKEN View Post
I'm having similar problems,

My XSE won't compile the chosen script

It says compiled in xxz seconds but doesn't give any offsets. Anyone had this issue before?
Click your 'show log' icon - Its the one that looks like a pen and paper next to the offset box at the top of XSE. Now whenever you compile a script, a box will pop up with the offsets to C+P into A-Map.
__________________
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:14 AM.