Isaac0-dev
f587dc38be
removed get_game_tick_counter
...
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
use get_global_timer instead
2025-06-15 21:01:32 +10:00
djoslin0
2f573d17f9
Change get_game_tick_counter() to use gGlobalTimer ( #853 )
...
The old version was incrementing at the start of the code iteration, but it makes
more sense to increment after the frame is built. That way every event within one
visible game tick will get the same tick identifier
Co-authored-by: MysterD <myster@d>
2025-06-15 20:15:23 +10:00
djoslin0
f42e4ad55b
Add get_game_tick_counter() ( #852 )
...
Coop now maintains a counter that increments at the start of each game tick,
And another counter that increments at the start of each frame render.
This is to be able to identify specific frames regardless of mod load, hook,
and execution order.
---------
Co-authored-by: MysterD <myster@d>
2025-06-15 17:26:53 +10:00
djoslin0
24b92ecc2a
Add a safer version of Lua's require() ( #847 )
...
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
I didn't add standard Lua require() because I've always been
afraid of it. I'm not sure we can guarantee which files it
will read (or not read).
Instead, here is a custom implementation. It should work more
or less the same and allow for more modular code.
For backwards compatibility reasons, all of the lua files in
the base mod folder will be loaded as in the past. Aka one at
a time and alphabetically.
However, now coop will look for Lua files in subdirectories
and will load them in when another Lua file calls require().
The file search order is more reasonable than normal Lua
require(). It will first look for files relative to the
currently running script. If there is no matching relative
file, it will pick from any Lua file that is in any of the
mod's subdirectories.
---------
Co-authored-by: MysterD <myster@d>
2025-06-14 19:49:07 +10:00
Isaac0-dev
8f1830b079
cleanup old gfx symbol management code
2025-06-14 14:58:55 +10:00
Isaac0-dev
aea1ab9b86
change the djui auto scale math
...
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
unfortunately the completely dynamic method causes scaling issues with text
2025-06-14 14:35:09 +10:00
Isaac0-dev
c13352d6a2
fixed mario anim part position getters
2025-06-14 10:10:13 +10:00
Isaac0-dev
7b1dabfb43
more copy paste errors
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-13 22:18:51 +10:00
King
86d5069a7e
replace "auto" djui scale functionality with 4x native resolution ( #846 )
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-13 11:16:21 +10:00
Isaac0-dev
99548b5b42
found another one
2025-06-13 11:13:56 +10:00
Isaac0-dev
c8902d9c20
fix a copy paste error
2025-06-13 11:06:58 +10:00
Sunk
0ecaaf767a
Add type conversion functions ( #839 )
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-06-09 18:35:57 +02:00
Isaac0-dev
4d942eadad
optimised matrix interpolation
2025-06-09 23:22:10 +10:00
Isaac0-dev
68b700ccfb
cleanup perspective parameters
2025-06-09 21:33:09 +10:00
Isaac0-dev
01eb5c34c0
fixed the update false alarm bug with garbage data (linux)
2025-06-09 21:07:09 +10:00
Sunk
235533b1a5
Fix low damage jump kicks ( #844 )
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 20:05:16 +10:00
Isaac0-dev
27b7c3d823
mario object get optimizations ( #840 )
2025-06-09 20:04:24 +10:00
Isaac0-dev
bee2b924bd
disable lua vertex colors for G_PACKED_NORMALS_EXT
...
by maniscat2
Co-Authored-By: ManIsCat2 <137772623+ManIsCat2@users.noreply.github.com>
2025-06-09 19:03:22 +10:00
Isaac0-dev
b7edf71499
replace get_texture_average_color with texture_to_lua_table
2025-06-09 14:39:07 +10: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
Isaac0-dev
b99f18dacc
check texInfo so mods can't spoof it in smlua_to_texture_info
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-06-06 09:34:23 +10:00
Isaac0-dev
73db1b0345
fix autogen texinfo get
2025-06-06 07:29:24 +10:00
Isaac0-dev
98ff007818
get_texture_average_color
...
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
pass in a texture, it returns the average color of the texture
2025-06-05 22:33:24 +10:00
Isaac0-dev
378b619fd6
made autogen build djui_hud_render_texture*
2025-06-05 21:03:38 +10:00
PeachyPeach
c79d59d8ec
Fix vec3f bugs ( #837 )
2025-06-05 19:44:09 +10:00
Isaac0-dev
e1aab9c479
gfx_get_texture
...
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
returns a pointer to the texture in the gfx command
2025-06-05 17:07:53 +10:00
Isaac0-dev
50f83b1ffe
log line on error in gfx_set_command
2025-06-05 15:36:40 +10:00
Isaac0-dev
ced949627f
improved remote player platform upwarping
...
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
fixes the bug in whomp's fortress where remote players could be seen on the cone roof of the tower, when they weren't really there
2025-06-04 13:26:19 +10:00
Isaac0-dev
dc4678c121
made escape button respond to release
2025-06-04 11:47:52 +10:00
Isaac0-dev
ecbb911367
fix djui console spam
2025-06-04 11:34:26 +10:00
Isaac0-dev
c939d9c925
correct return logic to fix back button bug
2025-06-04 10:16:41 +10:00
Isaac0-dev
65b67ad9fa
fix djui back button bug and crash [build]
...
could be caused by pressing B and letting go of A on the same frame
2025-06-04 09:46:59 +10:00
Isaac0-dev
b8fe342c17
fix custom dialog boxes not being properly reset
2025-06-04 09:41:36 +10:00
Isaac0-dev
5a9f4b10bd
fix bubba eaten action not being invisible
2025-06-04 09:40:45 +10:00
Isaac0-dev
681ea52f4b
fix crash during conflicting warps
2025-06-04 09:40:20 +10:00
Isaac0-dev
d6508def28
revise my latest changes
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
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
2025-06-04 07:58:02 +10:00
Isaac0-dev
f0d6e4331d
reset modified graph nodes on network shutdown
2025-06-04 02:36:35 +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
Isaac0-dev
73e72e1b77
fix mirror mario with custom animations again [build]
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 17:17:19 +10:00
Agent X
2dfcb39704
Revert "Small behavior fixes [build]"
...
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 bf4bef435a .
2025-05-31 18:22:24 -04:00
Agent X
ff31ae55fa
Bug fixes
...
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
If it ain't broke, don't fix it
2025-05-30 16:14:19 -04:00
Agent X
feba35b010
Expose sync_object_get_object
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-05-29 11:31:31 -04:00
Agent X
dd13da2a0d
Re-run autogen for everything
2025-05-29 10:57:44 -04:00
Agent X
46b9cf5fb8
whoops
2025-05-29 10:55:51 -04:00
Sunk
5d48c72d2d
Revert "Fix(?) frozen star cutscenes ( #796 )" ( #830 )
...
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
This reverts commit 9e87ce10c0 .
2025-05-28 22:53:57 -04:00
Isaac0-dev
fd163d4cb5
these should remain
2025-05-29 12:50:35 +10:00
Isaac0-dev
56a5e0b7d2
fix opengl warning
2025-05-29 12:49:38 +10:00
Agent X
1f2e09da6e
Re-arrange some parameters and add math.round
...
Co-Authored-By: xLuigiGamerx <88401287+xLuigiGamerx@users.noreply.github.com>
2025-05-28 22:34:45 -04:00
PeachyPeach
69e129805e
More math improvements ( #820 )
...
* More math improvements
* more math functions
* stack check
* added error message when trying to modify read-only table; fix gSmluaConstants printed to console
2025-05-29 02:52:31 +02:00