• 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!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist 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] New Starting Location

  • 15
    Posts
    3
    Years
    • Seen Dec 8, 2022
    Back again. Where do I have to add my maps to get a new game to start me right in the map I want. When I follow the instructions in Simple Modifications, it says my new map doesn't work. I have added it everywhere that I can think of, including: include/constants/region_map_sections, include/constants/map_groups, and src/data/region_map/region_map_entries. However, after I change the start location in new_game.c, it gives me the following error:
     

    Attachments

    • [PokeCommunity.com] New Starting Location
      Error.PNG
      20.1 KB · Views: 12
    Back again. Where do I have to add my maps to get a new game to start me right in the map I want. When I follow the instructions in Simple Modifications, it says my new map doesn't work. I have added it everywhere that I can think of, including: include/constants/region_map_sections, include/constants/map_groups, and src/data/region_map/region_map_entries. However, after I change the start location in new_game.c, it gives me the following error:
    It'd be helpful if you pasted here your code.
    How did you write the constant of your map inside WarpToTruck? Did you add the MAP_ prefix?
    If so, don't.

    You'll notice that by default, the code there looks like this:
    Code:
    static void WarpToTruck(void)
    {
        SetWarpDestination(MAP_GROUP(INSIDE_OF_TRUCK), MAP_NUM(INSIDE_OF_TRUCK), WARP_ID_NONE, -1, -1);
        WarpIntoMap();
    }

    Meaning that something like this:
    Code:
    static void WarpToTruck(void)
    {
        SetWarpDestination(MAP_GROUP(MAP_TLACHITZ_VILLAGE), MAP_NUM(MAP_TLACHITZ_VILLAGE), WARP_ID_NONE, -1, -1);
        WarpIntoMap();
    }

    Simply won't work.
     
    It'd be helpful if you pasted here your code.
    How did you write the constant of your map inside WarpToTruck? Did you add the MAP_ prefix?
    If so, don't.

    You'll notice that by default, the code there looks like this:
    Code:
    static void WarpToTruck(void)
    {
        SetWarpDestination(MAP_GROUP(INSIDE_OF_TRUCK), MAP_NUM(INSIDE_OF_TRUCK), WARP_ID_NONE, -1, -1);
        WarpIntoMap();
    }

    Meaning that something like this:
    Code:
    static void WarpToTruck(void)
    {
        SetWarpDestination(MAP_GROUP(MAP_TLACHITZ_VILLAGE), MAP_NUM(MAP_TLACHITZ_VILLAGE), WARP_ID_NONE, -1, -1);
        WarpIntoMap();
    }

    Simply won't work.

    That is exaclty what I did. I added the coordinates of where I wanted to start which are (19,10) but other than that it looks the same.
     
    That is exaclty what I did. I added the coordinates of where I wanted to start which are (19,10) but other than that it looks the same.

    Actually, I did this:

    static void WarpToTruck(void)
    {
    SetWarpDestination(MAP_GROUP(Tlachitz_Village), MAP_NUM(Tlachitz_Village), WARP_ID_NONE, 19, 10);
    WarpIntoMap();
    }
     
    If you go to include/constants/map_groups.h you'll see that constants like these ones are spelled out in uppercase letters explicitly.

    This was my mistake, I was using the map names from a different file. Thank you so much!
     
    Back
    Top