• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Cyndy, May, Hero (Conquest), or Wes - 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] XSE debug flagging an empty line? [SOLVED]

Thoriére

[i]If everything's a dream, don't wake me.[/i]
  • 121
    Posts
    10
    Years
    So I've come back to hacking after a while with an intense desire to restart my old projects, and I decided to spend the day scripting (because I love it and it needs to be done to have a functional game anyway...), but after writing this givepokemon script and attempting to compile it into a tester ROM, I can't stop getting this debug error for "line 45". The problem is that line 45 is actually empty and the line above it, line 44, is the line that actually contains the line of code that the debugger is flagging. The other strange part of the problem is that the problematic line was generated by the program itself through the "Text Adjuster" tool.

    These are the images of the errors. No matter what I do, this area of the code is always flagged, even if I modify the text. I've tried pasting it into a fresh XSE tab, but no dice.

    Spoiler:


    Note that I'm using Windows 10 in case that could be the source of the issue, but also that I don't think it's an issue with the ROM because attempting to debug in an XSE tab with no ROM loaded gives me the same error. Am I missing something? Or is there an issue with the script (included below) itself? I'm using BPRE.

    Code:
    #dynamic 0x823800
    
    #org @start
    lock
    faceplayer
    checkflag 0x828
    if 0x1 goto @done
    msgbox @1 0x5
    compare 0x800D 0x1
    if 0x1 goto @take
    msgbox @3 0x6
    release
    end
    
    #org @take
    lock
    faceplayer
    msgbox @2 0x6
    givepokemon 0x85 0x5 0x0 0x0 0x0 0x0
    fanfare 0x13E
    msgbox @4 0x4
    waitfanfare
    closeonkeypress
    setflag 0x828
    compare LASTRESULT 0x1
    if 0x1 call @name
    msgbox @6 0x6
    release
    end
    
    #org @name
    setvar 0x8004 0x0
    fadescreen 0x1
    special 0x9E
    waitstate
    return
    
    #org @done
    msgbox @6 0x6
    release
    end
    
    #org @1
    = Dad: Oh, \n\v\h01! You're\nfinally up! Did you know I was\lcoming back today?\l...\lI missed you too. Were you\lokay while I was gone? I know I\lshould have come back home sooner,\lbut it was like pulling\lteeth to get back even today...\l...\lBut I got you something special to\lmake up for it! It's a surprise,\lbut I know you'll love it
    .\l...\lDo you want it now, or...?
    
    #org @2
    = All right! Close your\neyes and cup your hands together\lin front of you.\p...\p...\p...\pOkay! Open your eyes!\pIt's a Pok\h1Bmon!\nYour very own!
    
    #org @3
    = Is that so? Well, let me\nknow when you want it. I'll be\lhere all day.
    
    #org @4
    = You received an Eevee!
    
    #org @5
    = Would you like to give a\nnickname to Eevee?
    
    #org @6
    = Isn't it a wonderful Pok\h1Bmon?\nI saw it and knew it was perfect\lfor you. It can evolve into\ldifferent forms depending on items\lyou give it, so you have a lot of\lfreedom when it comes to that\lPok\h1Bmon's growth.\l...\lWhy don't you go play with it in\lyour room for a bit while I\lmake dinner? I'll call for you\lwhen it's done.
     
    Last edited:
    Back
    Top