Manual Editing

How to edit the Town_Map.txt PBS file manually.


Table of Contents


Overview

I'll jump right into this by giving a few examples showing some of the possibilities.


Each point needs following elements:

  • x point - required
  • y point - required
  • location name - required
  • point of interest name - optional
  • fly poing - optional (if used, all 3 required)
    • Map ID - required
    • X - required
    • Y - required
  • Switch ID - optional
  • Graphic name - required (for this plugin)

Example 1

The 1st point is Lappet Town.

Image not found
Lappet Town

This Location has a size of 1 by 1 tiles on the Region Map => 1 Point is defined:


Looking into the Highlight folder, we'll find a Graphic named "mapSize1x1.png"

  • Graphics > Pictures > RegionMap > Highlights > Others for v20.1
  • Graphics > UI > Town Map > Highlights > Others for v21.1

Image (mapSize1x1.png) missing.


To make the Script use this Graphic when the Cursor is on this Point, we add "Size1x1" at the end of this line for this Point:


Pay attention that before "Size1x1" I added an extra , as that would normally be where we define a Switch for that Point. Result when the Cursor is on this Location:

Image not found
Lappet Town Highlighted

Result when this Location hasn't been visited yet:

Image not found
Lappet Town Unvisited

You can also add "LappetTown" instead of "Size1x1" (the Graphic name should then be "mapLappetTown.png"). Image (mapLappetTown.png) missing.


When changing or adding new Graphics, always recompile your game an extra time. I noticed this for myself too that it would say that a Graphic is missing while it's actually present in the folder.


Example 2

The 3rd and 4th points are Cedolan City:

Image not found
Cedolan City

This Location has a size of 2 by 1 tiles on the Region Map => 2 Points are defined:


Looking into the Highlight folder, we'll find a Graphic named "mapSize2x1.png" (2 tiles wide and 1 tile high).

  • Graphics > Pictures > RegionMap > Highlights > Others for v20.1
  • Graphics > UI > Town Map > Highlights > Others for v21.1

Image (mapSize2x1.png) missing.


To make the Script use this Graphic when the Cursor is on one of these 2 Points, we add "Size2x1" at the end of both line for these Points:


Pay attention that before "Size2x1" I added an extra , as that would normally be where we define a Switch for that Point. Result when the Cursor is on this Location:

Image not found
Cedolan City Highlighted

Result when this Location hasn't been visited yet:

Image not found
Cedolan City Unvisited

You can also add "CedolanCity" instead of "Size2x1" (the Graphic name should then be "mapCedolanCity.png"). Image (mapLappetTown.png) missing.


When changing or adding new Graphics, always recompile your game an extra time. I noticed this for myself too that it would say that a Graphic is missing while it's actually present in the folder.


Example 3

The 5th and 6th points are Route 2:

Image not found
Route 2

This Location has a size of 1 by 2 tiles on the Region Map => 2 Points are defined:


Looking into the Highlight folder, we'll find a Graphic named "mapRoute2.png" (1 tile wide and 2 tiles high).

  • Graphics > Pictures > RegionMap > Highlights > Routes for v20.1
  • Graphics > UI > Town Map > Highlights > Routes for v21.1

Image (mapRoute2.png) missing.


To make the Script use this Graphic when the Cursor is on one of these 2 Points, we add "Route2" at the end of both line for these Points:


Pay attention that before "Route2" I added 6 extra , as that would normally be where we define

  • a point of interest
  • fly point (map id, x and y value)
  • a Switch. for this Point. Result when the Cursor is on this Location:
Image not found
Route 2 Highlighted

You can also add "BridgeRoute" instead of "Route2" (the Graphic name should then be "mapBridgeRoute.png"). Make sure this Graphic is in the "Routes" folder and "Route" is included in the name. If you don't include "Route", the Script will assume the Graphic is in the "Others" folder.


Image (mapBridgeRoute.png) missing.


When changing or adding new Graphics, always recompile your game an extra time. I noticed this for myself too that it would say that a Graphic is missing while it's actually present in the folder.


Example 4

The 8th point is Natural Park:

Image not found
Natural Park

