Compare commits

..

447 Commits

Author SHA1 Message Date
Arceveti
8ea979665c Make mario_blow_off_cap use Mario's hitbox height instead of checking for ACT_FLAG_SHORT_HITBOX again 2022-03-12 14:37:52 -08:00
Arceveti
81ae0e8b3a Some DEGREES macro usage in interaction.c 2022-03-12 14:33:01 -08:00
Arceveti
53f8f96b69 Add bhv_align_to_water 2022-03-12 14:25:13 -08:00
Arceveti
b30a3fe829 Add individual bparam macros for use in level scripts 2022-03-11 17:58:58 -08:00
Arceveti
a073005ee2 Add LOAD_MIO0_TEXTURE define 2022-03-11 17:36:59 -08:00
Arceveti
1ea16fb20e More animation ID enum usage 2022-03-11 17:14:02 -08:00
Arceveti
47285d1806 cur_obj_hide/cur_obj_unhide usage 2022-03-11 17:09:51 -08:00
Arceveti
41c25a63c7 Animation ID enum usage 2022-03-11 16:58:55 -08:00
Arceveti
d79ce5a6d4 Move some more variable assignments out of if statements 2022-03-11 16:32:47 -08:00
Arceveti
e63762d16f small shadow.c formatting fixes 2022-03-11 16:07:32 -08:00
Arceveti
19140bd181 Disable WALL_KICK_TOP_OF_WALLS by default 2022-03-11 15:33:26 -08:00
Arceveti
1197ece93b Move some variable assignments out of if statements 2022-03-11 15:32:35 -08:00
Arceveti
c719655874 Fix climbing down into ledge grab from an ungrabbable floor 2022-03-11 14:27:36 -08:00
Arceveti
2db4e3bbfd Fix LEDGE_GRABS_CHECK_SLOPE_ANGLE 2022-03-11 13:26:09 -08:00
Arceveti
2965c63b0f Add WALL_KICK_TOP_OF_WALLS config define 2022-03-11 13:24:47 -08:00
Arceveti
6d53c7c343 Fix cancelled ledge grabs preventing wall kicks 2022-03-10 16:41:14 -08:00
Arceveti
3ed35e7ee8 Fix false ledge grabs caused by walls above the grabbed floor 2022-03-10 16:38:40 -08:00
Arceveti
21338a2f19 Fix ledge grab wall angle check 2022-03-10 16:38:14 -08:00
Arceveti
cbd714bef5 remove duplicate define for slow ledge grab action 2022-03-09 12:49:40 -08:00
Arceveti
229a185f46 convert more VERSION_EU ifdefs to MULTILANG 2022-03-08 13:40:25 -08:00
Arceveti
959bd977fa Merge branch 'develop/2.0.1' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-03-08 12:49:40 -08:00
Arceveti
82b69cb0b0 Use (MARIO_HITBOX_HEIGHT / 2) in water_ring_calc_mario_dist 2022-03-08 12:47:50 -08:00
Arceveti
5e707ca2b9 Clean up some object_constants.h enums 2022-03-05 14:16:17 -08:00
Arceveti
ccbba15c37 Fix whitespace in create_gfx_task_structure 2022-03-05 13:46:40 -08:00
Arceveti
2e2fed1d9b Tiny puppylights formatting fix in unload_deactivated_objects_in_list 2022-03-05 13:44:47 -08:00
Arceveti
6ee89498a1 Fix bowser sky flames bhv names 2022-02-27 01:08:23 -08:00
Arceveti
c2b1bd1530 Remove duplicate goddard matrix struct 2022-02-26 20:52:32 -08:00
Arceveti
5a5dea44b7 Fix start button resetting game on debug level select 2022-02-26 20:33:15 -08:00
Arceveti
1b72541016 Fix env maps with FIX_REFLECT_MTX disabled 2022-02-25 18:54:59 -08:00
Arceveti
b36651ce79 Rename MARIO_EYE_LEVEL to MARIO_EYE_HEIGHT 2022-02-25 17:24:07 -08:00
Arceveti
01b7926661 Add STATIC_LIGHTS config define 2022-02-25 17:23:28 -08:00
Arceveti
e390a644d5 Add G_CC_ENVIRONMENT 2022-02-25 17:19:49 -08:00
Arceveti
1f75635a8c remove gotos in puppylights.c 2022-02-25 17:00:44 -08:00
Arceveti
3ae4c02054 puppylights formatting consistency 2022-02-25 16:53:13 -08:00
Arceveti
5067aba0eb move evaluate_cubic_spline to math_util 2022-02-25 15:58:27 -08:00
Arceveti
6f7fd90c0a camera enum usage 2022-02-25 15:23:38 -08:00
Arceveti
de0e252477 Fix camera collision & obstruction checks 2022-02-25 14:50:27 -08:00
Arceveti
bc536a7732 ENABLE_VANILLA_CAM_PROCESSING ifdefs 2022-02-25 13:12:38 -08:00
Arceveti
31ea31ec02 Add MAX_COLLISION_RADIUS 2022-02-25 12:42:59 -08:00
Arceveti
a06297b69f Clean up in update_parallel_tracking_camera 2022-02-25 12:32:53 -08:00
Arceveti
ee5b7a791d remove redundant breaks 2022-02-25 12:00:53 -08:00
Arceveti
c67bd7c9c1 Find a new floor when grabbing a pole instead of using a potentially null existing floor 2022-02-25 11:49:19 -08:00
Arceveti
b62a27d4d2 Improve GROUND_POUND_DIVE and GROUND_POUND_DIVE_CHANGES_DIRECTION 2022-02-25 11:40:12 -08:00
Arceveti
785ecdaf25 whitespace consistency fix 2022-02-24 19:49:48 -08:00
Arceveti
9338fa1c5c G_RM_CLD_SURF in dl_transition_color and render_textured_transition 2022-02-24 19:01:59 -08:00
Arceveti
ffe6c177b6 Remove or mark some unused goddard stuff 2022-02-21 19:33:58 -08:00
Arceveti
1509cf4cb5 Improve pole fix comments 2022-02-21 18:58:29 -08:00
Arceveti
58cfa854e9 Add GROUND_POUND_DIVE_CHANGES_DIRECTION 2022-02-21 16:35:54 -08:00
Arceveti
024ac871b3 Fix pole fix issue causing clipping into the floor & upwarp when grabbing pole bottoms + fix potential pole related crash 2022-02-21 16:31:04 -08:00
Arceveti
012602853e min/max func whitespace fix 2022-02-21 16:11:56 -08:00
Arceveti
fe582afb9e Further SHINDOU_POLES ifdef cleanup 2022-02-21 15:39:35 -08:00
Arceveti
e7e49ede62 OBJ_MOVE_NONE usage 2022-02-21 15:31:02 -08:00
Arceveti
ca59680cd0 Remove some extra parentheses in behavior_data.c 2022-02-21 15:23:49 -08:00
Arceveti
2c956657bb velConv variable no longer needed 2022-02-21 15:05:26 -08:00
Arceveti
d4bd046367 Clean up SHINDOU_POLES define/ifdefs 2022-02-21 14:58:16 -08:00
Arceveti
76a499a5e4 fix whitespace inconsistency in interaction.c 2022-02-21 14:49:51 -08:00
Arceveti
ed1d6cc0e3 Add enum for play_climbing_sounds direction arg 2022-02-21 14:47:40 -08:00
Arceveti
f64b523368 Add GROUND_POUND_DIVE 2022-02-21 14:35:09 -08:00
Arceveti
53967e17d7 Make analog_stick_held_back a function and move it to mario.c 2022-02-21 14:34:52 -08:00
Arceveti
03bafbcac0 Add matrix stack fix credit to readme 2022-02-21 14:05:09 -08:00
Arceveti
c1448eb207 Clean up spawn_macro_objects 2022-02-19 16:56:08 -08:00
Arceveti
9511281ee9 Add SpecialPresetTypes enum 2022-02-19 16:08:53 -08:00
Arceveti
9822c04cd0 Free up object field 0x4B for object-specific use 2022-02-19 16:00:53 -08:00
Arceveti
557c420569 re-implement levels with rooms check fix 2022-02-19 15:48:43 -08:00
Arceveti
1aaaae4760 bhv_init_room for bhvBbhTumblingBridge, bhvExclamationBox, bhvMessagePanel 2022-02-19 15:46:57 -08:00
Arceveti
39798a1b6d Add bhv_init_room to bhvMips 2022-02-19 15:32:43 -08:00
Arceveti
886e364068 Fix star doors rendering even when Mario isn't in the same room 2022-02-19 15:30:49 -08:00
Arceveti
f57ec7c73e Remove outdated undefs 2022-02-19 15:16:14 -08:00
Arceveti
e4e78e0060 Fix gd_ptint_ prefixes in gd_math + some gd_math optimization/cleanup 2022-02-19 15:15:27 -08:00
Arceveti
576ec410e0 remove dead code from setup_lights 2022-02-19 15:14:49 -08:00
Arceveti
e38d14820e Goddard flag enums + name some unknowns + remove fillers + some cleanup 2022-02-19 14:20:33 -08:00
Arceveti
f6421d82f9 Fix print_mapinfo and debug.c boolean increments 2022-02-19 11:12:50 -08:00
Arceveti
eac14b09e6 Remove some extra/duplicate newlines 2022-02-18 15:26:39 -08:00
Arceveti
5f73f53c43 Use G_RM_CLD_SURF for full screen transparency & dialog boxes 2022-02-18 15:06:27 -08:00
Arceveti
1af1b3937d More puppycam formatting 2022-02-18 14:55:06 -08:00
Arceveti
ed2890336c Add MARIO_EYE_LEVEL define 2022-02-18 12:14:03 -08:00
Arceveti
cbca469660 obj_has_behavior usage 2022-02-18 11:50:19 -08:00
Arceveti
be6d76dc70 cutscene_spawn_obj enum usage 2022-02-18 11:34:34 -08:00
Arceveti
9cba034725 Remove unused comment & check in camera.c + fix cutscene_door_loop check 2022-02-18 11:29:28 -08:00
Arceveti
50c0bf8db8 Update comment in obj_is_in_view 2022-02-18 11:28:39 -08:00
Arceveti
cb40d9b938 Convert floats to ints in config files + add some vanilla values in comments 2022-02-18 11:27:47 -08:00
Arceveti
a02607e03b Change instances of 0.0f - x to -x 2022-02-17 17:19:00 -08:00
Arceveti
78b90f20db use RGBA32 component macros in debug_box.c env color 2022-02-17 17:17:32 -08:00
Arceveti
5d1c583f8e fix goddard routine names array bounds check in imin() 2022-02-17 17:12:47 -08:00
Arceveti
455f09031f wiggler.inc.c ineq swap 2022-02-17 17:11:41 -08:00
Arceveti
3c4994fe56 Remove outdated comment 2022-02-17 17:11:27 -08:00
Arceveti
68ae7e8602 Fix wrong texture usage in goddard/renderer.c 2022-02-17 17:10:54 -08:00
Arceveti
bd423778dc Merge branch 'develop/2.1.0-matrix-stack-change' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-02-17 00:24:18 -08:00
Mr-Wiseguy
d09bb4ef25 Removed unnecessary matrix multiplications in geo_process_object 2022-02-16 23:46:29 -05:00
Mr-Wiseguy
2c5bf00235 Removed some accidentally added files 2022-02-16 23:46:29 -05:00
Arceveti
ad9a44e033 Fix debug level select happening if L is pressed any time on mario head screen 2022-02-16 15:17:03 -08:00
Arceveti
5a6929f4b4 Convert some object_constants.h define lists to enums (part 4) 2022-02-16 15:12:42 -08:00
Arceveti
2d71eab68e Convert some object_constants.h define lists to enums (part 3) 2022-02-16 14:37:27 -08:00
Arceveti
1b1662587f Convert some object_constants.h define lists to enums (part 2) 2022-02-16 13:49:30 -08:00
Arceveti
d6cbfe3641 Convert some object_constants.h define lists to enums 2022-02-16 13:10:13 -08:00
Arceveti
5ba722e4af obj_mark_for_deletion usage 2022-02-16 12:16:32 -08:00
Arceveti
ca2a34cd43 Remove painting floor check macros 2022-02-16 12:12:15 -08:00
Arceveti
5ca6de67cd More camera.c formatting 2022-02-16 12:08:43 -08:00
Arceveti
5eeec0e6a3 Fix inconsistent newline formatting 2022-02-16 11:23:38 -08:00
Arceveti
d8381d44bd Wiseguy's geo_process_object matrix optimization 2022-02-16 11:14:43 -08:00
Arceveti
f4a69f3d4a Remove 'construct_float' from 'geo_process_level_of_detail' 2022-02-15 22:40:27 -08:00
Arceveti
bf87eee49a Merge branch 'develop/2.1.0-matrix-stack-change' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-02-15 21:53:27 -08:00
Arceveti
aeaca2a880 Fix geo_process_level_of_detail 2022-02-15 21:45:12 -08:00
Arceveti
647599eb1d Fix goddard crash 2022-02-15 21:45:06 -08:00
Arceveti
c3c97cacf6 Merge 'develop/2.1.0-matrix-stack-change' into 'develop/arceveti/general_2' 2022-02-15 21:43:16 -08:00
Mr-Wiseguy
ce31dd4586 Restored vanilla light and env map directions under new matrix stack 2022-02-15 19:44:29 -05:00
Mr-Wiseguy
58d2d3c20f Fixed some areas where the game was previously extracting the camera matrix from various matrices 2022-02-14 22:18:00 -05:00
Arceveti
3f4166830e Optimize out some vec3f_copy's from mtxf_align_terrain_normal 2022-02-14 18:48:52 -08:00
Mr-Wiseguy
f90ad6d2a8 Fixed shadows with new matrix stack 2022-02-14 21:21:51 -05:00
Mr-Wiseguy
ec21aa7e74 Fixed billboarding with new matrix stack 2022-02-14 21:17:24 -05:00
Mr-Wiseguy
11b3bff9f0 Corrected cameraToObject for the new matrix stack (fixes culling and sound) 2022-02-14 19:14:03 -05:00
Mr-Wiseguy
cc7165c1ea Moved camera matrix into projection stack 2022-02-14 18:15:37 -05:00
Arceveti
e7a1796a36 Remove outdated comment 2022-02-14 14:57:01 -08:00
Arceveti
49d2da4572 Merge branch 'develop/2.0.2-puppycam-menu-data' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-02-14 14:48:42 -08:00
Arceveti
f34b9144ea Merge branch 'develop/2.0.2-fix-audio-flags' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-02-14 14:47:47 -08:00
Mr-Wiseguy
9b0b1312fd Wrote function for setting up global light direction in the frame 2022-02-14 17:42:18 -05:00
Arceveti
7bf3e30d7d puppycam formatting + optimization + cleanup 2022-02-14 14:42:12 -08:00
Mr-Wiseguy
9ed1f1a569 Added define guards for the profiler 2022-02-14 17:41:05 -05:00
Mr-Wiseguy
aa04129fd2 Ran script to convert all light commands to lightcolor commands 2022-02-14 17:01:42 -05:00
Mr-Wiseguy
9c645dc642 Changed lingering manual light struct definitions to gdSPDefLights1, made a dummy light for Koopa's pink shorts 2022-02-14 16:56:51 -05:00
Arceveti
245def9efb camera.c formatting 2022-02-14 13:27:29 -08:00
Arceveti
92f5fc4a00 remove construct_float from degrees/radians/angles conversion macros 2022-02-14 11:53:20 -08:00
Arceveti
dd3dea4be4 fix CameraTrigger whitespace formatting 2022-02-14 11:33:11 -08:00
Arceveti
12222ab07a Fix rotate_camera_around_walls 2022-02-14 11:08:49 -08:00
Arceveti
75694a92c2 Merge branch 'comment-issue' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-02-14 10:41:12 -08:00
Arceveti
48d26e65c3 Remove redundant 'gMarioPlatform' pointer 2022-02-13 21:35:01 -08:00
Arceveti
3a820aaa67 Allow for use of controller ports 3 and 4 2022-02-13 19:00:28 -08:00
Arceveti
a02689fcc2 Fix objects' graphical position being at 0,0,0 for 1 frame after being spawned 2022-02-13 17:13:12 -08:00
Arceveti
52b4a4db6c use vanilla decomp formatting for setting Mario's gfx angle 2022-02-13 16:47:40 -08:00
Arceveti
1353f96c39 small formatting fix in bhv_controllable_platform_loop 2022-02-13 16:34:14 -08:00
Arceveti
f9c10f143a Fix duplicate define in level_script.c 2022-02-13 16:22:25 -08:00
Arceveti
214701b8a5 Remove some unused args from object_list_processor functions 2022-02-13 16:12:31 -08:00
Arceveti
6ed276db5a Split find_water_floor_from_list into find_water_bottom_from_list and find_water_top_from_list to allow for checking for dynamic water surfaces. 2022-02-13 10:50:08 -08:00
someone2639
614077ce55 Fix some bad comment descriptions in math_util 2022-02-11 20:47:51 -05:00
Arceveti
4891ea0cc2 Rename 'SURFACE_NEW_WATER' to 'SURFACE_NEW_WATER_TOP' with backwards compatibility 2022-02-10 18:02:18 -08:00
Arceveti
898238c512 some shadow.c optimization 2022-02-10 18:00:43 -08:00
Arceveti
3792407c51 print.c formatting 2022-02-09 17:13:58 -08:00
Arceveti
ebf1379e66 surface_collisions optimization + formatting 2022-02-09 15:47:03 -08:00
Arceveti
8b14a8a591 object_list_processor optimization + formatting 2022-02-09 13:37:09 -08:00
Arceveti
ab5bf1ef7c screen_transition optimization + formatting 2022-02-09 12:20:09 -08:00
Arceveti
4a061bb2d2 Make 'vec3_normalize_max' macro into a function 'vec3f_normalize_max' 2022-02-09 12:07:26 -08:00
Arceveti
f89f6936d3 Rename 'MODEL_STATE_OPACITY_MASK' to 'MODEL_STATE_NOISE_OPACITY_MASK' 2022-02-09 11:56:38 -08:00
Arceveti
7b8db75574 Add LOAD_OBJECT_COLLISION_NEAR_CAMERA 2022-02-09 11:46:09 -08:00
Arceveti
45b8e8b8ec Remove extra header include in math_util 2022-02-09 11:13:28 -08:00
Arceveti
b2b95db05d construct_float usage 2022-02-08 22:15:29 -08:00
Arceveti
d36223b44c remove unused variable from geo_process_z_offset 2022-02-08 21:09:52 -08:00
Arceveti
becff41f4a Add mtx_get_float and mtx_set_float 2022-02-08 21:09:03 -08:00
Arceveti
fe18510469 Fix geo_process_z_offset 2022-02-08 20:08:07 -08:00
Arceveti
8d050c20e3 Add GRAPH_RENDER_NONE 2022-02-08 18:05:54 -08:00
Arceveti
c87feb7e66 Initialize graphNode->drawingLayer in init_scene_graph_node_links 2022-02-08 18:05:27 -08:00
Arceveti
d51708e026 Split GraphNode drawingLayer from flags 2022-02-08 17:37:05 -08:00
Arceveti
f37e3db39c Make some obj_behaviors.c functions s32 2022-02-08 16:54:35 -08:00
Arceveti
3dd8cc0bd5 envfx optimization + name unknowns + formatting 2022-02-08 16:49:17 -08:00
Arceveti
21295f098f struct SurfaceNode offsets 2022-02-08 16:39:24 -08:00
Arceveti
ead83dc99e Fix spelling typo in NUM_CELLS comment 2022-02-08 14:14:50 -08:00
Arceveti
722e093c3e Some typedef usage & BIT macro usage 2022-02-08 14:12:20 -08:00
Arceveti
91bd33aa82 Move precomputed cosine degrees defines to math_util.h 2022-02-08 13:51:59 -08:00
Arceveti
6e4f9ea607 Add SET_LOW_U16_OF_32 & SET_LOW_S16_OF_32 2022-02-08 13:48:09 -08:00
Arceveti
2c95237e5d sm64.h enum cleanup & documentation 2022-02-08 13:37:19 -08:00
Arceveti
a9ff09ad63 Make sm64.h action defines use act flag enums 2022-02-08 11:59:10 -08:00
Arceveti
c683028d23 optimize numWalls position in struct WallCollisionData 2022-02-07 21:10:20 -08:00
Arceveti
1026c3e29b Slight OBJECTS_REJ optimization in geo_process_master_list_sub 2022-02-06 14:40:35 -08:00
Arceveti
5fefdcfdae Fix silhouette occlude layers being rendered twice when OBJECTS_REJ is disabled + make LAYER_ALPHA_DECAL available regardless of silhouette 2022-02-06 14:23:13 -08:00
Arceveti
41e75466b4 Move the newer inline asm functions to math_util.h 2022-02-06 13:01:55 -08:00
Arceveti
5d3ea0f0d8 Bool32 typedef usage for math_util appriach bool functions 2022-02-06 12:36:11 -08:00
Arceveti
5dd0419811 eval_script_op enum usage + formatting 2022-02-06 12:30:34 -08:00
Arceveti
6145cffffd Add BHV_CMD_GET macros for missing types 2022-02-06 12:27:17 -08:00
Arceveti
02b1ad81a3 Prevent entering debug free move when crouching 2022-02-06 12:18:18 -08:00
Arceveti
06e322c47d Add comment for RenderPhases enum 2022-02-06 12:13:33 -08:00
Arceveti
667c87588b Add mention of draw order changes to OBJECTS_REJ and SILHOUETTE comments in config_graphics.h 2022-02-06 12:01:20 -08:00
Arceveti
2ecaed00d3 Update geo_process_master_list_sub description comment + fix some formatting 2022-02-06 11:58:31 -08:00
Arceveti
a352b47e45 Add cur_obj_set_collision_data 2022-02-06 11:55:55 -08:00
Arceveti
2cd7f0b59d Re-add comment about clip ratio in init_rsp 2022-02-06 11:55:43 -08:00
Arceveti
5ba031420a Add find_surface_on_ray_between_points 2022-02-05 16:36:16 -08:00
Arceveti
c87898526a Make 'SURFACE_YAW' a function and rename it to 'get_surface_yaw' 2022-02-05 16:27:47 -08:00
Arceveti
35ccebb1be Make 'get_surface_height_at_location' a function and rename it to 'get_surface_height_at_pos' 2022-02-05 16:18:16 -08:00
Arceveti
05690d229c mario.c enums & formatting consistency 2022-02-05 16:06:01 -08:00
Arceveti
3ac4575791 Add unsigned typedef names + fix whitespace in types.h 2022-02-05 15:54:05 -08:00
Arceveti
bbd4d2faf0 Movtex typedef usage 2022-02-04 15:29:15 -08:00
Arceveti
e4fa9b47f4 Fix yoshi waiting for 100 lives when DISABLE_LIVES is enabled 2022-02-02 16:11:17 -08:00
Arceveti
74a873d2d5 Add config for cap timers 2022-02-02 16:05:41 -08:00
Arceveti
057d981456 Guard set_mario_initial_cap_powerup by ENABLE_VANILLA_LEVEL_SPECIFIC_CHECKS 2022-02-02 15:54:29 -08:00
Arceveti
b3e4d14c22 Make sCapFlickerFrames static const 2022-02-02 15:52:51 -08:00
Arceveti
4e4ca992a3 Improve switch order in geo_call_global_function_nodes_helper 2022-02-02 15:08:04 -08:00
Arceveti
cc7d93c544 Add GeoProcessJumpTable 2022-02-02 14:57:16 -08:00
Arceveti
06e6382d4c Clean up painting_generate_mesh a bit + fix commnets formatting 2022-02-02 14:31:05 -08:00
Arceveti
8b12260c40 Fix pitch/yaw absi in next_lakitu_state 2022-02-02 14:24:18 -08:00
Arceveti
dc22db2821 Bool32 for vec3f_compare functions 2022-02-02 14:23:00 -08:00
Arceveti
9561c3af7f Consolidate code for duplicate camera.c and math_util functions 2022-02-02 14:20:57 -08:00
Arceveti
88912eae39 Optimize turn_obj_away_from_surface & current_mario_room_check + move absf_2 backwards compatibility define to math_util.h 2022-02-02 13:09:59 -08:00
Arceveti
b77d7c96dd Fix trig derivatives in update_sliding 2022-02-02 13:07:29 -08:00
Arceveti
2618b51b6b Fix ceil margin check 2022-02-02 12:17:37 -08:00
Arceveti
d656ccbd0a Consolidate camera.c fov functions 2022-02-02 12:08:38 -08:00
Arceveti
c5b9838b76 Add GODDARD_DEBUG_PRINTF config define 2022-02-02 11:26:55 -08:00
Arceveti
7d2ec97d78 Remove prevent_bss_reordering.h includes 2022-02-02 10:59:01 -08:00
Arceveti
94b770b25b player2_rotate_cam CLAMP macro usage 2022-02-02 10:56:36 -08:00
Arceveti
cba5fcd222 Clean up a few ifdefs and fix bug comments 2022-02-02 10:54:41 -08:00
Arceveti
aa862c2f60 main.c spTask names in switch + small whitespace fix 2022-02-02 10:30:48 -08:00
Arceveti
fb67f18ead Add BackgroundNoiseOp enum 2022-02-02 10:23:19 -08:00
Arceveti
e17367f76e Add TIME_STOP_FLAGS_NONE 2022-02-01 23:36:12 -08:00
Arceveti
a3bf74b77c CutsceneSplinePoint whitespace alignment 2022-02-01 23:34:30 -08:00
Arceveti
7ae988b09c Make camera.c functions 32 bit + fix else in cutscene_enter_painting 2022-02-01 23:09:00 -08:00
Arceveti
b7d6e1a56c Fix TTM painting crash when moving the camera immediately after entering 2022-02-01 23:04:40 -08:00
Arceveti
6200fba277 Slight painting_generate_mesh optimization 2022-02-01 22:50:13 -08:00
Arceveti
94a5a429f8 Fix Goddard Z press crash by stubbing gd_printf by default 2022-02-01 22:11:02 -08:00
Arceveti
7632aba660 remove stubbed functions from goddard/renderer.c 2022-02-01 22:07:30 -08:00
Arceveti
33b4465882 add newline at the end of osSyncPrintf in append_puppyprint_log 2022-02-01 22:02:08 -08:00
Arceveti
0d2940f912 Clarify crash handler ifdef 2022-02-01 21:53:59 -08:00
Arceveti
0bce883c16 Fix TTC clock mechanics with new paintings 2022-02-01 20:05:10 -08:00
Arceveti
ef305eea7f Fix copy paste error in generate_yellow_sparkles 2022-01-31 20:29:05 -08:00
Arceveti
2b9a928f90 Remove some small stuff that was just needed for matching vanilla 2022-01-31 20:24:59 -08:00
Arceveti
2d03572d3c Remove goddard UB ifdefs 2022-01-31 20:12:42 -08:00
Arceveti
719ba375be intro geo formatting 2022-01-31 20:03:15 -08:00
Arceveti
ed0016c7f4 Enable KEEP_MARIO_HEAD by default 2022-01-31 19:08:12 -08:00
Arceveti
f43c5c4e03 Clarify comment in bhv_painting_init 2022-01-31 19:07:54 -08:00
Arceveti
cd793de09b Whitespace fix in object_fields.h 2022-01-31 18:42:20 -08:00
Arceveti
1329a45f51 Rename 'hitboxView' to 'gVisualHitboxView' and 'surfaceView' to 'gVisualSurfaceView' 2022-01-31 17:50:03 -08:00
Arceveti
9a561df389 Add enum for gVisualDebugViewCycle 2022-01-31 17:43:16 -08:00
Arceveti
2dd3808f71 Rename 'viewCycle' to 'gVisualDebugViewCycle' 2022-01-31 17:35:32 -08:00
Arceveti
3faba2722c make star_dance_bound_yaw use inline abss function 2022-01-31 17:15:16 -08:00
Arceveti
68c8aeb3d6 Add asm inline ceilf & floorf 2022-01-31 16:53:15 -08:00
Arceveti
49ab98b789 Make find_floor_slope s32 2022-01-31 16:02:10 -08:00
Arceveti
d4b9b708b8 Update RAYCAST_WALL_COLLISION comment 2022-01-31 16:01:30 -08:00
Arceveti
3db0f4c2ca Add PITCHED_LONG_JUMPS 2022-01-31 15:58:42 -08:00
Arceveti
50399aedc9 Reduce code repetition in find_surface_on_ray_cell 2022-01-31 13:42:00 -08:00
Arceveti
f447173abe Improve RaycastFlags enum 2022-01-31 13:16:49 -08:00
Arceveti
3ebce8e203 Slight raycast_collision_walls optimization 2022-01-31 12:58:28 -08:00
Arceveti
3a2ac42e9a fix arg name order for raycast_collision_walls in surface_collision.h 2022-01-31 12:54:16 -08:00
Arceveti
56138ddc9a Add RAYCAST_WALL_COLLISION 2022-01-29 21:20:03 -08:00
Arceveti
37557a18af Add various defines for mario collision constants 2022-01-29 20:49:34 -08:00
Arceveti
0abc97c092 Tiny formatting fix 2022-01-29 20:38:55 -08:00
Arceveti
56e0a64856 Convert some longs to floats 2022-01-29 20:25:52 -08:00
Arceveti
30505ce50b Update readme + add/fix Kaze credit 2022-01-29 14:23:29 -08:00
Arceveti
fa5ded2347 Make get_cell_coord a function + add Kaze's cell buffer fix 2022-01-29 14:22:04 -08:00
Arceveti
c95a55b21b Improve note in silhouette comment 2022-01-28 19:06:17 -08:00
Arceveti
636e127c5e Improve DISABLE_AA define in n64 gbi.h 2022-01-28 17:00:59 -08:00
Arceveti
7614f0bdef remove unused nop geo commands 2022-01-28 15:45:35 -08:00
Arceveti
fc809909bf Combine translation & rotation nodes, & fix graph node comments 2022-01-28 15:42:35 -08:00
Arceveti
62e2fb2f9e local pointer to MarioState struct in execute_mario_action, init_mario, and init_mario_from_save_file 2022-01-28 14:13:22 -08:00
Arceveti
ee31423400 degrees_to_angle & angle_to_degrees usage 2022-01-28 13:46:45 -08:00
Arceveti
7eac14fcd7 Merge branch 'develop/2.0.2/puppyprint_env_color' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-28 13:04:57 -08:00
Arceveti
1bdc3f8e04 Fix build 2022-01-28 13:04:24 -08:00
Arceveti
b811bad9f1 Remove extra env reset 2022-01-28 12:46:08 -08:00
Arceveti
20e380f0be Merge branch 'develop/2.0.2/puppyprint_env_color' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-28 12:41:06 -08:00
Arceveti
bb03fe5bc2 Reset env color in render_game instead 2022-01-28 12:38:31 -08:00
Arceveti
9c2a721578 Merge branch 'develop/2.0.2/puppyprint_env_color' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-27 21:37:45 -08:00
Arceveti
0cfe36c8c0 Fix puppyprint env color not being reset properly 2022-01-27 21:36:43 -08:00
Arceveti
30df6e9ce8 Fix puppyprint env color not being reset properly 2022-01-27 21:28:21 -08:00
Arceveti
53ae9472cf Extended Bounds config refactor 2022-01-27 21:25:50 -08:00
Arceveti
e774e92287 Split 'ALLOW_OOB' into 'ALLOW_NULL_FLOORS' and 'ALLOW_OUTSIDE_LEVEL_BOUNDS' 2022-01-27 14:50:41 -08:00
Arceveti
8d62b5a17b Add menu_mtx_push_op 2022-01-27 12:45:01 -08:00
Arceveti
ac6f6d4e75 Change default extended bounds mode to 0 2022-01-27 12:44:04 -08:00
Arceveti
b0523a1ee1 Remove unused SIL_CVG_THRESHOLD define 2022-01-27 12:43:30 -08:00
Arceveti
980ca7dd1c Merge branch 'develop/2.0.2/fix_fix_water_rings' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-26 18:26:13 -08:00
Arceveti
ade548bfea Fix build error when FIX_WATER_RINGS is disabled 2022-01-26 18:22:16 -08:00
Arceveti
85a4f94fa9 geo_commands & geo_layout enums 2022-01-26 18:01:16 -08:00
Arceveti
cb1a987afa Make 'inc_mat_stack' and 'append_dl_and_return' nonstatic + add 'get_curr_anim_info' + rendering_graph_node.c formatting fixes 2022-01-26 17:28:03 -08:00
Arceveti
93d2bf38c9 Fix build warning in func_8018100C 2022-01-26 15:48:27 -08:00
Arceveti
7e3b54a315 Bowser sub action documentation 2022-01-26 15:34:51 -08:00
Arceveti
96e7d6a010 bowser.inc.c obj_become_tangible/intangible usage 2022-01-26 15:26:40 -08:00
Arceveti
b4759e70bf mario.c absf usage + small refactoring 2022-01-26 15:25:41 -08:00
Arceveti
8dd24bc83c Remove unused ukiki function and bowser beta leftover 2022-01-26 15:21:30 -08:00
Arceveti
d1d5971724 Bowser & Boo 'INTERACT_NONE' usage 2022-01-26 15:13:26 -08:00
Arceveti
3b95c16362 Improve PunchStateTypes enum 2022-01-26 15:12:24 -08:00
Arceveti
5eccc917e9 Use inline abs functions in camera.c, puppycam2.c, and puppylights.c 2022-01-26 13:52:11 -08:00
Arceveti
1bfd44f2aa Improve inline abs functions & add description for FLT_IS_NONZERO 2022-01-26 13:51:34 -08:00
Arceveti
dc4a0b9151 Improve crash screen scrolling 2022-01-25 01:57:36 -08:00
Arceveti
7cee4ef9fe A few formatting fixes in surface_load.c 2022-01-24 20:29:35 -08:00
Arceveti
53437e41a2 Fix Bully NaN crash 2022-01-24 17:17:07 -08:00
Arceveti
235df32ab9 Use sMarioGeometry.waterHeight in calc_y_to_curr_floor 2022-01-24 17:09:49 -08:00
Arceveti
72bda3a422 Replace doubles with floats 2022-01-24 15:51:05 -08:00
Arceveti
3188001c57 Make donut platforms into individual objects instead of one level-specific spawner with hardcoded positions 2022-01-24 14:55:54 -08:00
Arceveti
0bd2f8cf97 Small formatting fixes in some behavior files 2022-01-24 13:19:40 -08:00
Arceveti
a535dab966 Reimplement 'FIX_WATER_RINGS' 2022-01-24 11:22:33 -08:00
Arceveti
e5f2c7d119 Reimplement FIX_WATER_RINGS 2022-01-24 11:18:01 -08:00
Arceveti
e5f670cafa Fix rectangle 2022-01-24 11:04:13 -08:00
Arceveti
a08258da0a Add warning for console crash when moving 65536 units away wien ALLOW_OOB is enabled 2022-01-23 21:48:20 -08:00
Arceveti
0876eb4eee Add HOLP_HEIGHT_FIX 2022-01-23 19:20:13 -08:00
Arceveti
3a485b2a9b MARIO_COLLISION_RADIUS usage + some formatting fixes 2022-01-23 19:12:12 -08:00
Arceveti
01a6f0c049 Fix breath meter showing up in cannon hud 2022-01-23 18:35:22 -08:00
Arceveti
b46b607c91 Replace most instances of gDisplayListHead++ with a local pointer 2022-01-23 18:34:11 -08:00
Arceveti
9307177bc2 Fix build warnings with UNF ?= 1 2022-01-23 18:29:41 -08:00
Arceveti
b4f7b61417 Merge branch 'develop/2.0.2/fix_objects_rej' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-23 17:23:52 -08:00
Arceveti
47623a4297 Actually fix Mario rendering 2022-01-23 17:23:19 -08:00
Arceveti
ada64ae461 Merge branch 'develop/2.0.2/fix_objects_rej' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-23 15:33:52 -08:00
Arceveti
0d4c100e3e Fix Mario rendering 2022-01-23 15:33:03 -08:00
Arceveti
0587fa2a1d Merge branch 'develop/2.0.2/fix_objects_rej' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-23 13:54:31 -08:00
Arceveti
7714accddd Fix OBJECTS_REJ build error & warning 2022-01-23 13:45:38 -08:00
Arceveti
59bfc5b19e Clean up & document ledge grab code a bit 2022-01-22 22:04:11 -08:00
Arceveti
5c382600c3 Merge branch 'develop/2.1.0-shear-shadows' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-22 19:22:29 -08:00
Arceveti
0796286581 Merge branch 'develop/2.1.0-shear-shadows' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-22 19:20:10 -08:00
Mr-Wiseguy
e113978834 Fixed typo in config_graphics.h 2022-01-22 22:19:40 -05:00
Mr-Wiseguy
37632f3954 Implemented shear shadows and slightly faster mtxf_to_mtx function 2022-01-22 22:13:12 -05:00
Arceveti
94ef672ec5 Fix crash screen framebuffer on console 2022-01-22 19:12:32 -08:00
Arceveti
cdb35e9fd0 Remove commented code 2022-01-22 18:54:12 -08:00
Arceveti
898a293d30 Revert FLT_IS_NONZERO 2022-01-22 18:53:51 -08:00
Arceveti
dd9d14febe SURFACE_YAW usage 2022-01-22 15:35:15 -08:00
Arceveti
69cf9986ca Enable BREATH_METER, HANDS_FREE_HOLDING_FIX, LEDGE_GRABS_CHECK_SLOPE_ANGLE, BLUE_COIN_SWITCH_RETRY, TINY_GOOMBA_ALWAYS_DROPS_COIN, MR_I_PITCH_SHOOTING 2022-01-22 14:20:25 -08:00
Arceveti
ddcd9bcd22 Merge branch 'develop/2.0.1' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-22 14:09:35 -08:00
Arceveti
59bd837ad1 Merge branch 'develop/2.0.1' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-21 20:53:41 -08:00
Arceveti
30ccf3b862 Merge branch 'develop/arceveti/crash_screen' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-21 19:03:38 -08:00
Arceveti
50cff1a700 More colors 2022-01-21 19:02:10 -08:00
Arceveti
2f539f8f74 insn_disasm syntax highlighting 2022-01-21 18:37:37 -08:00
Arceveti
64f6eab135 Change crash screen colors to use in-string hex codes 2022-01-21 18:12:55 -08:00
Arceveti
33250f39b5 Crash screen ascii support, colored font, better controls, framebuffer fix, stacktrace scrolling, togglable crash sound, and more 2022-01-21 18:10:12 -08:00
Arceveti
4225dc822e Merge branch 'develop/2.0.1' of https://github.com/Reonu/HackerSM64 into develop/arceveti/general_2 2022-01-20 20:01:03 -08:00
Arceveti
b066b22152 paintings.c formatting fixes 2022-01-20 19:53:40 -08:00
Arceveti
38c34f6c32 Remove unused enums 2022-01-20 19:37:26 -08:00
Arceveti
d40af9bdaf Remove unused gDddPaintingStatus 2022-01-20 19:19:14 -08:00
Arceveti
5789c2a4ab Replace 'gEnteredPaintingId' with 'gEnteredPainting' pointer 2022-01-20 19:15:02 -08:00
Arceveti
67d24758d6 Add 'obj_nearest_object_with_behavior_and_condition' and fix painting entrance cutscene with overlapping paintings 2022-01-20 19:04:43 -08:00
Arceveti
b85b3186fb Re-implement RR warp via invisible painting + convert painting struct members to object fields + fix issues with paintings near each other + fix painting eject sound + fix painting entrance & exit cutscenes 2022-01-20 18:28:05 -08:00
Arceveti
9f8abc8009 Make 'level_trigger_warp' and 'level_control_timer' return values 32 bits 2022-01-20 13:59:16 -08:00
Arceveti
72c55e876f area.c formatting fixes 2022-01-20 13:52:42 -08:00
Arceveti
44a65b36e9 Add OBJECT_FIELD_U16 and OBJECT_FIELD_PAINTING, also free up another space for object specific fields 2022-01-20 13:06:57 -08:00
Arceveti
39a7041cd5 Enable silhouette by default 2022-01-20 12:17:31 -08:00
Arceveti
02439a6e95 Add obj_become_intangible + improve cur_obj_find_nearest_object_with_behavior 2022-01-20 11:05:47 -08:00
Arceveti
f47927a8c2 Rename 'NUM_PAINTINGS' to 'NUM_PAINTING_WARP_NODES' 2022-01-19 17:49:13 -08:00
Arceveti
3e95a859b1 Sort donut platform groups in sDonutPlatformPositions 2022-01-19 17:46:48 -08:00
Axollyon
f29f6e5b5c Saves default conf on boot now, simplify condition 2022-01-19 17:19:48 -05:00
Mr-Wiseguy
331335c3c2 Fixed makefile issue causing audio files to be compiled with different flags the first time they're built 2022-01-18 16:25:22 -05:00
Arceveti
97d821cd77 Fix behavior script GOTO crashes 2022-01-18 09:14:13 -08:00
Arceveti
62cf6550ec Combine some painting functions and remove some unused struct members 2022-01-18 08:51:08 -08:00
Arceveti
a360e3c0a6 Combine painting_state arg + run painting_update_floors earlier 2022-01-18 07:20:16 -08:00
Arceveti
aa009cba7b Some paintings documentation 2022-01-18 06:57:44 -08:00
Arceveti
89d74b3545 Fix behavior command names of int/short operations 2022-01-18 06:24:43 -08:00
Arceveti
ea784b9e9e Add ALLOW_OOB + fix null floor crashes 2022-01-18 05:54:12 -08:00
Arceveti
b033308b31 COURSE_NUM_TO_INDEX usage 2022-01-18 05:05:54 -08:00
Arceveti
42af5c5985 Rename 'bhvDddMovingPole' to 'bhvBitfsSinkingCagePole' 2022-01-18 04:53:08 -08:00
Arceveti
f68fa0dfe8 Spelling fix 2022-01-18 04:51:53 -08:00
Arceveti
810858cedc Add 'MARIO_HITBOX_HEIGHT', 'MARIO_SHORT_HITBOX_HEIGHT', and 'MARIO_COLLISION_RADIUS' 2022-01-18 04:48:02 -08:00
Arceveti
3a9139e379 Replace 'find_room_floor' with 'get_room_at_pos' 2022-01-18 04:29:48 -08:00
Arceveti
58b9f7058f Add VARIABLE_NUM_STEPS 2022-01-18 03:27:34 -08:00
Arceveti
969ea2c6ea Change default number of subframe steps 2022-01-18 03:26:42 -08:00
Arceveti
a7d808f84c Add VERTICAL_CULLING 2022-01-18 02:42:54 -08:00
Arceveti
837a55a040 Add defines for unused sounds in sounds.h & name remaining sounds 2022-01-17 21:40:25 -08:00
Arceveti
c8e5dcef67 Fix vanilla paintings roll 2022-01-17 21:27:40 -08:00
Mr-Wiseguy
a7b208e8e8 Added CPU audio to lightweight profiler 2022-01-17 19:23:48 -05:00
Arceveti
a471544097 Merge https://github.com/CrashOveride95/ultrasm64 into develop/arceveti/general_2 2022-01-17 13:14:34 -08:00
Arceveti
dd2dc2b2bd Add config defines for number of steps (quarter steps) 2022-01-17 13:12:26 -08:00
Arceveti
eb405d3c8b Add unused entries to ObjFlags enum 2022-01-17 12:53:58 -08:00
Arceveti
e294292dd5 Add EXCLAMATION_BOXES_ALWAYS_SOLID 2022-01-17 12:53:00 -08:00
Arceveti
66cd292dcc Improve debug level select exit combo 2022-01-17 12:50:22 -08:00
Arceveti
67cacb4d14 Add knockback action index enums 2022-01-17 12:47:44 -08:00
Arceveti
db7e6dcb9b enum for act_idle actionArg 2022-01-17 12:45:35 -08:00
Arceveti
ced30c9659 Add ATTACK_FROM_LANDING 2022-01-17 12:45:01 -08:00
Arceveti
114f10a6a4 Improve shadow UVs 2022-01-17 12:43:08 -08:00
Arceveti
341356daac Add MIDAIR_STAR_DANCE 2022-01-17 12:40:29 -08:00
Arceveti
ec8caea02c Rename 'bhvFishGroup' to 'bhvAquariumBubbles' 2022-01-17 12:36:33 -08:00
Arceveti
61ef8bb9a8 Add IMMEDIATE_LONG_JUMPS 2022-01-17 12:34:44 -08:00
Arceveti
c9dca2cdc1 Remove unused beta function 2022-01-17 12:32:05 -08:00
Arceveti
12a8170bda Remove unused field in ExclamationBoxContents + activated_bf_plat defines 2022-01-17 12:31:07 -08:00
Arceveti
e17a469c72 Make GEO_ASM parameter an s32 2022-01-17 12:24:47 -08:00
Arceveti
2cd9275677 Add DEFAULT_DRAWING_DISTANCE define 2022-01-17 12:22:35 -08:00
Arceveti
2692320f9d Add painting objects 2022-01-17 12:21:26 -08:00
Arceveti
5137facd77 Add star glow 2022-01-17 12:19:35 -08:00
Arceveti
53e130b4cf Add GEO_Z_OFFSET 2022-01-17 12:16:42 -08:00
Arceveti
0cf38f63be Fix some config descriptions 2022-01-17 12:10:45 -08:00
Arceveti
8a4167b5f3 pole fix 2022-01-17 12:07:12 -08:00
Arceveti
6287804353 Move alignment macros to macros.h 2022-01-17 12:05:24 -08:00
Arceveti
6646edcade Painting id enums 2022-01-17 11:17:38 -08:00
Arceveti
abb64638f2 Remove outdated comment 2022-01-17 10:01:01 -08:00
Arceveti
05d85fea8c Use 'degrees_to_angle' in 'read_vec3s_angle' 2022-01-17 09:44:42 -08:00
Arceveti
077896456e Add 'vec3f_local_pos_to_world_pos' and 'vec3f_world_pos_to_local_pos' 2022-01-17 08:40:09 -08:00
Arceveti
970551cdc6 rectangle 2022-01-17 07:28:03 -08:00
Arceveti
6df32bd6ca Remove GRAPH_NODE_TYPE_FUNCTIONAL define & restore functionality using an alternative method. 2022-01-17 07:24:30 -08:00
Arceveti
f756c75fee Merge branch 'develop/2.0.1' of https://github.com/Reonu/HackerSM64 into develop/arceveti/painting_objects 2022-01-17 07:17:42 -08:00
Arceveti
4bc21fd32e New version of FLT_IS_NONZERO 2022-01-17 07:17:05 -08:00
Arceveti
9283a25960 Some formatting fixes 2022-01-17 07:16:53 -08:00
Mr-Wiseguy
52600eb453 Added RSP profiling to the lightweight profiler 2022-01-16 23:31:13 -05:00
Mr-Wiseguy
ee5f5adc9d Implemented new lightweight CPU/RDP profiler 2022-01-16 17:18:11 -05:00
Arceveti
19a68b94f6 object_helpers & obj_behaviors_2.c formatting fixes 2022-01-16 04:20:47 -08:00
Arceveti
a159b9d283 Fix DDD painting ID crash 2022-01-15 23:19:34 -08:00
Arceveti
7dcc2e866f obj_translate_local uses mtxf_translate_local_vec3f 2022-01-15 23:16:14 -08:00
Arceveti
4a0a19981c Merge branch 'develop/2.0.1' of https://github.com/Reonu/HackerSM64 into develop/arceveti/painting_objects 2022-01-15 23:04:43 -08:00
Arceveti
49ab678594 Rename 'mtxf_rotate_xy' to 'mtx_rotate_xy' 2022-01-15 23:00:39 -08:00
Arceveti
1f25450971 A couple tiny formatting fixes 2022-01-15 22:59:07 -08:00
Arceveti
309a28f85d paintings.c/paintings.h refactoring. Paintings no longer need 3 separate floors for wobble/ripples 2022-01-15 21:17:35 -08:00
Arceveti
7d3c38b185 + ratio 2022-01-14 21:57:17 -08:00
Arceveti
67b29b47fa Fix painting spikes + formatting 2022-01-14 19:36:47 -08:00
Arceveti
14639ed769 paintings.c formatting 2022-01-14 18:44:05 -08:00
Arceveti
928a407c07 Add OBJECT_FIELD_F32P 2022-01-14 18:32:54 -08:00
Arceveti
9bb09d0947 paintings.c formatting 2022-01-14 18:12:01 -08:00
Arceveti
8eb930c0b3 Add asF32P to object field union 2022-01-14 17:31:45 -08:00
Arceveti
43478ffaca paintings.c formatting 2022-01-14 17:31:10 -08:00
Arceveti
e6f7680791 Some interaction.c formatting 2022-01-14 17:15:50 -08:00
Arceveti
688c970e01 Add WARP_DEST_LEVEL_NUM_MASK 2022-01-14 15:50:32 -08:00
Arceveti
449ebc0a7a Re-implement painting changes from develop/arceveti/general & sm64v2 2022-01-14 15:30:13 -08:00
CrashOveride95
46b725b3fc make load now sends ROM to console by way of UNFLoader
To use, run make install when building UNFLoader to install it system wide
(this feature is currently in PR-status at that repo)
2022-01-12 19:27:06 -05:00
Arceveti
e63d20b420 Merge branch 'develop/arceveti/2.0.2/fix_levelnum_enum' of https://github.com/Reonu/HackerSM64 into develop/arceveti/collision_tests 2022-01-12 15:06:09 -08:00
Arceveti
ed3a9f77f4 Merge branch 'develop/arceveti/2.0.2/fix_non_us_builds' of https://github.com/Reonu/HackerSM64 into develop/arceveti/collision_tests 2022-01-12 15:05:55 -08:00
Arceveti
6980dcaa03 Fix level enum conflict with 99+ levels 2022-01-12 14:40:43 -08:00
Arceveti
03347f5ffd Fix build warnings & errors when building non-US versions 2022-01-11 21:44:56 -08:00
Arceveti
59ad3b7872 Merge branch 'develop/arceveti/2.0.2/consistent_config_formatting' of https://github.com/Reonu/HackerSM64 into develop/arceveti/collision_tests 2022-01-11 20:12:19 -08:00
Arceveti
77c777308b Merge branch 'develop/arceveti/2.0.2/wf_breakable_wall_drawing_distance' of https://github.com/Reonu/HackerSM64 into develop/arceveti/collision_tests 2022-01-11 20:09:07 -08:00
Arceveti
a3398ac240 Merge branch 'develop/arceveti/2.0.2/fix_credits_text' of https://github.com/Reonu/HackerSM64 into develop/arceveti/collision_tests 2022-01-11 20:08:53 -08:00
Arceveti
979507c38e Merge branch 'develop/arceveti/2.0.2/render_menu_buttons' of https://github.com/Reonu/HackerSM64 into develop/arceveti/collision_tests 2022-01-11 20:08:35 -08:00
Arceveti
b46ea36257 Merge branch 'develop/arceveti/2.0.2/non_stop_stars' of https://github.com/Reonu/HackerSM64 into develop/arceveti/collision_tests 2022-01-11 20:08:19 -08:00
Arceveti
a3e3d03174 Merge branch 'develop/arceveti/2.0.2/mandatory_clear_ram' of https://github.com/Reonu/HackerSM64 into develop/arceveti/collision_tests 2022-01-11 20:08:07 -08:00
Arceveti
6f123cc9a2 Merge branch 'develop/arceveti/2.0.2/rename_modified_assets' of https://github.com/Reonu/HackerSM64 into develop/arceveti/collision_tests 2022-01-11 20:07:40 -08:00
Arceveti
efebc84e44 Merge branch 'develop/2.0.1' of https://github.com/Reonu/HackerSM64 into develop/arceveti/collision_tests 2022-01-11 20:07:08 -08:00
Arceveti
6524aa7655 Set oDrawingDistance to 4500 for WF breakable walls 2022-01-11 20:05:12 -08:00
Arceveti
b46c39b7a4 Fix formatting inconsistencies in config files 2022-01-11 19:15:47 -08:00
Arceveti
22ba19a9a4 Fix credits text ifdef 2022-01-11 18:49:24 -08:00
Arceveti
ba67dee11b Fix render menu buttons functions 2022-01-11 18:30:50 -08:00
Arceveti
41c5aec748 Fix NON_STOP_STARS & bhvCelebrationStar related issues with Bowser keys 2022-01-11 17:28:47 -08:00
Arceveti
d3f1cf3e7d Make CLEARRAM mandatory 2022-01-11 14:56:28 -08:00
Arceveti
2fff062d11 Merge branch 'develop/2.0.1' of https://github.com/Reonu/HackerSM64 into develop/arceveti/collision_tests 2022-01-10 21:08:46 -08:00
Arceveti
b6a8a34555 Renamed HackerSM64 modified assets so they don't conflict with vanilla assets 2022-01-10 21:02:21 -08:00
Arceveti
8dbe75bfc9 Better Mr. I offset fix 2022-01-10 18:24:53 -08:00
Arceveti
d8a844482c Merge branch 'master' of https://github.com/Reonu/HackerSM64 into develop/arceveti/collision_tests 2022-01-09 18:10:44 -08:00
Arceveti
c9d85d671e Merge https://github.com/CrashOveride95/ultrasm64 into develop/arceveti/collision_tests 2022-01-09 18:09:47 -08:00
Arceveti
0a01b65348 Merge Ultrasm64 2022-01-09 17:57:14 -08:00
Arceveti
e8c9e5d799 whitespace fix 2022-01-08 00:42:59 -08:00
Arceveti
dab30aad2d implement math_util create_transformation_from_matrices and mtxf_held_object 2022-01-08 00:41:40 -08:00
Arceveti
c039fac22e whitespace fiix + function labelling 2022-01-08 00:39:34 -08:00
Arceveti
79a9f94a71 Re-implement some math_util changes from develop/arceveti/general 2022-01-08 00:35:26 -08:00
Arceveti
198388067c Remove deprecated 'register' keyword from math_util 2022-01-08 00:24:25 -08:00
Arceveti
5a0800c71a replace unused global vectors with identityMtx 2022-01-08 00:14:47 -08:00
Arceveti
c2ca2387ac load_object_collision_model local variables for marioDist, colDist, and and drawDist, + fix get_optimal_collision_distance when no collision data exists, + local object struct pointer for transform_object_vertices and load_object_surfaces 2022-01-08 00:13:33 -08:00
Arceveti
d8cf9ccbb6 load_static_surfaces hasForce consistency 2022-01-08 00:00:07 -08:00
Arceveti
7b41245a0c Fix wrong Y offset for Mr. I iris 2022-01-07 23:57:23 -08:00
Arceveti
16f931f71f JP Baserom is no longer required for US build 2022-01-07 23:56:38 -08:00
Arceveti
b010be6f87 Fix build warning when NO_GETTING_BURIED is enabled 2022-01-07 23:56:10 -08:00
Arceveti
6ab779db0b Make bhv_init_room automatically detect if the current area has room data instead of checking a hardcoded array of level numbers. 2022-01-07 23:55:21 -08:00
Arceveti
076382a995 Add config define to make JRB mist and DDD objects act-specific. 2022-01-07 23:53:52 -08:00
Arceveti
ee4ceb9fc8 Make is_behind_surface use existing surface normals 2022-01-07 23:51:40 -08:00
Arceveti
b9d1b47be7 Update find_wall_collisions_from_list comments 2022-01-07 23:50:49 -08:00
Arceveti
7b5af80bfb function names 2022-01-07 23:37:27 -08:00
Arceveti
b0b2e902dd Update check_wall_edge 2022-01-07 23:35:19 -08:00
Arceveti
7f78764ebd find_water_level Y arg 2022-01-07 22:21:51 -08:00
Arceveti
7d21cb068c Re-add some stuff from develop/arceveti/general + formatting_changes + name some unknowns + remove gotos from find_wall_collisions_from_list + jrb ship rendering fixes + visual_debug rendering fixes 2022-01-07 22:21:25 -08:00
Fluvian
82435d9d63 Prevent running out of pool space when loading uncompressed data. (#28)
* Fix bug where you run out of pool space.

Fixes a bug where you run out of pool space when you load uncompressed data.

* Fix bug where you run out of pool space. #2
2021-12-29 11:34:08 -05:00
CrashOveride95
1d360860c9 VI Mode RAM optimization
Doing &osViModeTable[OS_VI_NTSC_LAN1] wastes RAM,
as the entire table of all possible VI modes is linked in.
Instead, you can do &osViModeNtscLan1, which only links in the VI mode
you're actually going to use
2021-12-19 14:23:01 -05:00
CrashOveride95
549b919469 Remove forced alignment which is replicating IDO behavior for no good reason 2021-11-23 11:47:44 -05:00
CrashOveride95
b5f9b663ed Fix crash with rumble + custom mario model 2021-11-22 19:13:13 -05:00
CrashOveride95
45064e15d2 Make ucode load from .o's (and also fix Super3D) 2021-11-22 16:29:28 -05:00
CrashOveride95
86ed5cf9a6 Update UNF to latest master 2021-11-21 21:15:52 -05:00
CrashOveride95
2b53cc64be Fix console (lol) 2021-11-21 21:14:11 -05:00
CrashOveride95
208d526bb6 Make ROM name smaller and change messages printed on build a bit 2021-10-19 22:11:42 -04:00
CrashOveride95
d8c7afebc2 extra 2021-10-19 21:58:26 -04:00
CrashOveride95
eb466b2caf Merge branch 'master' of https://github.com/n64decomp/sm64 2021-10-19 21:58:19 -04:00
n64
1372ae1bb7 Refresh 15 2021-10-14 15:25:30 -04:00
CrashOveride95
0d56896e75 Merge branch 'master' of https://github.com/CrashOveride95/ultrasm64 2021-10-02 10:27:47 -04:00
CrashOveride95
3a627e6311 Add librtc and fix some data declarations 2021-10-02 10:27:43 -04:00
CrashOveride95
6218abafff Merge pull request #24 from Arceveti/patch-1
Move GRUCODE define to proper location in makefile
2021-09-30 22:13:33 -04:00
Arceveti
d51129c6b6 Move GRUCODE define to proper location in makefile 2021-09-30 17:52:40 -07:00
568 changed files with 38865 additions and 41779 deletions

26
.gitattributes vendored
View File

@@ -2,19 +2,19 @@
* text=auto
# List text files in case git doesn't characterize correctly
*.c text eol=lf
*.h text eol=lf
*.s text eol=lf
*.in text eol=lf
*.js text eol=lf
*.md text eol=lf
*.py text eol=lf
*.sh text eol=lf
*.ld text eol=lf
*.inc text eol=lf
*.txt text eol=lf
*.json text eol=lf
*.yaml text eol=lf
*.c text
*.h text
*.s text
*.in text
*.js text
*.md text
*.py text
*.sh text
*.ld text
*.inc text
*.txt text
*.json text
*.yaml text
# Same for binary
*.bin binary

2129
.gitignore vendored

File diff suppressed because it is too large Load Diff

View File

@@ -26,12 +26,14 @@
"VERSION_US=1",
"F3DEX_GBI_2=1",
"F3DZEX_NON_GBI_2=1",
"F3DEX_GBI_SHARED=1"
"F3DEX_GBI_SHARED=1",
"NON_MATCHING=1",
"AVOID_UB=1"
],
"compilerPath": "/usr/bin/mips-linux-gnu-gcc",
"cStandard": "gnu17",
"cppStandard": "gnu++14",
"intelliSenseMode": "linux-gcc-x86"
"intelliSenseMode": "linux-gcc-x64"
}
],
"version": 4

