Commit graph

5149 commits

Author SHA1 Message Date
PeachyPeach
f3df12cb3e
Lua API cleanup (#1302)
* Lua API cleanup

* rerun autogen
2026-06-21 14:08:00 +02:00
Cooliokid956
86a4799ef6
Add a few coin-related names, constants, parameters, etc. (#1319)
* sep

* Peachy

* header update fail

* include fail
2026-06-21 13:21:26 +02:00
EmeraldLockdown
37e0a558fc (Wall_E20) Update italian translations
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
Build coop / build-windows (push) Has been cancelled
2026-06-19 11:58:25 -05:00
PeachyPeachSM64
f01ffb4bd8 update object-lists
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (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
2026-06-18 19:45:50 +02:00
EmeraldLockdown
86c53786da
(Ty cooliokid956) Minor changes in C docs for smlua
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (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
2026-06-15 16:55:36 -05:00
PeachyPeachSM64
d16c495a51 Move unused fields to hidden so mods can still use them 2026-06-15 23:30:31 +02:00
PeachyPeachSM64
fa7ebb29e5 keep that for now
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (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
2026-06-15 18:58:03 +02:00
Isaac0-dev
5303357146
fix custom level data memory leak (#1256)
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (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
this fixes the giant memory leak that happens due to not freeing custom level data when closing a lobby.
`DynOS_Lvl_ModShutdown` was not freeing the data nodes for the level data, it was only freeing the surface data.
To fix this, I have made it use `DynOS_Gfx_Free` to free the `GfxData` correctly. I found that the level script VM will still be trying to warp from the custom level after `DynOS_Lvl_ModShutdown` is executed, so I added a schedule to simply free it the next frame.
I've made it force the level script to change to a vanilla level during mod shutdown. This is critical to ensure the VM doesn't continue to read from a freed level script.

Removed the explicit deletion of data nodes in `DynOS_MovtexQC_ModShutdown` because `DynOS_Gfx_Free` already frees that, and it's actually data owned by the data node, so it's more appropriate in `DynOS_Gfx_Free`
2026-06-15 11:22:03 +10:00
PeachyPeachSM64
bdf30bc88e Remove unused and filler fields from Lua
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (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
2026-06-14 19:42:05 +02:00
PeachyPeach
06ce5a2d3f
Custom object fields enhancements (#1230)
* Define global custom object fields

* _global_custom_object_fields

* improve custom object fields

* fix cobject pairs + add custom object fields; remove unused stuff

* mucher better

* paramater

* review 1

* review 2

* Fix 'obj_get_*_with_*_field_*' functions with custom fields
2026-06-14 16:28:52 +02:00
PeachyPeachSM64
289b11f27c Fix enum types in autogen [build] 2026-06-14 14:40:56 +02:00
PeachyPeachSM64
13746097a5 RET params are not inputs
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (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
2026-06-13 16:49:48 +02:00
EmeraldLockdown
5348f7c4e9
Remove 32 bit dependencies from actions
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (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
Fixes windows compilation on GitHub Actions
2026-06-08 13:26:30 -05:00
PeachyPeach
9e362bf13a
Fix Mario knockback (#1301)
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (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
2026-06-07 08:14:14 +10:00
PeachyPeachSM64
1f278609c6 Star Road: Racing penguin fix in C11
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (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
- Fix the penguin going out of bounds at the end of the race
- No more fat penguin at 120 stars
2026-06-06 14:49:25 +02:00
PeachyPeachSM64
ebe51d38fa Fix unsafe mode erroring when passing dev without DEVELOPMENT=1
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (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
2026-06-05 21:18:54 +02:00
PeachyPeachSM64
9b3cb36f88 BAD_RETURN 2026-06-05 20:32:55 +02:00
PeachyPeachSM64
875e9f2805 bhv_spawn_star_no_level_exit is not a behavior function and does not use gCurrentObject 2026-06-05 20:18:35 +02:00
PeachyPeachSM64
a8cc9dbdf7 SOC index is not deprecated
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (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
2026-06-04 18:42:52 +02:00
EmeraldLockdown
bdecada8d5 Merge remote-tracking branch 'refs/remotes/origin/dev' into dev
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (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
2026-05-31 22:07:09 -05:00
EmeraldLockdown
6f87509892 Signing changes 2026-05-31 22:07:01 -05:00
Isaac0-dev
0f7a367418 fix linux crash while auto updating 2026-06-01 12:42:45 +10:00
EmeraldLockdown
8cd6e5977d Update updater libs 2026-05-31 20:13:57 -05:00
PeachyPeach
b8fde28886
Fix Mario clones stealing bodystate from player Marios (#1286)
When spawning fake Marios, these objects would steal the bodystate from valid Marios, resulting in nametags rendering in the wrong place and PvP attacks using these fake as origin.
2026-06-01 10:29:18 +10:00
PeachyPeachSM64
d17a004de9 Fix sync objects with non-overridden vanilla behaviors not properly synced 2026-06-01 01:57:31 +02:00
Agent X
2ed8b3252f
Achieve 100% function documentation (1972/1972 smlua functions) (#1289)
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (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
* Achieve 100% function documentation

Jeez man

* Fix borked character

* Fix an error I must have made a while ago
2026-05-31 16:15:18 -04:00
Agent X
46859be47d
Expose DJUI gfx scale function (#1292) 2026-05-31 15:05:41 -05:00
Agent X
949088df6e Bump version to v1.5.1 2026-05-31 16:03:46 -04:00
EmeraldLoc
e8383e7119 Add executable perms to linux coopdx update 2026-05-31 14:49:35 -05:00
Agent X
db2195249f
Add function to center free camera (#1288)
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (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
2026-05-31 15:11:13 +10:00
ManIsCat2
95523dfb14
fix (#1287)
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (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
2026-05-30 19:31:49 -04:00
PeachyPeachSM64
6e5dec2431 Fix hook_behavior not returning the custom id 2026-05-30 23:40:36 +02:00
PeachyPeachSM64
b6a20eeee6 reran autogen
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (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
2026-05-30 20:10:52 +02:00
PeachyPeachSM64
31c46844a0 Handle properly japanese for custom hud font
- Fix buffer overflow
- Use texture_font_jp as placeholder since there is no jp version of the
  custom hud fonts
2026-05-30 20:00:48 +02:00
Agent X
a06bd34d40
Add "Reset Binds" button to N64 and Extra controls menus and allow quick unbind (#1263)
* Add implementation of keybind resetting

* Fix X/Y buttons not being reset in the proper case

* more binds improvements

- Make the reset binds buttons not reload the whole djui
- Press Z button/right mouse button to quick unbind
- Fix bug where binding a key automatically triggered its effect:
  - binding B or Esc would close the buttons menu
  - binding the console button would immediately open the console
  - binding Z would clear the button

* fix edge case

* Give disconnect key a default value (F12)

---------

Co-authored-by: PeachyPeachSM64 <72323920+PeachyPeachSM64@users.noreply.github.com>
2026-05-30 12:52:36 -04:00
Emily♥
15af400a01
Add djui_console_is_open (#1278)
* Add djui_console_is_open

Adds a lua function that returns if the djui console is open or not. Useful with the existing function djui_console_toggle() for disabling the djui console (mainly to prevent reading chat messages, as opposed to the only other solution which is to fill the console with spam). It doesn't affect the console used with the --console launch parameter in case debugging is necessary.

* Fix function description

please I need this

* Fix function description on docs

Silly me forgot to actually change the description where it matters
2026-05-30 12:01:52 -04:00
PeachyPeachSM64
aea840bda2 Fix nametags using alpha
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (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
2026-05-30 02:11:52 +02:00
EmeraldLockdown
54cb1b96ea Fix romhack cam being controllable in pause menu
This implements what is done in all other camera modes. Simply check the playmode, if it's the pause play mode, then don't rotate the camera. And just like that it is solved!
2026-05-29 19:09:02 -05:00
EmeraldLockdown
55a7590e89 fix incorrect label on playerIndex in HOOK_ON_NAMETAGS_RENDER
I INCORRECTLY assumed that a number was an `s32` and a integer was an `u64`. This is some next level blunders. A `number` is a `f64` and a `integer` is a `s64`. This is, in fact, a integer.
2026-05-29 18:58:35 -05:00
EmeraldLockdown
a11eee5a8f Reset freecam camera momentum on level warp
this fixes a bug where freecam could have a low deccel value, pause and stop hosting, and preserve a bunch of momentum into the main menu
2026-05-29 18:53:41 -05:00
PeachyPeachSM64
56fbe4dd0f Fix syncId for objects spawned from level script
For some reason the logic behind the sync id attribution was not the
same for custom objects/behaviors, resulting in duplicate sync ids,
causing various errors when loading the level and when calling
network_send_object
2026-05-30 01:28:17 +02:00
EmeraldLockdown
7e2aa19f02 Fix infinite staircase using all marios to decide to play music or not
Simple fix was only using the local mario to check, not all marios.
2026-05-29 18:24:47 -05:00
Agent X
101d4eeae3 Fix mod menu buttons getting cut off 2026-05-29 19:23:53 -04:00
EmeraldLockdown
856590ea1a Fix a crash in yoshi bhv 2026-05-29 18:14:24 -05:00
EmeraldLockdown
7980c3b25b
Fix playerIndex type for HOOK_ON_NAMETAGS_RENDER in hooks.md
Before it was a `string` when it should be a `number`. See `smlua_hook_events.inl`

`SMLUA_EVENT_HOOK(HOOK_ON_NAMETAGS_RENDER, _, s32 playerIndex, Vec3f pos, OUTPUT const char **playerNameOverride) // Manually defined hook`

The type `number` is used as an `s32` is equivalent to a `number`. An `integer` is equivalent to a `u64`
2026-05-29 16:45:12 -05:00
PeachyPeachSM64
de5a2876cc Prevent compiling dynos packs with lua variables; Instead of killing the game, don't enable actor in dynos pack if it contains lua variables
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (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
2026-05-29 14:04:56 +02:00
Isaac0-dev
9a8cb07c6d whoops
Some checks are pending
Build coop / build-macos-intel (push) Waiting to run
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (push) Waiting to run
Build coop / build-windows (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
2026-05-29 09:39:42 +10:00
Isaac0-dev
42cca98b83 fix a warning 2026-05-29 09:15:18 +10:00
Agent X
ec691eac24 Change this 2026-05-28 17:27:43 -04:00
EmeraldLockdown
9216f099b3 Add updater binaries to actions
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (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
2026-05-27 22:18:20 -05:00