The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Help with scripts and developing a game?

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
  #51   Link to this post, but load the entire thread.  
Old May 13th, 2014 (8:10 PM).
HidoranBlaze's Avatar
HidoranBlaze HidoranBlaze is offline
 
Join Date: Apr 2013
Age: 26
Gender: Male
Posts: 252
JabuJabule: Can you send me said Firered rom and Emerald rom to me via Gmail? I want to test this. If there's something wrong with your rom, then I shouldn't be able to compile it as well. If I can, then you probably did something wrong. (Which is understandable, we've all been there before) I'll send you my email address by PM.
Reply With Quote
  #52   Link to this post, but load the entire thread.  
Old May 13th, 2014 (8:12 PM).
Lynker's Avatar
Lynker Lynker is offline
 
Join Date: May 2014
Location: Massachusetts
Age: 28
Gender: Male
Nature: Serious
Posts: 91
I put the script in the FireRed ROM, took the offset, and then looked at the script after. That was what happened.
__________________


Reply With Quote
  #53   Link to this post, but load the entire thread.  
Old May 13th, 2014 (8:16 PM).
Lynker's Avatar
Lynker Lynker is offline
 
Join Date: May 2014
Location: Massachusetts
Age: 28
Gender: Male
Nature: Serious
Posts: 91
Quote:
Originally Posted by HidoranBlaze View Post
JabuJabule: Can you send me said Firered rom and Emerald rom to me via Gmail? I want to test this. If there's something wrong with your rom, then I shouldn't be able to compile it as well. If I can, then you probably did something wrong. (Which is understandable, we've all been there before) I'll send you my email address by PM.
Sure! Send me a PM. :)
__________________


Reply With Quote
  #54   Link to this post, but load the entire thread.  
Old May 13th, 2014 (8:21 PM).
machomuu's Avatar
machomuu machomuu is offline
Stuck in Hot Girl Summer
 
Join Date: Apr 2008
Location: Take a left, turn right at the next stop, bear left for a few mil
Gender: Female
Nature: Relaxed
Posts: 10,505
Quote:
Originally Posted by JabuJabule View Post
I put the script in the FireRed ROM, took the offset, and then looked at the script after. That was what happened.
Whelp, if you compiled it as you said and put it in the game and got nothing, that means it's your script editor.

But this really sounds like it wasn't compiled, as if it were, there'd be something there. Emptiness means that there's free space. In the case of your Emerald rom, it DOES notice that you have a script there, but it isn't starting.

Really, this would be a lot easier if I could check it out for myself, I mean this has gone on for 3 pages <_<

Heck, what you could do is make a patch of the Emerald Rom using Lips (or whatever patching program you use) and upload it here.
Reply With Quote
  #55   Link to this post, but load the entire thread.  
Old May 13th, 2014 (8:27 PM).
Lynker's Avatar
Lynker Lynker is offline
 
Join Date: May 2014
Location: Massachusetts
Age: 28
Gender: Male
Nature: Serious
Posts: 91
Quote:
Originally Posted by machomuu View Post
Whelp, if you compiled it as you said and put it in the game and got nothing, that means it's your script editor.

But this really sounds like it wasn't compiled, as if it were, there'd be something there. Emptiness means that there's free space. In the case of your Emerald rom, it DOES notice that you have a script there, but it isn't starting.

Really, this would be a lot easier if I could check it out for myself, I mean this has gone on for 3 pages <_<

Heck, what you could do is make a patch of the Emerald Rom using Lips (or whatever patching program you use) and upload it here.
Here is my patch: https://www.mediafire.com/?t4pul3kskevbxat
__________________


Reply With Quote
  #56   Link to this post, but load the entire thread.  
Old May 13th, 2014 (8:37 PM).
machomuu's Avatar
machomuu machomuu is offline
Stuck in Hot Girl Summer
 
Join Date: Apr 2008
Location: Take a left, turn right at the next stop, bear left for a few mil
Gender: Female
Nature: Relaxed
Posts: 10,505
I got the line "loadpointer 0x0 0xoffset '"Hello" upon decompiling

I fixed it by replacing "loadpointer" with msgbox, moving the offset down and using 0x6, but...what exactly did you do? I really think the problem is that you do have a different version of XSE, because I think, and this is just speculation, but I think the older version doesn't use msgbox, so it used an older format instead.

Here's my updated copy: http://www.mediafire.com/download/43dsc9hn8s3d9kh/Update.ips
Reply With Quote
  #57   Link to this post, but load the entire thread.  
Old May 13th, 2014 (8:38 PM). Edited May 13th, 2014 by HidoranBlaze.
HidoranBlaze's Avatar
HidoranBlaze HidoranBlaze is offline
 
Join Date: Apr 2013
Age: 26
Gender: Male
Posts: 252


JabuJabule, I removed your script, recompiled it, and got this. I think you went wrong somewhere.
Here's what I want you to do:
1. First, go into XSE, and load your Emerald rom. Using #removeall 0x8165EF, remove your script.
2. Recompile your script into your Emerald rom.
3. The offsets should match. If they don't, I'm not really sure how to help you.

Actually, I just thought about this. Advance Map has a nasty habit of assuming that 00 bytes are free space in Emerald. That might be what caused your problem. Go into Advance Map's ini, and go to the BPE section. Where it says SuchBytes=00, change that to FF.
Reply With Quote
  #58   Link to this post, but load the entire thread.  
Old May 13th, 2014 (8:43 PM).
machomuu's Avatar
machomuu machomuu is offline
Stuck in Hot Girl Summer
 
Join Date: Apr 2008
Location: Take a left, turn right at the next stop, bear left for a few mil
Gender: Female
Nature: Relaxed
Posts: 10,505
Quote:
Originally Posted by HidoranBlaze View Post
JabuJabule, I removed your script, recompiled it, and got this. I think you went wrong somewhere.
Here's what I want you to do:
1. First, go into XSE, and load your Emerald rom. Using #removeall 0x8165EF, remove your script.
2. Recompile your script into your Emerald rom.
3. The offsets should match. If they don't, I'm not really sure how to help you.

Actually, I just thought about this. Advance Map has a nasty habit of assuming that 00 bytes are free space in Emerald. That might be what caused your problem. Go into Advance Map's ini, and go to the BPE section. Where it says SuchBytes=00, change that to FF.
I don't think it's A-Map after taking a look at the script that was on the sprite. I decompiled it, saw the line
"loadpointer 0x0 0xoffset '"Hello"
and changed it to
"msgbox 0xoffset 0x6 '"Hello" (rather than @hi, only because I was editting the existing script and not creating a new script entirely)
and it worked fine. If it really is because of an outdated version of XSE, I'm thinking it might not be able to recognize the modern "msgbox" command or, if it can, that it has a different structure and has difficulty compiling such a command that came after it's time.

That or there was a mistake somewhere, but I guess we'll see.
Reply With Quote
  #59   Link to this post, but load the entire thread.  
Old May 13th, 2014 (8:43 PM).
Lynker's Avatar
Lynker Lynker is offline
 
Join Date: May 2014
Location: Massachusetts
Age: 28
Gender: Male
Nature: Serious
Posts: 91
Quote:
Originally Posted by machomuu View Post
I got the line "loadpointer 0x0 0xoffset '"Hello" upon decompiling

I fixed it by replacing "loadpointer" with msgbox, moving the offset down and using 0x6, but...what exactly did you do? I really think the problem is that you do have a different version of XSE, because I think, and this is just speculation, but I think the older version doesn't use msgbox, so it used an older format instead.

Here's my updated copy: http://www.mediafire.com/download/43dsc9hn8s3d9kh/Update.ips
Thank you! It finally works.
My version of XSE is from 2008. Is that the latest?
__________________


Reply With Quote
  #60   Link to this post, but load the entire thread.  
Old May 13th, 2014 (8:46 PM).
machomuu's Avatar
machomuu machomuu is offline
Stuck in Hot Girl Summer
 
Join Date: Apr 2008
Location: Take a left, turn right at the next stop, bear left for a few mil
Gender: Female
Nature: Relaxed
Posts: 10,505
Quote:
Originally Posted by JabuJabule View Post
Thank you! It finally works.
My version of XSE is from 2008. Is that the latest?
No problem :)

