Commit Graph

658 Commits

Author SHA1 Message Date
coco875 e49fe2acfc
adjust some name from pr730 (#737)
* small adjustement

* adjust some naming and other just two other in link with time trial

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-07-21 12:04:38 -06:00
Jed Grabman 4f63d1759c
Document Sound Effects (#742)
* Naming sound effects

* Update sound effect names and categorize

* Add bomb effect and fix bug

* HIT_FAKE_ITEM -> EXPLOSION_CRASH

* Rename sound_effects to triggers

* Merge branch 'master' into sound_effects

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-07-21 12:04:04 -06:00
ProjectUltra75 f5caebc5de
Document *.m64 sequence IDs (and also add support for custom track music) (#740)
* Document sequence IDs

* Document sequence IDs

* Document sequence IDs

* Document sequence IDs

* Document sequence IDs

* Fix function comments

* Properly identify the podium ceremony sequence; fix comments

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-07-19 17:24:43 -06:00
MegaMech bb8ac997a8
Better match for add_unused_obj_index (#734) 2025-07-19 17:07:35 -06:00
MegaMech a927b1db49
Fix alfa for `find_vtx_and_set_colours()` (#745)
* Update render_courses.c

* More fixes

* Fix hex values
2025-07-19 16:41:05 -06:00
MegaMech 12e6c6bf28
Revert "Fix alfa for `find_vtx_and_set_colours()` (#739)" (#744)
This reverts commit 6c60f5d785.
2025-07-19 10:19:40 -06:00
Jed Grabman a5526cc5bf
Document effects and define magic values (#733)
* Document projection matrix function

Document function for computing a projection matrix. Used for camera and graphics.

* Fix loop index bug

Fix straightforward loop index bug introduced in last commit

* Style guide updates

Changes to match style recommendations
* Update function variables to camelCase
* Use dOxygen tags
* Use block comment

* Document math functions

* Give all functions in src\racing\math_util.c descriptive names

* Improve documentation for math_util

Improves a number of functions by giving descriptive argument names and comments

* Additional merge

* Fix style issues

update variables / parameters to use camelCase instead of snakeCase

* doxygen and other documentation

* Add doxygen documentation
* Rename mat -> mtx for consistency among matrices
* Theta -> Angle for angles
* Give some arguments more descriptive names

* Partial documentation for calculate_orientation_matrix

Documentation for when cosAxisY is 1 and observations that things break when if it does not equal 1.

* Rename functions

Renamed multiple functions for accuracy or clarity

* doxygen whitespace alignment

Improve readability of doxygen info by aligning text

* Make format check

Formatting updates suggested by make format

* Make skyboxes static

* Change function name

angle_from_coords -> get_angle_between_coords

* Math values renamed

Functions:
render_distance_squared -> distance_if_visible
mtxf_rotation_zxy_translate -> mtxf_rotate_zxy_translate

Arguments:
vecTrans -> translate

* Document many effects

Define effects for
* Braking
* Drifting
* Spinning out (driving and bananas)
* Mini turbos
* Losing at GP
* Tumbling on terrain
* CPU rubberbanding

And substitute some pre-existing defined effect names in place of bit flags

* Replace effect magic numbers with defined values

* Separate effect bit-flags into components

* Document more effects

* Rename some effects

* Replace effect bit_flags with defined values

* Formatting fixes

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-07-17 20:53:11 -06:00
MegaMech 0a27fbbba0
Revert "Document sound effects (#735)" (#741)
This reverts commit e88f33fb18.
2025-07-17 20:52:44 -06:00
Jed Grabman e88f33fb18
Document sound effects (#735)
* Naming sound effects

* Update sound effect names and categorize

* Add bomb effect and fix bug

* HIT_FAKE_ITEM -> EXPLOSION_CRASH

* Rename sound_effects to triggers

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-07-17 20:44:27 -06:00
MegaMech 6c60f5d785
Fix alfa for `find_vtx_and_set_colours()` (#739)
* Update render_courses.c

* More fixes
2025-07-17 13:04:29 -06:00
MegaMech b8823f12a1
Update cpu_vehicles_camera_path.c (#738) 2025-07-12 20:16:14 -06:00
coco875 e19b3b702e
Update torch (#736)
* Update torch

* Update torch

* Update torch

* Update torch
2025-07-08 21:00:20 -06:00
arefdsg 4975cb2c42
Update README.md (#718)
* Update README.md

* Update README.md

* Update README.md

* Update README.md

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-06-30 13:27:42 -06:00
Jed Grabman 6b08e60fe6
Document time trial input replay system (#730)
* Document time trial input replay system

Documents how the input replay system works in time trials. This is used for
* Course ghosts (on the raceways)
* Player ghosts
* Replays

* Rename ghosts/replays and minor cleanup

Refer to staff and player ghosts in time trials as replays.
Refer to the basic replay as a "post time trial replay"
Change variable / function names to reflect terminology change

* Define replay magic values

* Rename staff_ghosts files to replays

Renames staff_ghosts files to replays, since they also deal with player ghosts and post time trial replays.

Also, changes staff_ghosts_loop -> replays_loop

* REPLAY_NOT_FRAME_COUNTER -> REPLAY_CLEAR_FRAME_COUNTER

* Add replays header and format

* Update replays.c

* Name load replay functions

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-06-28 16:36:36 -06:00
Jed Grabman 91ee36c539
Rewrite of math_util (#727)
* Document projection matrix function

Document function for computing a projection matrix. Used for camera and graphics.

* Fix loop index bug

Fix straightforward loop index bug introduced in last commit

* Style guide updates

Changes to match style recommendations
* Update function variables to camelCase
* Use dOxygen tags
* Use block comment

* Document math functions

* Give all functions in src\racing\math_util.c descriptive names

* Improve documentation for math_util

Improves a number of functions by giving descriptive argument names and comments

* Additional merge

* Fix style issues

update variables / parameters to use camelCase instead of snakeCase

* doxygen and other documentation

* Add doxygen documentation
* Rename mat -> mtx for consistency among matrices
* Theta -> Angle for angles
* Give some arguments more descriptive names

* Partial documentation for calculate_orientation_matrix

Documentation for when cosAxisY is 1 and observations that things break when if it does not equal 1.

* Rename functions

Renamed multiple functions for accuracy or clarity

* doxygen whitespace alignment

Improve readability of doxygen info by aligning text

* Make format check

Formatting updates suggested by make format

* Make skyboxes static

* Change function name

angle_from_coords -> get_angle_between_coords

* Math values renamed

Functions:
render_distance_squared -> distance_if_visible
mtxf_rotation_zxy_translate -> mtxf_rotate_zxy_translate

Arguments:
vecTrans -> translate

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-06-28 11:39:14 -06:00
coco875 d2b3217754
document vertex of player (#729)
* document vertex

* Update render_player.c
2025-06-28 11:35:02 -06:00
Oleksandr Kalko b329e813e6
Upgrade Torch to include CMake 4.0 fixes (#725)
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-06-21 13:00:14 -06:00
ZackWeinstein d6076b5cb7
Labeling particle related code (#719)
* Labeling particle related code

* More labeling. Naming pass on what was labeled last commit

* Stick X clamped with deadzone

* Renaming TyreParticle to Particle

* Matching coco's names and renaming some already labeled to keep style consistent

* Minor extra particle labeling

* Small extra labeling. Restoring some removed newlines

* One last newline adjustment

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-06-21 12:59:32 -06:00
Jed Grabman 184f5939f2
Shiftability fix and documentation (#723)
* Shiftability fix and documentation

* Allow setting `AVOID_UB=1` directly while building
* Set `AVOID_UB` when building with DEBUG.
* Document options for enabling shiftability
* Document `make clean`

* Delete HTML file

* Update compiling.md

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-06-21 12:50:57 -06:00
Jed Grabman 3288752b47
Document projection matrix function (#722)
* Document projection matrix function

Document function for computing a projection matrix. Used for camera and graphics.

* Fix loop index bug

Fix straightforward loop index bug introduced in last commit

* Style guide updates

Changes to match style recommendations
* Update function variables to camelCase
* Use dOxygen tags
* Use block comment

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-06-21 12:15:45 -06:00
Maciek Baron ac4dfe3211
Document alpha, movement (#721)
* Document alpha, movement

* Fix typo

* Add missing ~
2025-06-21 11:56:23 -06:00
Maciek Baron 8d4fa64f5a
Document functions and variables (balloons, acceleration, a button handling etc.) (#720)
* Document various functions and variables

* Fix code changes

* Rename function based on discussion

* Identify global table of player speeds

* Improve names of functions

* Label further things related to playerIndex

* Label further balloon related things

* Document further balloon related things

* Use STAR_DURATION

* Update vars

* Fix missing arg
2025-06-10 13:59:02 -06:00
coco875 c6e40bcec0
fix name introduce by the previous pr (#701)
* fix more name

* Update cpu_vehicles_camera_path.c

* more fix of name

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-05-18 14:20:05 -06:00
coco875 c6dcc84092
document greyscale math (#700)
* document greyscale math

* fix match

* Update menu_items.c

* Update menu_items.c

* Update menu_items.c

* Update menu_items.h
2025-05-18 14:19:43 -06:00
Oleksandr Kalko d7e434213f
[Documentation] Update compiling for EU (#713)
#710 changed the environment variables for compiling EU roms
2025-05-12 05:32:12 -06:00
AloXado320 668523b9cf
Fix progress rounding script (#711)
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-05-11 19:16:17 -06:00
MegaMech ffa7bdf517
Update README.md (#712) 2025-05-11 19:07:42 -06:00
MegaMech 89fb420555
Match Mario Kart 64 (#709)
* Commit unpr'd matches

* fix compile

* Commit matching func_80086074

* More matches

* Fix missed labelling

* menus.c formatting

* More matches

* Match update_player_path_completion

* Formatting

* Match func_80050E34

* Match EU Audio init

* Match func_800C16E8

* Match synthesis_process_note

* Match func_80009B60

* Match

* Match cpu_use_item_strategy

* Match render_menus

* match last func
2025-05-11 18:03:50 -06:00
AloXado320 30fef62f81
Fix EU build and related cleanup and fixes (#710)
* Fix EU build and eu-final offsets

* Fix instrument align and bring EU matches

* Fix EU trig table segment

* Label audio_init

* Simplify float comments

* Proper EU name version defines
2025-05-11 18:00:37 -06:00
Revo 1f9e0d7e6a
Square is a Bad Company (#708)
* square is a bad company
2025-05-08 20:26:51 -06:00
MegaMech 6d900d30ac
PR Matching func_80086074 (#707)
* Commit unpr'd matches

* fix compile

* Commit matching func_80086074
2025-05-08 16:03:42 -06:00
MegaMech daab4f501f
PR Matches (#706)
* Commit unpr'd matches

* fix compile
2025-05-08 15:00:53 -06:00
Rainchus 8dfb7e7fd5
move SQ macro define to header file so project builds (#705) 2025-05-02 16:52:04 -06:00
inspectredc 5dbcf42e95
Misc matches (#704)
* couple of matches

* match func_800C4FE4

* match func_800C284C

* match func_800C2A2C

* match func_800C3724

* match func_800C4398

* format

* format2

* remove asms
2025-04-30 10:36:02 -06:00
Alejandro Asenjo Nitti 1b10da7c24
fix matching (#702)
Co-authored-by: Sonic Dreamcaster <alejadro.asenjo88@gmail.com>
2025-02-16 10:49:25 -07:00
Alejandro Asenjo Nitti 809450525a
match func_80099AEC and fix some warnings (#699)
* match func_80099AEC and fix some warnings
2025-01-24 11:18:03 -07:00
coco875 731b24eabf
Doc code 80005fd0 (#697)
* Document code_80005FD0.c
2025-01-18 17:24:09 -07:00
coco875 5e1ce53a4c
the big code_80091750.c rename (#684)
* some rename

* type menu

* continue rename and place const

* Renames and doc

* more

* buffer vars

* clang format

* continue rename

* some rename and get it compile (but don't match for obscure reason)

* get it match again and fix some warning

* fix all warning

* Match 6 functions

* continue rename

* load img renames and first step or label menu items

* MenuItem struct names and some rename

* rename around

* rename code_80091750 to menu_item

* clean up a little

* Update menu_item.h

* document waypoint and more

* Revert "document waypoint and more"

This reverts commit 5e6eb4fbcc.

* apply review

* Update menu_item.c

* fix some review

* rename func_8009E620 to clear_menus

* do a rename

* apply review

* finish rename normally

* more small rename

* few fix of name

* few more fix

* minor fix

* Update menus.c

* last rename normally

* Update render_menus.s

* Update menu_items.c

* Renames seg2 textures.c

* MENU_ITEMtype --> MENU_ITEM_TYPE

* remove a useless parameter

* func_80099110 --> clear_menu_textures

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
Co-authored-by: AloXado320 <david.albujar.s.30@gmail.com>
2025-01-03 17:44:23 -07:00
MegaMech f3872623db
Update code_800029B0.c (#695) 2024-11-03 17:02:07 -07:00
coco875 f4f57d6755
Update format (#693)
* remove useless yaml file

* update format

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2024-10-22 12:47:45 -06:00
coco875 1c957fb7b4
remove useless yaml file (#692)
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2024-10-22 12:46:35 -06:00
coco875 8901f82f5a
some rename and allow change the course engine (#691)
* some rename and allow change the course engine

* fix comment

* add more comment

* rename and change description
2024-10-20 17:24:37 -06:00
AloXado320 0e0345f96d
Label menus.c and small documentation (#690)
* Label menus.c and small documentation

* remove test

* save.h

* BACK_OUT -> GO_BACK
2024-10-05 15:15:47 -06:00
AloXado320 1381235a5f
Fix color text array and function (#689)
* Fix color text array and function

* seg2 header
2024-09-26 14:49:24 -06:00
github-actions[bot] eb90cd7a00
Clang Format (#687)
* Clang Format

* Update code_80091750.c

---------

Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2024-09-25 08:30:10 -06:00
MegaMech cb0e7678bf
Match func_800A66A8 (#686)
* Update code_80091750.c

* Delete asm/non_matchings/code_80091750/func_800A66A8.s

* Update code_80091750.c

* Update code_80091750.c

* Update code_80091750.c
2024-09-25 08:11:19 -06:00
github-actions[bot] 9cb6bf66d5
clang format (#682)
Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2024-09-23 10:30:25 -06:00
coco875 817979416f
Update clang-pr.yml (#683)
* Update clang-pr.yml

* Update clang-pr.yml

* Update clang-pr.yml

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2024-09-23 10:29:47 -06:00
coco875 6da6598cc6
extract models with blender (#577)
* start making models extraction with blender

* finishing extract model

* Update fast64

* extract course

* Update fast64

* Update fast64

* simplify import of course_displaylists and course_textures and remplace adress with texture

* Update fast64

* change data format and simplify the thread queue

* move in a blender folder

* remove fast64

* re add fast64

* add model_extract and fast64_blender in makefile

* multithread with make file split the models into multiple json and add course segment

* Update fast64

* remove old model_extract

* remove the error when he don't find blender

* start rename around course section

* update submodule fast64

* fix compilation issue and add some model to extract

* Update fast64

* remove fast64

* re add fast64

* update submodule

* fix compilation issue

* add other collision gfx and prepare reorganise file

* re arrange json

* Create README.MD

* Update README.MD

* Update README.MD

* update fast64

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2024-09-15 17:06:29 -06:00
coco875 93aebabaa3
Rename Object Timing Related Code (#673)
* start making models extraction with blender

* finishing extract model

* Update fast64

* extract course

* Update fast64

* Update fast64

* simplify import of course_displaylists and course_textures and remplace adress with texture

* Update fast64

* change data format and simplify the thread queue

* move in a blender folder

* remove fast64

* re add fast64

* add model_extract and fast64_blender in makefile

* multithread with make file split the models into multiple json and add course segment

* Update fast64

* remove old model_extract

* remove the error when he don't find blender

* start rename around course section

* rename around object

* update submodule fast64

* fix compilation issue and add some model to extract

* Update fast64

* remove fast64

* re add fast64

* update submodule

* fix compilation issue

* add other collision gfx and prepare reorganise file

* re arrange json

* Create README.MD

* Update README.MD

* Update README.MD

* update fast64

* rename to initiate_next_state

* Revert "Merge branch '3d-objects' into general-object"

This reverts commit f5347b38cc, reversing
changes made to a353c4d954.

* revert the revert...

* revert 3d-models PR

* finish some revert

* Update code_80005FD0.c

* fix code_80091750.c

* Update code_80091750.c

* rename isTimerRunning to isTimerActive and set_object_timer_running to set_object_timer_state

* rename to initialize_next_state

* rename to object_next_state

---------

Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2024-09-15 15:03:40 -06:00