416
CHANGES Normal file
View File

@@ -0,0 +1,416 @@
Refresh 15 (mostly a hotfix for RSP microcode selection)
1.) Renamed frame_buffer funcs and _ZBUFFER (#1184)
2.) RSP Microcode Hotfix (#1183)
3.) Label osSetTimer.c (#1182)
4.) Fix styling (#1177)
5.) Rename all `FrameBuffer` variants to `Framebuffer` (#1176)
6.) Remove (WIP) from sh.
7.) Allow both archives and ELF objects to be patched (#1127)
Refresh 14
1.) Label whomp and some object fields (#1174)
2.) Generate MIO0 object files using binutils `ld` instead of `as` (#1173)
3.) Bowser documentation (#1166)
4.) Fix comment syntax in 00_sound_player.0 (#1172)
5.) Rename in-game menu variables (#1163)
6.) Document double red coin sound and JP sound glitch (#1170)
7.) Document different bug in external.c (#1168)
8.) updated names/types of octagonal platform data (#1164)
9.) Label a number of unnamed variables. (#1169)
10.) Document JP PU sound glitch (#1167)
11.) Set model ids to spawn_triangle_break_particles (#1165)
12.) Fix borders in clear_frame_buffer (#1162)
13.) Fix seq header files for 64-bit (#1161)
14.) Game_init.c remaining doc (#1158)
15.) Label a couple static variables in sound_init.c (#1159)
16.) Properly define dialog values (status, flags, cutscenes) (#1153)
17.) Label all of amp's assets. (#1018)
18.) Split audio/synthesis.c into Shindou/non-Shindou files (#1144)
19.) Avoid CC_CHECK warnings when using gcc (#1157)
20.) level_select_menu.c => title_screen.c (#1152)
21.) Use C preprocessor on assembly files (#1126)
22.) Replace output_level_headers.py with sed equivalent (#1109)
23.) Fix CC_CHECK warnings related to unused symbols and UB (#1155)
24.) Define remaining floor lower limit values (#1147)
25.) use r+b mode for libultra.a patch tool (#1148)
26.) Use proper values for gPrevFrameObjectCount ifs (#1146)
27.) Some minor bowser.inc.c labelling. (#1150)
28.) fix king bob-omb texture pointers (#1145)
29.) Split audio/load.c into Shindou/non-Shindou files (#1143)
30.) Small Shindou audio cleanups (#1142)
31.) Fix endians in ALSeqData (#1141)
32.) Document S8 decoder rsp operation and some more (#1139)
33.) Fix Shindou synthesis_process_note fake match (#1140)
34.) More audio documentation, for the new rsp code and other fixes (#1138)
35.) Build fixes for macOS: cpp, clang, recomp, aiff_extract_codebook (#1135)
36.) Add ENABLE_RUMBLE to config.h (#1122)
37.) Reduce recomp memory consumption by using smaller disassembly blocks (#1128)
38.) Makefile fixes (#1123)
39.) Update README.md
40.) Update README.md
41.) Reflect current decompilation status
42.) Allow both archives and ELF objects to be patched (#1127)
43.) Remove WIP mention in README for sh version.
Refresh 13 2
- No more nonmatchings remain for all builds including Shindou.
1.) Shindou OK (#1118)
2.) Match shindou sequence_player_process_sequence (#1117)
3.) Match func_sh_802f4e50 (#1116)
Refresh 13
- No more nonmatchings remain for US, JP, or EU builds. Three(!!!) remain for Shindou (SH).
*) SHINDOU MATCHING (#1081)
*) Makefile gcc fixes (#1114)
1.) Update diff.py (#1113)
2.) Add support for generating C arrays from n64graphics and add Texture typedef (#1032)
3.) Update README and Dockerfile with recomp info (#1105)
4.) Support building tools with MSYS2 (#1112)
5.) Support building tools with clang and macOS (#1106)
6.) Clean tools directory when running distclean target (#1104)
7.) Make build output cleaner (#1095)
8.) Added 2 surface defines to bowser.inc.c (#1111)
9.) fix fake matchings (#1108)
10.) Use statically recompiled IDO instead of qemu-irix (#1099)
11.) Add VERBOSE=1 to Jenkinsfile
12.) updated intro_geo to use layer defines for geo flags (#1090)
13.) Fix F3DZEX (#1097)
14.) layer_transpose should take an s8 (#1093)
15.) Fix tools/ build (#1082)
16.) Relabel and document fish.inc.c (#1077)
17.) Ensure all calls to .py files use $(PYTHON) (#1080)
18.) Name Mario, Peach, and instrument sound files (#1078)
19.) Goddard labeling, part 2 (#1076)
20.) Fix envfx_snow and envfx_bubbles fake matches (#1075)
21.) Use array subscripts instead of pointer math in 2 files (#1074)
22.) refactor Makefile a bit (#1068)
23.) Further improvements on field names (#1059)
24.) Label and document manta_ray.inc.c (#1073)
25.) Fix level_script and behavior fake matches (#1072)
26.) Proper cell defines and more floor lower limit values. (#1065)
27.) Document and re-label some goddard/intro code (#1069)
28.) Match remaining functions (#1070)
29.) match 'spawn_special_objects' (#1071)
30.) Document parts of external.c and format sound defines (#1067)
Refresh 12
1.) Debug box improvements (#1066)
2.) Improve 'geo_render_mirror_mario' (#1064)
3.) Cleanup and small labeling (#1063)
4.) Anim renames and other related renames (#1062)
5.) remove do while 0 and make one line comments consistent (#1061)
6.) fixed typo in segments.h (#1060)
7.) Name unknown fields (from public repo) (#1058)
8.) Change 'void *' to 'struct MainPoolState *' (#1057)
9.) Fix type of freeList (#1056)
10.) Newer version of diff script (#1055)
11.) Add stubbed_printfs based on unused audio strings (#1054)
12.) Fix comment in paintings.c (#1053)
13.) Add defines for hardcoded cell/floor height values (#1051)
14.) Update README.md: Remove GitHub specific Markdown syntax (#1052)
15.) Properly label interation status that handle's Bowser's shockwave attack (#1050)
Refresh 11
1.) Make geo_process_level_of_detail endian-independent (#1049)
2.) Label oMoveFlags and slight cleanup. (#1046)
3.) Avoid UB in synthesis_resample_and_mix_reverb (#1048)
4.) Change some void * to correct type (#1047)
5.) Remove oPathedWaypointsS16 and convert all paths to Trajectory struct. (#1045)
6.) Mr Blizzard documentation, Tox Box Unks (#1042)
7.) Pipe input to textconv. (#1041)
8.) Remove erroneous long double casts from audiofile.cpp (#1039)
9.) Replace fixed dialogID in play_dialog_sound to DIALOG_COUNT (#1040)
Refresh #10.1
1.) Diff update (#1033)
2.) Fix texture dimensions for exclamation boxes (#1034)
3.) Fix armips compilation on Windows by changing order of inclusion files (#1035)
4.) Embed libaudiofile into the repo as a single file (#1036)
5.) Fix some tools issues found while compiling on MSYS2 (#1037)
Refresh #10
1.) GCC 9 noreturn UB fixes (#961)
2.) List supported binutils variants in README.md (#960)
3.) fix fly guy's possible values for target roll
4.) clarify that 1 is an exclusive bound in random_float (#962)
5.) replace unkB8 with prevNumStarsForDialog (#963)
6.) Replace "BulletBillUnkF8" with "BulletBillInitialMoveYaw" (#966)
7.) Renamed more warp behaviors and spawn types (#949)
8.) EU bss cleanups (#965)
9.) Add -fno-zero-initialized-in-bss to GCC CFLAGS (#968)
10.) Use empty .SECONDARY target instead of .PRECIOUS (#964)
11.) Match EU seq_channel_layer_process_script (#969)
12.) Fix version variable overwriting bug for non-matching compilations (#974)
13.) small bhv_collect_star_init labeling (#972)
14.) Align SI DMA command buffers, add more names to osCont code (#973)
15.) Minor for loop fix in playback.c (#976)
16.) Add Docker config (Public #36)
17.) Fix usage output crash for skyconv (#977)
18.) Cleanup tools and their build flags (#978)
19.) Print more detailed file reading error messages in extract_assets (#982)
20.) Remove asmdiff (#983)
21.) Fixed tabledesign makefile bug (#985)
22.) Improve first-diff.py (#987)
23.) Bring in some enhancements such as widescreen enhancements (#981)
24.) Fix background shadow border if widescreen in shade_screen (#988)
25.) Merge common EU sections in osExceptionPreamble (#990)
26.) Introduce the NO_SEGMENTED_MEMORY define (#989)
27.) NO_SEGMENTED_MEMORY comments (#992)
28.) Introduce f3dex2e and a GBI_FLOATS setting (#993)
29.) Audio uses signed 16-bit integers as samples, not unsigned (#995)
30.) Assemble RSP ucode with armips (#970)
31.) Label Mr. Blizzard, Yoshi, Whomp, Wiggler, Wood Piece oFields. (#996)
32.) update crash enhancement (#1003)
33.) Update README.md to use new public Discord server invite
34.) Label variables in act_idle. (#1005)
35.) Fix a typo in camera.h (#1009)
36.) Fixed up profiler.c (#1010)
37.) Add -d to first-diff.py (#1012)
38.) Fix typo in first-diff.py (#1013)
39.) Remove binutils 2.27 dependency check (#1015)
40.) Update armips to v0.11.0 tag and add generator script (#1004)
41.) Extract IPL3 font from ROM (#1011)
42.) Documented audio playback flags (#1021)
43.) Change RSP register notation to dollar-prefixed numbers (#1022)
44.) Only check for QEMU_IRIX in Makefile when compiling with IDO (#1023)
45.) Clean up header files and update function prototypes (#1000)
46.) Named local variables in geo_update_layer_transparency (#1019)
47.) Extract crash screen font textures from EU and SH ROMs (#1025)
48.) Use ACTIVE_FLAG defines where appropriate (#1026)
49.) Changed type of actor collision from s16 to Collision (#1024)
50.) Implement sqrtf in assembly file (#1028)
51.) Rename Struct8032FCE8 as OpenableGrill and identify data members (#1029)
52.) Fix some mistakes in the abi doc (#1031)
53.) The README.md PR (#979)
Refresh #8
1.) Use INT_STATUS_ macros for oInteractStatus (#911)
2.) Update bullet_bill.inc.c (#912)
3.) Make geo.c in levels nonconst to reduce diffs with gcc enhancement patch in future (#913)
4.) Improve process_level_music_dynamics (#915)
5.) add AVOID_UB define for fixing libultra aliasing. (#916)
6.) const hack to TARGET_N64 and tweak ld script (#918)
7.) Replace raw level/course numbers with defines (#919)
8.) Label all graph node flags. (#920)
9.) readme.md capitalization
10.) The Big Function PR (Part 5) (#910)
11.) Label hardware registers (#922)
12.) Match EU synthesis_process_note (#923)
13.) Some quick value changes (#909)
14.) Added sequence player defines (#926)
15.) Shindou diffs 2 [merge game.c and display.c, required for SH] (#927)
16.) Match synthesis_process_notes and use -sopt for synthesis.c (#928)
17.) Fix mips64-binutils for Fedora 31 and similar Linux distros (#931)
18.) Update first-diff.py to work with Shindou (#933)
19.) Labelled behavior_script.c (#929)
20.) shindou diffs up to level_update (#932)
21.) Update diff.py and diff_settings.py to work with SH (#936)
22.) Add some Shindou resources to extract_assets.py (#939)
23.) Label and document gd_math.c (#930)
24.) Label all of Mario's actions. (#941)
25.) Label all particles. (#940)
26.) Renamed death related warpBhvs (#942)
27.) Small Shindou differences (#945)
28.) match player_performed_grab_escape_action in all versions (#943)
29.) add main alignment (aglab2, #947)
30.) Match a bunch of fake EU matchings (#944)
31.) Shindou diffs round 4 (#937)
32.) Easy PAL fake matchings (#946)
33.) Merge object_helpers and object_helpers2 headers (#948)
34.) match cap_check_quicksand (#950)
35.) Shindou crash screen diffs (#938)
36.) Thread6 (#951)
37.) Correct IPL3 function and label addresses (#952)
38.) Add COMPILER flag for Makefile and add official mips gcc support. (#953)
39.) add align to sequence_00 (fixes gcc build) (#957)
40.) Fixed itty bitty typo (#959)
Refresh #7
1.) update README.md (#861)
2.) [eu] fix decompilation bugs in synthesis_process_note (#862)
3.) Label and document Snufit.inc.c (#863)
4.) Label and document Snufit.inc.c (#863)
5.) Match append_bubble_vertex_buffer, append_snowflake_vertex_buffer (#860)
6.) Compile audio/effects.c with -sopt (#870)
7.) Match handle_dialog_text_and_pages (#872)
8.) Remove improperly used LEVEL_SA define. (#875)
9.) Remove unused EU ASM files (#873)
10.) Shindou build flag support (#876)
11.) The Big Function PR (Part 1) (#864)
12.) "Re-document" file_select and star_select for EU (#877)
13.) Document paintings.c (#868)
14.) Minor interaction.c labelling/documentation. (#882)
15.) Match synthesis_execute, prepare_reverb_ring_buffer, func_eu_802e00d8 (#886)
16.) The Big Function PR (Part 2) (#874)
17.) Additional painting documentation (#883)
18.) Some EU audio labelling (#885)
19.) Bring synthesis_do_one_audio_update a bit closer to matching (#887)
20.) Misleading comment, this actually contols Bowser's init action (#889)
21.) Match synthesis_do_one_audio_update (#890)
22.) Remove unneeded if(1) in synthesis_do_one_audio_update (#891)
23.) Match synthesis_resample_and_mix_reverb (#893)
24.) Set LANG=C (#896)
25.) Match note_apply_headset_pan_effects (#897)
26.) Match play_sequence (#898)
27.) Match sequence_channel_enable (#899)
28.) Match sequence_player_process_sequence (#900)
29.) Match (eu) alloc_bank_or_seq (#901)
30.) Match alloc_bank_or_seq (#903)
31.) Update README.md (again)
32.) Documented behaviour/fish.inc.c & blue_fish.inc.c (#894)
33.) Labelled 4 behavior files, made object_helper functions consistent (#881)
34.) Add a make target for .copt (#902)
35.) The Big Function PR (Part 3) (#888)
36.) The Big Function PR (Part 4) (#906)
37.) Rename src/audio/memory.c -> heap.c (#907)
38.) Fix BBH texture (#908)
Refresh #6
1.) Make tools work on MinGW (#804)
2.) Document mario_misc (#628)
3.) add patch_libmalloc.py script to work around compiler crashes (#811)
4.) Label the coffins file. (#829)
5.) Convert enhancements into patches (#827)
6.) Document Tweester.inc.c (#840)
7.) EU OK and cleanup EU (#782)
Refresh #5
1.) mem_error_screen.inc.c updated for C (#775)
2.) updated patch_libultra_math to work directly on libultra.a (#781)
3.) Enhancement: Debug boxes (#783)
4.) Label effects MemoryPool (#784)
5.) Use full-width characters for JP text and rename mislabeled stuff (#772)
6.) Small asset extraction fixes (#785)
7.) Fix incremental asset extraction after the last PR (#790)
8.) Labelled behavior script commands, tidied up behavior scripts and ren…
9.) Document camera.c (#741)
10.) Fix a HMC texture asset (#795)
11.) Fix UB in angle conversion for paintings. Needed for pc-port. (#796)
12.) Fix PSS texture assets (#801)
13.) Fix some camera typos (#802)
Refresh #4
1.) Label screen_transition.c (#737)
2.) Revamp macros (#738)
3.) Simplify the cake makefile logic (#739)
4.) Move zbuffer to C (#742)
5.) Audio blob endian/64-bit fixes (#740)
6.) Ub fixes (#745)
7.) process_level_music_dynamics: slightly better stack and regalloc (#746)
8.) move level order specific definitions out to levels/level_defines.h (#743)
9.) Renamed some mislabelled sound effects (#748)
10.) Very minor white space fixes in Mario.c (#752)
11.) Renamed GRAVITY to OBJ_PHYSICS (#755)
12.) Use defined macros instead of literal values for interactions in behavior_data.c (#754)
13.) iQue Player console detection + full support (#756)
14.) Fix Goddard Mario head for little endian etc. (#757)
15.) Small bits of audio doc (#749)
16.) Update diff script (#750)
17.) Nicer format for course/dialog text, enum for dialog IDs (#753)
18.) first-diff: store most recent mtime during check (#759)
19.) Use Lights1 struct for light values (#760)
20.) Detect mips64-elf in diff.py (#761)
21.) Name display lists in gd renderer.c (#764)
22.) Document a variety of PU type crashes. (#765)
23.) Label object_behaviors. (#716)
24.) Update swoop.inc.c (#767)
25.) Label tilting_pyramid.inc.c (#768)
26.) Label red_coin.inc.c (#770)
27.) Use more level defines (#758)
28.) Named Mario actions 6, 7, and 8 and noted causes of hands-free holding glitch (#769)
Refresh #3
1.) Small bits of sound sample labelling
2.) Append 'b' to fopen calls in n64graphics to satisfy Windows
3.) Document synthesis.c and abi.h
4.) Remove gbi_old.h and use gbi.h instead for F3D_OLD
5.) Fix and change most values used by f3d commands
6.) Convert actors to C
7.) Make extract_assets.py fail on bad baserom
8.) Fix some (pragma-ignored) warnings
9.) Convert trig tables and data/ buffers into C
10.) Document intro behaviors and some of camera.c
11.) Match dma_sample_data
12.) Convert levels, bin, text, goddard_tex_dl to C
13.) Remove .bss size hardcoding
14.) Add mips64 fallback and alt dump option to diff.sh
15.) Convert behavior_data to C
16.) Get rid of the enum in behavior_data.
17.) Change more values used by f3d commands
18.) Document game/skybox.c
19.) Actors levels fixup
20.) Convert Mario animations to C (kind of)
22.) generate skybox data from 248x248 images
23.) 64-bit fixes
24.) Move demo data to C
25.) Change uintptr_t to GeoLayout for actors
26.) Move libc includes to include/libc/
Refresh #2a (hotfix)
Changes from Refresh #2:
1.) Fixed text Makefile dependencies"
Refresh #2
Changes from Refresh #1:
1.) Label src/game/behaviors/boo.inc.c
2.) Verify half of audio_defines.h
3.) Label ingame_menu.c and some dialog stuff
4.) Improve handle_dialog_text_and_pages EU non-matching
5.) Fix texture format for water splash/sparkle
6.) Merge ucode.bin and ucode_unk.bin
7.) 64-bit fixes
8.) [AUDIO] Match func_80316928
9.) Documented bug in Tuxie's mother's code
10.) [AUDIO] Slightly closer matching for process_level_music_dynamics
11.) Name channel scripts in sequence 0
12.) Nicer error message when sha1sum doesn't match
13.) Refactor object fields
14.) Document file_select.c
15.) Document star_select.c
16.) Add uncompressed string support to textconv
17.) Document main_menu geo and leveldata
18.) Document hud.c and rename char textures
19.) Correct gSPTextureRectangle values
20.) Linker script wildcard
- Fixes "undefined reference to x in discarded section y" linker errors.
- Also means that you no longer have to add linker script entries for source files.
21.) Reference qemu-irix package and add project structure
- Installing qemu-irix is as simple as installing the provided Debian package on the GitHub "Releases" tab
(https://github.com/n64decomp/qemu-irix).
- Old qemu-irix installs are unaffected by this change, and it is still possible to install qemu-irix with the older method.
Refresh #1
Changes from initial release:
1.) More README cleanups and documentation
2.) Fix .gitignore in tools/
3.) More README cleanups and corrections
4.) oUnk190 -> oInteractionSubtype
5.) Normalize line endings
6.) Replace bank_sets.s by sequences.json + build magic
7.) Fix tabledesign in .gitignore
8.) Cleaned and documented arrays in audio/
9.) Change minimum Python 3 requirement in README.md to 3.6
10.) Remove whitespace in ingame_menu.c, save_file.c, and star_select.c
11.) Documentation comment style fixed
12.) sm64.map -> sm64.version.map (ex: sm64.us.map)
13.) Decompile EU versions of HUD and obj behaviors
14.) Label ukiki.inc.c and ukiki_cage.inc.c
15.) Add missing OS header includes
16.) Fix alignment issue in model_ids.h
17.) A bunch of behavior changes:
a.) Made styles consistent with function names (ex: BehBehaviorLoop -> beh_behavior_loop)
b.) Split obj_behaviors_2.c into multiple .inc.c files in behaviors/
c.) bhvHauntedRoomCheck -> bhvCoffinManager
18.) Update README.md notes on WSL and add links
19.) Added tidy.sh and also bracing around single-line ifs and loops

