Commit graph

4932 commits

Author SHA1 Message Date
Agent X
d8b6aa7d38 Merge branch 'dev' into lighting-engine-cpp 2026-01-26 18:59:06 -05:00
Agent X
b82ee2453e Fix custom bhv crash
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (push) Has been cancelled
Build coop / build-windows-opengl (push) Has been cancelled
Build coop / build-windows-directx (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
2026-01-26 18:56:59 -05:00
Agent X
5dc333daa6 Cache active lights and 4 lights per vertex limit
Less branching and less iterating with the limit
2026-01-25 11:39:49 -05:00
Agent X
77a018a8c0 Some optimizations 2026-01-25 08:25:20 -05:00
Agent X
2e8f2ef360 Fix small bug with LE inside graphics vertex function
I also brought back the lighting profiler because it's better than nothing.
2026-01-24 19:01:30 -05:00
Agent X
f37908e131 Make some optimizations 2026-01-22 17:07:47 -05:00
Agent X
e9110384cc Whoops 2026-01-17 18:53:56 -05:00
Agent X
1a12f9a621 C++ lighting engine
Runs better using my new system for storing and iterating through lights.

I removed the lighting ctx profiler because after I've realized its very inaccurate and was probably programmed incorrectly from the start. Although I remember it working fine before and not constantly showing 20 ms or higher when I'm in an extremely simple level with extremely simple lights and the FPS is way too high for it to be taking 20 ms.
2026-01-17 16:31:52 -05:00
Agent X
d53338f2b8 Fix mario body state shade/light clamping
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (push) Has been cancelled
Build coop / build-windows-opengl (push) Has been cancelled
Build coop / build-windows-directx (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
2026-01-17 14:53:14 -05:00
Emily♥
5f5fc4863f
Fix certain GraphNodeObject fields not resetting between objects (#1083)
Some checks are pending
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
disableAutomaticShadowPos, shadowInvisible, and skipInViewCheck now are set to false by default when an object is created
2026-01-17 12:36:35 -05:00
Yuyake
1cb8cb8e5e
Extra Characters PLUS v1.0 (#1076)
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (push) Has been cancelled
Build coop / build-windows-opengl (push) Has been cancelled
Build coop / build-windows-directx (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
* Replaces Extra Characters

* Folder inside another folder fix
2026-01-11 02:20:45 +01:00
Agent X
6092488d1c Update builtin mods
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (push) Has been cancelled
Build coop / build-windows-opengl (push) Has been cancelled
Build coop / build-windows-directx (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
2025-12-31 22:35:17 -05:00
Isaac0-dev
39d351d753
some fixes for dynos, and a crash fix (#1040)
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (push) Has been cancelled
Build coop / build-windows-opengl (push) Has been cancelled
Build coop / build-windows-directx (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
2025-12-26 12:59:47 +10:00
Agent X
4ed1c878bb Revert "Hacky Goddard fix"
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (push) Has been cancelled
Build coop / build-windows-opengl (push) Has been cancelled
Build coop / build-windows-directx (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
This reverts commit 6be5c6f619.
2025-12-22 15:29:42 -05:00
Agent X
39e4621036 Bump up max lighting engine point lights 2025-12-22 15:13:52 -05:00
Agent X
8e723c4987 Bump version to v1.4.1 2025-12-22 15:12:21 -05:00
Agent X
6be5c6f619 Hacky Goddard fix 2025-12-22 15:11:51 -05:00
Agent X
d167c2d22f Avoid any overflow issues with LODs
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (push) Has been cancelled
Build coop / build-windows-opengl (push) Has been cancelled
Build coop / build-windows-directx (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
Cast to float
2025-12-21 11:02:17 -05:00
Agent X
aa8e01072a get_mario_anim_part_rot()
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (push) Has been cancelled
Build coop / build-windows-opengl (push) Has been cancelled
Build coop / build-windows-directx (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
2025-12-20 00:11:51 -05:00
Isaac0-dev
a1ce04f5e9 sanitised more things between object renders 2025-12-20 14:37:46 +10:00
Agent X
9422c34836 Add behavior value for enabling GEO_RENDER_RANGE 2025-12-19 20:44:17 -05:00
Cooliokid956
0dcb4f030a
Multi-return from C and other autogen changes (#1044)
* Allow multiple returns in autogen functions

* condense function member names

* This shouldn't be here

* Relocate these functions

LVT_FIELD shouldn't be there yet

* multi-return part 2: most functions are usable now

---------

Co-authored-by: PeachyPeachSM64 <72323920+PeachyPeachSM64@users.noreply.github.com>
2025-12-19 20:27:44 -05:00
occamsaturn
a9495561f4
Update packet_chat.c, djui_chat_message.h, djui_chat_message.c to fix chat character limit (#1059)
* Update packet_chat.c

Increase remoteMessage to 500 and remoteMessageLength to 499, respectively, to accommodate the previous (and tragically incomplete) chat character limit increase.

* Update djui_chat_message.h

* Update djui_chat_message.c

* Update djui_chat_message.h

* Update djui_chat_message.h

* Update packet_chat.c
2025-12-19 20:23:58 -05:00
Isaac0-dev
6e28f75165 improved debug tool
Some checks are pending
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-12-19 21:43:04 +10:00
PeachyPeach
1c40a787bb
Allow action hook to return -1 to continue execution (#1053)
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (push) Has been cancelled
Build coop / build-windows-opengl (push) Has been cancelled
Build coop / build-windows-directx (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
* Allow action hook to return -1 to continue execution

* Restrict special value to -1 (so more values could be added in the future); fix format
2025-12-14 15:23:57 +01:00
Isaac0-dev
63ba422075 Update gfx_opengl.c
Some checks are pending
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-12-14 21:51:47 +10:00
Isaac0-dev
4026ee5390 typo fix 2025-12-14 21:45:12 +10:00
Isaac0-dev
4f9a51ff90 this code is so broken and it's my fault
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (push) Has been cancelled
Build coop / build-windows-opengl (push) Has been cancelled
Build coop / build-windows-directx (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
2025-12-09 15:29:44 +10:00
Agent X
0e65a1ddd6
Update lighting engine documentation
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (push) Has been cancelled
Build coop / build-windows-opengl (push) Has been cancelled
Build coop / build-windows-directx (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
2025-12-06 23:57:29 -05:00
PeachyPeachSM64
b4a3939014 Fix SOUND_MARIO_LETS_A_GO being nil
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (push) Has been cancelled
Build coop / build-windows-opengl (push) Has been cancelled
Build coop / build-windows-directx (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
2025-12-02 23:56:38 +01:00
Agent X
8a5bbf8b45 Make Toad scream slightly less loud 2025-12-02 17:34:18 -05:00
Agent X
b83f008695 Fix texture_override_reset 2025-12-02 17:33:42 -05:00
rPhase
77ca4db299
Also normalize paths in mod_file_exists() (#1045)
Some checks are pending
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
* Normalize paths in mod_file_exists()

* Make consistent with existing code
2025-11-30 01:23:43 +01:00
djoslin0
796111cc6e
Normalize paths in smlua_find_mod_file() (#1042)
* Normalize paths in smlua_find_mod_file()

Without normalizing the relative path, the comparison
fails when a mod using require is hosted/joined cross-platform.

Without this fix, any mod using require is effectively not
cross platform. This is critical.

* Address peachy's comment

---------

Co-authored-by: MysterD <myster@d>
2025-11-30 01:22:21 +01:00
djoslin0
a1b178fb64
Fix crash on input box (#1043)
When typing ` into the coopnet password inputbox (the same as the console bind)
It would do all of the null checks, then open the console changing the focus,
then call a null function because the null checks are no longer valid.

So I moved the null checks to where they're needed.

Co-authored-by: MysterD <myster@d>
2025-11-29 13:15:46 +01:00
PeachyPeachSM64
4ce9be4935 Fix 4-bit textures djui 2025-11-26 00:23:20 +01:00
Agent X
e45c564cac Revert "Camera collision option changes"
This reverts commit faf68af15e.
2025-11-25 14:21:15 -05:00
Agent X
67d3975980 Correct inconsistent function name 2025-11-25 14:21:11 -05:00
Agent X
06eddafc27 Move ping option 2025-11-25 13:17:01 -05:00
Agent X
faf68af15e Camera collision option changes
Sorry but me and dj came to an agreement that this just gives people an unfair competitive edge. Mods still have full capability to change camera collision options though.
2025-11-25 13:09:50 -05:00
PeachyPeachSM64
454e567ca8 Fix a rare bug where Mario becomes indefinitely intangible when respawning 2025-11-24 22:16:51 +01:00
EmeraldLockdown
234b7686e2
Fix macOS (#1033) 2025-11-24 14:48:54 +10:00
Agent X
f6fc5c0aa7 Reset pause menu hidden on network shutdown (Oldest mistake in the book)
Also removed a couple unnecessary externs
2025-11-23 20:19:05 -05:00
Isaac0-dev
bd5cf36c61 fix a use after free in the edit player menu 2025-11-24 10:53:44 +10:00
PeachyPeachSM64
983932214a Fix artifacts with texture tiles 2025-11-23 13:49:35 +01:00
Isaac0-dev
14ac356fc2 i forgot to press save :( 2025-11-22 06:36:11 +10:00
Isaac0-dev
c89e52a554 missed these 2025-11-22 06:21:31 +10:00
Isaac0-dev
61b342710a this is gross what was i thinking 2025-11-22 06:15:01 +10:00
djoslin0
0538204fc3
Fix - Remove incorrect collision validation check (#1026)
A validation check in dynos_bin_col.cpp was wrong, which would block otherwise
well formed collision files. Since collisions are parsed as s16, if you reach
the bounds of s16 values will begin to overflow and the validation will catch
it.

To work around this overflow issue, you need to output groups of triangles and
vertices. However the existing check in ValidateColInit() would prevent this
workaround. Now there is essentially no hard-coded limit when it comes to vertex
and triangle counts of collision structs.

Co-authored-by: MysterD <myster@d>
2025-11-21 20:21:14 +01:00
PeachyPeach
7bc28a25d8
Fix HOOK_ON_HUD_RENDER rate at 30hz (#1022) 2025-11-20 11:44:43 +10:00