And yeah, it should be version 1.1.1 (which you should be able to see in the lower right hand corner of the "About" window in the "Help" tab.

I'm really not sure why this happened, honestly. If this happens in any of your later scripts, be sure to tell us, we'll see if we can help out.
Reply With Quote
  #61   Link to this post, but load the entire thread.  
Old May 13th, 2014 (8:48 PM).
Lynker's Avatar
Lynker Lynker is offline
 
Join Date: May 2014
Location: Massachusetts
Age: 28
Gender: Male
Nature: Serious
Posts: 91
Oh, I found the problem. I have 1.0.0.... *Feels stupid*
__________________


Reply With Quote
  #62   Link to this post, but load the entire thread.  
Old May 13th, 2014 (8:54 PM).
machomuu's Avatar
machomuu machomuu is offline
Stuck in Hot Girl Summer
 
Join Date: Apr 2008
Location: Take a left, turn right at the next stop, bear left for a few mil
Gender: Female
Nature: Relaxed
Posts: 10,505
Quote:
Originally Posted by JabuJabule View Post
Oh, I found the problem. I have 1.0.0.... *Feels stupid*
Ah, that would certainly explain the whole "loadpointer" deal.

And on the bright side, now you can finally start personalizing your hack and you made your first script. Good luck!
Reply With Quote
  #63   Link to this post, but load the entire thread.  
Old May 13th, 2014 (9:13 PM).
Lynker's Avatar
Lynker Lynker is offline
 
Join Date: May 2014
Location: Massachusetts
Age: 28
Gender: Male
Nature: Serious
Posts: 91
Could I get some help? In this version of XSE, when I open my ROM, it just displays a light blue screen and I can't input or paste code at all.
__________________


Reply With Quote
  #64   Link to this post, but load the entire thread.  
Old May 14th, 2014 (11:58 AM).
Skystrike's Avatar
Skystrike Skystrike is offline
As old as time itself.
 
Join Date: Sep 2008
Location: Beyond the Sky
Age: 24
Gender: Male
Nature: Quiet
Posts: 1,640
Quote:
Originally Posted by JabuJabule View Post
Could I get some help? In this version of XSE, when I open my ROM, it just displays a light blue screen and I can't input or paste code at all.
Light blue screen? Could you post a screenshot of it? O_o
__________________


No. 448
Garchomp, the Mach Pokémon


Reply With Quote
  #65   Link to this post, but load the entire thread.  
Old May 14th, 2014 (12:38 PM).
Lynker's Avatar
Lynker Lynker is offline
 
Join Date: May 2014
Location: Massachusetts
Age: 28
Gender: Male
Nature: Serious
Posts: 91
Quote:
Originally Posted by Kyain View Post
Light blue screen? Could you post a screenshot of it? O_o
I can't even edit scripts when I open them! They don't show up!

__________________


Reply With Quote
  #66   Link to this post, but load the entire thread.  
Old May 14th, 2014 (12:41 PM).
Skystrike's Avatar
Skystrike Skystrike is offline
As old as time itself.
 
Join Date: Sep 2008
Location: Beyond the Sky
Age: 24
Gender: Male
Nature: Quiet
Posts: 1,640
Quote:
Originally Posted by JabuJabule View Post
I can't even edit scripts when I open them! They don't show up!

o___________O

Uhhhhhh, I'm not sure what that could possibly be...the only oddity I've ever seen with XSE is the update glitch (makes XSE close a little after opening.) If you can, can you go into the Help menu and check if "Check Updates" is checked?
__________________


No. 448
Garchomp, the Mach Pokémon


Reply With Quote
  #67   Link to this post, but load the entire thread.  
Old May 14th, 2014 (12:45 PM).
Lynker's Avatar
Lynker Lynker is offline
 
Join Date: May 2014
Location: Massachusetts
Age: 28
Gender: Male
Nature: Serious
Posts: 91
"Automatically Check" is checkmarked, yes.
__________________


Reply With Quote
  #68   Link to this post, but load the entire thread.  
Old May 14th, 2014 (12:58 PM).
Skystrike's Avatar
Skystrike Skystrike is offline
As old as time itself.
 
Join Date: Sep 2008
Location: Beyond the Sky
Age: 24
Gender: Male
Nature: Quiet
Posts: 1,640
Quote:
Originally Posted by JabuJabule View Post
"Automatically Check" is checkmarked, yes.
Uncheck it. It's known to cause problems (the site its trying to access is down/doesn't exist)
__________________


