Blockyyy
3c84097e15
fix new line, remove HOOK_BEFORE_OBJECT_UPDATE
2025-10-18 21:12:03 +02:00
PeachyPeach
17c311ae7d
smlua event hooks refactor ( #826 )
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (push) Waiting to run
Build coop / build-windows-opengl (push) Waiting to run
Build coop / build-windows-directx (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run
2025-06-09 07:40:48 +10:00
djoslin0
838fe40d6e
Add HOOK_ON_ADD_SURFACE and HOOK_ON_CLEAR_AREAS ( #843 )
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (push) Waiting to run
Build coop / build-windows-opengl (push) Waiting to run
Build coop / build-windows-directx (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run
2025-06-08 13:46:28 +10:00
Beckowl
566e2ba934
Add `ModelExtendedId param to HOOK_OBJECT_SET_MODEL` ( #834 )
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (push) Waiting to run
Build coop / build-windows-opengl (push) Waiting to run
Build coop / build-windows-directx (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run
2025-06-03 18:12:56 +10:00
NitroDisPro
dea7247d9f
Add HOOK_MARIO_OVERRIDE_FLOOR_CLASS ( #812 )
...
* Update lua_definitions constants.lua
* you kiddin' dude
* Update lua docs constants.md
* Update smlua_constants_autogen.c
* Update smlua_hooks.h
* Update mario.c to add HOOK_MARIO_OVERRIDE_FLOOR_CLASS to mario_get_floor_class(m)
yeah i sure love using web interface
* Update lua guide hooks.md
* Whoops
2025-05-28 18:13:46 -04:00
Baconator2558
e30e026e3e
Add actionArg to HOOK_BEFORE_SET_MARIO_ACTION ( #810 )
...
* Update mario.c
* Update smlua_hooks.h
* Update smlua_hooks.c
* Update hooks.md
2025-05-16 18:58:51 +02:00
Blockyyy
a0f557bf68
fix HOOK_BEFORE_WARP ( #753 )
...
* fix HOOK_BEFORE_WARP
* actual fix and correct hooks.md
* reset arg, make WARP_ARG_EXIT_COURSE -1
2025-04-30 18:22:31 -04:00
Blockyyy
ea353af5c9
HOOK_ON_INSTANT_WARP ( #747 )
...
* make HOOK_ON_WARP trigger on instant warps
* oops
* HOOK_ON_INSTANT_WARP
* make the displacement a Vec3s, hooks.md
* fix hooks.md oversight
* get rid of this
2025-04-27 17:21:17 -04:00
Agent X
5d5147cb0e
Document more functions! (83%)
Build coop / build-ubuntu (push) Has been cancelled
Build coop / build-windows (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
2025-04-25 17:03:41 -04:00
Agent X
6c7068f1ea
Revert "Constants fix"
...
This reverts commit 6659377cd4 .
2025-04-17 18:27:36 -04:00
Agent X
6659377cd4
Constants fix
2025-04-17 14:51:03 -04:00
Agent X
a1ad188a6b
Update hooks.md
2025-04-10 17:33:13 -04:00
Baconator2558
ce8350514c
Add HOOK_ALLOW_FORCE_WATER_ACTION ( #731 )
...
* Update constants.md
* Update constants.lua
* Update smlua_constants_autogen.c
* Update surface_terrains.h
* Update hooks.md
* Add files via upload
* Update constants.lua
* Update smlua_hooks.h
* Update smlua_constants_autogen.c
* Update constants.md
* Update mario_actions_airborne.c
* Update mario_actions_airborne.c
* Update mario_actions_stationary.c
* Update mario_actions_automatic.c
* Update mario_actions_object.c
* Update mario_actions_moving.c
* Update mario_actions_submerged.c
* Update mario_actions_airborne.c
* Update mario_actions_stationary.c
* Update mario_actions_automatic.c
* Update mario_actions_object.c
* Update mario_actions_moving.c
* Update mario_actions_submerged.c
* Update hooks.md
* Update hooks.md
* Update mario_actions_submerged.c
* Update hooks.md
* deal with gCamera being exposed incorrectly
* update gCamera as the pointer is updated
* served time for crimes against C
* Update revamped flying damage (#722 )
* forgot to null check it
* lois (#5 )
* deal with gCamera being exposed incorrectly
* update gCamera as the pointer is updated
* served time for crimes against C
* Update revamped flying damage (#722 )
* forgot to null check it
* Fix/optimize/improve lighting engine
* Camera fixes
---------
Co-authored-by: Isaac0-dev <62234577+Isaac0-dev@users.noreply.github.com>
Co-authored-by: Sunk <69110309+Sunketchupm@users.noreply.github.com>
Co-authored-by: Agent X <44549182+AgentXLP@users.noreply.github.com>
* Update lighting_engine.c
* Update lighting_engine.c
* bart (#6 )
* deal with gCamera being exposed incorrectly
* update gCamera as the pointer is updated
* served time for crimes against C
* Update revamped flying damage (#722 )
* forgot to null check it
* Fix/optimize/improve lighting engine
* Camera fixes
* Fix small LE whoopsie
* Update CS to v1.13
* New coopnet libraries for macOS (#725 )
* Fix camera issues (#726 )
* Fix vanilla camera in automatic
* Correct dpad movement direction
Matches the same direction as romhack camera now
* Make Git hash only dev or debug
* Fixes
* fix some script errors in mods that pass in nil objects
technically this is the mod's fault, but this is more consistent behavior for a cheap fix
* Further fix camera (#727 )
* Further fix camera
* Remove re-override
* fix scrolling textures simply not scrolling
this was caused by the duplicated vertices commit
* free stuff
---------
Co-authored-by: Isaac0-dev <62234577+Isaac0-dev@users.noreply.github.com>
Co-authored-by: Sunk <69110309+Sunketchupm@users.noreply.github.com>
Co-authored-by: Agent X <44549182+AgentXLP@users.noreply.github.com>
Co-authored-by: EmeraldLockdown <86802223+EmeraldLoc@users.noreply.github.com>
* Update smlua_cobject.c
* Update mario_step.c
* Update bettercamera.inc.h
* Update camera.c
* Update smlua_cobject.h
* Update camera.c
* Add files via upload
* Update constants.lua
* Update constants.md
* Update hooks.md
* Update smlua_constants_autogen.c
* Update smlua_hooks.h
* Update smlua_hooks.h
* Update smlua_hooks.c
* Update mario_actions_airborne.c
* Update mario_actions_automatic.c
* Update mario_actions_moving.c
* Update mario_actions_object.c
* Update mario_actions_stationary.c
* Update mario_actions_submerged.c
* Update mario_step.c
* Update mario_actions_airborne.c
* Update mario_actions_automatic.c
* Update mario_actions_moving.c
* Update mario_actions_object.c
* Update mario_actions_stationary.c
* Update mario_actions_submerged.c
* Update hooks.md
* Update mario_actions_airborne.c
* Update mario_actions_automatic.c
* Update mario_actions_moving.c
* Update mario_actions_object.c
* Update mario_actions_stationary.c
* Update mario_actions_submerged.c
* Update mario_actions_submerged.c
* Update mario_step.c
* Update mario_actions_stationary.c
* Update mario_actions_submerged.c
* Update mario_step.c
* Update mario_actions_airborne.c
* Update mario_actions_airborne.c
* Update mario_actions_automatic.c
* Update mario_actions_moving.c
* Update mario_actions_object.c
* Update mario_actions_submerged.c
---------
Co-authored-by: Isaac0-dev <62234577+Isaac0-dev@users.noreply.github.com>
Co-authored-by: Sunk <69110309+Sunketchupm@users.noreply.github.com>
Co-authored-by: Agent X <44549182+AgentXLP@users.noreply.github.com>
Co-authored-by: EmeraldLockdown <86802223+EmeraldLoc@users.noreply.github.com>
2025-04-07 18:47:52 -04:00
Agent X
4b36c4df45
Make Yoshi visible in main menu
2025-04-06 14:16:51 -04:00
Baconator2558
c26e968076
Allow wind to be ignored with HOOK_ALLOW_HAZARD_SURFACE ( #721 )
...
* Update constants.md
* Update constants.lua
* Update smlua_constants_autogen.c
* Update surface_terrains.h
* Update hooks.md
* Add files via upload
2025-03-27 14:48:36 -04:00
Agent X
0f0997a2ac
Add mod menu text hook and make hook functions return index
Build coop / build-ubuntu (push) Waiting to run
Build coop / build-windows (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run
2025-03-15 18:04:59 -04:00
Isaac0-dev
9a13c298ad
added HOOK_ON_INTERACTIONS
...
this is called after mario's interactions are processed
2025-02-11 17:58:57 +10:00
Agent X
8c8b7e91a3
Update some things
2024-12-29 14:38:45 -05:00
Agent X
f7a48d23fe
HOOK_ON_DJUI_THEME_CHANGED
2024-12-11 23:55:10 -05:00
EmeraldLockdown
c3d3f8545a
HOOK_ON_NAMETAGS_RENDER (#213 )
2024-09-12 19:01:16 +10:00
Agent X
fe0c766e76
Fix outdated hook name in hooks.md
2024-07-11 00:42:22 -04:00
Agent X
8a5a23a8a6
Add HOOK_ON_MODS_LOADED
2024-06-29 16:00:42 -04:00
Agent X
2b2dceb333
Add a mod menu where mods can put DJUI elements ( #56 )
...
* Add a menu where mods can put their options at
* Document mod menu hook functions
* Add HOOK_ON_LANGUAGE_CHANGED
* Add new Cheats mod
* Make player menu disable singleplayer pause
* fix some git merge conflicts that weren't resolved (#55 )
and added -latomic to build flags to fix compile warnings while compiling miniaudio
* Remove legacy 'deluxe' field from built-in mods
* Lots of improvements to memory safety
* Abbreviated hex color parsing
Co-Authored-By: Mechstreme <84944335+mechstreme@users.noreply.github.com>
---------
Co-authored-by: Isaac0-dev <62234577+Isaac0-dev@users.noreply.github.com>
Co-authored-by: Mechstreme <84944335+mechstreme@users.noreply.github.com>
2024-06-01 20:52:43 -04:00
Agent X
ec3fb07e76
Add @Hex4dec HOOK_ON_ATTACK_OBJECT
2024-05-11 18:44:18 -04:00
Isaac0-dev
76b66e9b7d
give Lua mods some more control over dialog boxes ( #19 )
...
exposed set_menu_mode, create_dialog_box, create_dialog_box_with_response, create_dialog_box_with_var, create_dialog_inverted_box, reset_dialog_render_state
added and exposed get_dialog_response
HOOK_ON_DIALOG can now take an extra return value as a string, which will be used instead of what ever was going to be in the textbox.
2024-05-06 17:51:28 +10:00
Emily♥
29b67a3ef0
Pass "interaction" to HOOK_ALLOW_PVP_ATTACK and HOOK_ON_PVP_ATTACK + Fix broken links ( #566 )
...
* Pass "interaction" to HOOK_ALLOW_PVP_ATTACK and HOOK_ON_PVP_ATTACK
This let's you test for the kind of attack in the hook; for example, you can do `interaction & INT_KICK ~= 0` to test if the attack is a kick.
* Fix broken links in wiki
Have to go up one directory
2024-03-25 18:47:27 -04:00
Agent X
d7bad7dcdd
HOOK_ON_PLAY_SOUND
2024-02-18 14:54:01 -05:00
Agent X
741d742bab
Add HOOK_ON_OBJECT_LOAD
2023-12-14 19:33:17 -05:00
Agent X
c2e85a0bcf
Add HOOK_OVERRIDE_PHYS_STEP_DEFACTO_SPEED
2023-12-13 16:57:38 -05:00
MysterD
8d72c7eb76
Remove hook_exclamation_box()
2023-11-26 21:34:28 -05:00
Agent X
436532bfba
Fix hooks.md
2023-11-26 21:33:26 -05:00
MysterD
ce9c6e1899
Add HOOK_ON_HUD_RENDER_BEHIND to the docs
2023-11-26 21:32:05 -05:00
Sunk
a85c8dbbf8
Create hook_exclamation_box in place of set_exclamation_box_contents ( #524 )
...
* Revert set_exclamation_box_contents()
In favor of the hook
* Create `hook_exclamation_box`
2023-11-21 17:22:54 -05:00
Isaac0-dev
23193887db
added HOOK_MIRROR_MARIO_RENDER to Lua ( #514 )
...
* added HOOK_MIRROR_MARIO_RENDER to Lua
Previously there was no way to interact with mirror Mario using the Lua api, so this fixes that.
* remove premature optimisation
* revert that
2023-11-21 17:00:35 -05:00
Agent X
49bca1cc01
sm64coopdx
...
Co-Authored-By: Yuyake <140215214+AngelicMiracles@users.noreply.github.com>
Co-Authored-By: FluffaMario <50761036+FluffaMario@users.noreply.github.com>
Co-Authored-By: Gregory Heskett <gheskett@gmail.com>
Co-Authored-By: iZePlayzYT <69536095+iZePlayzYT@users.noreply.github.com>
Co-Authored-By: Isaac0-dev <62234577+Isaac0-dev@users.noreply.github.com>
Co-Authored-By: eros71 <16540103+eros71-dev@users.noreply.github.com>
2023-10-30 01:03:36 -04:00
Dominicentek
2629381971
Customizable dialogs ( #411 )
...
* add customizable dialogs
* remove testing mod
* add HOOK_ON_DIALOG
* Reset dialog overrides in `network_shutdown`
It may have compile errors idk editing code on phone sucks
* typo smh
* copy over the file from original repo so this fork can be synced
* run autogen again
* actually im stupid
2023-06-18 20:04:39 -07:00
Isaac0-dev
05f4c42f81
add cancels to HOOK_BEFORE_PHYS_STEP allowing for custom step systems ( #400 )
...
* add cancels to HOOK_BEFORE_PHYS_STEP allowing for custom step systems
* give lua mods access to stepArg and nextPos from hanging and air step; fix a crash when m.floor is null
2023-05-31 21:10:06 -07:00
Isaac0-dev
08d31b8255
give mods more control over animations ( #369 )
...
* give mods more control over animations
- added HOOK_ON_OBJECT_ANIM_UPDATE
- make some animation values mutable
* add to docs
2023-04-29 01:56:18 +02:00
PeachyPeach
df248e5139
Adding hazardType to HOOK_ALLOW_HAZARD_SURFACE; more loading info ( #355 )
2023-04-23 12:11:56 -04:00
PeachyPeach
999ea1dd42
Expose globally custom behaviors defined with hook_behavior ( #345 )
...
* Expose globally custom behaviors defined with hook_behavior; macros for mod strings max length
* fixes
* made customBehaviorIndex a mod field to be more relevant
2023-04-17 21:54:55 -07:00
Sunk
08f8502cab
Remove duplicate hook documentation ( #318 )
2023-03-23 17:13:08 -04:00
Isaac0-dev
7e46ce4a21
fixes and other improvements ( #309 )
...
* HOOK_JOINED_GAME
* expose VERSION_TEXT, and two more adjusments
* show if a constant type is a string with autogen
* fix another blunder by that guy
* should use an or operator here
* fix frame limiter stuff
2023-03-21 19:43:29 -04:00
Agent X
90bc1732f1
Merge pull request #303 from Sunketchupm/coop
...
Fix inaccuracies in hooks.md
2023-03-20 20:13:55 -04:00
Sunk
6c362312f7
Fix inaccuracies in hooks.md
2023-03-01 20:24:12 -05:00
Agent X
5653b2bec4
Add new param to documentation
2023-02-28 22:43:47 -05:00
Sunk
9ec75abc60
Add HOOK_BEFORE_SET_MARIO_ACTION ( #253 )
...
* Small quality of life changes
Disabled fixed collision in sm74 by default.
Popping should now completely set the popped player's speed to 0.
* Add HOOK_BEFORE_SET_MARIO_ACTION
Param: incoming action
Return: changes incoming action
If the return value is 1, prevent the action from happening entirely.
0 can't be used here since it'll break the title screen.
* Update hooks.md
* Revert "Small quality of life changes"
This reverts commit 05dd235cd0 .
2023-02-22 20:28:23 -05:00
Sunk
f40e714cb8
Update hooks.md
2023-01-15 19:24:36 -05:00
SMS Alfredo
35bdaef094
Character Sound Hook ( #223 )
...
* Character Sound Hook
* The rest of autogen to be safe
* Indentation Fix
* Fix more indentation
* Get rid of unneeded auto gen junk
* Run autogen again
* Add HOOK_CHARACTER_SOUND to guide
2022-12-17 19:25:30 +01:00
eros71
3214fc1de2
Fix link to get back to the lua ref ( #240 )
2022-11-30 00:44:35 -08:00
Isaac0-dev
07ad5a55c5
add HOOK_OBJECT_SET_MODEL ( #236 )
...
* add HOOK_OBJECT_SET_MODEL
runs whenever a behaviour sets a model.
2022-11-30 00:37:43 -08:00