summaryrefslogtreecommitdiff
path: root/src/code_80057C60.h
AgeCommit message (Collapse)Author
2025-07-11Add kartPropulsionStrength and waterInteractionFlags (#425)Maciek Baron
* Add kartPropulsionStrength and waterInteractionFlags * Add reset_player_speed_and_velocity * Fix merge * Reorder and cleanup * Document hopVerticalOffset and hopFrameCounter * Fix missed variabled * Further things * Use constant --------- Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-07-01make some texture more flexible and editable + port documentation from the ↵coco875
decomp + fix some bug (#309) * support a more flexible background * remove useless function * rename of some font * experimental png * migrate to the new initdata * fix skybox and adjust minimap * format in audio * simplify player render * simplify shell render and support custom texture of shell * clean redshell texture * format and multiple fix * some update of name * allow change icon of character * more rename * continue rename * more documentation and simplification * change lus and continue rename * continue rename * few fix for asan * fix ghost * Update menu_items.c * fix mac error * some test of tweak for texture * some tweak * some button constant * finish fix ghost * Update menu_items.c * Update render_objects.c * Update menu_items.c * Update libultraship * Update libultraship * Delete valgrind.report * Update libultraship * callgrind benchmark * Update valgrind_callgrind.sh * fix animation * some rename * remove useless submodule * Update libultraship * fix assets * fix mistake * fix more mistake * Update menu_items.c * sync more rename with the decom + fix review * fix a mistake * fix more mistake * re add the limit of fps * fix some hd texture and minimap * fix a name * Update menu_items.c * fix a regression * fix some segment 5 texture (not all) * Update camera.c * improve performance of custom sprite * fix flatten bug and add documentation on player vertex * Update render_player.c * fix data menu * fix trophy for 50 and 150 * Update memory.c * Update code_80057C60.c * fix ghost * fix boo tlut * fix a mistake in yaml * fix yaml * Update common_data.yml * add comment for segment 3 * allow even more change in texture * Update common_data.yml * Update update.inc.c * Update camera.c * Update some_data.c * wip changes * Update other_textures.yml * More changes * Update update_objects.c * Fix compile * Update memory.c * Update memory.c --------- Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
2025-05-14Impl new intro (#193)MegaMech
* Update menus * Update CMakeLists.txt * Add Ship * Impl hm ship actors * Update HM course * Impl new intro * Finish intro scene * Rename * Start Editor Work * raycast works * Fix ScreenRayTrace in widescreen * Basic Actor Picking * wip * Editor use vtx collision * gizmo work * otr works for object picking * Impl objects for editor * actor init * Update * Add all axis move (freemove) * Docking Windows works here * Setup imgui layout for editor * Editor Snap to Ground works * Basic Scene Explorer Works * Editor get actor names * Impl editor object names * impl Editor Play and Pause buttons * Editor translate works while paused * Fix freecam lighting * Added adjustable track properties to editor * Editor matrix, icons, rotation, impl light * Setup Track Properties 1 * Editor tooling wip * Load modded o2rs * Don't enable hud if editor is enabled * Updates * SceneManager nearly working * Fix mario kart 64 intro logo sizing * Fix Rotator * Finish new matrix translation code * Cleanup headers * Cleanup * Cleanup 2 * Cleanup 3 * Prevent divize by zero crash * Add visible circle for translate in all axis * Editor scaling/rot works properly now * Scale All_Axis evenly * Fixes to includes to work on Linux. * Removed overfilled arguments in gfx_create_framebuffer() * Added missing function definitions to Game.h * Editor sun face the camera * Add rotation model to gizmo * Add new handles * Failed attempt at transforming collision * Impl water volume * Import fast64 paths * water surface * Scene Setup 1 * Custom Track O2R almost working needs testing * Custom Track Load path O2r * Render custom track. Wip collision * Add missing function * Debug Spawning Custom O2R Track * Import courses working now * Fix memory leak * Remove New Track Button * Engine.cpp more consistent with sf64 * Fix Editor Enable Button * Editor Accurate mouse click drag objects * Editor selects closest object and cleanup * Gizmo rot and scale collision working * Remove constexpr from IRotator * Impl properties for location/rot/scale * Better Properties display, swap rot handles * Fix content browser dock and editor now disabled by default * Remove GameInfoWindow, Multiplayer Button, and FPS Slider * Disable Editor when its disabled * Add new logo to hm intro * Fix pause menu item box cursor * Remove minimap from Course::from_json and to_json * Impl Import Minimap * Fix custom minimap rendering * minimap uses extension .png * Refactor minimap * Freecam only for player 1 * GrandPrix Balloons work in custom track * Track Id is now std::string and outside of Props * Moved editor assets to be included in ship.o2r * Fixed GenerateO2R to package the correct folder and save to the correct filename * Linux specific changes. * Added "#include <stdio.h>" that required them * Changed how the "ship.o2r" file is loaded to allow it to load the file from within appimages. * Changed the Linuxdeploy version to avoid errors later when the Github Actions creates appimages(same fix applied to other ports.) * Revert "Moved editor assets to be included in ship.o2r" This reverts commit 05704c01f761baa67a83e357d9765f5c6b5e3fdb. * Added back files(this time without LUS changes) * Changed workflow file to use correct filename for assets file. * Missed a few spots in the workflow file. * Added .desktop file and made corrections to the main workflow. * Added the rest of upstream CMakeLists.txt * disabled USE_NETWORKING * New InverseMatrix * Renamed both .o2r files to be more accurate to its contents. * Reverted CmakeList.txt --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com> Co-authored-by: sitton76 <58642183+sitton76@users.noreply.github.com>
2025-01-05Finishwide screen. Impl IVector2D MinimapDimensionsMegaMech
2024-12-31Big 19750 renamesMegaMech
2024-11-20First batch of widescreen fixesMegaMech
2024-08-27Update decomp clang (#67)coco875
* Update menus.c (#634) * Update common_data.yml (#635) * Renames for screenId and other changes (#636) * screenId renames * Rename surface map to collision mesh (#637) * Rename some stack vars (#638) * Fix syntax error (#639) * Rename some stack vars * Update collision.c * Collision Documentation (#640) * Collision related renames * update doxygen (#649) * change bool (#644) Co-authored-by: MegaMech <MegaMech@users.noreply.github.com> * Update (#642) * Delete trig_tables_bss.c (#650) * fix typo audio (#656) * fix typo src actor (#657) Co-authored-by: MegaMech <MegaMech@users.noreply.github.com> * fix typo include (#658) * fix course (#659) * fix typo debug (#660) * fix typo data (#661) * replace number with const (#665) * fix typo buffers (#655) * fix typo buffers * tweak ld file * rename to sMemoryPool * add a warning --------- * fix typo src (#654) * fix typo src * fix non matcing * Update code_80091750.c --------- * fix typo racing (#653) * fix typo racing * get it match * replace G_LINE3D to G_QUAD --------- * fix typo src (#652) * fix ending typo (#651) * Action more info when it doesn't match and fix first diff (#662) * Update linux-compile.yml * fix first-diff * Update first-diff.py --------- * document texture of kart (#663) * document texture of kart * change screenPlayerId to screenId * some documentation around object * Revert "some documentation around object" This reverts commit cbb39078e036bf2a417bed67359e910213acab28. * more rename --------- * Make evaluate_collision_players_palm_tree better (#667) This matches just the same as before, but using those two casts instead of shifts seems more likely to be accurate to the original source code Signed-off-by: Gabriel Ravier <gabravier@gmail.com> * add fedora instruciton (#666) * start documenting animation (#668) * start documenting animation * Update course_data.c * change comment * update libultra asm (#648) * update libultra asm * fix gcc __osThreadTail --------- * Document Vehicles (#641) * start doc collision * fix merge * finish rename fonction related to vehicle * document around waypoint of vehicle * make some modification * make some change and rename one * copy_ to oldPos * doc smoke ferry and train * some rename * fix some renaming * precise index * rename a funciton * simplify waypoint_vehicles * change some name * change some name * rename move_to_point_direction * fix some conflict * Update code_80005FD0.c * Update code_80005FD0.h --------- * Label a save info loop (#645) * save info * more gcc progress * fix a value and do a rename (#669) * update clang and add action (#664) * update clang and add action * try clang on course folder only * forget two file * Update course_displaylists.inc.c * forget few other file * Update course_vertices.inc.c * format all code while get it match * second pass * format other dir * disable clang format on bad ido code * fix some tabulation * revert format on tool dir * Update clang-format.yml * ignore gbi.h * add some read me instruction * fix error * format and fixing error * Update README.md --------- * Update linkonly_generator.py (#670) * format more file * update * fix compilation issue * remove course_metadata folder * re add course metadata folder * fix banshee bordwalk crash * fix windows eurk * Update CMakeLists.txt ---------
2024-08-22Update from decomp (#34)coco875
* Update menus.c (#634) * Update common_data.yml (#635) * Renames for screenId and other changes (#636) * screenId renames * Rename surface map to collision mesh (#637) * Rename some stack vars (#638) * Fix syntax error (#639) * Rename some stack vars * Update collision.c * Collision Documentation (#640) * Collision related renames * update doxygen (#649) * change bool (#644) * Update (#642) * Delete trig_tables_bss.c (#650) * fix typo audio (#656) * fix typo src actor (#657) * fix typo include (#658) * fix course (#659) * fix typo debug (#660) * fix typo data (#661) * Update common_structs.h * replace number with const (#665) * fix typo buffers (#655) * fix typo buffers * tweak ld file * rename to sMemoryPool * add a warning --------- * fix typo src (#654) * fix typo src * fix non matcing * Update code_80091750.c --------- * fix typo racing (#653) * fix typo racing * get it match * replace G_LINE3D to G_QUAD --------- * fix typo src (#652) * fix ending typo (#651) * Action more info when it doesn't match and fix first diff (#662) * Update linux-compile.yml * fix first-diff * Update first-diff.py --------- * document texture of kart (#663) * document texture of kart * change screenPlayerId to screenId * some documentation around object * Revert "some documentation around object" This reverts commit cbb39078e036bf2a417bed67359e910213acab28. * more rename --------- * Make evaluate_collision_players_palm_tree better (#667) This matches just the same as before, but using those two casts instead of shifts seems more likely to be accurate to the original source code Signed-off-by: Gabriel Ravier <gabravier@gmail.com> * add fedora instruciton (#666) * start documenting animation (#668) * start documenting animation * Update course_data.c * change comment * fix error of compilation * fix error of compilation * Update animation.c
2024-08-03Lakitu fix (#35)MegaMech
* Fix menu bug * Fix undefined behaviour * Fix kart textures * Fix boost texture * Rename as per review * Fix buffer overflows * Fix lakitu progress * Fix race starter character --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
2024-07-26Renames & seg 3 & 5 texture fixes (#19)MegaMech
* Remove tools/torch * Auto compile torch and extract * Re-implement soh's implementation of lus implementation of an array * Fix static actors in mr * Update * Updated torch * Updated lus * uncomment * Fix collision * Renames * More renaming * Collision Renames * Update collision.c * Collision Documentation (#640) * Collision related renames * Update * update lus * Bug fixes * remove tabs * fixes * fixes * Fix kart textures * Networking * net * Add networking * Update * Cleanup * Fix balloon rendering * Fix lakitu and red shell * fixes * Implement new random system --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
2024-05-01WIP CompilationKiritoDv
2024-04-15Initial gcc Support (#568)MegaMech
* Added GCC
2024-03-04Document render/update objects (#565)coco875
* Document objects related code. * Including render/update objects code * Various renamings
2024-02-28Match the last 2 data files (#574)Tyler McGavran
* Match the last 2 data files Signed-off-by: Taggerung <tyler.taggerung@email.com> * Update one of the file names based on comments Signed-off-by: Taggerung <tyler.taggerung@email.com> * Fix bad path in onomatopoeia asset file Signed-off-by: Taggerung <tyler.taggerung@email.com> --------- Signed-off-by: Taggerung <tyler.taggerung@email.com> Co-authored-by: Taggerung <tyler.taggerung@email.com>
2024-02-22A couple matches in code_80057C60 (#569)Tyler McGavran
Signed-off-by: Taggerung <tyler.taggerung@email.com> Co-authored-by: Taggerung <tyler.taggerung@email.com>
2024-02-14A match in code_8006E9C0 (#573)Tyler McGavran
Also updated ctx_includes to match the current state of the repository (primarily fixing the trig_table include location) Signed-off-by: Taggerung <tyler.taggerung@email.com> Co-authored-by: Taggerung <tyler.taggerung@email.com>
2024-02-13fix warning, type and document audio (#559)coco875
* Document audio * Update external.h * fix warnings * put a do while on one line
2024-01-21Match a couple functions (#558)Tyler McGavran
The matches in code_80057C60 required changes to several other function signatures. Thankfully that didn't cause any problems
2024-01-17Rename some Object related function and property (#531)coco875
* rename some variables
2024-01-06some const placement and one rename (#529)coco875
* some const placement and one rename
2024-01-02Finish bss (#527)coco875
* Finish importing bss
2023-12-31Turn loop unrolling back on for code_8006E9C0 (#523)Tyler McGavran
Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-12-30Cleanup some references to fake variables (#520)Tyler McGavran
* Cleanup some references to fake variables * Some matches, header stuff, and updated a BSS file Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-12-30Add bss render player and spawn player (#518)coco875
* finish render_player * finish normally spawn_player bss
2023-12-28Match the BSS segment for code_80005FD0 (#516)Tyler McGavran
Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-11-023 matches in code_80057C60 (#480)Tyler McGavran
Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-10-27Place variables from data_0DD0A0 to code_800029B0 (#477)Tyler McGavran
They match when placed there, although its not immediately clear that they truly belong there. But a match is a match. Also cleaned up a bunch of .h files that had references to the newly matched variables. Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-10-18Couple matches (#466)Tyler McGavran
Removed some things from variables.h and functions.h Added headers for some src/data files
2023-10-09Rename wayPoint to waypoint (#448)MegaMech
* Rename wayPoint to waypoint * other
2023-10-07Various Naming (#445)coco875
* Mass renames
2023-09-22cleaning camera, kart_dma, menu, math_util (#436)coco875
* cleaning camera.h * cleaning math_utils.h and remove space * cleaning kart_dma * cleaning menu.h
2023-09-20Header & General Cleanup (#431)coco875
* Header cleanup
2023-09-20Migrate some rodata files to C, for files in NEEDS_RODATA state (#427)AloXado320
* Migrate some rodata files to C, for file on NEEDS_RODATA state * clarify odd texture variable, split unused vertices * Remove unused file
2023-09-17Label mtx variables in GfxPool (#424)AloXado320
2023-09-08Match bss for code_800029B0 and clean headers (#406)MegaMech
* Match bss for code_800029B0 and clean headers * Fix dvdl and a warning
2023-09-05Small matches, nothing super special (#400)Tyler McGavran
Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-08-26Put `void` in several function prototypes (#387)Tyler McGavran
I have historically made prototypes for argument-less functions with just plain `()` for the argument list. This has caused some minor pains when using `m2c` and is, pendatically, incorrect. So I have changed all argument-less function protoypes to instead have `(void)` as the argument list. This required a couple small fixes here and there.
2023-08-11Matched staff_ghosts.c and doc for podium_ceremony_actors.c (#365)MegaMech
* Matched staff_ghosts.c * More podium_ceremony_actors documentation
2023-08-09Matched code_80091440.c and named gDemoMode variable (#358)MegaMech
* matched code_80091440.c * Named gDemoMode * Remove asm for matching func * Matched and namings for random_u16_credits func in code_80280650.c
2023-08-08More matches in code_80057C60 (#351)Matthew
* Some matchings for code_80057C60 * Remove matched assembly
2023-08-06Some mathes and some non-matchings in code_80057C60 (#352)Tyler McGavran
* Some matches and some non-matchings in code_80057C60 * Mirgrate code_80057C60 rw data Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-08-04very cool debug display list (#348)tomas
* added a very cool debug display list ^^ (prints variables to screen) * Decompiled various functions
2023-06-28Cleaning Up Warnings (#317)MegaMech
* Update mk64 makefile to reflect sm64 makefile * print func matches and fix some warnings
2023-06-16Item & Various decomp (#311)MegaMech
* Item & Various decomp
2023-04-07Match memory.c, remove warnings, fix fake matches (#301)MegaMech
* Match memory, remove warnings, fix fake matches * label switch
2023-03-29Massive data relocation (#295)Tyler McGavran
Mostly relocating rodata from data/* files to the appropriate asm/nonmatching/* files, although there is some plain data relocating to be found in here too. Big change to note is the addition of the code_802AAA70.c file, split from memory.c. Based on some padding in the ro/data for memory it seems clear that a split is needed, although it is not clear that exact spot chosen for the split is correct. Still, it gets the file padding for the ro/data and text segments correct so it can't be too wrong. Also included is an update to the asm_processor tool to support the .hword directive. I made a PR to the main repo of that project with an identical change and it was accepted. Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2023-01-31Some assorted matches (#289)Tyler McGavran
Also renamed a couple variables Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2022-12-28Lots of matches related to the object list (#284)Tyler McGavran
Identified a couple more lists of object list indices, added some comments indicating what they're used for. Those comments are most likely non-exhaustive so there's still some investigation to be done there. Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2022-11-29Yet more assorted matches (#278)Tyler McGavran
* Yet more assorted matches Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2022-10-19Matches and m2c refreshing for code_80057C60 (#266)Tyler McGavran
* Matches and m2c refreshing for code_80057C60 * Convert some Vtx's into a Mtx Based on the usage of D_0D008E98, it seems like it should be a Mtx. So this commit changes some Vtx's into a Mtx Signed-off-by: Taggerung <tyler.taggerung@gmail.com>