Commit Graph

3038 Commits

Author SHA1 Message Date
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
h2o-DS
0cba5ddceb
Generate pms.narc (#502)
Some checks failed
build / build (push) Has been cancelled
* Generate pms

Added offspring field to species data files
Added pms.narc to datagen_species

* Document Comments

Added pms.narc to header comments

* Remove Hardcode

* Optimization
2025-05-07 20:46:30 -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
7f6125d4fb
Separate out f-string expressions using backslashed-characters (#496)
Some checks are pending
build / build (push) Waiting to run
2025-04-30 08:44:02 -07:00
Rachel
242a04f713
Merge pull request #492 from CharlesFolz4/jsonParsingErrs
Some checks are pending
build / build (push) Waiting to run
Add exception handling to json data parsing
2025-04-29 23:59:38 -07:00
Rachel
1240a632ce Directly exit when failing to read datagen inputs 2025-04-29 11:46:20 -07:00
Rachel
307b39125e Enrich datagen's JSON errors 2025-04-28 02:10:36 -07:00
Rachel
e8a15a4777 Use Meson instead of Ninja for the specific-target recipe 2025-04-28 02:03:46 -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
narf0708@gmail.com
4aa9f3cef8 Add exception handling to json data parsing 2025-04-27 18:16:54 -04: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
Viperio
2b3c363616
Merge pull request #484 from AsparagusEduardo/itemScrCmd
Finish documenting ScrCmd for items
2025-04-24 10:56:05 +02:00
Eduardo Quezada
1e5c63f069 Addressed review 2025-04-23 18:49:17 -04: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
Rachel
7f67d6f9c0
Replace makerom and makebanner with nitrorom (#478) 2025-04-21 07:00:33 -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
Rachel
7e007a03b2
Merge pull request #462 from Gudf/mystery-gifts
Some checks are pending
build / build (push) Waiting to run
Document mystery gifts
2025-04-13 14:55:16 -07: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
RavePossum
9f6920d072
Merge pull request #468 from AsparagusEduardo/saveDataStructs
Identified most Save Data structs based on SaveData entries
2025-04-12 14:46:40 -04: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
Eduardo Quezada
4904cb5026 PalPad 2025-04-12 10:42:30 -04:00