Decomp data

This commit is contained in:
Adrienn Tindall 2024-03-21 12:00:11 -04:00
parent 7745890342
commit 086f687084
8 changed files with 959 additions and 432 deletions

View File

@ -1,42 +0,0 @@
#include <nitro/fs/overlay.h>
#pragma once
.public GfGfxLoader_LoadCharData
.public GfGfxLoader_LoadScrnData
.public GfGfxLoader_GXLoadPal
.public BeginNormalPaletteFade
.public IsPaletteFadeFinished
.public AllocFromHeapAtEnd
.public FreeToHeap
.public SetBgControlParam
.public SetBgPriority
.public ToggleBgLayer
.public BG_ClearCharDataRange
.public BgClearTilemapBufferAndCommit
.public GetBgColorMode
.public GetBgPriority
.public AllocWindows
.public AddWindowParameterized
.public WindowArray_Delete
.public GF_AssertFail
.public FieldSystem_GetBgConfigPtr
.public TaskManager_Call
.public TaskManager_GetFieldSystem
.public TaskManager_GetEnvironment
.public PlayerAvatar_GetMapObject
.public PlayerAvatar_ToggleAutomaticHeightUpdating_NowApply
.public MapObject_GetPositionVec
.public MapObject_SetPositionVec
.public sub_0205FC94
.public MapObject_AreBitsSetForMovementScriptInit
.public MapObject_SetHeldMovement
.public FollowMon_GetMapObject
.public sub_02069DC8
.public FollowMon_IsActive
.public MapPreviewImage_GetIndex
.public MapPreviewImage_BeginShowImage
.public G2x_SetBlendAlpha_
.public gSystem
.public NNS_G3dGlb
.public Field_PlayerAvatar_OrrTransitionFlags
.public Field_PlayerAvatar_ApplyTransitionFlags
.public ov01_02205790

View File