View File

@@ -4,7 +4,7 @@
# These owners will be the default owners for everything in the repo.
* @Reonu
* @thecozies
* @gheskett
* @Mr-Wiseguy
# Order is important. The last matching pattern has the most precedence.
# So if a pull request only touches javascript files, only these owners

2482
Doxyfile Normal file

File diff suppressed because it is too large Load Diff

60
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,60 @@
pipeline {
agent any
stages {
stage('Build Tools') {
steps {
sh 'make -j4 -C tools/'
}
}
stage('Extract Assets') {
steps {
sh 'ln -s "$ROMS_DIR/Super Mario 64 (J) [!].z64" baserom.jp.z64'
sh 'ln -s "$ROMS_DIR/Super Mario 64 (U) [!].z64" baserom.us.z64'
sh 'ln -s "$ROMS_DIR/Super Mario 64 (E) (M3) [!].z64" baserom.eu.z64'
sh 'ln -s "$ROMS_DIR/Super Mario 64 - Shindou Edition (J) [!].z64" baserom.sh.z64'
// verify no assets were committed to repo
sh '[ -z "$(find {actors,levels,textures}/ -name \'*.png\')" ]'
sh '[ -z "$(find assets/ -name \'*.m64\' -or \'*.bin\')" ]'
sh './extract_assets.py jp us eu sh'
}
}
stage('Build U Source') {
steps {
sh 'make -j4 VERSION=us VERBOSE=1 COLOR=0'
}
}
stage('Build S Source') {
steps {
sh 'make -j4 VERSION=sh VERBOSE=1 COLOR=0'
}
}
stage('Build E Source') {
steps {
sh 'make -j4 VERSION=eu VERBOSE=1 COLOR=0'
}
}
stage('Build J Source') {
steps {
sh 'make -j4 VERSION=jp VERBOSE=1 COLOR=0'
}
}
stage('Test Enhancements') {
steps {
sh '''
set -e
for f in enhancements/*.patch
do
git clean -fd .
git checkout -- .
echo 'y' | tools/apply_patch.sh "$f"
make -j4 VERSION=us COMPARE=0 VERBOSE=1
done
'''
}
}
}
environment {
QEMU_IRIX = credentials('qemu-irix')
ROMS_DIR = credentials('roms')
}
}

