• 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!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • 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] XSE error 6, need help

  • 2
    Posts
    3
    Years
    • Seen May 15, 2022
    So im working on a romhack for pokemon firered and im editing the script and i keep getting the error 6 on line four and ive tried to find out why this is happening but i dont understand can someone help?

    click to show code:
    Spoiler:


    error: Error 6 "Overflow" on line 4
    line: setfarbyte 0x13 0x1310FE2E
    can anyone help?
     
    `0x1310FE2E` is waaay too big a number for `setfarbyte`. That is the "overflow" it is talking about.

    What are you actually trying to do?
     
    I was only changing pokemon names in the script for when the prof says "you choose {pokemon name}" i havnt changed anything else
     
    So im working on a romhack for pokemon firered and im editing the script and i keep getting the error 6 on line four and ive tried to find out why this is happening but i dont understand can someone help?

    click to show code:
    Spoiler:



    can anyone help?

    The last set of movements is inserted at the same address as the first part of the script. When decompiling the script XSE reads the movements as commands and you end up with nonsense like "setfarbyte 0x13 0x5A6AFE2E".
    When editing scripts you should always insert the edited part of the script in free space to avoid issues like this.
     
    Back
    Top