@ -1,141 +0,0 @@
#include "constants/pokemon.h"
#include "constants/species.h"
#include "constants/maps.h"
#include "constants/sprites.h"
#include "constants/items.h"
#include "constants/moves.h"
#include "constants/std_script.h"
.include "asm/macros.inc"
.include "unk_0206A360.inc"
.include "global.inc"
.public NNS_G3dGlb
.data
.public sMapPreviewImageData
sMapPreviewImageData:
.byte 0x7B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00
.byte 0x02, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00
.byte 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00
.byte 0x07, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0xB0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x0A, 0x00, 0x00, 0x00
.byte 0x0B, 0x00, 0x00, 0x00, 0x0C, 0x00, 0x00, 0x00, 0x0D, 0x00, 0x00, 0x00, 0x0E, 0x00, 0x00, 0x00
.byte 0x0C, 0x00, 0x00, 0x00, 0x0D, 0x00, 0x00, 0x00, 0x0E, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x00, 0x00
.byte 0x10, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
.byte 0x6E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00
.byte 0x14, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00
.byte 0x15, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00
.byte 0x19, 0x00, 0x00, 0x00, 0x1A, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00
.byte 0x43, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1B, 0x00, 0x00, 0x00, 0x1C, 0x00, 0x00, 0x00
.byte 0x1D, 0x00, 0x00, 0x00, 0x1E, 0x00, 0x00, 0x00, 0x1F, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00
.byte 0x1E, 0x00, 0x00, 0x00, 0x1F, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00
.byte 0x22, 0x00, 0x00, 0x00, 0x23, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00
.byte 0xEB, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1B, 0x00, 0x00, 0x00, 0x1C, 0x00, 0x00, 0x00
.byte 0x1D, 0x00, 0x00, 0x00, 0x1E, 0x00, 0x00, 0x00, 0x1F, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00
.byte 0x1E, 0x00, 0x00, 0x00, 0x1F, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00
.byte 0x22, 0x00, 0x00, 0x00, 0x23, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00
.byte 0x63, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x00, 0x00, 0x00, 0x25, 0x00, 0x00, 0x00
.byte 0x26, 0x00, 0x00, 0x00, 0x27, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x29, 0x00, 0x00, 0x00
.byte 0x27, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x29, 0x00, 0x00, 0x00, 0x2A, 0x00, 0x00, 0x00
.byte 0x2B, 0x00, 0x00, 0x00, 0x2C, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00
.byte 0x72, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2D, 0x00, 0x00, 0x00, 0x2E, 0x00, 0x00, 0x00
.byte 0x2F, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x31, 0x00, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00
.byte 0x30, 0x00, 0x00, 0x00, 0x31, 0x00, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00, 0x33, 0x00, 0x00, 0x00
.byte 0x34, 0x00, 0x00, 0x00, 0x35, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00
.byte 0x75, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x36, 0x00, 0x00, 0x00, 0x37, 0x00, 0x00, 0x00
.byte 0x38, 0x00, 0x00, 0x00, 0x39, 0x00, 0x00, 0x00, 0x3A, 0x00, 0x00, 0x00, 0x3B, 0x00, 0x00, 0x00
.byte 0x3C, 0x00, 0x00, 0x00, 0x3D, 0x00, 0x00, 0x00, 0x3E, 0x00, 0x00, 0x00, 0x3F, 0x00, 0x00, 0x00
.byte 0x40, 0x00, 0x00, 0x00, 0x41, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00
.byte 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x00, 0x00, 0x00, 0x43, 0x00, 0x00, 0x00
.byte 0x44, 0x00, 0x00, 0x00, 0x45, 0x00, 0x00, 0x00, 0x46, 0x00, 0x00, 0x00, 0x47, 0x00, 0x00, 0x00
.byte 0x48, 0x00, 0x00, 0x00, 0x49, 0x00, 0x00, 0x00, 0x4A, 0x00, 0x00, 0x00, 0x4B, 0x00, 0x00, 0x00
.byte 0x4C, 0x00, 0x00, 0x00, 0x4D, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00
.byte 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4E, 0x00, 0x00, 0x00, 0x4F, 0x00, 0x00, 0x00
.byte 0x50, 0x00, 0x00, 0x00, 0x51, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00, 0x00, 0x53, 0x00, 0x00, 0x00
.byte 0x54, 0x00, 0x00, 0x00, 0x55, 0x00, 0x00, 0x00, 0x56, 0x00, 0x00, 0x00, 0x57, 0x00, 0x00, 0x00
.byte 0x58, 0x00, 0x00, 0x00, 0x59, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00
.byte 0x6F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5A, 0x00, 0x00, 0x00, 0x5B, 0x00, 0x00, 0x00
.byte 0x5C, 0x00, 0x00, 0x00, 0x5D, 0x00, 0x00, 0x00, 0x5E, 0x00, 0x00, 0x00, 0x5F, 0x00, 0x00, 0x00
.byte 0x60, 0x00, 0x00, 0x00, 0x61, 0x00, 0x00, 0x00, 0x62, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x00
.byte 0x64, 0x00, 0x00, 0x00, 0x65, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00
.byte 0x79, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x66, 0x00, 0x00, 0x00, 0x67, 0x00, 0x00, 0x00
.byte 0x68, 0x00, 0x00, 0x00, 0x69, 0x00, 0x00, 0x00, 0x6A, 0x00, 0x00, 0x00, 0x6B, 0x00, 0x00, 0x00
.byte 0x69, 0x00, 0x00, 0x00, 0x6A, 0x00, 0x00, 0x00, 0x6B, 0x00, 0x00, 0x00, 0x6C, 0x00, 0x00, 0x00
.byte 0x6D, 0x00, 0x00, 0x00, 0x6E, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00
.byte 0x77, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6F, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00
.byte 0x71, 0x00, 0x00, 0x00, 0x72, 0x00, 0x00, 0x00, 0x73, 0x00, 0x00, 0x00, 0x74, 0x00, 0x00, 0x00
.byte 0x75, 0x00, 0x00, 0x00, 0x76, 0x00, 0x00, 0x00, 0x77, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x00
.byte 0x79, 0x00, 0x00, 0x00, 0x7A, 0x00, 0x00, 0x00, 0x0B, 0x00, 0x00, 0x00
.byte 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7B, 0x00, 0x00, 0x00, 0x7C, 0x00, 0x00, 0x00
.byte 0x7D, 0x00, 0x00, 0x00, 0x7E, 0x00, 0x00, 0x00, 0x7F, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00
.byte 0x7E, 0x00, 0x00, 0x00, 0x7F, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x81, 0x00, 0x00, 0x00
.byte 0x82, 0x00, 0x00, 0x00, 0x83, 0x00, 0x00, 0x00, 0x0C, 0x00, 0x00, 0x00
.byte 0x7D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x84, 0x00, 0x00, 0x00, 0x85, 0x00, 0x00, 0x00
.byte 0x86, 0x00, 0x00, 0x00, 0x87, 0x00, 0x00, 0x00, 0x88, 0x00, 0x00, 0x00, 0x89, 0x00, 0x00, 0x00
.byte 0x87, 0x00, 0x00, 0x00, 0x88, 0x00, 0x00, 0x00, 0x89, 0x00, 0x00, 0x00, 0x8A, 0x00, 0x00, 0x00
.byte 0x8B, 0x00, 0x00, 0x00, 0x8C, 0x00, 0x00, 0x00, 0x0D, 0x00, 0x00, 0x00
.byte 0x7E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8D, 0x00, 0x00, 0x00, 0x8E, 0x00, 0x00, 0x00
.byte 0x8F, 0x00, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x91, 0x00, 0x00, 0x00, 0x92, 0x00, 0x00, 0x00
.byte 0x90, 0x00, 0x00, 0x00, 0x91, 0x00, 0x00, 0x00, 0x92, 0x00, 0x00, 0x00, 0x93, 0x00, 0x00, 0x00
.byte 0x94, 0x00, 0x00, 0x00, 0x95, 0x00, 0x00, 0x00, 0x0E, 0x00, 0x00, 0x00
.byte 0x7C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x96, 0x00, 0x00, 0x00, 0x97, 0x00, 0x00, 0x00
.byte 0x98, 0x00, 0x00, 0x00, 0x99, 0x00, 0x00, 0x00, 0x9A, 0x00, 0x00, 0x00, 0x9B, 0x00, 0x00, 0x00
.byte 0x99, 0x00, 0x00, 0x00, 0x9A, 0x00, 0x00, 0x00, 0x9B, 0x00, 0x00, 0x00, 0x9C, 0x00, 0x00, 0x00
.byte 0x9D, 0x00, 0x00, 0x00, 0x9E, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x00, 0x00
.byte 0xB3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x96, 0x00, 0x00, 0x00, 0x97, 0x00, 0x00, 0x00
.byte 0x98, 0x00, 0x00, 0x00, 0x99, 0x00, 0x00, 0x00, 0x9A, 0x00, 0x00, 0x00, 0x9B, 0x00, 0x00, 0x00
.byte 0x99, 0x00, 0x00, 0x00, 0x9A, 0x00, 0x00, 0x00, 0x9B, 0x00, 0x00, 0x00, 0x9C, 0x00, 0x00, 0x00
.byte 0x9D, 0x00, 0x00, 0x00, 0x9E, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x00, 0x00
.byte 0x93, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x9F, 0x00, 0x00, 0x00, 0xA0, 0x00, 0x00, 0x00
.byte 0xA1, 0x00, 0x00, 0x00, 0xA2, 0x00, 0x00, 0x00, 0xA3, 0x00, 0x00, 0x00, 0xA4, 0x00, 0x00, 0x00
.byte 0xA5, 0x00, 0x00, 0x00, 0xA6, 0x00, 0x00, 0x00, 0xA7, 0x00, 0x00, 0x00, 0xA8, 0x00, 0x00, 0x00
.byte 0xA9, 0x00, 0x00, 0x00, 0xAA, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00
.byte 0x6A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xAB, 0x00, 0x00, 0x00, 0xAC, 0x00, 0x00, 0x00
.byte 0xAD, 0x00, 0x00, 0x00, 0xAE, 0x00, 0x00, 0x00, 0xAF, 0x00, 0x00, 0x00, 0xB0, 0x00, 0x00, 0x00
.byte 0xAE, 0x00, 0x00, 0x00, 0xAF, 0x00, 0x00, 0x00, 0xB0, 0x00, 0x00, 0x00, 0xB1, 0x00, 0x00, 0x00
.byte 0xB2, 0x00, 0x00, 0x00, 0xB3, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00
.byte 0x6C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xB4, 0x00, 0x00, 0x00, 0xB5, 0x00, 0x00, 0x00
.byte 0xB6, 0x00, 0x00, 0x00, 0xB7, 0x00, 0x00, 0x00, 0xB8, 0x00, 0x00, 0x00, 0xB9, 0x00, 0x00, 0x00
.byte 0xB7, 0x00, 0x00, 0x00, 0xB8, 0x00, 0x00, 0x00, 0xB9, 0x00, 0x00, 0x00, 0xBA, 0x00, 0x00, 0x00
.byte 0xBB, 0x00, 0x00, 0x00, 0xBC, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00
.byte 0x6B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xBD, 0x00, 0x00, 0x00, 0xBE, 0x00, 0x00, 0x00
.byte 0xBF, 0x00, 0x00, 0x00, 0xC0, 0x00, 0x00, 0x00, 0xC1, 0x00, 0x00, 0x00, 0xC2, 0x00, 0x00, 0x00
.byte 0xC3, 0x00, 0x00, 0x00, 0xC4, 0x00, 0x00, 0x00, 0xC5, 0x00, 0x00, 0x00, 0xC6, 0x00, 0x00, 0x00
.byte 0xC7, 0x00, 0x00, 0x00, 0xC8, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00
.byte 0x92, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC9, 0x00, 0x00, 0x00, 0xCA, 0x00, 0x00, 0x00
.byte 0xCB, 0x00, 0x00, 0x00, 0xCC, 0x00, 0x00, 0x00, 0xCD, 0x00, 0x00, 0x00, 0xCE, 0x00, 0x00, 0x00
.byte 0xCC, 0x00, 0x00, 0x00, 0xCD, 0x00, 0x00, 0x00, 0xCE, 0x00, 0x00, 0x00, 0xCF, 0x00, 0x00, 0x00
.byte 0xD0, 0x00, 0x00, 0x00, 0xD1, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, 0x00
.byte 0x7A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xD2, 0x00, 0x00, 0x00, 0xD3, 0x00, 0x00, 0x00
.byte 0xD4, 0x00, 0x00, 0x00, 0xD5, 0x00, 0x00, 0x00, 0xD6, 0x00, 0x00, 0x00, 0xD7, 0x00, 0x00, 0x00
.byte 0xD5, 0x00, 0x00, 0x00, 0xD6, 0x00, 0x00, 0x00, 0xD7, 0x00, 0x00, 0x00, 0xD8, 0x00, 0x00, 0x00
.byte 0xD9, 0x00, 0x00, 0x00, 0xDA, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00
.byte 0x91, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xDB, 0x00, 0x00, 0x00, 0xDC, 0x00, 0x00, 0x00
.byte 0xDD, 0x00, 0x00, 0x00, 0xDE, 0x00, 0x00, 0x00, 0xDF, 0x00, 0x00, 0x00, 0xE0, 0x00, 0x00, 0x00
.byte 0xDE, 0x00, 0x00, 0x00, 0xDF, 0x00, 0x00, 0x00, 0xE0, 0x00, 0x00, 0x00, 0xE1, 0x00, 0x00, 0x00
.byte 0xE2, 0x00, 0x00, 0x00, 0xE3, 0x00, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00