No. 448
Garchomp, the Mach Pokémon


Reply With Quote
  #69   Link to this post, but load the entire thread.  
Old May 14th, 2014 (1:04 PM).
Lynker's Avatar
Lynker Lynker is offline
 
Join Date: May 2014
Location: Massachusetts
Age: 28
Gender: Male
Nature: Serious
Posts: 91
Quote:
Originally Posted by Kyain View Post
Uncheck it. It's known to cause problems (the site its trying to access is down/doesn't exist)
I unchecked it, but now what do I do? I still can't type anything. :P I opened it and closed it already, by the way.
__________________


Reply With Quote
  #70   Link to this post, but load the entire thread.  
Old May 14th, 2014 (1:07 PM).
Skystrike's Avatar
Skystrike Skystrike is offline
As old as time itself.
 
Join Date: Sep 2008
Location: Beyond the Sky
Age: 24
Gender: Male
Nature: Quiet
Posts: 1,640
Quote:
Originally Posted by JabuJabule View Post
I unchecked it, but now what do I do? I still can't type anything. :P I opened it and closed it already, by the way.
o_O
I...send me your copy in a PM. This is really odd, I've never encountered something like this...
__________________


No. 448
Garchomp, the Mach Pokémon


Reply With Quote
  #71   Link to this post, but load the entire thread.  
Old May 21st, 2014 (4:55 PM).
Lynker's Avatar
Lynker Lynker is offline
 
Join Date: May 2014
Location: Massachusetts
Age: 28
Gender: Male
Nature: Serious
Posts: 91
(I thought it'd be easier to use the same thread!)

How do I make a script that makes it so you can open the bag with the three Pokemon in it (In Emerald)? Is it a flag or something? Also, is there a way to disable the battle that happens afterwards?

How would I make it so a script can only be stepped on after that one happens as well? Like when your rival asks you to challenge you after you get your Pokemon in Firered.

Thank you! :)
__________________


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:24 AM.