The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script How do you extend scripts to edit the dialogue?

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 August 11th, 2017 (9:54 AM).
Anti-HyperLink Anti-HyperLink is offline
 
Join Date: May 2016
Age: 26
Gender: Male
Nature: Lonely
Posts: 37
Okay, so, I don't really give a flying Feraligator if this is a stupid question, but how do I extend the scripts so I can actually see and edit the dialogue? Neither XSE or pksvui do that, it's just condensed. Should I just delete the condensed dialogue and write it all out again or is there actually a way to expand it? And please don't just call me an idiot or link me to a tutorial. If a tutorial had the information I wouldn't be here.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old August 11th, 2017 (10:26 AM).
Skyro005's Avatar
Skyro005 Skyro005 is offline
 
Join Date: Oct 2016
Location: Belgium
Gender: Male
Nature: Lax
Posts: 38
The text-strings should be in full at the bottom of the scripts (with the /n /p /l stuff, but you can convert new text to text-strings in XSE)

As for extending the dialogue you will have to copy-paste the existing script, paste it in a new script, change all static offsets to dynamic offsets, edit the text strings, compile it, take note of the new offset and change the offset in amap, thus repointing the script to the extended one.

You can safely remove the old script in a hex editor if you want to free up space.

Easier yet might be to just use one of the several existing text editors, some of them automatically repoint extended texts.

Hope this helps
__________________
Make EMERALD great again!

- - - - - - - - - - - - - - - - - - - - - - -
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old August 14th, 2017 (9:07 AM).
Anti-HyperLink Anti-HyperLink is offline
 
Join Date: May 2016
Age: 26
Gender: Male
Nature: Lonely
Posts: 37
Quote:
Originally Posted by Skyro005 View Post
The text-strings should be in full at the bottom of the scripts (with the /n /p /l stuff, but you can convert new text to text-strings in XSE)

As for extending the dialogue you will have to copy-paste the existing script, paste it in a new script, change all static offsets to dynamic offsets, edit the text strings, compile it, take note of the new offset and change the offset in amap, thus repointing the script to the extended one.

You can safely remove the old script in a hex editor if you want to free up space.

Easier yet might be to just use one of the several existing text editors, some of them automatically repoint extended texts.

Hope this helps
I meant extend like see what they say, which, the bottom, I'm dumb. But what? I have to do some crazy stuff to edit dialogue? And what do you mean by the "static to dynamic". I suck at this stuff. Tutorials are useless. And the only text editor I know of is Atext and it's just garbage. Plus it changes the dialogue for any version of that ROM apparently. I have no idea how to use hex editors and I'm not dealing with that.
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old August 14th, 2017 (10:36 AM).
Skyro005's Avatar
Skyro005 Skyro005 is offline
 