View File

@ -0,0 +1,9 @@
#ifndef POKEHEARTGOLD_MAP_PREVIEW_GRAPHIC_H
#define POKEHEARTGOLD_MAP_PREVIEW_GRAPHIC_H
#include "task.h"
u8 MapPreviewGraphic_GetIndex(u32 mapId);
void MapPreviewGraphic_BeginShowImage(TaskManager *man, int index, u8 time, int a3);
#endif //POKEHEARTGOLD_MAP_PREVIEW_GRAPHIC_H

View File

@ -1,9 +0,0 @@
#ifndef POKEHEARTGOLD_UNK_0206A360_H
#define POKEHEARTGOLD_UNK_0206A360_H
#include "task.h"
u8 MapPreviewImage_GetIndex(u32 mapId);
void MapPreviewImage_BeginShowImage(TaskManager *man, int index, u8 time, int a3);
#endif //POKEHEARTGOLD_UNK_0206A360_H

View File

@ -242,8 +242,7 @@ Static main
Object asm/unk_02069660.o
Object asm/unk_0206979C.o
Object src/follow_mon.o
Object src/unk_0206A360.o
Object asm/unk_0206A360_asm.o
Object src/map_preview_graphic.o
Object asm/field_take_photo.o
Object src/unk_0206B910.o
Object src/alph_checks.o

946
src/map_preview_graphic.c Normal file
View File

