• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking 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: [v17+] Roaming Icon on Map

Hey Fl. Thanks alot, I updated the script. and did the changes you've done, the image shows in the Pokedex as I want, but the "Area unknown" text is still in the middle of the screen is there a way to remove that?
In UI Pokédex Entry change line 'if points.length == 0' to 'if points.length == 0 && false'.
 
I have more of an open-world town map, and for some reason the roaming icon only shows up in the top left portion of the map. I tried looking into this to see if there was any way I can adjust the script but it only adjusts the height and not the width. I'm also not not great with scripting so that could be it, LoL. Is there any way to fix this?

[PokeCommunity.com] [v17+] Roaming Icon on Map
 
I have more of an open-world town map, and for some reason the roaming icon only shows up in the top left portion of the map. I tried looking into this to see if there was any way I can adjust the script but it only adjusts the height and not the width. I'm also not not great with scripting so that could be it, LoL. Is there any way to fix this?

View attachment 160987
Strange. Let's say that the roamer is in the route 3, the pokédex highlight route 3 encounters is correctly positioned? And what is your Essentials version?
 
Strange. Let's say that the roamer is in the route 3, the pokédex highlight route 3 encounters is correctly positioned? And what is your Essentials version?
I'm using v20.1. Yea the encounters of the other encounters work properly on the map and is positioned correctly.

[PokeCommunity.com] [v17+] Roaming Icon on Map
 
I'm using v20.1. Yea the encounters of the other encounters work properly on the map and is positioned correctly.

View attachment 161058
Here it was working in v20.1, strange. Did you manage to define area metadata correctly, so player head is in the correct position in the places where the roaming pokémon are? You tested it in Vanilla V20.1? If works in vanilla but not in you game, some other of your script may be interfering.

This script is included in Arcky's Region Map. You can try using it instead if you can't detect the issue.
 
Here it was working in v20.1, strange. Did you manage to define area metadata correctly, so player head is in the correct position in the places where the roaming pokémon are? You tested it in Vanilla V20.1? If works in vanilla but not in you game, some other of your script may be interfering.

This script is included in Arcky's Region Map. You can try using it instead if you can't detect the issue.
I ended up testing this issue in the Vanilla V20.1 and determined what the issue is. It is positioning the roaming pokemon based off the map position, without calculating the map size. I tried it multple times on the vanilla version and the roaming pokemon always showed on the map on the exact same position when showing on a route. That's why when I have my roaming pokemon in my game it only shows in the top left, because it is positioning it according to the map position without factoring in the map size.

[PokeCommunity.com] [v17+] Roaming Icon on Map
 
I ended up testing this issue in the Vanilla V20.1 and determined what the issue is. It is positioning the roaming pokemon based off the map position, without calculating the map size. I tried it multple times on the vanilla version and the roaming pokemon always showed on the map on the exact same position when showing on a route. That's why when I have my roaming pokemon in my game it only shows in the top left, because it is positioning it according to the map position without factoring in the map size.

View attachment 161085
This script uses the exact algorithm used for calculated the player's head position in the map. I tested in a 800x600 map and a 320x160 in vanilla, and it worked (attached). Are you sure that the player's head algorithm at your game wasn't edited (by yourself or by a third party script)?
 

Attachments

  • [PokeCommunity.com] [v17+] Roaming Icon on Map
    Big Map.png
    11.1 KB · Views: 3
  • [PokeCommunity.com] [v17+] Roaming Icon on Map
    Small Map.png
    15.7 KB · Views: 3
I haven't changed anything with the algorithms. Your images show it operating the same as mine. If you notice that entei icon is on starting region map position on route 5 (0,11,7), and the map size of that route is 1, 111. When you change maps and when entei moves will will never appear anywhere else on route 5 only at the starting position. Sorry if this sounds confusing. I tried explaining it as best I can. :LOL:
 
Last edited:
I haven't changed anything with the algorithms. Your images show it operating the same as mine. If you notice that entei icon is on starting region map position on route 5 (0,11,7), and the map size of that route is 1, 111. When you change maps and when entei moves will will never appear anywhere else on route 5 only at the starting position. Sorry if this sounds confusing. I tried explaining it as best I can. :LOL:
Basically, you said that the roaming pokémon are stuck in start position, right? This is defined in ROAMING_AREAS, in Settings. And in Essentials, Entei is roaming as defined. A gif:
[PokeCommunity.com] [v17+] Roaming Icon on Map
 
Basically, you said that the roaming pokémon are stuck in start position, right? This is defined in ROAMING_AREAS, in Settings. And in Essentials, Entei is roaming as defined. A gif:
[PokeCommunity.com] [v17+] Roaming Icon on Map
Yes exactly! I thought that it would roam on the map but randomly appear or be centered along the route. I guess I thought wrong. Lol
 
Back
Top