Join Date: Oct 2016
Location: Belgium
Gender: Male
Nature: Lax
Posts: 38
Quote:
Originally Posted by Anti-HyperLink View Post
///
Changing the text in XSE is not difficult, but if you want the text to be longer then the original one you'll have to do some nasty stuff (repointing etc) in what case you'll probably have to follow a tutorial (Diego's scripting tutorial is actually quite good)

There is a new text editor in the make, as part of the dumb pokemon editor tool (that's the actual name, look it up in the tools section), which will be better than atext, but there is no public release as of now.

So, if you don't want to mess around repointing stuff, you'll have to use atext, or edit the text in xse (while making sure the text isn't longer than the original text!)
__________________
Make EMERALD great again!

- - - - - - - - - - - - - - - - - - - - - - -
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old August 14th, 2017 (12:14 PM).
Deokishisu's Avatar
Deokishisu Deokishisu is offline
Mr. Magius
 
Join Date: Feb 2006
Location: If I'm online, it's a safe bet I'm at a computer.
Gender: Male
Nature: Relaxed
Posts: 984
Quote:
Originally Posted by Anti-HyperLink View Post
I meant extend like see what they say, which, the bottom, I'm dumb. But what? I have to do some crazy stuff to edit dialogue? And what do you mean by the "static to dynamic". I suck at this stuff. Tutorials are useless. And the only text editor I know of is Atext and it's just garbage. Plus it changes the dialogue for any version of that ROM apparently. I have no idea how to use hex editors and I'm not dealing with that.
This may be super obvious, and forgive me if this sounds condescending but this is the only thing I can think is causing your issue, but are you scrolling all the way to the bottom of the script when you decompile? That is where the movements and text are. If it cuts off, there is a horizontal scroll bar that you can manipulate to see the rest of it.

To be more clear, the message content is not on the line with the msgbox command:
Code:
msgbox 0x8214AB6 MSG_KEEPOPEN '"SCOTT: Oh, what's that?\pIt's a ST..."
That is not where text is added. Scroll down, and if it cuts off scroll horizontally. The whole text will look something like this:
Code:
#org 0x214AB6
= SCOTT: Oh, what's that?\pIt's a STONE BADGE, isn't it?\nThat's pretty impressive, I'd say.\pBut, you know, I would've loved to see\nyou in battle.\pIt's hard to tell what you're like as\na TRAINER from a LEAGUE BADGE.
You edit the text after the equals sign.
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old August 17th, 2017 (1:29 AM).
CaptainDumbChester's Avatar
CaptainDumbChester CaptainDumbChester is offline
The Dumbest Person ever.
 
Join Date: Aug 2017
Location: Philippines
Gender: Male
Nature: Adamant
Posts: 31
or you can use my tool and search that string then replace it, Will auto repoint if new text is bigger.
__________________
Support My Tool: Dumb Pokemon Editor
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old August 18th, 2017 (4:51 PM).
Anti-HyperLink Anti-HyperLink is offline
 
Join Date: May 2016
Age: 26
Gender: Male
Nature: Lonely
Posts: 37
Quote:
Originally Posted by Deokishisu View Post
This may be super obvious, and forgive me if this sounds condescending but this is the only thing I can think is causing your issue, but are you scrolling all the way to the bottom of the script when you decompile? That is where the movements and text are. If it cuts off, there is a horizontal scroll bar that you can manipulate to see the rest of it.

To be more clear, the message content is not on the line with the msgbox command:
Code:
msgbox 0x8214AB6 MSG_KEEPOPEN '"SCOTT: Oh, what's that?\pIt's a ST..."
That is not where text is added. Scroll down, and if it cuts off scroll horizontally. The whole text will look something like this:
Code:
#org 0x214AB6
= SCOTT: Oh, what's that?\pIt's a STONE BADGE, isn't it?\nThat's pretty impressive, I'd say.\pBut, you know, I would've loved to see\nyou in battle.\pIt's hard to tell what you're like as\na TRAINER from a LEAGUE BADGE.
You edit the text after the equals sign.
You literally just explained to me how to scroll down and what's there on a reply to me saying that I know about the bottom.
Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old August 18th, 2017 (4:53 PM).
Anti-HyperLink Anti-HyperLink is offline
 
Join Date: May 2016
Age: 26
Gender: Male
Nature: Lonely
Posts: 37
Quote:
Originally Posted by Skyro005 View Post
Changing the text in XSE is not difficult, but if you want the text to be longer then the original one you'll have to do some nasty stuff (repointing etc) in what case you'll probably have to follow a tutorial (Diego's scripting tutorial is actually quite good)

There is a new text editor in the make, as part of the dumb pokemon editor tool (that's the actual name, look it up in the tools section), which will be better than atext, but there is no public release as of now.

So, if you don't want to mess around repointing stuff, you'll have to use atext, or edit the text in xse (while making sure the text isn't longer than the original text!)
I have watched and read a lot of tutorials and none of them have ever said you need to repoint. I've always just re-written it and it was fine.
Reply With Quote
  #9   Link to this post, but load the entire thread.  
Old August 18th, 2017 (8:13 PM).
CaptainDumbChester's Avatar
CaptainDumbChester CaptainDumbChester is offline
The Dumbest Person ever.
 
Join Date: Aug 2017
Location: Philippines
Gender: Male
Nature: Adamant
Posts: 31
Quote:
Originally Posted by Anti-HyperLink View Post
I have watched and read a lot of tutorials and none of them have ever said you need to repoint. I've always just re-written it and it was fine.
Actually if you decompile a old script , you really need to repoint it , SInce it might overwrite something if you don't, You can easily do this by , using #dynamic again and relabeling all #orgs again.
__________________
Support My Tool: Dumb Pokemon Editor
Reply With Quote
  #10   Link to this post, but load the entire thread.  
Old August 18th, 2017 (8:14 PM).
CaptainDumbChester's Avatar
CaptainDumbChester CaptainDumbChester is offline
The Dumbest Person ever.
 
Join Date: Aug 2017
Location: Philippines
Gender: Male
Nature: Adamant
Posts: 31
Quote:
Originally Posted by Anti-HyperLink View Post
I have watched and read a lot of tutorials and none of them have ever said you need to repoint. I've always just re-written it and it was fine.
Actually if you decompile a old script , you really need to repoint it if you want the text to be longer, SInce it might overwrite something if you don't, You can easily do this by , using #dynamic again and relabeling all #orgs again.
__________________
Support My Tool: Dumb Pokemon Editor
Reply With Quote
  #11   Link to this post, but load the entire thread.  
Old August 20th, 2017 (4:20 PM).
Anti-HyperLink Anti-HyperLink is offline
 
Join Date: May 2016
Age: 26
Gender: Male
Nature: Lonely
Posts: 37
Quote:
Originally Posted by CaptainDumbChester View Post
Actually if you decompile a old script , you really need to repoint it if you want the text to be longer, SInce it might overwrite something if you don't, You can easily do this by , using #dynamic again and relabeling all #orgs again.
i never said decompile.
Reply With Quote
  #12   Link to this post, but load the entire thread.  
Old August 22nd, 2017 (6:47 AM).
Anti-HyperLink Anti-HyperLink is offline
 
Join Date: May 2016
Age: 26
Gender: Male
Nature: Lonely
Posts: 37
Quote:
Originally Posted by CaptainDumbChester View Post
Actually if you decompile a old script , you really need to repoint it if you want the text to be longer, SInce it might overwrite something if you don't, You can easily do this by , using #dynamic again and relabeling all #orgs again.
Are you talking about more than just creating a new script offset for the changed script?
Reply With Quote
  #13   Link to this post, but load the entire thread.  
Old August 25th, 2017 (9:45 AM).
CaptainDumbChester's Avatar
CaptainDumbChester CaptainDumbChester is offline
The Dumbest Person ever.
 
Join Date: Aug 2017
Location: Philippines
Gender: Male
Nature: Adamant
Posts: 31
Quote:
Originally Posted by Anti-HyperLink View Post
Are you talking about more than just creating a new script offset for the changed script?
When youre using XSE to edit SCripts it's actually Decompiling the script.
__________________
Support My Tool: Dumb Pokemon Editor
Reply With Quote
  #14   Link to this post, but load the entire thread.  
Old August 30th, 2017 (4:44 AM).
Anti-HyperLink Anti-HyperLink is offline
 
Join Date: May 2016
Age: 26
Gender: Male
Nature: Lonely
Posts: 37
Quote:
Originally Posted by CaptainDumbChester View Post
When youre using XSE to edit SCripts it's actually Decompiling the script.
So decompile, edit, compile? You made it seem more complicated than that. With the trouble I've had making a game, it probably is.
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:15 AM.