@ -0,0 +1,946 @@
#include "global.h"
#include "field_map_object.h"
#include "field_player_avatar.h"
#include "follow_mon.h"
#include "gf_gfx_loader.h"
#include "gf_rtc.h"
#include "system.h"
#include "map_preview_graphic.h"
#include "unk_0200FA24.h"
#include "unk_02062108.h"
#include "overlay_01_021F1AFC.h"
#include "overlay_01.h"
#include "constants/maps.h"
#include "fielddata/graphic/preview_graphic/preview_graphic.naix"
typedef struct MapPreviewGraphicData {
int mapId;
u32 unused4;
struct {
int palNo;
int charNo;
int scrnNo;
} files[4];
int unused3C; //this looks like it was originally used as a dungeon index const
} MapPreviewGraphicData;
typedef struct UnkStateMachineSubstruct_0206A388 {
u16 state;
u16 unk2;
} UnkStateMachineSubstruct_0206A388;
typedef struct UnkStruct_0206A388 {
int state;
int displayTimer;
HeapID heapId;
BgConfig *bgConfig;
Window *window;
u16 bgColorMode;
u16 index;
u16 fadeOutTimer;
u16 unk1A;
u32 bg2Prioirty;
u32 bg0Prioirty;
u32 bg1Prioirty;
u32 bg3Prioirty;
int timeIndex;
int unk30;
UnkStateMachineSubstruct_0206A388 unk34;
} UnkStruct_0206A388;
static MapPreviewGraphicData sMapPreviewGraphicData[] = {
{
//Dark Cave, North Side
.mapId = MAP_D42R0101,
.unused4 = 0,
.files = {
{
.palNo = NARC_preview_graphic_preview_graphic_00000000_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000001_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000002_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000003_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000004_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000005_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000003_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000004_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000005_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000006_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000007_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000008_NSCR_lz
}
},
.unused3C = 0
},
{
//Dark Cave, South Side
.mapId = MAP_D42R0102,
.unused4 = 0,
.files = {
{
.palNo = NARC_preview_graphic_preview_graphic_00000009_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000010_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000011_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000012_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000013_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000014_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000012_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000013_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000014_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000015_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000016_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000017_NSCR_lz
}
},
.unused3C = 0
},
{
//Sprout Tower
.mapId = MAP_D15R0101,
.unused4 = 0,
.files = {
{
.palNo = NARC_preview_graphic_preview_graphic_00000018_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000019_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000020_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000021_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000022_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000023_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000021_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000022_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000023_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000024_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000025_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000026_NSCR_lz
}
},
.unused3C = 1
},
{
//Ruins of Alph 1
.mapId = MAP_D24R0211,
.unused4 = 0,
.files = {
{
.palNo = NARC_preview_graphic_preview_graphic_00000027_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000028_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000029_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000030_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000031_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000032_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000030_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000031_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000032_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000033_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000034_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000035_NSCR_lz
}
},
.unused3C = 2
},
{
//Ruins of Alph 2
.mapId = MAP_D24R0217,
.unused4 = 0,
.files = {
{
.palNo = NARC_preview_graphic_preview_graphic_00000027_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000028_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000029_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000030_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000031_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000032_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000030_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000031_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000032_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000033_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000034_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000035_NSCR_lz
}
},
.unused3C = 2
},
{
//Union Cave
.mapId = MAP_D25R0101,
.unused4 = 0,
.files = {
{
.palNo = NARC_preview_graphic_preview_graphic_00000036_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000037_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000038_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000039_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000040_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000041_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000039_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000040_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000041_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000042_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000043_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000044_NSCR_lz
}
},
.unused3C = 3
},
{
//Slowpoke Well
.mapId = MAP_D26R0101,
.unused4 = 0,
.files = {
{
.palNo = NARC_preview_graphic_preview_graphic_00000045_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000046_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000047_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000048_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000049_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000050_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000048_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000049_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000050_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000051_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000052_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000053_NSCR_lz
}
},
.unused3C = 4
},
{
//Ilex Forest
.mapId = MAP_D36R0101,
.unused4 = 0,
.files = {
{
.palNo = NARC_preview_graphic_preview_graphic_00000054_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000055_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000056_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000057_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000058_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000059_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000060_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000061_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000062_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000063_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000064_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000065_NSCR_lz
}
},
.unused3C = 5
},
{
//National Park
.mapId = MAP_D22R0101,
.unused4 = 0,
.files = {
{
.palNo = NARC_preview_graphic_preview_graphic_00000066_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000067_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000068_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000069_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000070_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000071_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000072_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000073_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000074_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000075_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000076_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000077_NSCR_lz
}
},
.unused3C = 6
},
{
//Burned Tower
.mapId = MAP_D18R0101,
.unused4 = 0,
.files = {
{
.palNo = NARC_preview_graphic_preview_graphic_00000078_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000079_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000080_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000081_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000082_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000083_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000084_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000085_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000086_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000087_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000088_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000089_NSCR_lz
}
},
.unused3C = 7
},
{
//Bell Tower
.mapId = MAP_D17R0101,
.unused4 = 0,
.files = {
{
.palNo = NARC_preview_graphic_preview_graphic_00000090_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000091_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000092_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000093_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000094_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000095_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000096_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000097_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000098_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000099_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000100_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000101_NSCR_lz
}
},
.unused3C = 8
},
{
//Whirl Islands
.mapId = MAP_D40R0101,
.unused4 = 0,
.files = {
{
.palNo = NARC_preview_graphic_preview_graphic_00000102_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000103_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000104_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000105_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000106_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000107_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000105_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000106_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000107_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000108_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000109_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000110_NSCR_lz
}
},
.unused3C = 9
},
{
//Mt Mortar
.mapId = MAP_D38R0101,
.unused4 = 0,
.files = {
{
.palNo = NARC_preview_graphic_preview_graphic_00000111_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000112_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000113_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000114_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000115_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000116_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000117_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000118_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000119_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000120_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000121_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000122_NSCR_lz
}
},
.unused3C = 11
},
{
//Ice Path
.mapId = MAP_D39R0101,
.unused4 = 0,
.files = {
{
.palNo = NARC_preview_graphic_preview_graphic_00000123_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000124_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000125_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000126_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000127_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000128_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000126_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000127_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000128_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000129_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000130_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000131_NSCR_lz
}
},
.unused3C = 12
},
{
//Dragon's Den
.mapId = MAP_D44R0101,
.unused4 = 0,
.files = {
{
.palNo = NARC_preview_graphic_preview_graphic_00000132_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000133_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000134_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000135_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000136_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000137_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000135_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000136_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000137_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000138_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000139_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000140_NSCR_lz
}
},
.unused3C = 13
},
{
//Tohjo Falls
.mapId = MAP_D45R0101,
.unused4 = 0,
.files = {
{
.palNo = NARC_preview_graphic_preview_graphic_00000141_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000142_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000143_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000144_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000145_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000146_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000144_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000145_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000146_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000147_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000148_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000149_NSCR_lz
}
},
.unused3C = 14
},
{
//Victory Road South
.mapId = MAP_D43R0101,
.unused4 = 0,
.files = {
{
.palNo = NARC_preview_graphic_preview_graphic_00000150_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000151_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000152_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000153_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000154_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000155_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000153_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000154_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000155_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000156_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000157_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000158_NSCR_lz
}
},
.unused3C = 15
},
{
//Victory Road North
.mapId = MAP_D43R0103,
.unused4 = 0,
.files = {
{
.palNo = NARC_preview_graphic_preview_graphic_00000150_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000151_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000152_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000153_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000154_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000155_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000153_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000154_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000155_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000156_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000157_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000158_NSCR_lz
}
},
.unused3C = 15
},
{
//Viridian Forest
.mapId = MAP_D46R0101,
.unused4 = 0,
.files = {
{
.palNo = NARC_preview_graphic_preview_graphic_00000159_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000160_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000161_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000162_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000163_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000164_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000165_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000166_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000167_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000168_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000169_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000170_NSCR_lz
}
},
.unused3C = 16
},
{
//Diglett Cave
.mapId = MAP_D01R0101,
.unused4 = 0,
.files = {
{
.palNo = NARC_preview_graphic_preview_graphic_00000171_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000172_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000173_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000174_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000175_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000176_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000174_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000175_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000176_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000177_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000178_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000179_NSCR_lz
}
},
.unused3C = 17
},
{
//Rock Tunnel
.mapId = MAP_D05R0101,
.unused4 = 0,
.files = {
{
.palNo = NARC_preview_graphic_preview_graphic_00000180_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000181_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000182_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000183_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000184_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000185_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000183_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000184_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000185_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000186_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000187_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000188_NSCR_lz
}
},
.unused3C = 18
},
{
//Mt Moon
.mapId = MAP_D02R0101,
.unused4 = 0,
.files = {
{
.palNo = NARC_preview_graphic_preview_graphic_00000189_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000190_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000191_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000192_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000193_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000194_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000195_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000196_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000197_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000198_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000199_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000200_NSCR_lz
}
},
.unused3C = 20
},
{
//Seafoam Islands
.mapId = MAP_D11R0101,
.unused4 = 0,
.files = {
{
.palNo = NARC_preview_graphic_preview_graphic_00000201_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000202_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000203_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000204_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000205_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000206_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000204_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000205_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000206_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000207_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000208_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000209_NSCR_lz
}
},
.unused3C = 21
},
{
//Mt Silver
.mapId = MAP_D41R0101,
.unused4 = 0,
.files = {
{
.palNo = NARC_preview_graphic_preview_graphic_00000210_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000211_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000212_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000213_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000214_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000215_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000213_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000214_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000215_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000216_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000217_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000218_NSCR_lz
}
},
.unused3C = 22
},
{
//Cerulean Cave
.mapId = MAP_D03R0101,
.unused4 = 0,
.files = {
{
.palNo = NARC_preview_graphic_preview_graphic_00000219_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000220_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000221_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000222_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000223_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000224_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000222_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000223_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000224_NSCR_lz
},
{
.palNo = NARC_preview_graphic_preview_graphic_00000225_NCLR,
.charNo = NARC_preview_graphic_preview_graphic_00000226_NCGR_lz,
.scrnNo = NARC_preview_graphic_preview_graphic_00000227_NSCR_lz
}
},
.unused3C = 23
}
};
static BOOL Task_MapPreviewGraphic_ShowImage(TaskManager *man);
static void MapPreviewGraphic_LoadGfx(UnkStruct_0206A388 *unk);
static void MapPreviewGraphic_InitWindow(UnkStruct_0206A388 *unk);
static int sub_0206A694(UnkStruct_0206A388 *unk, FieldSystem *fsys);
u8 MapPreviewGraphic_GetIndex(u32 mapId) {
u8 ret = -1;
for (int i = 0; i < 25; i++) {
if (sMapPreviewGraphicData[i].mapId == mapId) {
ret = i;
break;
}
}
return ret;
}
void MapPreviewGraphic_BeginShowImage(TaskManager *man, int index, u8 time, int a3) {
FieldSystem *fsys = TaskManager_GetFieldSystem(man);
UnkStruct_0206A388 *unk = AllocFromHeapAtEnd(HEAP_ID_4, sizeof(UnkStruct_0206A388));
unk->state = 0;
unk->displayTimer = 0;
unk->bgConfig = FieldSystem_GetBgConfigPtr(fsys);
unk->fadeOutTimer = 0;
unk->unk1A = 0;
unk->index = index;
switch (time) {
case RTC_TIMEOFDAY_MORN:
unk->timeIndex = 0;
break;
case RTC_TIMEOFDAY_DAY:
unk->timeIndex = 1;
break;
case RTC_TIMEOFDAY_EVE:
unk->timeIndex = 2;
break;
case RTC_TIMEOFDAY_NITE:
case RTC_TIMEOFDAY_LATE:
unk->timeIndex = 3;
break;
default:
GF_ASSERT(FALSE);
unk->timeIndex = 0;
break;
}
unk->heapId = HEAP_ID_4;
unk->unk30 = a3;
unk->unk34.state = 0;
unk->unk34.unk2 = 0;
TaskManager_Call(man, Task_MapPreviewGraphic_ShowImage, unk);
}
typedef enum PreviewGraphicState {
PG_STATE_INIT,
PG_STATE_FADE_IN,
PG_STATE_WAIT_OR_SKIP,
PG_STATE_FADE_OUT
} PreviewGraphicState;
static BOOL Task_MapPreviewGraphic_ShowImage(TaskManager *man) {
FieldSystem *fsys = TaskManager_GetFieldSystem(man);
UnkStruct_0206A388 *unk = TaskManager_GetEnvironment(man);
switch (unk->state) {
case PG_STATE_INIT:
unk->bgColorMode = GetBgColorMode(unk->bgConfig, 2);
unk->bg2Prioirty = GetBgPriority(unk->bgConfig, GF_BG_LYR_MAIN_2);
unk->bg0Prioirty = GetBgPriority(unk->bgConfig, GF_BG_LYR_MAIN_0);
unk->bg1Prioirty = GetBgPriority(unk->bgConfig, GF_BG_LYR_MAIN_1);
unk->bg3Prioirty = GetBgPriority(unk->bgConfig, GF_BG_LYR_MAIN_3);
SetBgControlParam(unk->bgConfig, 2, GF_BG_CNT_SET_COLOR_MODE, 1);
SetBgPriority(GF_BG_LYR_MAIN_3, 0);
SetBgPriority(GF_BG_LYR_MAIN_2, 1);
SetBgPriority(GF_BG_LYR_MAIN_0, 2);
MapPreviewGraphic_LoadGfx(unk);
MapPreviewGraphic_InitWindow(unk);
G2_SetBlendAlpha(4, 33, 16, 0);
BeginNormalPaletteFade(0, 1, 1, RGB_BLACK, 16, 1, unk->heapId);
unk->state++;
break;
case PG_STATE_FADE_IN:
if (IsPaletteFadeFinished()) {
unk->state++;
}
break;
case PG_STATE_WAIT_OR_SKIP:
if (gSystem.newKeys & PAD_BUTTON_A) {
unk->fadeOutTimer = 0;
unk->state++;
break;
}
if (++unk->displayTimer > 60) {
unk->fadeOutTimer = 0;
unk->state++;
}
break;
case PG_STATE_FADE_OUT:
if (unk->fadeOutTimer < 16) {
if (++unk->unk1A >= 2) {
unk->unk1A = 0;
unk->fadeOutTimer++;
}
reg_G2_BLDALPHA = (16 - unk->fadeOutTimer) | (unk->fadeOutTimer << 8);
}
if (sub_0206A694(unk, fsys) && unk->fadeOutTimer >= 16) {
ToggleBgLayer(2, GF_PLANE_TOGGLE_OFF);
SetBgControlParam(unk->bgConfig, 2, GF_BG_CNT_SET_COLOR_MODE, unk->bgColorMode);
SetBgPriority(GF_BG_LYR_MAIN_2, (u8) unk->bg2Prioirty);
SetBgPriority(GF_BG_LYR_MAIN_0, (u8) unk->bg0Prioirty);
SetBgPriority(GF_BG_LYR_MAIN_1, (u8) unk->bg1Prioirty);
SetBgPriority(GF_BG_LYR_MAIN_3, (u8) unk->bg3Prioirty);
reg_G2_BLDCNT = 0;
BG_ClearCharDataRange(2, 0x20, 0, unk->heapId);
BgClearTilemapBufferAndCommit(unk->bgConfig, 2);
WindowArray_Delete(unk->window, 1);
FreeToHeap(unk);
return TRUE;
}
break;
}
return FALSE;
}
static void MapPreviewGraphic_LoadGfx(UnkStruct_0206A388 *unk) {
GfGfxLoader_GXLoadPal(NARC_a_1_5_0, sMapPreviewGraphicData[unk->index].files[unk->timeIndex].palNo, GF_PAL_LOCATION_MAIN_BG, GF_PAL_SLOT_0_OFFSET, 0x160, unk->heapId);
GfGfxLoader_LoadCharData(NARC_a_1_5_0, sMapPreviewGraphicData[unk->index].files[unk->timeIndex].charNo, unk->bgConfig, GF_BG_LYR_MAIN_2, 0, 0, 1, unk->heapId);
GfGfxLoader_LoadScrnData(NARC_a_1_5_0, sMapPreviewGraphicData[unk->index].files[unk->timeIndex].scrnNo, unk->bgConfig, GF_BG_LYR_MAIN_2, 0, 0, 1, unk->heapId);
}
static void MapPreviewGraphic_InitWindow(UnkStruct_0206A388 *unk) {
unk->window = AllocWindows(unk->heapId, 1);
AddWindowParameterized(unk->bgConfig, unk->window, 2, 0, 0, 28, 2, 13, 0x2C0);
}
static int sub_0206A694(UnkStruct_0206A388 *unk, FieldSystem *fsys) {
LocalMapObject *player;
if (!unk->unk30) {
return TRUE;
}
UnkStateMachineSubstruct_0206A388 *unkSub = &unk->unk34; //required to match
switch (unk->unk34.state) {
case 0:
PlayerAvatar_ToggleAutomaticHeightUpdating_NowApply(fsys->playerAvatar, 0);
unkSub->state++;
break;
case 1:
VecFx32 pos;
player = PlayerAvatar_GetMapObject(fsys->playerAvatar);
unkSub->unk2++;
MapObject_GetPositionVec(player, &pos);
pos.y -= 2 * FX32_ONE;
MapObject_SetPositionVec(player, &pos);
if (unkSub->unk2 >= 16) {
PlayerAvatar_ToggleAutomaticHeightUpdating_NowApply(fsys->playerAvatar, TRUE);
unkSub->state++;
}
break;
case 2:
Field_PlayerAvatar_OrrTransitionFlags(fsys->playerAvatar, 1);
Field_PlayerAvatar_ApplyTransitionFlags(fsys->playerAvatar);
unkSub->state++;
break;
case 3:
player = PlayerAvatar_GetMapObject(fsys->playerAvatar);
if (MapObject_AreBitsSetForMovementScriptInit(player)) {
MapObject_SetHeldMovement(player, 1);
unkSub->state++;
}
break;
case 4:
player = PlayerAvatar_GetMapObject(fsys->playerAvatar);
if (MapObject_AreBitsSetForMovementScriptInit(player)) {
if (FollowMon_IsActive(fsys)) {
ov01_02205790(fsys, 1);
sub_0205FC94(FollowMon_GetMapObject(fsys), 0x30);
sub_02069DC8(FollowMon_GetMapObject(fsys), 1);
}
unkSub->state++;
}
break;
case 5:
return TRUE;
}
return FALSE;
}

