• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Script] Can you change script after compiling?

  • 6
    Posts
    6
    Years
    • Seen Sep 17, 2020
    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!
     
    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.

    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
     
    Last edited:
    Back
    Top