208
Makefile
View File

@@ -5,8 +5,6 @@ include util.mk
# Default target
default: all
TARGET_STRING := sm64
# Preprocessor definitions
DEFINES :=
@@ -87,9 +85,6 @@ else ifeq ($(VERSION),sh)
DEFINES += VERSION_SH=1
endif
# FIXLIGHTS - converts light objects to light color commands for assets, needed for vanilla-style lighting
FIXLIGHTS ?= 1
DEBUG_MAP_STACKTRACE_FLAG := -D DEBUG_MAP_STACKTRACE
TARGET := sm64
@@ -119,31 +114,31 @@ else ifeq ($(GRUCODE),super3d) # Super3D
DEFINES += SUPER3D_GBI=1 F3D_NEW=1
endif
LIBRARIES := nustd hvqm2 z goddard
# TEXT ENGINES
# s2dex_text_engine - Text Engine by someone2639
TEXT_ENGINE := none
$(eval $(call validate-option,TEXT_ENGINE,none s2dex_text_engine))
ifeq ($(TEXT_ENGINE), s2dex_text_engine)
DEFINES += S2DEX_GBI_2=1 S2DEX_TEXT_ENGINE=1
SRC_DIRS += src/s2d_engine
LIBRARIES += s2d_engine
DUMMY != make -C src/s2d_engine COPY_DIR=$(shell pwd)/lib/
endif
# add more text engines here
LINK_LIBRARIES = $(foreach i,$(LIBRARIES),-l$(i))
#==============================================================================#
# Optimization flags #
#==============================================================================#
# Default non-gcc opt flags
DEFAULT_OPT_FLAGS = -Ofast
# Note: -fno-associative-math is used here to suppress warnings, ideally we would enable this as an optimization but
# this conflicts with -ftrapping-math apparently.
# TODO: Figure out how to allow -fassociative-math to be enabled
SAFETY_OPT_FLAGS = -ftrapping-math -fno-associative-math
# Main opt flags
GCC_MAIN_OPT_FLAGS = \
$(DEFAULT_OPT_FLAGS) $(SAFETY_OPT_FLAGS) \
-Ofast \
--param case-values-threshold=20 \
--param max-completely-peeled-insns=10 \
--param max-unrolled-insns=10 \
@@ -154,7 +149,7 @@ GCC_MAIN_OPT_FLAGS = \
# Surface Collision
GCC_COLLISION_OPT_FLAGS = \
$(DEFAULT_OPT_FLAGS) $(SAFETY_OPT_FLAGS) \
-Ofast \
--param case-values-threshold=20 \
--param max-completely-peeled-insns=100 \
--param max-unrolled-insns=100 \
@@ -167,7 +162,7 @@ GCC_COLLISION_OPT_FLAGS = \
# Math Util
GCC_MATH_UTIL_OPT_FLAGS = \
$(DEFAULT_OPT_FLAGS) $(SAFETY_OPT_FLAGS) \
-Ofast \
-fno-unroll-loops \
-fno-peel-loops \
--param case-values-threshold=20 \
@@ -179,7 +174,7 @@ GCC_MATH_UTIL_OPT_FLAGS = \
# Rendering graph node
GCC_GRAPH_NODE_OPT_FLAGS = \
$(DEFAULT_OPT_FLAGS) $(SAFETY_OPT_FLAGS) \
-Ofast \
--param case-values-threshold=20 \
--param max-completely-peeled-insns=100 \
--param max-unrolled-insns=100 \
@@ -191,12 +186,14 @@ GCC_GRAPH_NODE_OPT_FLAGS = \
#==============================================================================#
ifeq ($(COMPILER),gcc)
NON_MATCHING := 1
MIPSISET := -mips3
OPT_FLAGS := $(GCC_MAIN_OPT_FLAGS)
COLLISION_OPT_FLAGS = $(GCC_COLLISION_OPT_FLAGS)
MATH_UTIL_OPT_FLAGS = $(GCC_MATH_UTIL_OPT_FLAGS)
GRAPH_NODE_OPT_FLAGS = $(GCC_GRAPH_NODE_OPT_FLAGS)
else ifeq ($(COMPILER),clang)
NON_MATCHING := 1
# clang doesn't support ABI 'o32' for 'mips3'
MIPSISET := -mips2
OPT_FLAGS := $(DEFAULT_OPT_FLAGS)
@@ -205,26 +202,39 @@ else ifeq ($(COMPILER),clang)
GRAPH_NODE_OPT_FLAGS = $(DEFAULT_OPT_FLAGS)
endif
# UNF - whether to use UNFLoader flashcart library
# 1 - includes code in ROM
# 0 - does not
UNF ?= 0
$(eval $(call validate-option,UNF,0 1))
# if `unf` is a target, make sure that UNF is set
ifneq ($(filter unf,$(MAKECMDGOALS)),)
UNF = 1
# NON_MATCHING - whether to build a matching, identical copy of the ROM
# 1 - enable some alternate, more portable code that does not produce a matching ROM
# 0 - build a matching ROM
NON_MATCHING ?= 1
$(eval $(call validate-option,NON_MATCHING,0 1))
ifeq ($(TARGET_N64),0)
NON_MATCHING := 1
endif
ifeq ($(NON_MATCHING),1)
DEFINES += NON_MATCHING=1 AVOID_UB=1
endif
TARGET_STRING := sm64
# UNF - whether to use UNFLoader flashcart library
# 1 - includes code in ROM
# 0 - does not
UNF ?= 0
$(eval $(call validate-option,UNF,0 1))
ifeq ($(UNF),1)
DEFINES += UNF=1
SRC_DIRS += src/usb
USE_DEBUG := 1
endif
# ISVPRINT - whether to fake IS-Viewer presence,
# allowing for usage of CEN64 (and possibly Project64) to print messages to terminal.
# 1 - includes code in ROM
# 0 - does not
# 0 - does not
ISVPRINT ?= 0
$(eval $(call validate-option,ISVPRINT,0 1))
ifeq ($(ISVPRINT),1)
@@ -234,18 +244,15 @@ endif
ifeq ($(USE_DEBUG),1)
ULTRALIB := ultra_d
DEFINES += DEBUG=1 OVERWRITE_OSPRINT=1
else ifeq ($(UNF),1)
ULTRALIB := ultra
DEFINES += _FINALROM=1 NDEBUG=1 OVERWRITE_OSPRINT=1
DEFINES += DEBUG=1
else
ULTRALIB := ultra_rom
DEFINES += _FINALROM=1 NDEBUG=1 OVERWRITE_OSPRINT=0
DEFINES += _FINALROM=1 NDEBUG=1
endif
# HVQM - whether to use HVQM fmv library
# 1 - includes code in ROM
# 0 - does not
# 0 - does not
HVQM ?= 0
$(eval $(call validate-option,HVQM,0 1))
ifeq ($(HVQM),1)
@@ -278,6 +285,15 @@ endif
GZIPVER ?= std
$(eval $(call validate-option,GZIPVER,std libdef))
# GODDARD - whether to use libgoddard (Mario Head)
# 1 - includes code in ROM
# 0 - does not
GODDARD ?= 0
$(eval $(call validate-option,GODDARD,0 1))
ifeq ($(GODDARD),1)
DEFINES += GODDARD=1
endif
# Whether to hide commands or not
VERBOSE ?= 0
ifeq ($(VERBOSE),0)
@@ -305,23 +321,23 @@ ifeq ($(filter clean distclean print-%,$(MAKECMDGOALS)),)
# Make sure assets exist
NOEXTRACT ?= 0
ifeq ($(NOEXTRACT),0)
DUMMY != $(PYTHON) extract_assets.py us >&2 || echo FAIL
DUMMY != $(PYTHON) extract_assets.py $(VERSION) >&2 || echo FAIL
ifeq ($(DUMMY),FAIL)
$(error Failed to extract assets from US ROM)
endif
ifneq (,$(shell python3 tools/detect_baseroms.py jp))
ifneq (,$(wildcard baserom.jp.z64))
DUMMY != $(PYTHON) extract_assets.py jp >&2 || echo FAIL
ifeq ($(DUMMY),FAIL)
$(error Failed to extract assets from JP ROM)
endif
endif
ifneq (,$(shell python3 tools/detect_baseroms.py eu))
ifneq (,$(wildcard baserom.eu.z64))
DUMMY != $(PYTHON) extract_assets.py eu >&2 || echo FAIL
ifeq ($(DUMMY),FAIL)
$(error Failed to extract assets from EU ROM)
endif
endif
ifneq (,$(shell python3 tools/detect_baseroms.py sh))
ifneq (,$(wildcard baserom.sh.z64))
DUMMY != $(PYTHON) extract_assets.py sh >&2 || echo FAIL
ifeq ($(DUMMY),FAIL)
$(error Failed to extract assets from SH ROM)
@@ -369,8 +385,7 @@ include Makefile.split
# Source code files
LEVEL_C_FILES := $(wildcard levels/*/leveldata.c) $(wildcard levels/*/script.c) $(wildcard levels/*/geo.c)
C_FILES := $(foreach dir,$(SRC_DIRS),$(wildcard $(dir)/*.c)) $(LEVEL_C_FILES)
CPP_FILES := $(foreach dir,$(SRC_DIRS),$(wildcard $(dir)/*.cpp))
LIBZ_C_FILES := $(foreach dir,$(LIBZ_SRC_DIRS),$(wildcard $(dir)/*.c))
LIBZ_C_FILES := $(foreach dir,$(LIBZ_SRC_DIRS),$(wildcard $(dir)/*.c))
GODDARD_C_FILES := $(foreach dir,$(GODDARD_SRC_DIRS),$(wildcard $(dir)/*.c))
S_FILES := $(foreach dir,$(SRC_DIRS),$(wildcard $(dir)/*.s))
GENERATED_C_FILES := $(BUILD_DIR)/assets/mario_anim_data.c $(BUILD_DIR)/assets/demo_data.c
@@ -391,7 +406,6 @@ SOUND_SEQUENCE_FILES := \
# Object files
O_FILES := $(foreach file,$(C_FILES),$(BUILD_DIR)/$(file:.c=.o)) \
$(foreach file,$(CPP_FILES),$(BUILD_DIR)/$(file:.cpp=.o)) \
$(foreach file,$(S_FILES),$(BUILD_DIR)/$(file:.s=.o)) \
$(foreach file,$(GENERATED_C_FILES),$(file:.c=.o)) \
lib/PR/hvqm/hvqm2sp1.o lib/PR/hvqm/hvqm2sp2.o
@@ -423,21 +437,15 @@ else
$(error Unable to detect a suitable MIPS toolchain installed)
endif
LIBRARIES := nustd hvqm2 z goddard
LINK_LIBRARIES = $(foreach i,$(LIBRARIES),-l$(i))
export LD_LIBRARY_PATH=./tools
AS := $(CROSS)as
ifeq ($(COMPILER),gcc)
CC := $(CROSS)gcc
CXX := $(CROSS)g++
$(BUILD_DIR)/actors/%.o: OPT_FLAGS := -Ofast -mlong-calls
$(BUILD_DIR)/levels/%.o: OPT_FLAGS := -Ofast -mlong-calls
else ifeq ($(COMPILER),clang)
CC := clang
CXX := clang++
endif
# Prefer gcc's cpp if installed on the system
ifneq (,$(call find-command,cpp-10))
@@ -454,13 +462,6 @@ AR := $(CROSS)ar
OBJDUMP := $(CROSS)objdump
OBJCOPY := $(CROSS)objcopy
ifeq ($(LD), tools/mips64-elf-ld)
ifeq ($(shell ls -la tools/mips64-elf-ld | awk '{print $1}' | grep x),)
$(warning [ERROR]: A required file in this repository is no longer executable.)
$(error * Please run: 'chmod +x tools/mips64-elf-ld', then run `make` again)
endif
endif
ifeq ($(TARGET_N64),1)
TARGET_CFLAGS := -nostdinc -DTARGET_N64 -D_LANGUAGE_C
CC_CFLAGS := -fno-builtin
@@ -501,6 +502,7 @@ CPPFLAGS := -P -Wno-trigraphs $(DEF_INC_CFLAGS)
YAY0TOOL := $(TOOLS_DIR)/slienc
MIO0TOOL := $(TOOLS_DIR)/mio0
RNCPACK := $(TOOLS_DIR)/rncpack
ROMALIGN := $(TOOLS_DIR)/romalign
FILESIZER := $(TOOLS_DIR)/filesizer
N64CKSUM := $(TOOLS_DIR)/n64cksum
N64GRAPHICS := $(TOOLS_DIR)/n64graphics
@@ -511,8 +513,6 @@ AIFF_EXTRACT_CODEBOOK := $(TOOLS_DIR)/aiff_extract_codebook
VADPCM_ENC := $(TOOLS_DIR)/vadpcm_enc
EXTRACT_DATA_FOR_MIO := $(TOOLS_DIR)/extract_data_for_mio
SKYCONV := $(TOOLS_DIR)/skyconv
FIXLIGHTS_PY := $(TOOLS_DIR)/fixlights.py
FLIPS := $(TOOLS_DIR)/flips
ifeq ($(GZIPVER),std)
GZIP := gzip
else
@@ -524,15 +524,11 @@ ifneq (,$(call find-command,armips))
else
RSPASM := $(TOOLS_DIR)/armips
endif
ENDIAN_BITWIDTH := $(BUILD_DIR)/endian-and-bitwidth
EMULATOR = mupen64plus
EMU_FLAGS =
ifneq (,$(call find-command,wslview))
LOADER = ./$(TOOLS_DIR)/UNFLoader.exe
else
LOADER = ./$(TOOLS_DIR)/UNFLoader
endif
EMU_FLAGS = --noosd
LOADER = UNFLoader
LOADER_FLAGS = -d
SHA1SUM = sha1sum
PRINT = printf
@@ -569,10 +565,7 @@ all: $(ROM)
clean:
$(RM) -r $(BUILD_DIR_BASE)
rebuildtools:
$(MAKE) -C tools distclean
$(MAKE) -C tools
make -C src/s2d_engine clean
distclean: clean
$(PYTHON) extract_assets.py --clean
@@ -585,26 +578,13 @@ test-pj64: $(ROM)
wine ~/Desktop/new64/Project64.exe $<
# someone2639
# download and extract most recent unfloader build if needed
$(LOADER):
ifeq (,$(wildcard $(LOADER)))
@$(PRINT) "Downloading latest UNFLoader...$(NO_COL)\n"
$(PYTHON) $(TOOLS_DIR)/get_latest_unfloader.py $(TOOLS_DIR)
endif
load: $(ROM) $(LOADER)
$(LOADER) -r $<
unf: $(ROM) $(LOADER)
$(LOADER) -d -r $<
load: $(ROM)
$(LOADER) $(LOADER_FLAGS) -r $<
libultra: $(BUILD_DIR)/libultra.a
patch: $(ROM)
$(FLIPS) --create --bps $(shell python3 tools/detect_baseroms.py $(VERSION)) $(ROM) $(BUILD_DIR)/$(TARGET_STRING).bps
# Extra object file dependencies
$(BUILD_DIR)/asm/ipl3.o: $(IPL3_RAW_FILES)
$(BUILD_DIR)/asm/boot.o: $(IPL3_RAW_FILES)
$(BUILD_DIR)/src/game/crash_screen.o: $(CRASH_TEXTURE_C_FILES)
$(BUILD_DIR)/src/game/version.o: $(BUILD_DIR)/src/game/version_data.h
$(BUILD_DIR)/lib/aspMain.o: $(BUILD_DIR)/rsp/audio.bin
@@ -709,11 +689,9 @@ $(BUILD_DIR)/%.ci4.inc.c: %.ci4.png
$(BUILD_DIR)/%.elf: $(BUILD_DIR)/%.o
$(call print,Linking ELF file:,$<,$@)
$(V)$(LD) -e 0 -Ttext=$(SEGMENT_ADDRESS) -Map $@.map -o $@ $<
# Override for leveldata.elf, which otherwise matches the above pattern.
# Has to be a static pattern rule for make-4.4 and above to trigger the second
# expansion.
# Override for leveldata.elf, which otherwise matches the above pattern
.SECONDEXPANSION:
$(LEVEL_ELF_FILES): $(BUILD_DIR)/levels/%/leveldata.elf: $(BUILD_DIR)/levels/%/leveldata.o $(BUILD_DIR)/bin/$$(TEXTURE_BIN).elf
$(BUILD_DIR)/levels/%/leveldata.elf: $(BUILD_DIR)/levels/%/leveldata.o $(BUILD_DIR)/bin/$$(TEXTURE_BIN).elf
$(call print,Linking ELF file:,$<,$@)
$(V)$(LD) -e 0 -Ttext=$(SEGMENT_ADDRESS) -Map $@.map --just-symbols=$(BUILD_DIR)/bin/$(TEXTURE_BIN).elf -o $@ $<
@@ -726,17 +704,17 @@ $(BUILD_DIR)/levels/%/leveldata.bin: $(BUILD_DIR)/levels/%/leveldata.elf
$(V)$(EXTRACT_DATA_FOR_MIO) $< $@
ifeq ($(COMPRESS),gzip)
include compression/gziprules.mk
include gziprules.mk
else ifeq ($(COMPRESS),rnc1)
include compression/rnc1rules.mk
include rnc1rules.mk
else ifeq ($(COMPRESS),rnc2)
include compression/rnc2rules.mk
include rnc2rules.mk
else ifeq ($(COMPRESS),yay0)
include compression/yay0rules.mk
include yay0rules.mk
else ifeq ($(COMPRESS),mio0)
include compression/mio0rules.mk
include mio0rules.mk
else ifeq ($(COMPRESS),uncomp)
include compression/uncomprules.mk
include uncomprules.mk
endif
#==============================================================================#
@@ -751,9 +729,17 @@ $(BUILD_DIR)/%.aifc: $(BUILD_DIR)/%.table %.aiff
$(call print,Encoding ADPCM:,$(word 2,$^),$@)
$(V)$(VADPCM_ENC) -c $^ $@
$(SOUND_BIN_DIR)/sound_data.ctl: sound/sound_banks/ $(SOUND_BANK_FILES) $(SOUND_SAMPLE_AIFCS)
$(ENDIAN_BITWIDTH): $(TOOLS_DIR)/determine-endian-bitwidth.c
@$(PRINT) "$(GREEN)Generating endian-bitwidth $(NO_COL)\n"
$(V)$(CC) -c $(CFLAGS) -o $@.dummy2 $< 2>$@.dummy1; true
$(V)grep -o 'msgbegin --endian .* --bitwidth .* msgend' $@.dummy1 > $@.dummy2
$(V)head -n1 <$@.dummy2 | cut -d' ' -f2-5 > $@
$(V)$(RM) $@.dummy1
$(V)$(RM) $@.dummy2
$(SOUND_BIN_DIR)/sound_data.ctl: sound/sound_banks/ $(SOUND_BANK_FILES) $(SOUND_SAMPLE_AIFCS) $(ENDIAN_BITWIDTH)
@$(PRINT) "$(GREEN)Generating: $(BLUE)$@ $(NO_COL)\n"
$(V)$(PYTHON) $(TOOLS_DIR)/assemble_sound.py $(BUILD_DIR)/sound/samples/ sound/sound_banks/ $(SOUND_BIN_DIR)/sound_data.ctl $(SOUND_BIN_DIR)/ctl_header $(SOUND_BIN_DIR)/sound_data.tbl $(SOUND_BIN_DIR)/tbl_header $(C_DEFINES)
$(V)$(PYTHON) $(TOOLS_DIR)/assemble_sound.py $(BUILD_DIR)/sound/samples/ sound/sound_banks/ $(SOUND_BIN_DIR)/sound_data.ctl $(SOUND_BIN_DIR)/ctl_header $(SOUND_BIN_DIR)/sound_data.tbl $(SOUND_BIN_DIR)/tbl_header $(C_DEFINES) $$(cat $(ENDIAN_BITWIDTH))
$(SOUND_BIN_DIR)/sound_data.tbl: $(SOUND_BIN_DIR)/sound_data.ctl
@true
@@ -764,9 +750,9 @@ $(SOUND_BIN_DIR)/ctl_header: $(SOUND_BIN_DIR)/sound_data.ctl
$(SOUND_BIN_DIR)/tbl_header: $(SOUND_BIN_DIR)/sound_data.ctl
@true
$(SOUND_BIN_DIR)/sequences.bin: $(SOUND_BANK_FILES) sound/sequences.json $(SOUND_SEQUENCE_DIRS) $(SOUND_SEQUENCE_FILES)
$(SOUND_BIN_DIR)/sequences.bin: $(SOUND_BANK_FILES) sound/sequences.json $(SOUND_SEQUENCE_DIRS) $(SOUND_SEQUENCE_FILES) $(ENDIAN_BITWIDTH)
@$(PRINT) "$(GREEN)Generating: $(BLUE)$@ $(NO_COL)\n"
$(V)$(PYTHON) $(TOOLS_DIR)/assemble_sound.py --sequences $@ $(SOUND_BIN_DIR)/sequences_header $(SOUND_BIN_DIR)/bank_sets sound/sound_banks/ sound/sequences.json $(SOUND_SEQUENCE_FILES) $(C_DEFINES)
$(V)$(PYTHON) $(TOOLS_DIR)/assemble_sound.py --sequences $@ $(SOUND_BIN_DIR)/sequences_header $(SOUND_BIN_DIR)/bank_sets sound/sound_banks/ sound/sequences.json $(SOUND_SEQUENCE_FILES) $(C_DEFINES) $$(cat $(ENDIAN_BITWIDTH))
$(SOUND_BIN_DIR)/bank_sets: $(SOUND_BIN_DIR)/sequences.bin
@true
@@ -821,24 +807,16 @@ $(BUILD_DIR)/include/level_headers.h: levels/level_headers.h.in
# Generate version_data.h
$(BUILD_DIR)/src/game/version_data.h: tools/make_version.sh
@$(PRINT) "$(GREEN)Generating: $(BLUE)$@ $(NO_COL)\n"
$(V)sh tools/make_version.sh $(CROSS) > $@
$(V)tools/make_version.sh $(CROSS) > $@
#==============================================================================#
# Compilation Recipes #
#==============================================================================#
# Compile C code
ifeq ($(FIXLIGHTS),1)
# This must not be run multiple times at once, so we run it ahead of time rather than in a rule
DUMMY != $(PYTHON) $(FIXLIGHTS_PY) actors
DUMMY != $(PYTHON) $(FIXLIGHTS_PY) levels
endif
$(BUILD_DIR)/%.o: %.c
$(call print,Compiling:,$<,$@)
$(V)$(CC) -c $(CFLAGS) -MMD -MF $(BUILD_DIR)/$*.d -o $@ $<
$(BUILD_DIR)/%.o: %.cpp
$(call print,Compiling (C++):,$<,$@)
$(V)$(CXX) -c $(CFLAGS) -std=c++17 -Wno-register -MMD -MF $(BUILD_DIR)/$*.d -o $@ $<
$(BUILD_DIR)/%.o: $(BUILD_DIR)/%.c
$(call print,Compiling:,$<,$@)
$(V)$(CC) -c $(CFLAGS) -MMD -MF $(BUILD_DIR)/$*.d -o $@ $<
@@ -856,7 +834,7 @@ $(BUILD_DIR)/rsp/%.bin $(BUILD_DIR)/rsp/%_data.bin: rsp/%.s
# Run linker script through the C preprocessor
$(BUILD_DIR)/$(LD_SCRIPT): $(LD_SCRIPT) $(BUILD_DIR)/goddard.txt
$(call print,Preprocessing linker script:,$<,$@)
$(V)$(CPP) $(CPPFLAGS) -DBUILD_DIR=$(BUILD_DIR) -DULTRALIB=lib$(ULTRALIB) $(DEBUG_MAP_STACKTRACE_FLAG) -MMD -MP -MT $@ -MF $@.d -o $@ $<
$(V)$(CPP) $(CPPFLAGS) -DBUILD_DIR=$(BUILD_DIR) $(DEBUG_MAP_STACKTRACE_FLAG) -MMD -MP -MT $@ -MF $@.d -o $@ $<
# Link libgoddard
$(BUILD_DIR)/libgoddard.a: $(GODDARD_O_FILES)
@@ -871,11 +849,11 @@ $(BUILD_DIR)/libz.a: $(LIBZ_O_FILES)
# SS2: Goddard rules to get size
$(BUILD_DIR)/sm64_prelim.ld: sm64.ld $(O_FILES) $(YAY0_OBJ_FILES) $(SEG_FILES) $(BUILD_DIR)/libgoddard.a $(BUILD_DIR)/libz.a
$(call print,Preprocessing preliminary linker script:,$<,$@)
$(V)$(CPP) $(CPPFLAGS) -DPRELIMINARY=1 -DBUILD_DIR=$(BUILD_DIR) -DULTRALIB=lib$(ULTRALIB) -MMD -MP -MT $@ -MF $@.d -o $@ $<
$(V)$(CPP) $(CPPFLAGS) -DPRELIMINARY=1 -DBUILD_DIR=$(BUILD_DIR) -MMD -MP -MT $@ -MF $@.d -o $@ $<
$(BUILD_DIR)/sm64_prelim.elf: $(BUILD_DIR)/sm64_prelim.ld
@$(PRINT) "$(GREEN)Linking Preliminary ELF file: $(BLUE)$@ $(NO_COL)\n"
$(V)$(LD) --gc-sections -L $(BUILD_DIR) -T $< -Map $(BUILD_DIR)/sm64_prelim.map --no-check-sections $(addprefix -R ,$(SEG_FILES)) -o $@ $(O_FILES) -L$(LIBS_DIR) -l$(ULTRALIB) -Llib $(LINK_LIBRARIES) -u sprintf -u osMapTLB -Llib/gcclib/$(LIBGCCDIR) -lgcc
$(V)$(LD) --gc-sections -L $(BUILD_DIR) -T undefined_syms.txt -T $< -Map $(BUILD_DIR)/sm64_prelim.map --no-check-sections $(addprefix -R ,$(SEG_FILES)) -o $@ $(O_FILES) -L$(LIBS_DIR) -l$(ULTRALIB) -Llib $(LINK_LIBRARIES) -u sprintf -u osMapTLB -Llib/gcclib/$(LIBGCCDIR) -lgcc
$(BUILD_DIR)/goddard.txt: $(BUILD_DIR)/sm64_prelim.elf
$(call print,Getting Goddard size...)
@@ -883,25 +861,17 @@ $(BUILD_DIR)/goddard.txt: $(BUILD_DIR)/sm64_prelim.elf
$(BUILD_DIR)/asm/debug/map.o: asm/debug/map.s $(BUILD_DIR)/sm64_prelim.elf
$(call print,Assembling:,$<,$@)
$(V)python3 tools/mapPacker.py $(BUILD_DIR)/sm64_prelim.elf $(BUILD_DIR)/bin/addr.bin $(BUILD_DIR)/bin/name.bin
$(V)python3 tools/mapPacker.py $(BUILD_DIR)/sm64_prelim.map $(BUILD_DIR)/bin/addr.bin $(BUILD_DIR)/bin/name.bin
$(V)$(CROSS)gcc -c $(ASMFLAGS) $(foreach i,$(INCLUDE_DIRS),-Wa,-I$(i)) -x assembler-with-cpp -MMD -MF $(BUILD_DIR)/$*.d -o $@ $<
# Link SM64 ELF file
$(ELF): $(BUILD_DIR)/sm64_prelim.elf $(BUILD_DIR)/asm/debug/map.o $(O_FILES) $(YAY0_OBJ_FILES) $(SEG_FILES) $(BUILD_DIR)/$(LD_SCRIPT) $(BUILD_DIR)/libz.a $(BUILD_DIR)/libgoddard.a
$(ELF): $(BUILD_DIR)/sm64_prelim.elf $(BUILD_DIR)/asm/debug/map.o $(O_FILES) $(YAY0_OBJ_FILES) $(SEG_FILES) $(BUILD_DIR)/$(LD_SCRIPT) undefined_syms.txt $(BUILD_DIR)/libz.a $(BUILD_DIR)/libgoddard.a
@$(PRINT) "$(GREEN)Linking ELF file: $(BLUE)$@ $(NO_COL)\n"
$(V)$(LD) --gc-sections -L $(BUILD_DIR) -T $(BUILD_DIR)/$(LD_SCRIPT) -T goddard.txt -Map $(BUILD_DIR)/sm64.$(VERSION).map --no-check-sections $(addprefix -R ,$(SEG_FILES)) -o $@ $(O_FILES) -L$(LIBS_DIR) -l$(ULTRALIB) -Llib $(LINK_LIBRARIES) -u sprintf -u osMapTLB -Llib/gcclib/$(LIBGCCDIR) -lgcc -lrtc
$(V)$(LD) --gc-sections -L $(BUILD_DIR) -T undefined_syms.txt -T $(BUILD_DIR)/$(LD_SCRIPT) -T goddard.txt -Map $(BUILD_DIR)/sm64.$(VERSION).map --no-check-sections $(addprefix -R ,$(SEG_FILES)) -o $@ $(O_FILES) -L$(LIBS_DIR) -l$(ULTRALIB) -Llib $(LINK_LIBRARIES) -u sprintf -u osMapTLB -Llib/gcclib/$(LIBGCCDIR) -lgcc -lrtc
# Build ROM
ifeq (n,$(findstring n,$(firstword -$(MAKEFLAGS))))
# run with -n / --dry-run
$(ROM):
@$(PRINT) "$(BLUE)DRY RUNS ARE DISABLED$(NO_COL)\n"
else
# not running with -n / --dry-run
$(ROM): $(ELF)
$(call print,Building ROM:,$<,$@)
endif
ifeq ($(CONSOLE),n64)
$(V)$(OBJCOPY) --pad-to=0x101000 --gap-fill=0xFF $< $@ -O binary
else ifeq ($(CONSOLE),bb)
@@ -914,7 +884,7 @@ endif
$(BUILD_DIR)/$(TARGET).objdump: $(ELF)
$(OBJDUMP) -D $< > $@
.PHONY: all clean distclean default test load rebuildtools
.PHONY: all clean distclean default diff test load
# with no prerequisites, .SECONDARY causes no intermediate target to be removed
.SECONDARY:

View File

@@ -39,8 +39,6 @@ ACTOR_GROUPS := \
LEVEL_FILES := $(addsuffix leveldata,$(LEVEL_DIRS))
LEVEL_ELF_FILES := $(foreach level_dir,$(LEVEL_DIRS),$(BUILD_DIR)/levels/$(level_dir)leveldata.elf)
SEG_FILES := \
$(SEGMENTS:%=$(BUILD_DIR)/bin/%.elf) \
$(ACTOR_GROUPS:%=$(BUILD_DIR)/actors/%.elf) \

View File

@@ -14,23 +14,21 @@ This is a fork of the ultrasm64 repo by CrashOveride which includes the followin
- **ArcticJaguar725**: Most audio configuration and layout changes, colored ia4 text, floombas, various bugfixes, and more
- **CowQuack**: Adjustable skybox sizes, area-specific skybox function
- **thecozies**: Water surface types, general maintenance, and time
- **MrComit**: General use object defines, JUMP_KICK_FIX
- **MrComit**: General use object defines, JUMP_KICK_FIX, LEDGE_GRABS_CHECK_SLOPE_ANGLE
- **aglab2**: Bugfixes (particularly puppycam), refactor stuff
- **someone2639**: math.s and crash screen disam, stack trace, map packing, shiftable segments 2, S2DEX engine
- **Arthurtilly**: Platform Displacement 2
- **Fazana**: PuppyLib, ucode swapping, audio load time optimisations (with Arctic), general hacker qol improvements, visual debug
- **Fazana**: PuppyLib, ucode swapping, audio load time optimizations (with Arctic), general hacker qol improvements, visual debug
- **Reonu**: Starting the project/repo, widescreen, reonucam, various defines for hacker QoL
- **JoshDuMan**: Decomp guy, general assistance
- **Arceveti**: Silhouette, shadow optimisation, better hanging, breath meter, 4 controller support
- **Arceveti**: Silhouette, shadow optimizations, better hanging, breath meter, z offset geo command, star glow, painting objects, implementation of frameperfection's rounded corners fix, naming most unknowns, various hacker qol improvements, and various optimizations/fixes
- **axollyon**: Console testing, bugfixes, idea-guying, and had a hand in silhouettes
- **Wiseguy**: World scale reimplementation, silhouette, graph node optimisations, instant input patch, cake screen fix, segmented code support, and various optimizations/fixes
- **Kaze**: Graph node optimisations, automatic optimal collision distance
- **Wiseguy**: World scale reimplementation, silhouette, graph node optimizations, instant input patch, cake screen fix, segmented code support, matrix stack fix, and various optimizations/fixes
- **Kaze Emanuar**: Graph node & math util optimizations, automatic optimal collision distance, cell buffer fix
- **Pyro Jay**: Texture improvements, repo banner art, some QoL stuff
- **CrashOveride**: creating the [ultrasm64](https://github.com/CrashOveride95/ultrasm64) repo
- **falcobuster**: Original coordinate overflow fix (world scale), ASM version of extended bounds, emulator detector
- **falcobuster**: Original coordinate overflow fix (world scale), ASM version of extended bounds
- **anonymous_moose**: porting falco's extended bounds to decomp
- **tuxlovesyou**: `LOAD_MIO0_TEXTURE` macro and moral support
- **devwizard**: the PJ64 pre-v3.0 detection part of the emulator detector
Thanks to Frame#5375 and AloXado320 for also helping with silhouette stuff
@@ -62,6 +60,7 @@ Thanks to Frame#5375 and AloXado320 for also helping with silhouette stuff
- Toggle to disable fall damage and the fall damage sound *
- Nonstop stars *
- Removed course-specific camera processing *
- You can increase the number of frames that you have to perform a firsty *
- Ability to set Mario's movement speed when hanging from a ceiling *
- Tighter hanging controls (Mario will face the direction of the analog stick directly while hanging from a ceiling) *
- reonucam3: custom camera by Reonu. This is included as a .patch file in the enhancements folder, you need to apply it if you want this camera.
@@ -83,7 +82,7 @@ Thanks to Frame#5375 and AloXado320 for also helping with silhouette stuff
- Many general use defines for object struct members, meant for use in custom object behaviors. Check `include/object_fields.h` for more info on this. (By MrComit)
- Included `actors/group0.c` in `behavior_data.c`
- The internal ROM name is now set with a define in `config/config_rom.h` to make it simpler
- There is a `gEmulator` variable to detect console or specific emulators and emulator versions
- There is a `gIsConsole` variable that is 1 when running on console and 0 when running on emulator. This way you can wrap your code in a console check.
- Expanded audio heap allows for a larger concurrent note count and the importing of more m64 sequences and sound banks (By ArcticJaguar725) *
- You can set a test level in `config/config_debug.h` in order to boot straight into it, so you can quickly test the level you're working on. *
- Allow all surfaces in the game to have a `force` parameter. Activating this doesn't REQUIRE you to set `force` for every surface: If you don't set, it will default to 0x0000 rather than crashing. Increases RAM usage of collision. *
@@ -106,7 +105,7 @@ Thanks to Frame#5375 and AloXado320 for also helping with silhouette stuff
**Neat Misc. Changes:**
- Instant Input patch by Wiseguy (Removes all input lag caused by plugins supporting framebuffer)
- This means that you'll have to do your framebuffer effects on buffer 0 for emulator, but NOT for console. You can use the `gEmulator` variable to check for console when doing your framebuffer effects.
- This means that you'll have to do your framebuffer effects on buffer 0 for emulator, but NOT for console. You can use the `gIsConsole` variable to check for console when doing your framebuffer effects.
- Widescreen (16:9) support toggleable by pressing `L` in the pause menu. *
- S2DEX engine by someone2639! To use it, compile with `make TEXT_ENGINE=s2dex_text_engine` or just set `TEXT_ENGINE` to `s2dex_text_engine` in the makefile.
- ia8 (64x64) coins, the vanilla coin texture is upgraded to accomodate. *
@@ -122,7 +121,7 @@ Thanks to Frame#5375 and AloXado320 for also helping with silhouette stuff
- Use `render_multi_image` to draw large texture rectangles consisting of multiple images on the screen.
- More info in `puppyprint.c`
- Wiseguy's Farcall TLB mapping allows to store executable code inside uncompressed segments, that can be loaded and ran as needed, instead of it having to be loaded at all times. See `farcall.h` in the include folder for instructions and details.
- Red Coin Stars now support up to 99 red coins! In addition, multi-area red coin missions can now be created by setting the 2nd behavior paramater of the red coin star to the number of reds required for the star to spawn.
# UltraSM64
- This repo contains a full decompilation of Super Mario 64 (J), (U), (E), and (SH).
@@ -136,7 +135,7 @@ Thanks to Frame#5375 and AloXado320 for also helping with silhouette stuff
- It has been patched with someone2639's shiftable segments patch
- Wiseguy's instant input patch has been added to allow for less input lag on emulation (Does not affect console)
This does mean that any framebuffer effects will have to be done on buffer 0 if targeting emulators
- Automatic console and emulator detection: Use the `gEmulator` variable to wrap your code in an emulator check.
- Automatic console and emulator detection: Use the `gIsConsole` variable to wrap your code in an emulator check.
- Separate defines for emulator and console black border height.
- Getting HVQM FMV support to work with the game is WIP.

View File

@@ -1 +1 @@
v2.1.2
v2.0.1

View File

@@ -27,7 +27,6 @@ const Gfx bubble_seg4_dl_0401DD60[] = {
gsSPVertex(bubble_seg4_vertex_0401CD20, 4, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPEndDisplayList(),
};
@@ -41,7 +40,6 @@ const Gfx bubble_seg4_dl_0401DDE0[] = {
gsSPVertex(bubble_seg4_vertex_0401CD20, 4, 0),
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPEndDisplayList(),
};

View File

@@ -1,6 +1,5 @@
// Chain Ball
// 0x06020AA0
static const Vtx chain_ball_seg6_vertex_06020AA0[] = {
{{{ -26, -26, 0}, 0, { 0, 992}, {0xff, 0xff, 0xff, 0xff}}},

View File

@@ -123,7 +123,6 @@ const Gfx coin_seg3_dl_start[] = {
const Gfx coin_seg3_dl_end[] = {
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSPTexture(0x0001, 0x0001, 0, G_TX_RENDERTILE, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPSetGeometryMode(G_LIGHTING),
gsSPEndDisplayList(),
@@ -316,7 +315,6 @@ const Gfx coin_seg3_dl_red_45_r[] = {
gsSPBranchList(coin_seg3_dl_end),
};
const Gfx coin_seg3_dl_red_22_5_r[] = {
gsDPPipeSync(),
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_8b, 64, coin_seg3_texture_22_5_ia8),
@@ -381,7 +379,6 @@ const Gfx coin_seg3_dl_secret_45_r[] = {
gsSPBranchList(coin_seg3_dl_end),
};
const Gfx coin_seg3_dl_secret_22_5_r[] = {
gsDPPipeSync(),
gsDPSetTextureImage(G_IM_FMT_IA, G_IM_SIZ_8b, 64, coin_seg3_texture_22_5_ia8),
@@ -504,7 +501,6 @@ const Gfx coin_seg3_sub_dl_begin[] = {
const Gfx coin_seg3_sub_dl_end[] = {
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
gsSPTexture(0x0001, 0x0001, 0, G_TX_RENDERTILE, G_OFF),
gsDPPipeSync(),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPSetGeometryMode(G_LIGHTING),
gsSPEndDisplayList(),

View File

@@ -226,6 +226,9 @@ extern const Gfx mushroom_1up_seg3_dl_0302A660[];
// number
extern const GeoLayout number_geo[];
// painting
extern const GeoLayout painting_geo[];
// pebble
extern const Gfx pebble_seg3_dl_0301CB00[];

View File

@@ -18,6 +18,7 @@
#include "leaves/geo.inc.c"
#include "mario_cap/geo.inc.c"
#include "number/geo.inc.c"
#include "painting/geo.inc.c"
#include "mushroom_1up/geo.inc.c"
#include "star/geo.inc.c"
#include "dirt/geo.inc.c"

View File

@@ -8,7 +8,6 @@ ALIGNED8 static const Texture cyan_fish_seg6_texture_0600D468[] = {
#include "actors/cyan_fish/cyan_fish.rgba16.inc.c"
};
// 0x0600DC80
static const Vtx cyan_fish_seg6_vertex_0600DC80[] = {
{{{ -95, 32, 0}, 0, { 32, 436}, {0xa9, 0x5b, 0xff, 0xff}}},

View File

@@ -476,7 +476,6 @@ const Gfx door_seg3_sub_dl_key_door[] = {
gsSPEndDisplayList(),
};
// 0x03014370
static const Vtx door_seg3_vertex_lock[] = {
{{{ 600, 916, 60}, 0, { 480, 0}, {0x00, 0x00, 0x7f, 0xff}}},

View File

@@ -27,6 +27,6 @@
#include "sparkle_animation/model.inc.c"
#ifdef S2DEX_TEXT_ENGINE
#include "src/s2d_engine/s2d_config.h"
#include "src/s2d_engine/config.h"
#include FONT_C_FILE
#endif

View File

@@ -43,6 +43,17 @@ const GeoLayout klepto_geo[] = {
GEO_TRANSLATE_ROTATE_WITH_DL(LAYER_OCCLUDE_SILHOUETTE_OPAQUE, 0, 100, 0, 180, 270, 0, star_seg3_dl_body),
GEO_ASM(0, geo_offset_klepto_held_object),
GEO_TRANSLATE_ROTATE_WITH_DL(LAYER_OCCLUDE_SILHOUETTE_ALPHA, 0, 100, 0, 180, 270, 0, star_seg3_dl_eyes),
#if STAR_GLOW
GEO_OPEN_NODE(),
GEO_BILLBOARD(),
GEO_OPEN_NODE(),
GEO_Z_OFFSET(48),
GEO_OPEN_NODE(),
GEO_DISPLAY_LIST(LAYER_TRANSPARENT_INTER, dl_star_glow),
GEO_CLOSE_NODE(),
GEO_CLOSE_NODE(),
GEO_CLOSE_NODE(),
#endif
GEO_CLOSE_NODE(),
GEO_CLOSE_NODE(),
GEO_NODE_START(), // KLEPTO_ANIM_STATE_HOLDING_TRANSPARENT_STAR

Some files were not shown because too many files have changed in this diff Show More