185 Commits

Author SHA1 Message Date
David
34c465815c Added non matching score to score script. 2023-11-02 21:33:35 -05:00
Fazana
88864107ab Finish labelling most functions in audio.c + camera.c (#431)
* name some camera things

* yea there

* lots of audio

* match a func

* better

* x

* egg

* all but one func in audio.c nopw

* audio looks good for now

* Update audio.c

* correct taj thing

* fix warnings

* Update audiosfx.h

* Update README.md
2023-11-02 18:53:53 +00:00
Fazana
d8e58622e0 Name the last two files in src (#429)
* label animation and a few object flags

* models

* name funny spline

* Update menu.c

* better name

* rename unknown_005740.c

* ah its happened again

* fix warnings

* Fix that dumb idiot warning finally

* teag

* rename the last audio file

* Update math_util.c

* update math util to the latest

* small funny format

* quick change

* fix warnings

* Update README.md

* Fix a maths func

* fix nonequiv building

* bro come on
2023-10-31 16:39:28 +00:00
David
b0d0d8b056 Decompiled 4 funcs & fixed context file 2023-10-29 21:01:19 -05:00
Ryan Myers
f8e3c755a3 60% Matched! (#423)
* Match func_8005F99C

* unk8005FCD0 to Object_68

* Match func_800B7460

* epc cleanup

* Match func_8001EE74

* Match func_8001E6EC

* Match func_8000FD54

* Match func_80015348

* Match func_80016748

* Match func_8001AE64

* Match func_80016DE8

* Updated score

* Fix score

* Update src/object_models.h

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

---------

Co-authored-by: David Benepe <benepe96@gmail.com>
2023-10-20 08:12:50 -04:00
Ryan Myers
38a76249f9 We are collecting silver coins in Treasure Caves. (1/8 silver coins) (#422)
* 3 new matches

* Fix arrays

* Get llcvt compiling finally

* Finsh 2 more libultra files

* Match func_80022E18

* Match func_8001BF20

* func_8001CD28 NON_MATCHING

* Match func_80026C14

* Match func_8005FF40

* Match func_80061A00

* Match func_8005FCD0

* Update score

* Fix NON_EQUIVALENT builds
2023-10-16 08:12:02 -04:00
Ryan Myers
658ab3f5f0 Update makefile, and include many new matches (#421)
* Fix the sins of the past

* Fix makefile extra messages, and add a patching option

* Match func_8001955C

* Match func_80016500

* Match func_8000C8F8

* WIP func_8000CC7C

* Removed old competing misc asset enums, and migrated to the better standard.

* Fix last commit

* Minor documenting of an unused asset.

* Match func_8001B4FC

* Match func_8009963C

* Match render_enter_filename_ui

* Match randomise_ai_racer_slots

* Fix NON_EQUIVALENT builds

* Update README

* A little text documenting

* Update src/menu.c

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

* Remove already matched asm file

---------

Co-authored-by: David Benepe <benepe96@gmail.com>
2023-10-12 08:35:23 -04:00
David
5a231cff20 Fixed generate_ctx.py 2023-09-19 20:15:02 -05:00
David
c643999c77 Added syntax to RAM_POS for conditionally including a source file 2023-06-17 16:43:20 -05:00
David
f356eb04e1 Some minor fixes 2023-06-11 14:10:16 -05:00
Ryan Myers
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
Ryan Myers
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
tonyspumoni
65ab7d14ee Score summary (#370)
* update README with score summary

* use spaces instead of tabs for markdown

* one more newline so it looks good

* test emsp

* emsp seems good
2023-02-10 16:39:25 -07:00
David
4a6578fe17 Added support for subfolders in assets, and named object headers & models 2023-02-02 17:29:15 -06:00
Ryan Myers
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
David
c25396c59b Updated generate_ctx script 2023-01-07 11:29:54 -06:00
Fazana
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
Fazana
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
Fazana
26483725eb we defeated tictoc (#327)
* Update score.py

* match func_80001FB8

* :)

* match func_8000232C

* label func

* match play_sound_global

* match func_800BF524

* match func_80061C0C

* match func_800BFE98

* match func_800BF3E4

* match func_800B8134

* match func_800BBE08

* match obj_loop_wavepower

* match func_800BFC54

* Update src/waves.c

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

* Update src/waves.c

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

* Update src/object_models.c

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

* Update src/object_models.c

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

* Update src/audio.c

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

* nonmatch

* label Taj's state behaviour

* taj updates

* match obj_loop_stopwatchman

* rename struct field

* Update m2ctx.py

* revert some names

* Update structs.h

* Update object_functions.h

* 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>

* 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>

* 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>

* Update src/object_functions.c

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

Co-authored-by: David Benepe <benepe96@gmail.com>
2022-12-07 20:48:14 +00:00
Fazana
f135d0f3ec Update score.py (#319) 2022-12-04 19:52:37 +00:00
David Benepe
d897ac2bc4 Fixed score script 2022-12-01 16:37:37 -05:00
Fazana
e47fc4b0ef Couple matches (#270)
* match func_80077268

* Update borders.c

* Update borders.h

* game.c labels

* rename border

* match func_80068BF4 and func_80069484

* Update camera.c

* camera.c labels

* more camera.c documentation

oh god this is gonna be another one of THOSE PR's again isn't it?

* Update camera.c

* destruction

* nonmatching func_80002DF8

* make clean now removes the linker

* Update unknown_003260.c

* match func_800A0EB4

* match render_background

* fix warnings

* style fixes

* label indicator arrows in the UI

* requested changes

* struct renames

* match func_800A7B68

* Update README.md

* match func_800A5A64

* Fix unforgivable typo

sorry im not a fake fan I sware on me nan

* Update README.md

* more detailed documentation of game_ui

* match func_800A01A0

* prelim changes

* oh no

* nonmatching func_80024D54

* labbel

* fix build

* fix context warnings

* match func_800A7520

* fixes

* requested changes
2022-10-30 19:58:59 +00:00
David Benepe
e0acb62ac2 Merge pull request #264 from DavidSM64/gen_ctx
Improved generate_ctx.sh
2022-10-30 07:23:02 -05:00
tonyspumoni
cb0e975836 fix trailing spaces in generated score (#266) 2022-10-29 16:51:36 -06:00
David Benepe
d5aa658ea9 Added suggestion for find command 2022-10-29 13:09:25 -04:00