Commit Graph

1633 Commits

Author SHA1 Message Date
Yako
5e58dfdca4
Documented part of PartyManagementData struct (#517)
* Begin documenting party screen healthbar

* really minor rename of unnamed parameter

* Big rename that will probably cause issues bc VSCode's rename is not ideal

* should match

* document part of PartyManagementData struct

* apparently I missed these
idk how it build without them

* swap include order

* begin documenting unk_02084B70.c

* clean up parameter names a bit

* some more instances of windowLayout

* continue documenting fields of PartyManagementData

* more progress on PartyManagementData

* Revert PartyMenu_MakeSelection to sub_02083370 and remove enum

* name all unnamed PartyManagementData variables partyMan
2025-05-26 11:07:32 -07:00
Eduardo Quezada
945624805e
BattleFrontier struct renaming (#520) 2025-05-24 20:42:21 -07:00
Eduardo Quezada
cb8dd96354
Rename SaveData uses (#519) 2025-05-23 22:57:46 -07:00
Morglom
b0f4990576
Document battle bag utility (#512)
* Rename and document functions

* Rename files.

* Remove redundant array

* Renames.

* Last renames.

* Small fix

* Remove unnecessary brackets.

* Pull Request changes.

* Forgot these fields.

* Further changes.
2025-05-23 22:38:57 -07:00
Rachel
f394fd0382
refactor: Change the extension of .naix to .naix.h throughout (#516) 2025-05-22 20:46:01 -07:00
Rachel
a5f5620c82
build: Refine the dependency chain for pokefoot.naix (#515) 2025-05-22 20:04:41 -07:00
h2o-DS
57fbaeca7e
Unopack pokefoot.narc and Document pokedex_footprint (#513)
* generate pokefoot.narc

Unpacked pokefoot.narc
Each species folder now contains a `footprint.png`
Documented `pokedex_foot`

* Check parent folders

Added a check to make sure the species folders exist for the NCGR files.

* Function Names

Gave pokedex_foot functions more accurate names

* format header

* pal crlf

Force palettes to crlf

* naix

Added naix and order file generation for pokefoot.narc
make_pokefoot uses species constants instead of subdirs
renamed pokedex_foot and its functions

* fix merge
2025-05-21 23:50:52 -07:00
Morglom
7e355b532c
Document sub menu cursor and rename position struct. (#511)
* Document sub menu cursor and rename position struct.

* Rename to grid menu cursor position

* Further pull request changes.
2025-05-21 23:47:40 -07:00
h2o-DS
72a0a05de8
Document pokedex_graphics (#507)
Some checks failed
build / build (push) Has been cancelled
* Document pokedex_graphics

ov21_021D1FA4 -> pokedex_graphics
UnkStruct_ov21_021D22F8 -> PokedexSpeciesLabel
UnkStruct_ov21_021D23F8 -> FadeTransition
UnkStruct_ov21_021D2584 -> PokedexCursorGraphics
UnkStruct_ov21_021D2648 -> CursorTransformation
UnkStruct_ov21_021D3124 -> PokedexCursorManager

* Fade to Blend

Changed `FadeTransition` to `PokedexBlendTransition`
Changed corresponging function names
Added species enum
Created `MAX_SPRITE_RESOURCE_DS`

* Format

* Update max_sprite_resource

Co-authored-by: Rachel <lhearachel@proton.me>

* Update max_sprite_resource_gen4

---------

Co-authored-by: Rachel <lhearachel@proton.me>
2025-05-19 10:42:55 -07:00
Gudf
5676ee375a
Clean up and finish documenting unk_02096420 -> item_use_pokemon (#509)
* Clean up and finish documenting `unk_02096420`

* Rename `unk_02096420` -> `party_use_item`

* Use macros, rename functions to match first arg

* Rename `party_use_item` -> `item_use_pokemon`
2025-05-18 11:22:53 -07:00
Morglom
df4e827fcb
Document PartyMenuCursor (#503)
Some checks failed
build / build (push) Has been cancelled
* Move struct and update code.

* Update references

* Update references to use enum.

* More enum

* Small change.

* Rename files.

* Changes.

* Rename flags as coords.

* Rename to cursor info.

* Rename to party_menu_cursor
2025-05-13 22:31:16 -07:00
narf0708@gmail.com
0d5560285e Document box messages 2025-05-10 20:53:38 -04:00
narf0708@gmail.com
14d687540f correct name of MON_DATA_MAIL_ID to MON_DATA_BALL_CAPSULE_ID 2025-05-10 18:25:16 -04:00
Rachel
1a68c758eb
Integrate metroskrew as the default compiler (#482)
Some checks are pending
build / build (push) Waiting to run
* Remove extraneous `include/` directory level from brightness_controller

* Wrap WSL_ACCESSING_WINDOWS detection in realpath

* Integrate metroskrew as the default compiler

* Remove tools/cw contents
2025-05-09 22:00:48 -07:00
Rachel
8c968ab381
refactor: Clean up data tables in item.c (#501)
Some checks failed
build / build (push) Has been cancelled
2025-05-06 09:36:21 -07:00
h2o-DS
3fd53836bd
Move Files (#500)
Moved contents of src/Overlay021 to src/applications/pokedex
2025-05-06 09:35:54 -07:00
Fexty
0263b008b5
Document Particle System (#490)
Some checks failed
build / build (push) Has been cancelled
* Remove decl files and rename main ParticleSystem struct

* Document particle system new/init

* Document generic particle system functions

* Document particle system allocation functions

* Document remaining particle system getters and setters

* Particle system cleanup

* Rename particle system files

* Format files

* PR feedback
2025-05-04 11:55:13 -07:00
h2o-DS
77acefb411
Document pokedex_text_manager (#498)
* Document pokedex_text_manager

`ov21_021D4C0C` -> `pokedex_text_manager`
`UnkStruct_ov21_021D4C0C` -> `PokedexTextManager`
`UnkStruct_ov21_021D1FA4` -> `PokedexTextManagerTemplate`
`UnkStruct_ov21_021D4CA0` -> `PokedexTextData`
`UnkStruct_ov21_021D4CB8` -> `PokedexDisplayBox`

* font null

* format

* format
2025-05-04 11:48:01 -07:00
h2o-DS
521effa2bb
Document Pokedex_Panel (#497)
Some checks are pending
build / build (push) Waiting to run
* Document Pokedex_Panel

`ov21_021D4EE4` -> `pokedex_panel`
`UnkStruct_ov21_021D4EE4` -> `PokedexPanelData `
`UnkStruct_ov21_021D4FE4` -> `PokedexCursorData`

* Remove Parens
2025-05-03 21:21:19 -07:00
Gudf
d84d108ea4
Change param type to enum PaletteLoadLocation (#499)
Some checks are pending
build / build (push) Waiting to run
Changes the type of parameter `palLocation` of `Font_LoadTextPalette`,
`Font_LoadScreenIndicatorsPalette` and `FieldMessage_LoadTextPalettes`
to `enum PaletteLoadLocation`, and replaces instances of literals passed
to these with the appropriate enum variant in already "fully" documented
functions.
2025-05-03 16:29:04 -07:00
Gudf
3d3ff0ba37
Document the wonder cards application (#494)
* Document the Wonder Cards application

* Rename module and text bank

Text bank `unk_0421` -> `mystery_gift_menu`
Module `ov97_02230410` -> `wonder_cards_app`
2025-05-03 15:41:55 -07:00
h2o-DS
1ff7198f44
Document PokedexUpdater (#495)
* Document PokedexUpdater

`ov21_021D3FE0` -> `pokedex_update`

Each page of the Pokedex has data and graphics functions that update each frame. `pokedex_update` calls these functions.

Also added double pointers to PokedexGraphicData where possible.

* Merge Updater Headers

Combined graphicsFunc, dataFunc, and updater to one header
Named variables in functions extending graphicsFunc and dataFunc
2025-05-03 15:09:40 -07:00
Morglom
5081c977d5
Document Touch Pad Functionality in unk_0201E3D8 (#493)
Some checks failed
build / build (push) Has been cancelled
* Setup some defines

* Auto Sampling Buffer

* Auto Sampling Buffer Frequency

* Start Auto Sampling

* Stop Auto Sampling

* Inline calc ints difference

* Clear touch on buffer data.

* Touch Screen Disabled

* SetTouchScreenBuffer

* Set Touch Screen Buffer Frequency

* Buffer

* Touch Screen State

* output auto sample buffer

* Enable Touch Screen

* Disable Touch Screen

* Disable Touch Screen Definition

* Auto Sampling State

* Fix

* Small changes.

* Rename Touch Screen Setup

* Minor changes.

* Calibrate Touch Pad Data

* Rename

* Rename

* Touch Pad Data Buffer

* Rename touch pad data buffer header

* Rename

* Progress on deciphering

* More Progress

* Naming changes.

* More renaming

* Even more renaming

* Another rename

* Rename parameters

* Rename enable and disable functions

* Touch Pad Data Buffer Transfer Method

* Rename to be more accurate

* More renames

* Some final changes

* Rename files.

* Fix Formatting

* Fix Formatting

* Delete touch_pad_buffer.h

* Push request changes.

* Polish.

* Remove accidental include.
2025-05-01 13:58:55 -07:00
CharlesFolz4
3c206367aa
Document touch screen hit table action handling and Box action handling functions (#480)
Some checks are pending
build / build (push) Waiting to run
Co-authored-by: narf0708@gmail.com <narf0708@gmail.com>
2025-04-30 17:54:20 -07:00
Rachel
3f95533254 Rename math -> math_util
This resolves an issue when compiling native utilities with older
versions of Clang (and maybe GCC?) where C++ tools would include this
project header instead of the C standard library's math.h.
2025-04-28 02:03:39 -07:00
Gudf
11a62f676d
Mystery Gifts cleanup (#488)
Some checks failed
build / build (push) Has been cancelled
2025-04-24 16:51:14 -07:00
Eduardo Quezada
26df8623d5
Some Villa documentation (#487)
* Start documenting Villa

* Stopping for now
2025-04-24 16:49:49 -07:00
Eduardo Quezada
ecb0f0c119
Almost finished documenting ScrCmd for sound (#486)
Some checks are pending
build / build (push) Waiting to run
* ScrCmd_IsSequencePlaying

* ScrCmd_SetSpecialBGM

* `sub_02055554` -> `Sound_TryFadeOutToBGM`

also `sub_020555CC` -> `Sound_GetBGMFadeOutAndWaitFrames`

* ScrCmd_FadeInBGM

* FadeOutMusic -> FadeOutBGM for consistency

* ScrCmd_SetBGMPlayerPaused

* ScrCmd_SetBGMFixed

* Constant uses

* ScrCmd_CheckRecordedChatotCryIsPlayable

* ScrCmd_TryRecordChatotCry

* ScrCmd_StopRecordingChatotCry

* ScrCmd_StopFanfare

* sdatID -> seqID

* ScrCmd_StoreRecordedChatotCry

* ScrCmd_SetSubScene63

* ScrCmd_SetInitialVolumeForSequence

* ScrCmd_SetScene22

* ScrCmd_SetFieldScene, ScrCmd_GetCurrentBGM

* ScrCmd_057 seqID

* Rename file

* Format
2025-04-24 03:51:56 -07:00
Eduardo Quezada
2fe369009d
Finish documenting ScrCmd for daycare (#485) 2025-04-24 03:47:40 -07:00
Eduardo Quezada
b460742636 Finish documenting ScrCmd for items 2025-04-23 14:17:56 -04:00
Eduardo Quezada
34369649a5
Amity Square map script documentation + Scr commands (#481)
Some checks failed
build / build (push) Has been cancelled
* Messages

* scrcmd_amity_square

* BufferItemNamePlural

* BufferAccessoryName

* CanFitAccessory

* FLAG_AMITY_SQUARE_MAN_GIFT_RECEIVED

* VAR_FOLLOWER_MON_PARTY_ID

* VAR_AMITY_SQUARE_GIFT_ID

* VAR_FOLLOWER_MON_SPECIES

* VAR_FOLLOWER_MON_NEXT_PICKUP_TYPE

* VAR_FOLLOWER_MON_PICKUP_ITEM_ID

* Organized sMonFindableAccessories

* VAR_FOLLOWER_MON_PICKUP_ACCESSORY_ID

* LOCALID_HAS_NATIONAL_DEX

* LOCALID_ITEM_OR_ACCESSORY_ID

* LOCALID_COUNT

* PICKUP_TYPE_ITEM

* PICKUP_TYPE_ACCESORY

* Gift Man

* Species-specific cases

* Static NPCs

* Party has species

* Follower messages

* Follower Pickup

* Receptionists

* GetSetNationalDexEnabled

* VAR_FOLLOWER_MON_ACTIVE

* Triggers

* National dex macros
2025-04-21 08:25:41 -07:00
Eduardo Quezada
b157da484e
Use flag defines in map object event JSON files (#475)
* Generate vars and flags

* Convert Event flags map data

* Convert numbers to flags

* Fix type
2025-04-21 08:00:31 -07:00
Gudf
ad162a3369 Switch to enum NarcID, standardize names
Some checks are pending
build / build (push) Waiting to run
This replaces instances of NARC IDs with type `int` or `u32` to use
`enum NarcID` instead, and replaces most instances of a NARC ID to be
named `narcID` instead of `narc`, `narcIndex` or `narcIdx`. The name
wasn't replaced where the original one was more descriptive.
2025-04-20 17:40:00 -07:00
Eduardo Quezada
6ef937a8eb
Define and use Var constants (#474)
* Missing uses of defined vars

* Vars 0x4000 to 0x402F with Var macros

* Vars 0x4000 to 0x402F with other macros

^ Conflicts:
^	res/field/scripts/scripts_amity_square.s
^	res/field/scripts/scripts_veilstone_city_southwest_house.s

* Other vars

* Special Flags

* Unk vars

* NUM_VARS

* `SPECIAL_VARS_START` -> `SCRIPT_LOCAL_VARS_START`

* `VAR_0x800C` -> `VAR_RESULT`

* `VAR_0x800D` -> `VAR_LAST_TALKED`

* Format

* VAR_MAP_LOCAL

* VAR_OBJ_GFX_ID

* STORY_VARS
2025-04-20 17:38:03 -07:00
Eduardo Quezada
e7d42fb976
Heap ID breadcrums: Revengeance (#463)
* Heap_AllocFromHeapAtEnd Heap ID breadcrums

* Consistent heapID capitalization

* More Heap IDs

* A little bit more Heap IDs

* More and more Heap IDs

* Stopping for today

* MOAR

* more and more

* Back from the Heap ID mines

* A couple more
2025-04-20 12:50:46 -07:00
Gudf
541fca37db
Tag previously untagged enums (#477)
This leaves out undocumented enums and a few enums I couldn't find a
name for and feel would fit better as `#define`s instead.
2025-04-20 12:49:54 -07:00
Eduardo Quezada
f353a4b7e8
Document Game Corner map script + Coins and Money Scr Commands (#476)
* Coins scr commands

* Game Corner messages

* GoToIfCannotAddCoins macro

* CheckMoney

* Using GoToIfNotEnoughMoney

* Most of Game Corner script documented

* Some slot machine documentation

* AddToGameRecord

* Last scr commands but 1

* Format

* Fix typo
2025-04-20 12:48:22 -07:00
Eduardo Quezada
e041f3d6bc
Merge pull request #473 from AsparagusEduardo/followerPartners
Some checks failed
build / build (push) Has been cancelled
Document Follower Partners
2025-04-15 08:03:38 -07:00
RavePossum
dac456a0e4
Merge pull request #471 from CharlesFolz4/Accessories
Some checks are pending
build / build (push) Waiting to run
Generating and documenting accessories constants
2025-04-14 09:20:22 -04:00
narf0708@gmail.com
9485e2aca7 Document accessory related functions 2025-04-13 21:08:13 -04:00
Gudf
9626f1d005 Document unk_0204B830 as scrcmd_mystery_gift 2025-04-13 23:44:37 +02:00
Gudf
359b6c6407 Document unk_0202DAB4 as mystery_gift
Also moves structs related to the mystery gift system, such as wonder
card and its substructs, to this module.
2025-04-13 23:38:17 +02:00
Eduardo Quezada
cb256f45b5
Document location data (#472)
* Initial location names + Journal exited buildings

* Map header flags

* Map header battle BG

* Location names

* Weather

* Music IDs

* Format

* IsLeapYear

* Yearly weather
2025-04-13 13:23:49 -07:00
Eduardo Quezada
a7a218da2c
Sound documentation followup (#466)
* Start polishing sound documentation

* Sound_SetScene consts

* Surfing theme

* Sound_GetBGMByMapID

* Trainer encounter bgm doc

* A couple of more constants

* Review suggestions

* TrainerId -> TrainerID
2025-04-13 13:21:31 -07:00
Eduardo Quezada
4dc33aeff4
Document multiple map scripts commands (#469)
Some checks are pending
build / build (push) Waiting to run
* CheckPartyHasFatefulEncounterRegigigas

* SetPartyGiratinaForm

* WaitCry

* GetUnownFormsSeenCount

* CheckPartyCombeeGenderCount

* GetHour

* Review changes
2025-04-12 12:30:17 -07:00
CharlesFolz4
b7470fb1a6
Documenting BoxSettings, BoxCursor, and BoxMonSelection (#443)
* Documenting BoxSettings, BoxCursor, and BoxMonSelection

* Document UnkStruct_ov19_021D5594 as BoxMonSelection

* unk_0B to previewMonSource

* Initial polish pass

* PR feedback

---------

Co-authored-by: narf0708@gmail.com <narf0708@gmail.com>
2025-04-12 12:27:31 -07:00
Eduardo Quezada
d218908161 Mailbox functions 2025-04-12 14:04:15 -04:00
Eduardo Quezada
8be4075ffc WiFiQuestions 2025-04-12 10:42:30 -04:00
Eduardo Quezada
0c8dcc2161 Fix name 2025-04-12 10:42:30 -04:00
Eduardo Quezada
50d93ee84d BallSeals 2025-04-12 10:42:30 -04:00