This Location has a size of 1 by 1 tiles on the Region Map => 1 Point is defined:


Looking into the Highlight folder, we'll find a Graphic named "mapSize1x1Small.png" (1 tile wide and 1 tile high).

  • Graphics > Pictures > RegionMap > Highlights > Others for v20.1
  • Graphics > UI > Town Map > Highlights > Others for v21.1

Image (mapSize1x1Small.png) missing.


To make the Script use this Graphic when the Cursor is on this Point, we add "Size1x1Small" at the end of both line for this Point:


Pay attention that before "Size1x1Small" I added 6 extra , as that would normally be where we define

  • a point of interest
  • fly point (map id, x and y value)
  • a Switch. for this Point. Result when the Cursor is on this Location:
Image not found
Natural Park Highlighted

Optionally, you can edit the highlight Graphic so it looks like this:

Image not found
Natural Park Highlighted

The difference here might not be that noticable but it's a nice little detail.


You can also add "NaturalParkSmall" instead of "Size1x1Small" (the Graphic name should then be "mapNaturalParkSmall.png").
"Small" should still be included since the Graphic is only 16x16 in size and is in the "Others" folder.
This is because the Script add the offset by default, this won't be the case when "Small" is included.


Image (NaturalParkSmall.png) missing.


Alternativly, you could also make this Graphic 48x48 and name it "mapNaturalPark.png".


When changing or adding new Graphics, always recompile your game an extra time. I noticed this for myself too that it would say that a Graphic is missing while it's actually present in the folder.


Example 5

The 9th 10th and 11th points are Route 3:

Image not found
Route 3

This Location has a size of 2 by 2 tiles on the Region Map => 3 Points are defined (The bottom left point is not used and doesn't need a point):


Looking into the Highlight folder, we'll find 2 Graphics this time.

  • For Route 3 we'll find a Graphic called "mapRoute3.png"
    • Graphics > Pictures > RegionMap > Highlights > Routes for v20.1
    • Graphics > UI > Town Map > Highlights > Routes for v21.1
      Image (mapRoute3.png) missing.

  • For Ice Cave we'll find a Graphic called "mapSize1x1Small.png"
    • Graphics > Pictures > RegionMap > Highlights > Others for v20.1
    • Graphics > UI > Town Map > Highlights > Others for v21.1
      Image (mapSize1x1Small.png) missing.

To make the Script use one of these Graphics when the Cursor is on their respective point, we add "Route3" to the 1st and 3rd point and "Size1x1Small" to the 2nd Point at the end of each line for these Points:


Pay attention that before "Route3" I added 6 extra , as that would normally be where we define

  • a point of interest
  • fly point (map id, x and y value)
  • a Switch. for this Point. And before "Size1x1Small" I added 5 extra , (a point of interest is defined) as that would normally be where we define:
  • fly point (map id, x and y value)
  • a switch

Result when the Cursor is on this Location (either the 1st of 3rd Point):

Image not found
Route 3 Highlighted

Result when the Cursor is on this Location (either the 1st of 3rd Point):

Image not found
Ice Cave Highlighted

Optionally, you can edit the Highlight Graphic so it looks like this: Result when the Cursor is on this Location (either the 1st of 3rd Point):

Image not found
Ice Cave Highlighted

The difference here might not be that noticable but it's a nice little detail.


You can also

  • add (for the 1st and 3rd points) "TrainerRoute" instead of "Route3" (the Graphic name should then be "mapTrainerRoute.png").
    Image (mapTrainerRoute.png) missing.
  • add (for the 2nd point) "IceCaveSmall.png" instead of "Size1x1Small" (the Graphic name should then be "mapIceCaveSmall.png").
    For the 2nd point's Graphic name "Small" should still be included since the Graphic is only 16x16 in size and is in the "Others" folder.
    This is because the Script add the offset by default, this won't be the case when "Small" is included.
    Image (mapIceCaveSmall.png) missing.

Alternativly, you can also make the Graphic for the 2nd Point 48x48 and name it "mapIceCave.png"


When changing or adding new Graphics, always recompile your game an extra time. I noticed this for myself too that it would say that a Graphic is missing while it's actually present in the folder.