Commit Graph
283 Commits
Author SHA1 Message Date
FazanaandGitHub 6e8ee67cf6 Adventure two 25% (#387)
* identify transition bug

* Document fog system

* Label fogchanger attributes

* and more

* anti aliasing

* name some object vars

* block the racer inputs

* Update unknown_0255E0.c

* Update README.md

* Update src/object_functions.c

* I just did thing I guess???

* me when I realise almost all the pass through discs are just copy and pasted code.

* YOU'RE PUSHING THEM?!?!

bruh bruh bruh bruh

* I guess I'm in the object naming rabbit hole now

wow maybe I'll actually get these looking good 😳

* i did frogs

* got it

* Quick fixes
2023-04-28 17:52:12 +01:00
FazanaandGitHub d54031c3a6 Document fog system, and label some object behaviour (#386)
* identify transition bug

* Document fog system

* Label fogchanger attributes

* and more

* anti aliasing

* name some object vars

* block the racer inputs

* Update unknown_0255E0.c

* Update README.md

* Update src/object_functions.c
2023-04-25 10:49:29 +01:00
3c97d5ea99 Identify and label a bunch of game.c stuff (#385)
* Fix warnings

* Update src/thread0_epc.c

Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>

* identify some texture init stuff

* match _Litob

* match cosf

* match sinf

* formatting

* Update math.h

* Delete sinf.s

* quick fix

* Update unknown_078050.c

* identify some time trial stuff

* my honest reaction

* Add a define for F3DDKR_GBI

* Add GCC define for stubbed_printf

Fixes a bunch of warnings, because IDO is such a brilliant compiler with zero flaws that for some reasons decides "#define text(...)" is against federal law.

* Update racer speed errors

* identify some game.c stuff

* Rename

* Fix inaccurate names for the displaylist heap

* more.

* quick fixes

* Update src/racer.c

Co-authored-by: David Benepe <benepe96@gmail.com>

* Update src/objects.c

Co-authored-by: David Benepe <benepe96@gmail.com>

* Update src/objects.c

Co-authored-by: David Benepe <benepe96@gmail.com>

* quicker fixes

---------

Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>
Co-authored-by: David Benepe <benepe96@gmail.com>
2023-04-23 20:21:39 +01:00
c41bbf9131 Match 3 libultra funcs + some texture init labels (#383)
* Fix warnings

* Update src/thread0_epc.c

Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>

* identify some texture init stuff

* match _Litob

* match cosf

* match sinf

* formatting

* Update math.h

* Delete sinf.s

* quick fix

---------

Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>
2023-04-16 14:50:14 +01:00
b61e4c3fa4 Bump score to 51% with 6 new matches (#381)
* Very minor cleanup of init_controllers after consulting JFG

* really rough starts to some funcs

* some labeling, and match thread0_Main

* Some documenting, and better match for a couple of memory funcs

* Add more official names for vars and funcs, as well as clean up some matches a little

* Force No Shadows on Surfaces

Force No Shadows on Surfaces
Committer: sixtyfour

 On branch DKRsixtyfour
 Changes to be committed:
	modified:   src/unknown_0255E0.h

* identify shadows and fix mislabelling from past-me (#380)

* Removed outdated comment

* split some funcs out of printf that aren't related

* Move funcs to particles that should belong there

* Some printf documenting

* Do some documenting on the debug font details

* Get func_800B63F4 in a good place for now

* Match func_800B63F4

* Match render_printf and do some more documenting

* Move some functions around into different files.

* Match func_800AA3EC

* Fix some warnings in func_800AA3EC

* Rename the thread 0 assert

* Migrate BSS from particles to thread0 and printf

* Find and split out a function in particles and do more documenting

* Rename sprintf and vsprintf stuff to match JFG

* Clean up the texAnimateTexture function, and document some more places.

* WIP build_tex_display_list and documenting

* Missing file check in

* Match memset

* build_tex_display_list update with macros

* MAssive cleanup of build_tex_display_list that brings the score down in a big way.

* Removed a massive amount of extra lines in build_tex_display_list

* Match texInitTextures

* Update README score

* Fix comment

* Rename some funcs

* Commit suggestions from Fazana

* Fix for last commit

---------

Co-authored-by: Turok64Nukem <Duke64Nukem@gmail.com>
Co-authored-by: Fazana <52551480+FazanaJ@users.noreply.github.com>
2023-04-12 07:55:53 -04:00
FazanaandGitHub c9fa292c3d identify shadows and fix mislabelling from past-me (#380) 2023-03-20 16:22:17 +00:00
6d99776962 Several matches, documentation, and tool updates (#377)
* WIP func_80068FA8

* WIP func_80069790

* Match func_80069790

* WIP func_80068FA8

* WIP func_80068FA8

* Near match func_80068FA8

* Regalloc diff with func_80068FA8

* Match func_80068FA8

* Cleanup casts we don't need, and get rid of unused symbols from undefined_syms.txt

* Increase score for func_80066CDC

* Increased score of render_fade_circle

* Get func_80031BB8 back to NON_MATCHING after one struct definition got updated

* Make asm_processor linked to the original repository as a submodule to keep it up to date

* Update recomp to latest

* Updated diff.py to the latest version. One of the recent tools updates gives me line diffs in diff.py finally!

* WIP func_80010994

* Update func_80010994 WIP

* D_8011AD21 is not an array

* Cleanup

* Match func_800155B8

* WIP func_80010994

* Get func_80010994 to NON_MATCHING status

* WIP render_3d_model

* Update render_3d_model WIP

* WIP render_3d_model

* Match unused func_8001E13C

* WIP func_80011264

* Match func_800113CC

* Udpate func_80011AD0 and then use that knowledge to add some details to a few objects

* Fix warnings

* Bring func_80011AD0 closer to matching

* Match func_80011AD0

* MAtch func_800138A8

* Cleanup

* Change variable type for D_8011AEDC to be an Object as it matches what it's used as in func_8001BDD4

* Match func_8001BDD4

* Match func_8001BC54 and document the camera obj list

* Accidentally deleted the generate_ctx.sh somehow. Adding it back in

* Match func_8002A31C

* Make D_800DC8AC an array of Vec3f instead

* Update src/object_functions.c

Co-authored-by: David Benepe <benepe96@gmail.com>

* Update src/object_functions.c

Co-authored-by: David Benepe <benepe96@gmail.com>

---------

Co-authored-by: David Benepe <benepe96@gmail.com>
2023-03-07 14:30:24 -05:00
98d3be1b8f 50%! (#373)
* WIP

* WIP

* WIP func_80078190

* Do some minor documenting and cleanup in sched.c

* Restart func_80078190 and check in the WIP

* Get func_80078190 back to something looking presentable

* WIP render_texture_rectangle_scaled

* Just about matched render_texture_rectangle_scaled

* Match render_texture_rectangle_scaled

* Minor documenting and cleanup

* Minor cleanup

* Cleanup

* Some documenting

* Match func_8006ECFC

* Move some function definitions

* Match func_8006EFDC

* Minor documentation updates

* NAme some functions, and do some documneting on fade transitons

---------

Co-authored-by: Ryan Myers <foldor@gmail.com>
2023-02-17 10:04:49 -05:00
David BenepeandGitHub d57f879dbd Lots of asset renames! (#371)
* Named textures

* Finished naming sprites and level models

* Fixed issue where texture was not being extracted properly due to duplicate index
2023-02-12 13:25:19 -05:00
David 02214ff41a Fixed issue with menu_text section 2023-02-02 19:23:03 -06:00
David 4a6578fe17 Added support for subfolders in assets, and named object headers & models 2023-02-02 17:29:15 -06:00
David BenepeandGitHub 754b84e67a Merge pull request #362 from RenaKunisaki/master
import several names from JFG symbol table
2023-02-02 16:39:23 -06:00
Rena Kunisaki bcd0e5a54b add comments for some official names 2023-01-31 12:02:37 -05:00
Ryan MyersandGitHub 023dbb2126 Match and split unknown_003260.c into audiomgr.c and audiosfx.c (#364)
* Minor code cleanup and documenting in audio.c

* Match to func_80002DF8 to _amDmaNew

* Match func_800042CC

* Match func_8000410C

* Match func_800041FC as _removeEvents, and rename thread4_main to __amMain while also getting it's code to closer resemble the example code

* Add missing file

* MAtch __clearAudioDMA

* Cleanup __clearAudioDMA to match our code style a little better

* Match __amHandleFrameMsg

* Rename audio microcode from unknown, and clean up some code styles and variables names

* WIP audioNewThread

* Update WIP for audioNewThread

* Close to matching audioNewThread

* Match amCreateAudioMgr

* Match __amDMA

* Add constants, and remove static functions from header

* Make funcitons static where the originals were

* Fix score.py

* Split audiomgr and audiosfx files

* WIP clean up of audiomgr.c

* Finalize split of audiomgr and audiosfx

* Use AMAudioMgr

* Move the deck chairs

* Clean up sfx header

* Cleanup

* Cleanup sfx file, and move asm files

* Update score

* Fix NON_EQUIVALENT

* Match _sndpVoiceHandler

* Update some types
2023-01-31 07:39:22 -05:00
8b230b0d43 couple funcs (#361)
* match set_render_printf_position

* Update printf.c

* fix macro

* match func_80066610 and print_debug_strings

* rename

* rename

* Update camera.c

* Update camera.c

* taj related labelling

* tracks.c shenanigans

* printf

* match func_8003EC14

* match func_8003EDD8

* fix warnings

* comments

* rework boss vehicle struct

* Update objects.c

* fix warnings

* qukc fixes

* Update src/object_functions.c

Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>

* Update src/object_functions.c

Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>

* Update src/object_functions.c

Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>

Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>
2023-01-23 12:54:17 +00:00
8141fada09 7 Matches, 1 near miss, and a few attempts (#359)
* Minor documenting

* Match func_80009558

* Rename func

* WIP func_8000974C

* Match func_8000974C

* Match func_8000A2E8

* WIP func_80009B7C

* WIP on func_80008174

* Match func_800090C0

* Match func_800095E8

* func_800098A4

* Match func_800098A4

* Nearly match func_80009968

* Match func_800099EC

* Better match

* Fix NON_EQUIVALENT builds

* WIP func_8000A184, and clean up func_8000A414

* Fix NON_EQUIVALENT builds

* Mark unused funcs properly

Co-authored-by: Ryan Myers <foldor@gmail.com>
2023-01-22 15:33:18 -05:00
David c25396c59b Updated generate_ctx script 2023-01-07 11:29:54 -06:00
FazanaandGitHub 7f5f21be50 lots of renaming, last for now though (#356)
* background stuff

* last two tasks

* Update unknown_078050.c

* tonnes more

* audio

* Update audio.c

* quick fixes

* and again

* requested changes

* fixed the rest of the macros
2023-01-07 14:40:25 +00:00
b74f340fe3 Match and label some track functions (#354)
* match render_scene and render_level_segment

* improve accuracy of a name

* labbie

* disregard libultra in documentation score

* Start on triangle batch flags

* Q

* more tracks.c stuff

* Update src/unknown_0255E0.c

Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>

* Update unknown_0255E0.c

Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>
2023-01-06 19:39:37 +00:00
51f40789c6 Improve and label a bunch of racer.c functions (#348)
* label some racer funcs

* Update object_functions.c

* match render_epc_lock_up_display

* Update thread0_epc.c

* Update thread0_epc.c

* delta

* racer labelling

* bit more

* last ones for tonight

* nonmatching func_80046524

* take a guess

* quick rename

* Update thread0_epc.c

* some wave correction

* Update waves.c

* suddenly unplanned object cleanup

* quick fixes

* Update thread0_epc.c

* Update src/racer.c

Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>

Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>
2023-01-02 15:42:19 +00:00
c6351af6c3 lots of matching involving misc racers (#346)
* match func_8005E4C0

* label vehicle enums

* prelim

* match func_800B1130

* match func_8005F310

* prelim

* match func_8005C364

* rename and warning fix

* another wave of particle cleanup

* match func_8005E204

* fixed warnings

though it's just a plaster

* Update objects.c

* match func_8005D0D0

* macros

* some labels

* match func_8005D820

* reorganise boss headers

* stuff that I don't really feel like describing it's just lots of dumb stuff lol

* add collision.c

* one more

* some racer documentation

* fix blacklist bug in score.py

* more.

* nonequiv func_800314DC

* Update collision.c

* Update unknown_0255E0.h

* document two camera funcs

* Update racer.c

* quick fixes

* Update src/vehicle_tricky.c

Co-authored-by: David Benepe <benepe96@gmail.com>

* Update src/vehicle_smokey.c

Co-authored-by: David Benepe <benepe96@gmail.com>

* Update src/vehicle_misc.h

Co-authored-by: David Benepe <benepe96@gmail.com>

* Update src/particles.h

Co-authored-by: David Benepe <benepe96@gmail.com>

* Update src/vehicle_bluey.c

Co-authored-by: David Benepe <benepe96@gmail.com>

* requested changes

* Update vehicle_smokey.c

* oops missed one

* Update object_functions.c

* Update racer.c

Co-authored-by: David Benepe <benepe96@gmail.com>
2022-12-30 14:14:53 +00:00
FazanaandGitHub 9a60c84b67 Numerous matches and particle hell (#344)
* match 3 memory funcs

* match func_80071314

* match free_slot_containing_address

* match allocate_from_memory_pool

* Update audio.c

* two mem matches

* match func_800718A4

* match func_800C0834

* match func_800C27A0

* oops

* match func_800C01D8

* match func_800A8474

* prelim

* named like 0.2 things

* quick fixes

* match func_8006A6B0

* match func_8006AC00

* match func_8006AE2C

* match  func_800C2D6C

* game_text matches

* func_800C38B4 match

* renamed thread30

* match func_800AF52C

* match func_800AFE5C

* first wave of particle matches and fixes

* match gzip_huft_build

* wave 2

* wave 3

* Update particles.c
2022-12-22 13:55:08 +00:00
FazanaandGitHub 63b9a82df9 45% decompiled 15% labelled. (#342)
* match 3 memory funcs

* match func_80071314

* match free_slot_containing_address

* match allocate_from_memory_pool

* Update audio.c

* two mem matches

* match func_800718A4

* match func_800C0834

* match func_800C27A0

* oops

* match func_800C01D8

* match func_800A8474

* prelim

* named like 0.2 things

* quick fixes
2022-12-18 12:39:40 +00:00
041a3927b9 Few matches + renames (#340)
* implicit errors

* good lord that was a lot

* Update csplayer.c

* Update game.c

* give names to the image segments

* Update csplayer.c

* whole bunch of nonmatching stuff

* rename a thing

* match func_8001BB68

* match func_8001A7D8 and document checkpoints

* match func_8000F648

* match func_800214E4

* Head.

* match func_8002342C

* nonmatching obj_loop_weaponballoon

* match func_8001709C

* match func_8003E694

* Update object_functions.c

* name a field

* match new_memory_pool

* we do a little labelling

* label function rendermode flags

* name interacted objects

* Update object_functions.c

* quick fixes

* Update unknown_05FF10.c

* alakazoom

* Update src/racer.c

Co-authored-by: David Benepe <benepe96@gmail.com>

* Update src/objects.c

Co-authored-by: David Benepe <benepe96@gmail.com>

* Update include/structs.h

Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>

* oh this is necessary because recursive lol

Co-authored-by: David Benepe <benepe96@gmail.com>
Co-authored-by: Ryan Myers <ryan.p.myers@gmail.com>
2022-12-15 20:19:28 +00:00
FazanaandGitHub 965aa1f33e I finally defeated every avoidable warning (#335)
* silver coin labels

* match obj_loop_log

* better

* match obj_loop_modechange

* nonmatching obj_loop_fireball_octoweapon

* fix racer.c warnings

* match obj_loop_fireball_octoweapon

* Update object_functions.c

* match obj_loop_lasergun

* unknown_0255E0.c warnings fixed

* asset_loading.c warnings too

* laser gun labels

* quick fixes

* match func_8003F0F8

* prelim

* match func_8000E4E8

* warnings are dead

* quick fixes

* Update math_util.c

* reee
2022-12-10 22:42:50 +00:00