summaryrefslogtreecommitdiff
path: root/src/staff_ghosts.c
AgeCommit message (Collapse)Author
2025-05-23FixesMegaMech
2025-01-25Fixes (#173)MegaMech
2025-01-24Fix camera overflow (#168)MegaMech
* Fix camera overflow * Update staff_ghosts.c * Names and overflow fix
2025-01-23Game.cpp and World.cpp Cleanup (#159)MegaMech
* Remove CProperties and delete dup Properties from World.h * Improvement * Fix compile * Cleanup * Document gRaceState * wip cleanup * compile * Impl PlayerBombKart * Rename CourseManager_ to CM_ * Finish renames m_ to CM_ * cleanup * Remove extra printf --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
2024-12-31Big 19750 renamesMegaMech
2024-11-14[modding] Big Update PR (#118)MegaMech
* Implement kart vehicle * Fix menu CC * Actors * variable framerate * Implement Actors vector * Fix water & scrolling textures * Finish ACoin * Refactor finishline * Refactor mtx to vector * Fix refactored screen code bugs * Fix playlist bug * Switching courses working now * Fix podium ceremony * Mostly Fix Demo and Credits * Credits Load Actors and Textures * Fix credits * Formatting * Update lus and torch * Fix water features * Fix crabs * Combine function * Fix wheels * Add Moon Jump Cheat * Wheel Change * Fix smoke due to wheel change * Fix screens for wheels * Fix transparency * Fix staff ghost * Fix lakitu transition widescreen * Rename and export credits text * Fixes --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
2024-10-07Fix linux compilation (#110)coco875
* fix wamr windows normally * fix linux issue * load all wasm in mods folder * minor fix
2024-10-05[modding] Course Mod Support (#104)MegaMech
* Course Manager * Course * Test * Render * That escalated quickly * update * properties * Properties * test * Fix compile * Add World * skycolours * Skybox Colours done * Cleanup * test * Game runs again * update * Game run again * Cup Works * continue * Add Courses * clouds * changes * fixes * update * Fix compile * update * A few changes * More Updates * More refactors * Fixes * Fix ai behaviour * Changes * Fix courses * test course test not working * CUSTOM * TestCourse works kinda * fixes * test course works * cleanup --------- Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
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-11wip Fix wheels (#37)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 * wip fixes to kart wheels * Fix inaccuracy * improve wheels * Fix staff ghosts * course stuff * wip changes * Update kalimari_desert_displaylists.yml
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-03First Compile (#7)MegaMech
* Update torch * A lot of fixes * First compile
2024-05-03A lot of fixesMegaMech
2024-05-01WIP CompilationKiritoDv
2024-04-20Header cleanup and some renames (#616)MegaMech
* Place macros for addr conversions * dl renames * fixes * changes ok * Delete types.h * move enums
2024-04-06Rename cpu behaviour related symbols (#586)coco875
* Rename cpu related symbols
2024-03-25Turn D_802BFB80 into a union (#582)Tyler McGavran
* Turn D_802BFB80 into a union As much as I hate it, it does make more matches possible Got a few more, unrelated matches Signed-off-by: Taggerung <tyler.taggerung@email.com> * Update based on comment Signed-off-by: Taggerung <tyler.taggerung@email.com> * Update to address comment 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-05Code Segments Shiftable (#566)MegaMech
his PR cleans up segment related code in main.c. Also cleans up the linker a bit. Add memory pool to linker as .bss to validate that it exists properly. Move framebuffers, gfx, and audio buffers out of racing segment and make its own segment. Rename framebuffers.c to buffers.c as it contains more than just framebuffers. Import asserts from sm64 to validate that code segments are not overlapping Rename segNoload to segmentNoload Rename 802BA370 segment to trigTables Rename gMenuSelectionFromEndingSequence to gGotoMenu Rename gMenuSelectionFromQuit to gGotoMode Rename SEG_ENDING_SEQUENCES to SEG_ENDING Rename data_821D10 to ceremonyData Rename data_825800 to startupLogo
2024-01-02Finish bss (#527)coco875
* Finish importing bss
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-28Match the BSS segment for code_80005FD0 (#516)Tyler McGavran
Signed-off-by: Taggerung <tyler.taggerung@email.com>
2023-12-25place const and format external, code_8005fd0 and 80091750 (#515)coco875
2023-12-24Rename code_8001F980 to render_player and code_800B45E0 to save (#507)coco875
* Update and rename code_8001F980.c to render_player.c * Rename code_8001F980.h to render_player.h * rename import file to render_player * Update and rename code_80004740.c to save.c * Rename code_80004740.h to save.h
2023-10-19EU 1.0 OK (#265)MegaMech
* EU 1.0 ok * EU 1.1 ok Co-authored-by: AloXado320 <david.albujar.s.30@gmail.com>
2023-10-07Various Naming (#445)coco875
* Mass renames
2023-09-12Import bss for audio and elsewhere (#416)MegaMech
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-08-11Matched staff_ghosts.c and doc for podium_ceremony_actors.c (#365)MegaMech
* Matched staff_ghosts.c * More podium_ceremony_actors documentation
2023-04-07Match memory.c, remove warnings, fix fake matches (#301)MegaMech
* Match memory, remove warnings, fix fake matches * label switch
2022-09-30A bunch of unrelated, assorted changes (#263)Tyler McGavran
Couple matches functions, an update to a struct, a bunch of header files adjustments, and some mips_to_c regenerations Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2022-09-18Change a variety of constants to defines (#257)coco875
* Change a variety of constants to defines * Add notes regarding menu columns * Change unknown type to known types
2022-08-14Fix some of the memory allocation in framebuffers (#182)Tyler McGavran
* Fix some of the memory allocation in framebuffers Also includes a the questionable change of undoing a previously made match for func_80027A20. The changes made here remove an AVOID_UB usage and (I would argue) is therefore more "correct", but undoing a byte-for-byte match is admittedly bad. Also adds in some header files and updates some not-quite-right decomps to be slighly more accurate. Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2022-07-15Document game state related logic (#244)MegaMech
* Document game state logic * More namings
2022-07-05Decomp menus.c (#229)tehzz
* update m2ctx to make N64 sgi context * finish decomping menus.c
2022-06-18Match func in staff_ghosts.c and name menus file (#227)MegaMech
* name some code files * staff ghost func match * Update README.md
2022-06-15Add building on macOS (#224)tehzz
* build OK macOS * add macOS building instructions * change return type of func_8000546C * prevent gitattributes from removing CRLF from ido binaries
2022-01-22Variety of changes (#147)Tyler McGavran
* Update player struct with lap count and rank Also rename some arrays to better reflect what they are tracking * Add bounding box corner struct and surface type enum * Create a .h file and move stuff into it See https://github.com/DeadHamster35/Tarmac64/wiki/Surface-Types and https://github.com/micro500/mariokart64/wiki/Surface-Map for reference Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2022-01-17Identify active screen mode, relabel accordingly (#141)Maciek Baron
2022-01-01Add player and controller labels, rename function (#123)Maciek Baron
* Add player labels, rename function * Relabel controller vars to improve readability
2021-11-23Added gamemode and CC defines (#64)CoderStig
* Added gamemode and CC defines
2021-11-23Added defines for Player->unk_000 bitfields (#63)CoderStig
2021-11-16[kart] Variety of changes related to kart hop physics (#56)Tyler McGavran
Gave some Player struct members proper names, mostly related to kart hop physics. Renamed a couple of tables in kart_attributes to make their purpose and nature more obvious Matched func_8002AAC0 with its assembly representation Matched func_800225CC with its assembly representation Signed-off-by: Taggerung <tyler.taggerung@gmail.com>
2021-11-16Matched some memory.c and other (#55)CoderStig
* Matched some memory.c * And more
2021-11-05Split asm using autodecompiler (#49)CoderStig
* Split asm using autodecompiler * Placed libultra bss and linked more C
2021-10-26Decompiled staff_ghosts.c (Plus lots more) (#39)CoderStig
* Decompiled staff_ghosts.c * started on 80296A50.c * Matched some of main.c * Added framebuffers.c * Added structs such as Camera