• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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.

[Other] Completely Stumped

79
Posts
5
Years
  • I was trying to get the hang of editing with XSE and AdvanceMap, and I've run into a few problems right off the bat.

    First, when I try to rename FireRed maps, I get an error message saying there isn't space for it, after about 2 or 3 names. Just overwriting names shouldn't take up any noticable amount of free space, and I can't find any reasons for it on here.

    Second problem, and a slightly more inconvenient one, I can't seem to get even as simple of a script as talking to an npc into my rom. I was following the video tutorials on the Beginners' Directory, and even though I followed the video word for word, the npc event won't speak. If I really get it wrong, though I still don't know how, trying to talk to the npc freezes my entire game.

    Can anyone help out with these? I'm at a loss here, and can't find any solutions
     
    1,309
    Posts
    12
    Years
    • She/Her
    • Seen Nov 24, 2023
    I was trying to get the hang of editing with XSE and AdvanceMap, and I've run into a few problems right off the bat.

    First, when I try to rename FireRed maps, I get an error message saying there isn't space for it, after about 2 or 3 names. Just overwriting names shouldn't take up any noticable amount of free space, and I can't find any reasons for it on here.

    Second problem, and a slightly more inconvenient one, I can't seem to get even as simple of a script as talking to an npc into my rom. I was following the video tutorials on the Beginners' Directory, and even though I followed the video word for word, the npc event won't speak. If I really get it wrong, though I still don't know how, trying to talk to the npc freezes my entire game.

    Can anyone help out with these? I'm at a loss here, and can't find any solutions

    When you're renaming the maps, how long are the names? There's a character limit. I can't remember what it is off the top of my head for sure but I think it might be 15 characters maximum. If your new name exceeds this limit that could be what's causing the error, I haven't had that happen to me before though.

    I'd never looked at the video series that's stickied in the tutorials section until now but from what I could tell the creator was using the batch compiler feature of XSE, in my experience there's really no need to use that for a single script. Try this way. Failing that if it isn't a compiling issue you could post your script and someone could take a look at it for you to see what the problem is =)
     
    79
    Posts
    5
    Years
  • When you're renaming the maps, how long are the names? There's a character limit. I can't remember what it is off the top of my head for sure but I think it might be 15 characters maximum. If your new name exceeds this limit that could be what's causing the error, I haven't had that happen to me before though.

    I'd never looked at the video series that's stickied in the tutorials section until now but from what I could tell the creator was using the batch compiler feature of XSE, in my experience there's really no need to use that for a single script. Try this way. Failing that if it isn't a compiling issue you could post your script and someone could take a look at it for you to see what the problem is =)

    Thanks for the help! While I can't check at the moment, I don't think any of my names were 15 characters or longer, though I'll be sure to make sure when I get home! As for the scripting, if the batch compiler didn't work, I don't think this method will either. I was still using the right offset, without results, so I think the problem might be somewhere else. And I know it's not a problem with my script, as I used the exact same script used in the video, as a test.
     
    1,309
    Posts
    12
    Years
    • She/Her
    • Seen Nov 24, 2023
    Thanks for the help! While I can't check at the moment, I don't think any of my names were 15 characters or longer, though I'll be sure to make sure when I get home! As for the scripting, if the batch compiler didn't work, I don't think this method will either. I was still using the right offset, without results, so I think the problem might be somewhere else. And I know it's not a problem with my script, as I used the exact same script used in the video, as a test.

    No worries! Without being able to see the error/method/exactly what's going on it can be hard to diagnose the problem haha. Let us know how you get on x
     
    79
    Posts
    5
    Years
  • No worries! Without being able to see the error/method/exactly what's going on it can be hard to diagnose the problem haha. Let us know how you get on x

    Well, I'll be able to check my character counts and my script in an hour or two, so I'll let you know. And the 15 character limit might be wrong, because Ever Grande City has 16, unless I'm spelling it wrong. I'll be sure to check it out!
     
    79
    Posts
    5
    Years
  • If it helps, here's the simple script I was testing. I don't think there''s anything wrong with what I'm doing, but it just won't work

    #dynamic 0x800000
    #org @start
    lock
    faceplayer
    msgbox @talk 0x6
    release
    end

    #org @talk
    = Please work
     

    DrFuji

    [I]Heiki Hecchara‌‌[/I]
    1,691
    Posts
    14
    Years
  • You're probably using XSE v1.0.0 which is incredibly buggy and infamously can't do msgboxes correctly. You can see which version you have by going to 'Help > About' in the program and seeing the number in the bottom right of the new window. Here's a link to XSE v1.1.1 which should be able to compile that script correctly.
     
    79
    Posts
    5
    Years
  • You're probably using XSE v1.0.0 which is incredibly buggy and infamously can't do msgboxes correctly. You can see which version you have by going to 'Help > About' in the program and seeing the number in the bottom right of the new window. Here's a link to XSE v1.1.1 which should be able to compile that script correctly.

    I just checked, and I am using 1.1.1, so it couldn't be that. I've decided to put it off for now, and keep asking for answers while I do all the mapping. Unfortunately, there isn't a clear reason for this problem, so I was thinking I'd get help with the scripting once the maps are mostly done
     

    Ace Trainer Slash

    If you give me about two hours, I can make scripts
    236
    Posts
    5
    Years
  • Have you tried putting a line of space between #dynamic 0x800000 and #org @start? I'm not sure if that's needed, but it works for me.

    Try set it up like this?

    #dynamic 0x800000

    #org @start
    lock
    faceplayer
    msgbox @talk 0x6
    release
    end

    #org @talk
    = Please work.


    Hopefully this works out for you. :)
     
    79
    Posts
    5
    Years
  • Have you tried putting a line of space between #dynamic 0x800000 and #org @start? I'm not sure if that's needed, but it works for me.

    Try set it up like this?

    #dynamic 0x800000

    #org @start
    lock
    faceplayer
    msgbox @talk 0x6
    release
    end

    #org @talk
    = Please work.


    Hopefully this works out for you. :)

    Unfortunately, I just tested it out, and it froze once again when I tried to speak to the npc. I know events work on my emulator, so I know that's not the problem, but I can't see a single thing that should be going wrong here! I'm starting to wonder if I should just leave scrripting entirely u to someone else, though I would definitely prefer to be able to do it myself:laugh-squinted:
     

    BrandoSheriff

    Has a tendency to figure things out
    776
    Posts
    16
    Years
  • That is a really peculiar problem. I'm not sure what's wrong either. I'm kinda stumped too lol. Without being able to know exactly what is happening, here's a few things I can think of that may help:

    ~Maybe try using 0x2 instead of 0x6? With 0x6, you don't need the lock, faceplayer, or release commands. Though even if that does anything, it doesn't really solve the main issue.

    ~How is the rom being loaded in order to compile? Are you compiling it through AdvanceMap or by opening it in XSE?

    ~I tested the script in question out in a dummy testing rom, and it worked as it should have. Here's my process, in case it differs:
    Spoiler:

    ~Which "script" are you using? In AdvanceMap, there are the green script square events that activate upon walking on them, and scripts tied to NPC person events that activate upon interacting with them. The NPC person event is the one that should be used here.

    ~Did you happen to remove the little "$" in the script offset box in AdvanceMap while putting in your new offset? If you happen to accidentally erase that and save it, the offset changes into a different one.

    And that's all I can think of for now. I tried my best to try and diagnose the problem without knowing exactly what's happening, so I hope this helps you in some way!
     
    Last edited:
    79
    Posts
    5
    Years
  • So I finally got around to trying to compile without the batch compiler, and I noticed that the compile button isn't actually clickable, so I'm starting to think this problem is specifically from XSE, though it shouldn't be giving me problems

    To add to that, when I tried using the batch compiler today, it showed "script compiled in 0.** seconds" in the corner, but never brought up the menu that I can copy the offsets from. Any ideas? Because I'm still stumped. I'm gonna try uninstalling XSE and using the link I was given in this thread to reinstall it.
    EDIT: It didn't work
     
    Last edited:

    Jakob99

    Worlds greatest trainer.
    82
    Posts
    11
    Years
  • So I finally got around to trying to compile without the batch compiler, and I noticed that the compile button isn't actually clickable, so I'm starting to think this problem is specifically from XSE, though it shouldn't be giving me problems

    To add to that, when I tried using the batch compiler today, it showed "script compiled in 0.** seconds" in the corner, but never brought up the menu that I can copy the offsets from. Any ideas? Because I'm still stumped. I'm gonna try uninstalling XSE and using the link I was given in this thread to reinstall it.
    EDIT: It didn't work

    Forget XSE almost entirely. Use PokeScript Editor instead. Just open it up, load your rom, and then from the tools dropdown box, there should be Script Generator. Click that and then click on Person Talking. Unless you are confident, open up XSE, and go to tools and text adjuster. Type in your desired text, convert it, and then copy and paste it into PSE. Go back to the begining of said text and remove the = sign so you don't have it appear in your text. After, click Ok and it will tell you how you would like your text prepared. If you're using an NPC, select person, if using a signpost, select that option. Once done, find the 0x740000 offset and paste it with an offset of your choice from Free Space Finder. Once done, go back to tools and hit compile. Two boxes should appear. One will have the messagebox stuff and the other will have two offsets. Write down the top most offset and paste it in to A-map as something like this 0x00999888. Once done, go to file>Save As and save the code. Load up the rom to make sure it works, and if it does, you can get rid of the script file you saved. Hope that works better than XSE.
     
    1,309
    Posts
    12
    Years
    • She/Her
    • Seen Nov 24, 2023
    PokeScript is extremely outdated. It's up to you if you want to try it but use at your own risk tbh x

    Strange that the compile button isn't clickable? You do mean this one, right?

    Completely Stumped


    And you're putting the offset here?

    Completely Stumped


    And you're not seeing something like this when you compile??

    Completely Stumped


    The only other thing I can think of where the compile button might not be clickable/that above screen isn't showing is if your XSE's not hooked up to AdvanceMap which seems unlikely. You can view a person event's script when you double click it in A-map, right?
     
    Last edited:
    79
    Posts
    5
    Years
  • PokeScript is extremely outdated. It's up to you if you want to try it but use at your own risk tbh x

    Strange that the compile button isn't clickable? You do mean this one, right?

    Completely Stumped


    And you're putting the offset here?

    Completely Stumped


    And you're not seeing something like this when you compile??

    Completely Stumped


    The only other thing I can think of where the compile button might not be clickable/that above screen isn't showing is if your XSE's not hooked up to AdvanceMap which seems unlikely. You can view a person event's script when you double click it in A-map, right?

    Alright, so to answer all of that:

    First, yes, that button, and the compile button in the right-click menu. Second, I am putting the offset in that slot. Third, that window used to pop up, but as of today it's stopped. And finally, I can open up an npcs script when I click on them in AdvanceMap, so it is connected.
     

    BrandoSheriff

    Has a tendency to figure things out
    776
    Posts
    16
    Years
  • I guess the things I listed couldn't solve the issue. I honestly can't see what's wrong either. :/

    So the compile button isn't working? The only time I've seen the compile button not clickable is when I don't have the rom opened in XSE, or I do have the rom loaded but haven't written anything. And you said you can open scripts just fine in AdvanceMap, so it's not the connection. From that, i assume you're editing scripts through AdvanceMap, right? By double clicking the NPCs and stuff? All I can think of right now is to try doing it outside of AdvanceMap, like the method in the spoiler in my previous comment. If you've already tried, I'm sorry I couldn't help further. I'll continue to think of other reasons it won't work.
     
    79
    Posts
    5
    Years
  • I guess the things I listed couldn't solve the issue. I honestly can't see what's wrong either. :/

    So the compile button isn't working? The only time I've seen the compile button not clickable is when I don't have the rom opened in XSE, or I do have the rom loaded but haven't written anything. And you said you can open scripts just fine in AdvanceMap, so it's not the connection. From that, i assume you're editing scripts through AdvanceMap, right? By double clicking the NPCs and stuff? All I can think of right now is to try doing it outside of AdvanceMap, like the method in the spoiler in my previous comment. If you've already tried, I'm sorry I couldn't help further. I'll continue to think of other reasons it won't work.

    I haven't actually tried to edit through Advance Map, since I noticed the problem while just trying to get a script into the game, and not actually scripting anything important. I didn't actually realize that's what you meant in your original post, so I didn't actually address that. I'm sure if I tried that, it would probably work better, but that doesn't help for when I have to script something new, which will be a large chunk of what I'll need:laugh-squinted: I'll probably edit some scripts, but mostly I intend on making my own, since it works better for what I have planned.
     
    1,309
    Posts
    12
    Years
    • She/Her
    • Seen Nov 24, 2023
    I haven't actually tried to edit through Advance Map, since I noticed the problem while just trying to get a script into the game, and not actually scripting anything important. I didn't actually realize that's what you meant in your original post, so I didn't actually address that. I'm sure if I tried that, it would probably work better, but that doesn't help for when I have to script something new, which will be a large chunk of what I'll need:laugh-squinted: I'll probably edit some scripts, but mostly I intend on making my own, since it works better for what I have planned.

    If you can open NPC scripts through A-Map try overwriting what's there with your own script (#dynamic 0x800000 etc) and then compiling that. Using #dynamic means it'll automatically search for free space from the offset you specify.

    Also never edit existing scripts, always make your own - the former causes issues more often than not x
     
    79
    Posts
    5
    Years
  • If you can open NPC scripts through A-Map try overwriting what's there with your own script (#dynamic 0x800000 etc) and then compiling that. Using #dynamic means it'll automatically search for free space from the offset you specify.

    Also never edit existing scripts, always make your own - the former causes issues more often than not x

    I thought as much, which is another reason why I didn't intend on really doing it:laugh-squinted:

    So I apparently fixed the compile button, though I don't know how. When testing it out though, the npc I put in didn't even show up. I hope that this is an easier problem to fix, though once again there shouldn't have been any problems with my script

    Alright, just gonna give a bit more information, because I want to be able to start scripting soon, I'm sick of mapping empty maps. So when I try to put my script on an npc, and then try to open my script through Advance Map, I just get a jumble of commands that I really don't think should be there, doing stuff like checking my inventory and such. So maybe that has something to do with the problem

    Here's what I got when I checked in my latest test

    '---------------
    #org 0x1E880
    bufferitem 0x0 0x1880
    bufferitem 0x78 0x4680
    comparevars 0x234A 0x148
    braille 0x43482058
    bufferdecoration 0x18 0x1C08
    compare 0x30 0x1578
    comparebanktobyte 0x40 0x45
    call 0x221C08D0
    checksound
    nop
    braille 0xD10A4540
    comparebanktobyte 0x4C 0x21
    closeonkeypress
    gotostd 0x1

    So I feel like something is very wrong here
     
    Last edited by a moderator:

    DrFuji

    [I]Heiki Hecchara‌‌[/I]
    1,691
    Posts
    14
    Years
  • Here's what I got when I checked in my latest test

    '---------------
    #org 0x1E880
    [...]

    So I feel like something is very wrong here

    That offset is incredibly wrong. Since you're using the #dynamic command, your script should be trying to find free space from offset 0x800000 onwards, but you're pulling a random section of data from near the beginning of the ROM. You either accidentally deleted a number or didn't copy the entire offset when you were pasting it into AdvanceMap.

    Even though you said you had XSE v1.1.1, just try downloading the version from my earlier post anyway as I can guarantee that one works correctly. Also, if you aren't doing so already, you need to exit/ reenter the map whenever you're testing scripts. This will reload everything and actualize any changes that you've made to NPCs.

    If you ever lose the pop-up window that appears after you compile, just click the notepad icon near the compile button.
     
    Last edited:
    Back
    Top