• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • 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] How to fix an error with dynamic pokemon expansion?

  • 17
    Posts
    4
    Years
    • Seen Jul 5, 2022
    I've been working on expanding the pokedex for my hack, and I've encountered an error I'm not quite sure how to fix.
    Error:
    Spoiler:

    It's giving me the error despite the new_names.bin file being in the same folder, so I'm not quite sure what to do. I've tried it with changing the names enabled and disabled, and it gives the same error each time. Do i maybe need to change the free space, or what should I do?

    Edit: Figured out the problem, it was looking for a file named scripts//new_names.bin rather than just new_names.bin

    Edit 2: How can I edit pokemon added through the expander? PGE crashes when attempting to load anything repointed by the expansion, and I get this error when I try to load then Pokemon editor.
    Spoiler:


    Also, on the expanded rom, cries of pokemon that already exist don't play at all. That's the only other thing I've noticed.
     
    Last edited:
    I've been working on expanding the pokedex for my hack, and I've encountered an error I'm not quite sure how to fix.


    Edit 2: How can I edit pokemon added through the expander? PGE crashes when attempting to load anything repointed by the expansion, and I get this error when I try to load then Pokemon editor.

    you can edit the added pokemon through the files in dpe before you compile, or you can use a hex editor like Hex Maniac Advance to edit their values after you've already compiled.

    The latter option also works for edits after you've applied cfru.

    *using HMA will probably require a little setup to make all the values correctly formatted in the program, but it works well for most things.
     
    I'm not sure how to fix the error, but can I ask why you need PGE at all if you're using the DPE?
     
    Last edited:
    you can edit the added pokemon through the files in dpe before you compile, or you can use a hex editor like Hex Maniac Advance to edit their values after you've already compiled.

    The latter option also works for edits after you've applied cfru.

    *using HMA will probably require a little setup to make all the values correctly formatted in the program, but it works well for most things.

    How would I use HMA to edit the pokemon? I know how to edit the sprites through HMA but I don't know how to edit anything else

    Also, sorry if I seem kind of dumb here, I'm still fairly new to romhacks, but what is cfru?
     
    Last edited:
    How would I use HMA to edit the pokemon? I know how to edit the sprites through HMA but I don't know how to edit anything else

    depends on what you're trying to do. you can change abilities, stats, names, other data in the stats table.

    learnsets, tutor moves, egg moves, tmhm compatability etc.

    what kind of thing are you trying to do?


    after you expand with dpe cfru, some fields may disappear from hma, but you can get them back by editing your .toml file with the updated address and formatting information.
    but I haven't used it in a while, so newer versions may handle the change easier. but if a table or something is missing compared to a vanilla rom, the method
    above will work.
     
    But I thought part of adding them was adding their data to the various tables.

    Like the base stats, learnsets and whatever.

    I.e. you should just be able to copy existing entries and modify them in the samw format.
     
    depends on what you're trying to do. you can change abilities, stats, names, other data in the stats table.

    learnsets, tutor moves, egg moves, tmhm compatability etc.

    what kind of thing are you trying to do?


    after you expand with dpe cfru, some fields may disappear from hma, but you can get them back by editing your .toml file with the updated address and formatting information.
    but I haven't used it in a while, so newer versions may handle the change easier. but if a table or something is missing compared to a vanilla rom, the method
    above will work.

    I want to add the gen 4-8 mons as well as some of my own. The expander adds more than enough to do that, I just don't know how to edit them

    But I thought part of adding them was adding their data to the various tables.

    Like the base stats, learnsets and whatever.

    I.e. you should just be able to copy existing entries and modify them in the samw format.

    Where would I find the files to edit if I was going to edit them that way then? I've looked through the expansion files and I can't find anything that seems like I could edit to change actual pokemon
     
    The src folder has most of the stuff.

    Just so I'm clear on what you're tyobg to do, are you expanding the Dex with 'mons beyond the ones already included, or just like with up to Gen VII or VIII mons?
     
    The src folder has most of the stuff.

    Just so I'm clear on what you're tyobg to do, are you expanding the Dex with 'mons beyond the ones already included, or just like with up to Gen VII or VIII mons?

    I want to go beyond, but only up to the 999 limit, so not too many extra
     
    ok gotcha, so here's what you need to do. DPE alone will add the gen 4-8 pokemon, as well as remove the sprite limit that prevents adding more from base game.

    now to add custom pokemon, you need to pretty much follow this guide.
    https://github.com/pret/pokeemerald/wiki/How-to-add-a-new-Pokémon-species

    but that's for decomp so a few things are slightly different. but for the most part I'm sure you should be able to figure what's what.

    once you have the important stuff, (i.e front sprite, back sprite, icon sheet, & palette [just copy one from an existing similar colored pokemon should work] )
    into dpe, it should build and from there you can add the rest in HMA.

    oh don't forget to adjust the species names, file as well. that's really important.

    Once the graphics and number of names are setup, you should be able to see the new pokemon in the base stats table.

    in HMA you use ctrl G, to bring up the goto menu, and from there you can get anywhere you need to, either by typing in, or clicking the buttons pyramid till you get what you want.

    from the stats table you'll be able to edit/add whatever you need to for the pokemon.
    [PokeCommunity.com] How to fix an error with dynamic pokemon expansion?
    [PokeCommunity.com] How to fix an error with dynamic pokemon expansion?
     
    I want to add the gen 4-8 mons as well as some of my own. The expander adds more than enough to do that, I just don't know how to edit them



    Where would I find the files to edit if I was going to edit them that way then? I've looked through the expansion files and I can't find anything that seems like I could edit to change actual pokemon

    forgot to quote so you get an alert, but check my message above. just in case you missed it I gave some likes too.

    anyway that should solve your problem.
     
    ok gotcha, so here's what you need to do. DPE alone will add the gen 4-8 pokemon, as well as remove the sprite limit that prevents adding more from base game.

    now to add custom pokemon, you need to pretty much follow this guide.
    https://github.com/pret/pokeemerald/wiki/How-to-add-a-new-Pokémon-species

    but that's for decomp so a few things are slightly different. but for the most part I'm sure you should be able to figure what's what.

    Thanks for your help! I'm working on some other things tonight but I'll be sure to check that out tomorrow!
     
    Back
    Top