sm64coopdx/autogen
PeachyPeach 9e5a45ecdd
Added lua profiler; Added useful object functions; Bug fixes (#65)
Added a basic lua profiler
        If the game is compiled with LUA_PROFILER=1, displays on screen the average execution time per frame of each active lua mod, in microseconds.

    Added object functions
        For some reasons, accessing the object fields obj.o* via lua is rather slow, and can drastically increase execution time of custom behaviors. For basic stuff like setting an object's velocity or moving it, some functions, missing from the original code, have been added:
        s32 obj_is_valid_for_interaction(struct Object *o): returns 1 if an object is valid for interaction, i.e. active, tangible and not interacted.
        s32 obj_check_hitbox_overlap(struct Object *o1, struct Object *o2): returns 1 if two objects hitboxes overlap. Doesn't check tangibility, only hitbox values.
        void obj_set_vel(struct Object *o, f32 vx, f32 vy, f32 vz): sets an object's velocity.
        void obj_move_xyz(struct Object *o, f32 dx, f32 dy, f32 dz): moves an object position by (dx, dy, dz).

    Bug fixes:
        Disable collisions with walls and ceilings after Mario exits a warp pipe to prevent softlocks in narrow places.
        Make the koopa shell exclamation box respawn after some time.
        Quicksand no longer downwarps and instant-kills Mario if he's shocked while being above it.
2022-04-20 11:20:45 -07:00
..
lua_constants Allow coop mods to use the backup save slot independently of the normal one 2022-04-10 00:30:47 -07:00
lua_definitions Added lua profiler; Added useful object functions; Bug fixes (#65) 2022-04-20 11:20:45 -07:00
autogen.sh Added the ability to spawn particles from Lua 2022-03-09 21:25:07 -08:00
common.py Un-hardcoded vanilla trajectories 2022-04-08 21:01:17 -07:00
convert_constants.py exposed sequence ids to lua 2022-04-15 21:51:18 -07:00
convert_functions.py Refactor how objects set their models 2022-04-19 18:47:50 -07:00
convert_structs.py Unhardcoded all behavior dialogs, allowed replacement of dialogs 2022-04-09 19:50:50 -07:00
extract_constants.py Update to Refresh 13 (#19) 2022-03-13 00:17:10 -08:00
extract_functions.py Added a bunch of camera functions to Lua 2022-03-25 23:46:37 -07:00
extract_object_fields.py Added object fields to Lua API 2022-02-19 13:51:02 -08:00
extract_structs.py Added DynOS warp functions to Lua API 2022-03-11 18:11:32 -08:00
gen_sound.py Fixed Wario sounds pitch/speed 2022-02-15 00:51:19 -08:00