en:guide:febuildergba:how_to_change_tile_style_en

Changing the tile style (Changing the tile palette)

How to change tile palette (simple setting by map editor)

The easiest way to change the tile palette is to choose from presets in the map editor.

StepA1

Select the map editor.
i.imgur.com_s0da5vl.jpg

StepA2

Change the tile preset.

i.imgur.com_qaci1xd.jpg

StepA3

Press the “Write” button.

i.imgur.com_qiw8fe2.jpg

StepA4

Let's check the operation with the F5 key.
You can see that it is operating safely.

i.imgur.com_gkc90ig.jpg

How to change the tile palette (unknown combination)

If you want a combination that does not exist in the preset, set the PLIST ID in the chapter settings directly.
The PLSIT structure will be explained later.
For now, let's select a chapter setting and change the value of PLIST.
Since all the existing combinations are registered as presets, this time we will forcibly specify the village palette.

StepB1

Select chapter settings.

i.imgur.com_nj93fnb.jpg

StepB2

Change the PLIST value displayed in the upper right.
It is easier to use “Change Map Plist”.

i.imgur.com_qembd2e.jpg

Let's select Palette 0xF.
Palette 0xF is a village palette.

i.imgur.com_26zoouy.jpg

StepB3

Press the “Write” button.

i.imgur.com_8eefyd9.jpg

StepB4

The settings set here are displayed as “additional settings” in the presets of the map editor.

i.imgur.com_ckbpgsb.jpg

The screen is confused because I specified a village tile set in the field.
However, I think you know how to set it up.

Explanation of PLSIT structure

Describes the structure of a PLIST.
If you are not interested, skip to PLST split.
PLIST is a list that stores pointers to various things related to maps.

このリストは最大255個の配列になります。(PLSIT IDはBYTE型で格納されため上限は255になります。)

This list can be up to 255 arrays.(PLSIT ID is stored in BYTE type, so the upper limit is 255.)


void* map[Max 255] = {CH0_OBJ, CH0_PAL, CH0_PAL , CH0_MAP , CH1_OBJ, CH1_PAL… };

You can check the value of the PLIST pointer from “Map Pointer” in the detail menu.

If you want to add a map or palette, you just have to find a free PLIST.
However, most of the PLIST is used.
Since PLIST ID is set as BYTE type, it cannot exceed 255.
If it can be reused, it is best, but if it cannot be reused, PLIST split is required.

PLSIT split

PLIST split is a method of creating a space by distributing PLISTs by type.
In PLIST, the data required for the map is stored in a single array.
If you want to know more, please see the “PLIST correlation diagram” at the end of this article.

If this is the case, free space cannot be created, so this structure will be changed.
Instead of putting everything in a single array, we will change it to distribute each type of array.

DEFAULTPLIST Split
DefualtPALListOBJListCONFIGList ….
OBJNULLOBJNULL
PALPALNULLNULL
CONFIGNULLNULLCONFIG
MAPNULLNULLNULL
EVENTNULLNULLNULL
OBJNULLOBJNULL
PALPALNULLNULL
CONFIGNULLNULLCONFIG
MAPNULLNULLNULL
EVENTNULLNULLNULL

By doing so, it becomes a list for each item, so a large amount of margin can be secured.

PLIST split is easy.
Simply press the PLIST split button from the map pointer in the detail menu. (You can call it from other than this screen.)
If you press the button, FEBuilderGBA automatically splits the PLIST by type.

StepC1

i.imgur.com_7qvftti.jpg

StepC2

i.imgur.com_qgthm6c.jpg

StepC3

i.imgur.com_zelr9b8.jpg

Remember that this is a dangerous task and should be backed up beforehand.
After splitting, press F5 to see if the game works correctly.

If the game works correctly, the PLIST split is successful.
Congrats. You have secured a huge free space.
Let's make a nice map here.

Register a new map style

As a result of the previous PLIST split, a large free space was secured.
Let's import the snow map of FE6 using this free space.

StepD1

Open the FE6 ROM with FEBuilderGBA.
Go to the snow map scene.

i.imgur.com_mzbsxfo.jpg

StepD2

Select a map editor.
i.imgur.com_mzbsxfo.jpg

StepD3

Select a map style.
i.imgur.com_p9xfgfs.jpg

StepD4

Export two files.
First, export map_config.

The map_config stores information about whether the tile is a forest, a mountain, or a road.
It also contains information about cutting out the map from the image and assembling it.

Next, export the map's OBJ and palette.
Since it can be acquired as a png image, both data are included.

i.imgur.com_vnxyndr.jpg

Save two files, map_config and png.

StepD5

Now that you have the data, close FE6.

StepD6

Let's go back to FE8.
i.imgur.com_s0da5vl.jpg

StepD7

Enter chapter settings.
i.imgur.com_s0da5vl.jpg

StepD8

Press Change Map Style.
i.imgur.com_qaci1xd.jpg

StepD9

If the PLIST is not split, expand the PLIST referring to the previous item.
If the PLIST is split, it will be displayed as split.
i.imgur.com_vaic5df.jpg

StepD10

Set the PLIST free ID appropriately.
OBJ, PAL, and CONFIG are required.

OBJ

i.imgur.com_vtnumpt.jpg

PAL

i.imgur.com_zjnnbsd.jpg

CONFIG

i.imgur.com_weftasi.jpg

Since map animation is not used this time, set 0 for animation 1 and animation 2.
i.imgur.com_aa4g6da.jpg

StepD11

Press OK.
i.imgur.com_60hbbt4.jpg

StepD12

Press the “Write” button.
i.imgur.com_tptxw8k.jpg

StepD13

From the map editor, go to the map style editor.

Since the unused area has been allocated, the screen turns black.
In addition, FELint has issued a warning because unused space has been allocated.

i.imgur.com_xue2ceq.jpg

i.imgur.com_yyfnol6.jpg

StepD14

Load map_config and png exported earlier.
i.imgur.com_94nq63u.jpg

StepD15

The setting has been completed.
i.imgur.com_7rgnqps.jpg

StepD16

Now that you ’ve set it up, you should see a map.
FELint errors are also gone.
i.imgur.com_5t3oyfa.jpg

Let's start the game by pressing the F5 key.
It became snow tiles.
The field was forced to snow, so there are some problems, but it moves for the time being.
i.imgur.com_uszsi6v.jpg

Map animation settings

The map animation settings are almost the same.
You can set the map animation from the map animation in the detail menu.
Similarly, if you export and import, it will work.
i.imgur.com_mjxruc3.jpg

i.imgur.com_ztdaroc.jpg

i.imgur.com_ba6efmp.jpg

PLIST correlation diagram

I attached a GBAFE PLIST correlation diagram as an appendix.

OBJ
i.imgur.com_3fvdwej.jpg

PAL
i.imgur.com_0wo2mva.jpg

CONFIG
i.imgur.com_ywktlnh.jpg

MAP
i.imgur.com_kr9xoq8.jpg

TILE CHANGE
i.imgur.com_hugzm23.jpg

EVENT
i.imgur.com_uzii1z1.jpg

en/guide/febuildergba/how_to_change_tile_style_en.txt · 最終更新: 2019/10/02 07:07 by 211.14.62.243