Commit graph

3871 commits

Author SHA1 Message Date
Dominicentek
a55ebebf9e [proximity chat] fix it not working on windows 2026-05-31 19:32:50 +02:00
Dominicentek
ead4c58a48 [proximity chat] force disable for public lobbies 2026-05-31 17:26:46 +02:00
Dominicentek
a17482e08c [proximity chat] make the settings work 2026-05-31 16:03:04 +02:00
Dominicentek
9a8e50c56f [proximity chat] add ui 2026-05-31 02:28:31 +02:00
Dominicentek
49f743edbf [proximity chat] initial system 2026-05-30 20:39:29 +02:00
PeachyPeachSM64
b46f1a26cf Fix inconsistencies with tabs and remove trailing whitespaces
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-26 23:51:58 +02:00
Agent X
4c093ea859
Fix UNUSED keyword in smlua function autogen (#1273)
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-26 19:00:58 +02:00
Isaac0-dev
fd67cacdd7 fix djui coords being snapped to the wrong pixels
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
By checking if the coordinates are from djui.
2026-05-26 13:06:10 +10:00
PeachyPeach
69b6728238
Add value to djui sliders (#1271)
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-26 10:18:57 +10:00
Agent X
943bbd29e2
Add get_current_play_mode() and get_delayed_warp_op() (#1270) 2026-05-25 19:31:02 -04:00
PeachyPeachSM64
97d3ac6638 guard unsafe mode behind dev mode 2026-05-26 00:43:42 +02:00
EmeraldLockdown
44779560f7
Fix dx11 compilation issues (#1268)
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-25 10:54:29 -05:00
Agent X
8425d73d3e Compensate new mod/dynos panel button sizes for smaller resolutions 2026-05-25 10:42:56 -04:00
Blockyyy
94028254e5
Button to open the website, buttons to open mod/dynos folder (#1208)
new "Browse mods" button, which opens the website, this also adds an "open mods folder" button and a "open dynos folder" button
two new functions also have been created for this "open_folder" and "open_url"
2026-05-25 21:35:52 +10:00
Isaac0-dev
f39b7978b3 add a new flag as a precaution
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
to prevent people accidentally compiling unsafe code.
2026-05-25 19:14:11 +10:00
EmeraldLockdown
f7b9751976 resolve issue with chatbox theme not being reset on theme change 2026-05-24 23:26:52 -05:00
EmeraldLockdown
1513443fd5
Undo some "fixes" introduced in yoshi pr (#1265)
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-25 10:40:42 +10:00
PeachyPeachSM64
cafab8e592 Fix player name color codes leaking into in-game console logs 2026-05-25 00:21:27 +02:00
EmeraldLockdown
a21bec878c
fix (#1264)
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-24 15:28:19 +02:00
Agent X
3aae58949a Fix black frame between transitions
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-23 21:52:54 -04:00
Agent X
8384b5d423 Revert this
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-23 18:26:31 -04:00
Agent X
632c8324d2 Fix fullbright and smlua_to_boolean 2026-05-23 16:24:44 -04:00
Agent X
7de436bcb6
Add function to enable a fullbright mode (set_shading_fullbright_enabled) (#1261)
* Add function to enable a fullbright mode

* Requests

* Breaklines
2026-05-23 14:37:58 -04:00
Agent X
eb3de50d07 Default object light ID to -1
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-23 11:47:05 -04:00
PeachyPeachSM64
22dbda6007 logs 2026-05-23 12:49:28 +02:00
PeachyPeachSM64
2d6848a768 Fix object functions incorrectly using current object instead of the provided object 2026-05-23 12:31:27 +02:00
Agent X
04b257c701 Fix LE active lights pool not being cleared
Some checks are pending
Build coop / build-macos-arm (push) Waiting to run
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
2026-05-22 21:32:42 -04:00
Isaac0-dev
a8da02aae1 add guards to smlua__iter lot types
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
Resolves #1257
2026-05-22 12:43:42 +10:00
Sunk
7ed28bf411
Fix camera language and allow shot from cannon switch (#1255)
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 camera language and allow shot from cannon switch

* For consistency
2026-05-22 10:15:02 +10:00
PeachyPeachSM64
541874fdca make visibleToObjects a boolean 2026-05-21 20:20:23 +02:00
Baconator2558
8f105ea53d
Rename and expose visibleToObjects field (#1251)
* override_mario_visibility_to_objects

* Remove override_mario_visibility_to_objects in favor of exposing visibleToObjects

* Fix comment referencing the field's original name

* Reset visibility each frame

* Minor fix
2026-05-21 14:10:10 -04:00
Agent X
95b87d730a Fix OpenGL uniform/attrib location crash 2026-05-21 13:45:38 -04:00
Agent X
0053d73eb4 Fix OpenGL compatibility check
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-21 10:52:42 -04:00
Isaac0-dev
23d8a7370a
finally fix frame pacing code (#1252)
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-19 23:22:47 -04:00
Isaac0-dev
9bfe87f486
fix sub pixel gaps on 2D visuals due to MSAA (#1254)
* fix sub pixel gaps on 2D visuals due to MSAA

* Guard against zero width viewport before pixel snapping
2026-05-19 23:21:33 -04:00
Agent X
733ad1181b
fix mod audio memory leaks (#1250)
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
* Free mod audio data that wasn't previously being freed

* Fix memory leaks if sound decoding/init fails

* Remove unnecessary checks

* drain pending sample copies

* more audio decoder freeing

* seems to be memory safe now

- audio_custom_shutdown was being called 4 times per game_deinit lol
- freeing stuff properly, be safe against threads by flagging shutdowns
- add an error path to audio_load_internal
- flag currently destroying nodes
etc

* oops, Lua shouldn't have access to this

* apply review changes

---------

Co-authored-by: Isaac0-dev <62234577+Isaac0-dev@users.noreply.github.com>
2026-05-19 19:17:11 -04:00
Isaac0-dev
3bd5dc842f defensive crash fix in smlua_model_util_get_id
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-19 16:24:19 +10:00
PeachyPeach
834512a5c5
Fix Lua/custom behaviors bugs and flaws (#1229)
* improve custom behaviors logic

* clarify description of get behavior functions; get name returns last name instead of first; create generic name only when needed

* review

* fix potential buffer overflow
2026-05-19 10:56:08 +10:00
PeachyPeachSM64
925325c5eb copy paste gone wrong
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-18 14:10:39 +02:00
PeachyPeachSM64
f6a3df67e1 log lua 2026-05-18 13:51:26 +02:00
fefux
87f87b5dc9
Ns_socket_get_id generates always empty string on linux (#1248)
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 pr fixes an issue on linux where the function ns_socket_get_id_str always returns empty string.
See glibc implementation of vsnprintf : [vsnprintf implementation](https://elixir.bootlin.com/glibc/glibc-2.36/source/libio/vsnprintf.c#L112). First string parameter is "emptied" before starting the copy.

And I suspect the original snprintf to rewrite twice the same value in id_str (except if I missed something) so we can just remove it.

This issue gives moderator access to all players when they connect/reconnect after adding one player as moderator because all players have the same id : "".

How to reproduce : 
Host server (via socket, not coopnet) on sm64coopdx linux version
Add moderator to one player
All new connected or reconnected player are promoted to moderator
2026-05-18 07:58:46 +10:00
Sunk
e2035853b9
Change romhack camera options (#1247)
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
* Change camera options

* Resolve suggestions
2026-05-16 22:07:51 -04:00
EmeraldLockdown
d750fee179
Resolve issue with windows compilation due to use of strcasestr (#1246)
Fixes issue introduced by bb142d5769 because someone didn't check the C standard to verify it was ok to use (it was me).

`strcasestr` is not apart of the C standard and is a GNU extension. Windows does not play well with this. The solution was to define a quite simple custom function partially based on the glibc implementation. Function should be reviewed.
2026-05-16 15:00:12 +10:00
EmeraldLockdown
bb142d5769
Add searchbox, add it to mod panel and dynos panel (#1129) 2026-05-16 12:14:56 +10:00
Isaac0-dev
8da31e6199
fix audio engine crash from reloading banks that are already loaded (#1232)
* fix audio engine crash from reloading banks that are already loaded

* only promote banks that are "discardable"
2026-05-15 21:14:09 -04:00
Isaac0-dev
967d120505
much further draw distance option (#1240)
The existing draw distance options don't actually increase the draw distance. It only impacts whether or not distant objects are rendered. 

This PR:
- Adds another option to the draw distance setting in the display menu, called "Infinite". It is not truly infinite, but it is significantly larger than what current options allow. Due to it not being truly infinite, we could use the name "Max" instead to be more accurate.
- Exposes a new function to the Lua API `draw_distance_scalar_is_infinite` which returns whether or not the infinite setting is enabled.
- `draw_distance_scalar_is_infinite` is now used in several places in this repo to bypass distance checks for objects if infinite mode is enabled.
- Fixes a bug where you couldn't bypass the distance check in `obj_is_in_view`, meaning you could never disable all object distance culling.
- The infinite setting now forces the far plane to be at least a minimum of `1,000,000`.
2026-05-16 11:13:02 +10:00
Agent X
91208e4e06 Fix OpenGL check
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-14 21:31:15 -04:00
Agent X
2e9e6644ca Default to DirectX renderer if OpenGL can't be ran 2026-05-14 20:47:35 -04:00
Isaac0-dev
76e6bf6bce make it compile again
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
(my fault)
2026-05-13 11:49:48 +10:00
Demi-kun
1139c0f67a
Re-Implement Sound Modes (#1226) 2026-05-13 10:48:15 +10:00