The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Can you change script after 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 September 26th, 2019 (2:27 AM).
RoPelleboer RoPelleboer is offline
 
Join Date: Feb 2019
Posts: 6
Hello there,

I'm new to Pokemon ROM hacking, and I had a question about scripting.
When I Change an already compiled script, the changes I made seem to disappear after saving and closing XSE.
Does this mean that you can't change a script after compiling it and if so,
do you have to make a new script every time you want to change something in the old one?
I'm trying to learn trough trial and error, but having to make an entirely new script every time I make a mistake takes a long time.
Thanks in advance!
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old September 26th, 2019 (2:52 AM). Edited September 26th, 2019 by kalarie.
kalarie kalarie is offline
 
Join Date: Jun 2008
Posts: 760
Quote:
Originally Posted by RoPelleboer View Post
Hello there,

I'm new to Pokemon ROM hacking, and I had a question about scripting.
When I Change an already compiled script, the changes I made seem to disappear after saving and closing XSE.
Does this mean that you can't change a script after compiling it and if so,
do you have to make a new script every time you want to change something in the old one?
Thanks in advance!
If an edited script is the same size as the original script, it's safe to edit and compile the changes.
From your text, however, I don't think that's the problem. To edit a script that's already in the game you should open its offset and edit it from there. Don't use #dynamic 0xXXXXXX and @pointers, because you will import your edited script at a different offset, which takes unnecessary free space.

Quote:
Originally Posted by RoPelleboer View Post
I'm trying to learn trough trial and error, but having to make an entirely new script every time I make a mistake takes a long time.
You should make a map with all your written scripts in it. If something needs to be changed you can just make small edits to that and compile it in free space again.

To not waste any space when making a script longer, you could use #removeall 0xXXXXXX (XXXXXX being the offset you want to make empty) to delete the original script.

Edit: I'd recommend to follow Anthroyd's Video tutorials first, before randomly starting to script anything: https://www.youtube.com/watch?v=wJw4tz0kcAI&list=PLfI5DBI4tNyLBYGNhf1Ee8cgdmMtiilps&index=8
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:19 AM.