• 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.

Help Thread: Quick Questions & Answers

Status
Not open for further replies.
  • 1,682
    Posts
    8
    Years
    • Seen May 29, 2024
    Last edited:

    Aethestode

    Hacker
  • 1,700
    Posts
    16
    Years
    • Seen Aug 14, 2023
    Did you remember to +1 the offset of the ASM?
    As in, you inserted the ASM at 0x800000 so the inserted bytes at 0801687E would be 01 48 00 47 00 00 01 00 80 08
    And if you did do all that, I don't know what would be wrong.


    I did exactly that. I've inserted it in the correct location and stuff (I even tried it in a vanilla FIreRed Rom). The only thing that might be wrong is if I complied it incorrectly.

    This is the compiled code I got.
    05480078002805D104490548007808700449054805480047B8700302E23B0202CC3B02028A3E0202896801088D680108
     
  • 2,108
    Posts
    15
    Years
    • Seen today
    Hi all, I have a very weird problem.

    Spoiler:
     

    FrozenInfernoZX

    What is out there?
  • 756
    Posts
    11
    Years
    Does anybody know how to make a daily event happen once a week? Like the way it was in G/S/C and R/S/E where the event would not repeat itself during the same day. The command from R/S/E doesn't work for FRLG since those games originally didn't have RTC.
    I know how to script time based events already, I just want to know how to make them occur only once a day. For instance I have a Bug Catching Contest occuring on Wednesday and Fridays, but if the player did the event then were to save their game on Wednesday and resume their game on Friday, the event would just be reading the "day of week byte" and the event would not occur on Friday unless I manually reset the flag, which is obviously not ideal or a true daily event.
     
  • 3,830
    Posts
    14
    Years
    • Age 27
    • OH
    • Seen May 10, 2024
    Hi all, I have a very weird problem.

    Spoiler:

    The only reason I can think of is that the NPC was moved too far off camera, which can cause issues. I've encountered the problem before because of that. Wish I could explain it better.
     
  • 2,108
    Posts
    15
    Years
    • Seen today
    The only reason I can think of is that the NPC was moved too far off camera, which can cause issues. I've encountered the problem before because of that. Wish I could explain it better.

    Oh, that actually makes sense. I don't know why I didn't think of that.

    Alright, thanks a lot!
     

    Desert Stream~

    Holy Kipper!
  • 3,269
    Posts
    8
    Years
    • She/Her
    • Seen Aug 20, 2023
    I'm trying to add a bed for a room, what are the movement perms? I tried to do it from memory, and the results are not what they should be.
     
  • 1,344
    Posts
    14
    Years
    • Seen Dec 10, 2021
    I'm trying to add a bed for a room, what are the movement perms? I tried to do it from memory, and the results are not what they should be.

    Wouldn't it be easier just to open a Firered ROM and check for yourself?
     

    Le pug

    Creator of Pokémon: Discovery / Fat Kid
  • 870
    Posts
    10
    Years
    I'm trying to add a bed for a room, what are the movement perms? I tried to do it from memory, and the results are not what they should be.

    This makes no sense ... they should be C just like the rest of the tiles. If you mean what are the behavior bytes, then you could go into the blocks and set them to have like "Hero blocks downwards" on the tiles right above the bed or vice versa so that you don't walk up into the bed and only side ways. Or I guess if you are still hellbent on movements instead, fill the room with the movement 10. This will have the player above every image so if there are blocks you can stand behind, don't use 10 on them. Put C on the bed only and 0s where you want the player to walk to get into the bed so it should look like:

    ....10 10 10 10
    10 00 CC CC 00 10
    10 00 CC CC 00 10
    ....10 10 10 10

    0 movement allows you to walk across two different movement codes.
     
  • 1
    Posts
    8
    Years
    • Seen Jan 14, 2021
    I'm just starting out with ROM hacking and getting tools set up, and I'm having an issue connecting a script editor to A-Map. When I go to "Choose Script Editor" in A-Map and select XSE.exe it tells me "the program file does not exist or is not executable." XSE works fine for me on its own and I haven't messed with the XSE files, but I keep getting this error. I've tried redownloading XSE, I've tried using PKSV instead, and I just keep getting the same error message. Any advice?
     

    Crizzle

    Legend
  • 942
    Posts
    9
    Years
    I'm just starting out with ROM hacking and getting tools set up, and I'm having an issue connecting a script editor to A-Map. When I go to "Choose Script Editor" in A-Map and select XSE.exe it tells me "the program file does not exist or is not executable." XSE works fine for me on its own and I haven't messed with the XSE files, but I keep getting this error. I've tried redownloading XSE, I've tried using PKSV instead, and I just keep getting the same error message. Any advice?

    I'd guess trying to redownload A-Map.
     

    Aethestode

    Hacker
  • 1,700
    Posts
    16
    Years
    • Seen Aug 14, 2023
    Where can I download JPAN Save Variable Patch and JPAN's save block recycling

    Both the original attachment to the original posts are broken
     
  • 533
    Posts
    12
    Years
    • Seen Nov 4, 2017
    How do I stop a script from happening more than once. I have it so the script wont start again when im in the same area. but when I go out the area and activate the script. It plays over again.
     

    Uncommon

    Oozma Kappa
  • 192
    Posts
    8
    Years
    How do I stop a script from happening more than once. I have it so the script wont start again when im in the same area. but when I go out the area and activate the script. It plays over again.

    Not sure if you're using a level script or a script tile/event, but in either case, when you set it up in A-Map, you specify a variable and a value. The script runs if the variable currently has the specified value. If you want it to stop after one instance, make the script increment that variable. So let's say you picked var 4011 and a value of 0x0 in A-Map. You'd need to add a line of "setvar 0x4011 0x1" in your script to change the value of the variable.
     
  • 533
    Posts
    12
    Years
    • Seen Nov 4, 2017
    Not sure if you're using a level script or a script tile/event, but in either case, when you set it up in A-Map, you specify a variable and a value. The script runs if the variable currently has the specified value. If you want it to stop after one instance, make the script increment that variable. So let's say you picked var 4011 and a value of 0x0 in A-Map. You'd need to add a line of "setvar 0x4011 0x1" in your script to change the value of the variable.

    Its an Event Script. Yes ive done 0x1 always at the end of my script. Does 0x0 need to be in the script somewhere? I always keep the var value blank (0000) on Advance Map. When I leave a route, then enter back in, the script begins a new.

    For Example:

    Spoiler:
     

    Uncommon

    Oozma Kappa
  • 192
    Posts
    8
    Years
    Its an Event Script. Yes ive done 0x1 always at the end of my script. Does 0x0 need to be in the script somewhere? I always keep the var value blank (0000) on Advance Map. When I leave a route, then enter back in, the script begins a new.

    For Example:

    Spoiler:

    So I assume you are using var 49C0 in A-Map (as the "Var number")? That variable may be temporary or unsafe. As a quick test, try it with something like 4011 (4011-40FF are known to be safe, according to this reference).

    No, you don't need 0x0 in the script, just the 0000 in A-Map like you said.
     
  • 533
    Posts
    12
    Years
    • Seen Nov 4, 2017
    So I assume you are using var 49C0 in A-Map (as the "Var number")? That variable may be temporary or unsafe. As a quick test, try it with something like 4011 (4011-40FF are known to be safe, according to this reference).

    No, you don't need 0x0 in the script, just the 0000 in A-Map like you said.

    Oh I see, ok one last thing.
    Would there be a problem if I use the same variable with more than one Script in the area or the whole game?
     

    Uncommon

    Oozma Kappa
  • 192
    Posts
    8
    Years
    Oh I see, ok one last thing.
    Would there be a problem if I use the same variable with more than one Script in the area or the whole game?

    No, that's actually ok, as long as you use a different var value for each one (Ex. var 4011, first script has a var value of 0000 in A-Map and the script sets it to 0x1, then the next script has a value of 0001 in A-Map and the script sets it to 0x2, etc.).
     
  • 533
    Posts
    12
    Years
    • Seen Nov 4, 2017
    No, that's actually ok, as long as you use a different var value for each one (Ex. var 4011, first script has a var value of 0000 in A-Map and the script sets it to 0x1, then the next script has a value of 0001 in A-Map and the script sets it to 0x2, etc.).

    Ok so to wrap this up

    Using something like

    setvar 0x4060 0x1 will conflict if i have setvar 0x4060 0x1 anywhere else in the game?

    But something like
    setvar 0x4060 0x1 will not conflict if i have setvar 0x4060 0x2 anywhere else in the game?
     
    Status
    Not open for further replies.
    Back
    Top