View File

@ -13,7 +13,7 @@
#include "unk_02054E00.h"
#include "unk_020552A4.h"
#include "camera.h"
#include "unk_0206A360.h"
#include "map_preview_graphic.h"
#include "unk_02005D10.h"
#include "unk_02062108.h"
#include "unk_02054648.h"
@ -192,14 +192,14 @@ BOOL sub_02055DBC(TaskManager *man) {
if(GF_SndGetFadeTimer() == 0) {
sub_02055110(fieldSystem, env->location.mapId, 1);
if(!MapHeader_IsCave(env->destinationMapID)) { //this has gotta be for the pre-entering images right?
int index = MapPreviewImage_GetIndex(env->location.mapId); //this gets the index of the location in the list of maps that have map icons
int index = MapPreviewGraphic_GetIndex(env->location.mapId); //this gets the index of the location in the list of maps that have map icons
if (index != 255) {
int parity = 0;
if (env->transitionNo == 8) {
parity = 1;
}
TIMEOFDAY time = GF_RTC_GetTimeOfDay();
MapPreviewImage_BeginShowImage(man, index, time, parity); //this should set the specific map icon based on time?
MapPreviewGraphic_BeginShowImage(man, index, time, parity); //this should set the specific map icon based on time?
env->state++;
ov01_021EFAF8(fieldSystem); //<= this func specifically gets and displays the area's icon and text
break;

View File

@ -1,235 +0,0 @@
#include "global.h"
#include "field_map_object.h"
#include "field_player_avatar.h"
#include "follow_mon.h"
#include "gf_gfx_loader.h"
#include "system.h"
#include "unk_0206A360.h"
#include "unk_0200FA24.h"
#include "unk_02062108.h"
#include "overlay_01_021F1AFC.h"
#include "overlay_01.h"
typedef struct MapPreviewImageData {
int mapId;
u32 unused4;
struct {
enum GFPalLoadLocation palNo;
int charNo;
int scrnNo;
} unk8[4];
int unk3C;
} MapPreviewImageData;
typedef struct UnkStateMachineSubstruct_0206A388 {
u16 state;
u16 unk2;
} UnkStateMachineSubstruct_0206A388;
typedef struct UnkStruct_0206A388 {
int state;
int displayTimer;
HeapID heapId;
BgConfig *bgConfig;
Window *unk10;
u16 bgColorMode;
u16 index;
u16 unk18;
u16 unk1A;
u32 bg2Prioirty;
u32 bg0Prioirty;
u32 bg1Prioirty;
u32 bg3Prioirty;
int timeIndex;
int unk30;
UnkStateMachineSubstruct_0206A388 unk34;
} UnkStruct_0206A388;
extern MapPreviewImageData sMapPreviewImageData[];
static BOOL Task_MapPreviewImage_ShowImage(TaskManager *man);
static void MapPreviewImage_LoadGfx(UnkStruct_0206A388 *unk);
static void sub_0206A660(UnkStruct_0206A388 *unk);
static int sub_0206A694(UnkStruct_0206A388 *unk, FieldSystem *fsys);
u8 MapPreviewImage_GetIndex(u32 mapId) {
u8 ret = -1;
for (int i = 0; i < 25; i++) {
if (sMapPreviewImageData[i].mapId == mapId) {
ret = i;
break;
}
}
return ret;
}
void MapPreviewImage_BeginShowImage(TaskManager *man, int index, u8 time, int a3) {
FieldSystem *fsys = TaskManager_GetFieldSystem(man);
UnkStruct_0206A388 *unk = AllocFromHeapAtEnd(HEAP_ID_4, sizeof(UnkStruct_0206A388));
unk->state = 0;
unk->displayTimer = 0;
unk->bgConfig = FieldSystem_GetBgConfigPtr(fsys);
unk->unk18 = 0;
unk->unk1A = 0;
unk->index = index;
switch (time) {
case 0:
unk->timeIndex = 0;
break;
case 1:
unk->timeIndex = 1;
break;
case 2:
unk->timeIndex = 2;
break;
case 3:
case 4:
unk->timeIndex = 3;
break;
default:
GF_ASSERT(FALSE);
unk->timeIndex = 0;
break;
}
unk->heapId = HEAP_ID_4;
unk->unk30 = a3;
unk->unk34.state = 0;
unk->unk34.unk2 = 0;
TaskManager_Call(man, Task_MapPreviewImage_ShowImage, unk);
}
static BOOL Task_MapPreviewImage_ShowImage(TaskManager *man) {
FieldSystem *fsys = TaskManager_GetFieldSystem(man);
UnkStruct_0206A388 *unk = TaskManager_GetEnvironment(man);
switch (unk->state) {
case 0:
unk->bgColorMode = GetBgColorMode(unk->bgConfig, 2);
unk->bg2Prioirty = GetBgPriority(unk->bgConfig, GF_BG_LYR_MAIN_2);
unk->bg0Prioirty = GetBgPriority(unk->bgConfig, GF_BG_LYR_MAIN_0);
unk->bg1Prioirty = GetBgPriority(unk->bgConfig, GF_BG_LYR_MAIN_1);
unk->bg3Prioirty = GetBgPriority(unk->bgConfig, GF_BG_LYR_MAIN_3);
SetBgControlParam(unk->bgConfig, 2, GF_BG_CNT_SET_COLOR_MODE, 1);
SetBgPriority(GF_BG_LYR_MAIN_3, 0);
SetBgPriority(GF_BG_LYR_MAIN_2, 1);
SetBgPriority(GF_BG_LYR_MAIN_0, 2);
MapPreviewImage_LoadGfx(unk);
sub_0206A660(unk);
G2_SetBlendAlpha(4, 0x21, 16, 0);
BeginNormalPaletteFade(0, 1, 1, RGB_BLACK, 16, 1, unk->heapId);
unk->state++;
break;
case 1:
if (IsPaletteFadeFinished()) {
unk->state++;
}
break;
case 2:
if (gSystem.newKeys & PAD_BUTTON_A) {
unk->unk18 = 0;
unk->state++;
break;
}
if (++unk->displayTimer > 60) {
unk->unk18 = 0;
unk->state++;
}
break;
case 3:
if (unk->unk18 < 16) {
if (++unk->unk1A >= 2) {
unk->unk1A = 0;
unk->unk18++;
}
reg_G2_BLDALPHA = (16 - unk->unk18) | (unk->unk18 << 8);
}
if (sub_0206A694(unk, fsys) && unk->unk18 >= 16) {
ToggleBgLayer(2, GF_PLANE_TOGGLE_OFF);
SetBgControlParam(unk->bgConfig, 2, GF_BG_CNT_SET_COLOR_MODE, unk->bgColorMode);
SetBgPriority(GF_BG_LYR_MAIN_2, (u8) unk->bg2Prioirty);
SetBgPriority(GF_BG_LYR_MAIN_0, (u8) unk->bg0Prioirty);
SetBgPriority(GF_BG_LYR_MAIN_1, (u8) unk->bg1Prioirty);
SetBgPriority(GF_BG_LYR_MAIN_3, (u8) unk->bg3Prioirty);
reg_G2_BLDCNT = 0;
BG_ClearCharDataRange(2, 0x20, 0, unk->heapId);
BgClearTilemapBufferAndCommit(unk->bgConfig, 2);
WindowArray_Delete(unk->unk10, 1);
FreeToHeap(unk);
return TRUE;
}
break;
}
return FALSE;
}
static void MapPreviewImage_LoadGfx(UnkStruct_0206A388 *unk) {
GfGfxLoader_GXLoadPal(NARC_a_1_5_0, sMapPreviewImageData[unk->index].unk8[unk->timeIndex].palNo, GF_PAL_LOCATION_MAIN_BG, GF_PAL_SLOT_0_OFFSET, 0x160, unk->heapId);
GfGfxLoader_LoadCharData(NARC_a_1_5_0, sMapPreviewImageData[unk->index].unk8[unk->timeIndex].charNo, unk->bgConfig, GF_BG_LYR_MAIN_2, 0, 0, 1, unk->heapId);
GfGfxLoader_LoadScrnData(NARC_a_1_5_0, sMapPreviewImageData[unk->index].unk8[unk->timeIndex].scrnNo, unk->bgConfig, GF_BG_LYR_MAIN_2, 0, 0, 1, unk->heapId);
}
static void sub_0206A660(UnkStruct_0206A388 *unk) {
unk->unk10 = AllocWindows(unk->heapId, 1);
AddWindowParameterized(unk->bgConfig, unk->unk10, 2, 0, 0, 0x1C, 2, 0xd, 0x2C0);
}
static int sub_0206A694(UnkStruct_0206A388 *unk, FieldSystem *fsys) {
LocalMapObject *player;
if (!unk->unk30) {
return TRUE;
}
UnkStateMachineSubstruct_0206A388 *unkSub = &unk->unk34; //required to match
switch (unk->unk34.state) {
case 0:
PlayerAvatar_ToggleAutomaticHeightUpdating_NowApply(fsys->playerAvatar, 0);
unkSub->state++;
break;
case 1:
VecFx32 pos;
player = PlayerAvatar_GetMapObject(fsys->playerAvatar);
unkSub->unk2++;
MapObject_GetPositionVec(player, &pos);
pos.y -= 2 * FX32_ONE;
MapObject_SetPositionVec(player, &pos);
if (unkSub->unk2 >= 16) {
PlayerAvatar_ToggleAutomaticHeightUpdating_NowApply(fsys->playerAvatar, 1);
unkSub->state++;
}
break;
case 2:
Field_PlayerAvatar_OrrTransitionFlags(fsys->playerAvatar, 1);
Field_PlayerAvatar_ApplyTransitionFlags(fsys->playerAvatar);
unkSub->state++;
break;
case 3:
player = PlayerAvatar_GetMapObject(fsys->playerAvatar);
if (MapObject_AreBitsSetForMovementScriptInit(player)) {
MapObject_SetHeldMovement(player, 1);
unkSub->state++;
}
break;
case 4:
player = PlayerAvatar_GetMapObject(fsys->playerAvatar);
if (MapObject_AreBitsSetForMovementScriptInit(player)) {
if (FollowMon_IsActive(fsys)) {
ov01_02205790(fsys, 1);
sub_0205FC94(FollowMon_GetMapObject(fsys), 0x30);
sub_02069DC8(FollowMon_GetMapObject(fsys), 1);
}
unkSub->state++;
}
break;
case 5:
return TRUE;
}
return FALSE;
}