Commit graph

1370 commits

Author SHA1 Message Date
MysterD
a87116a632 Add networking for custom behaviors 2022-03-04 20:03:00 -08:00
MysterD
9c7036afe3 Add define_custom_obj_fields() to Lua 2022-03-04 18:16:54 -08:00
MysterD
bac0879ee7 Merge branch 'unstable' of github.com:sm64ex-coop-dev/sm64ex-coop into unstable-dev 2022-03-03 19:40:30 -08:00
MysterD
e27acaff99 Improvements to crash screen 2022-03-03 19:40:18 -08:00
MysterD
3bc80ad7be Add object animations to Lua, add CPointer allowlist 2022-03-03 18:31:45 -08:00
PeachyPeach
b4507319b9
Added functions: find_ceil_height and obj_set_model_extended (#9)
* Added functions: find_ceil_height and obj_set_model_extended
2022-03-03 16:46:01 -08:00
MysterD
3ad6c721dc Initial custom behavior commit 2022-03-03 01:04:15 -08:00
MysterD
6783ef0b7f Fix Discord activity display 2022-03-02 18:25:53 -08:00
MysterD
92b5893871 Raised Lua size limit from 64KB to 2MB 2022-03-02 00:40:53 -08:00
MysterD
822cc4a4a9 More adjustments 2022-03-02 00:11:34 -08:00
MysterD
7a4505e353 Spoofing adjustments 2022-03-02 00:07:41 -08:00
MysterD
8bfadc95f1 Add anti-spoofing 2022-03-02 00:01:41 -08:00
MysterD
a1dbd4b268 Switch behavior ID length from 16bit to 32bit 2022-03-01 22:55:40 -08:00
MysterD
07cbeb119c Fixed more possible bugs pointed out by cppcheck 2022-03-01 21:13:00 -08:00
MysterD
637f17a8ac Merge branch 'unstable' of github.com:sm64ex-coop-dev/sm64ex-coop into unstable 2022-03-01 20:32:39 -08:00
MysterD
d51c82e235 Fixed many bugs pointed out by cppcheck 2022-03-01 20:32:33 -08:00
Isaac
9fc838f6d3
Added init_mario_after_warp() to lua API if there is only 1 player (#7) 2022-03-01 18:54:42 -08:00
Prince Frizzy
f0c807f5b8
Fix Merry-Go-Round Boos not having their blue coins to drop. (#8) 2022-03-01 18:35:47 -08:00
MysterD
ecc33286ad Ran autogen 2022-03-01 12:06:06 -08:00
MysterD
555d10433b Merge branch 'unstable' of github.com:sm64ex-coop-dev/sm64ex-coop into unstable-dev 2022-03-01 12:00:47 -08:00
MysterD
8d5ab43f66 Possible crash fix 2022-03-01 18:02:54 -08:00
PeachyPeachSM64
b8cdcf4795 Added obj_get_* functions; Added set_camera_mode 2022-03-01 12:00:01 -08:00
PeachyPeach
0c42836b81
Added support for X and Y buttons; Re-mapped B button to the actual B button for controllers; Moved particleFlags code so lua scripts can spawn Mario particles with 'before Mario update' and 'after Mario update' hooks (#5) 2022-02-27 14:31:59 -08:00
MysterD
fdff27b8cd Merge branch 'unstable' of github.com:sm64ex-coop-dev/sm64ex-coop into unstable-dev 2022-02-27 01:30:01 -08:00
Isaac
1774544896
Prevented the game from closing when Discord has an error (#4)
* Update discord.c

* Update discord.c
2022-02-27 01:29:32 -08:00
MysterD
0ddb59c87c Fix crash in djui_interactable_update 2022-02-27 01:23:35 -08:00
MysterD
c60f9f3e46 Prevent crash in anim_spline_poll 2022-02-27 01:05:36 -08:00
MysterD
0f86018bfe Fixed crash in configfile_save 2022-02-27 01:02:32 -08:00
MysterD
a35d759a46 Fix crash when surfaces fail to allocate 2022-02-27 00:53:58 -08:00
MysterD
e16f3eb075 Fix blue coin in boo value 2022-02-26 21:30:26 -08:00
MysterD
f92c956ea2 Fix exclamation box outline 2022-02-26 21:28:55 -08:00
MysterD
0ea1eec2ed Revert "Prevent multiple star cutscenes from causing a rare softlock"
This reverts commit ebcaddede4.
2022-02-26 18:21:21 -08:00
MysterD
32d62272b4 Merge branch 'unstable' of github.com:djoslin0/sm64ex-coop into unstable 2022-02-26 16:49:30 -08:00
SonicDarkYT
9cf1061d59
More Color Palettes (#137)
* Update pc_main.c

* Update mario_misc.c

* Update djui_panel_player.c
2022-02-26 16:49:24 -08:00
MysterD
ca8d0b9c9c Add Amy to credits 2022-02-26 16:30:51 -08:00
MysterD
f4e1647257 Merge branch 'unstable' of github.com:sm64ex-coop-dev/sm64ex-coop into unstable-dev 2022-02-26 16:30:27 -08:00
Prince Frizzy
169cd9fa44 Revise this fix in mario_actions_automatic.c
Have Mario drop off the pole if it doesn't exist instead of just returning POLE_NONE.
2022-02-26 16:30:07 -08:00
Prince Frizzy
0fc5f0d768 Proper NULL check for this in water_ring.c
The water ring index should NOT increment if a water ring fails to spawn.
2022-02-26 16:30:07 -08:00
MysterD
8fd349e5b1 Merge branch 'unstable' into unstable-dev 2022-02-26 16:12:33 -08:00
Amy54Desu
a83ce7d946
Settable Player Limit (#135)
Allow a configurable maximum number of players
2022-02-26 16:11:50 -08:00
MysterD
57cfc22840 Bump version to 18 2022-02-26 15:58:39 -08:00
MysterD
d3b4e1c794 Made certain objects use their dynamically assigned model IDs 2022-02-26 02:14:30 -08:00
Beyley Thomas
bb343f9ba2 Allow binding to ports <1024 on non-linux builds (#136)
* Allow binding to ports <1024 on non-linux builds
This seems to be only a restriction on Linux and Mac versions older then Mojave

* Fix port check on djui_panel_join_ip_parse_port
2022-02-26 00:07:12 -08:00
MysterD
0c4a2c99f0 Update credits 2022-02-26 00:01:40 -08:00
MysterD
1c36ea979f Fix crash on invalid domain 2022-02-25 22:58:14 -08:00
MysterD
fa36ed308e Add more constants to Lua 2022-02-25 22:44:37 -08:00
MysterD
49e48d4028 Fix crash on invalid domain 2022-02-25 22:44:23 -08:00
Beyley Thomas
a957ce2aa0
Allow binding to ports <1024 on non-linux builds (#136)
* Allow binding to ports <1024 on non-linux builds
This seems to be only a restriction on Linux and Mac versions older then Mojave

* Fix port check on djui_panel_join_ip_parse_port
2022-02-25 22:39:03 -08:00
MysterD
d504ee6975 Merge branch 'unstable' of github.com:djoslin0/sm64ex-coop into unstable 2022-02-25 21:06:33 -08:00
Isaac
b72344c6e4
Added Domain Resolution (#134)
Automatically converts domains to IPs
2022-02-25 21:05:21 -08:00
MysterD
2d70b9bb87 Switch all PATH_MAX to SYS_MAX_PATH 2022-02-25 18:33:31 -08:00
MysterD
33ced38baa Various Lua object API improvements
Lifted immutablity of most Lua struct fields
Added object constants to Lua API
Added ability to set struct pointers in Lua API
Prevented respawners for Lua-spawned objects
2022-02-25 18:30:05 -08:00
MysterD
e94d002114 Rename spawn sync object Lua function 2022-02-22 23:50:12 -08:00
MysterD
bbeec3c707 Add support for Lua functions inside parameters 2022-02-22 23:34:22 -08:00
MysterD
816df2117f Add obj_behaviors to the Lua API 2022-02-22 22:39:45 -08:00
MysterD
e499f51767 Add Lua wrappers for object_helpers.c 2022-02-22 18:34:51 -08:00
MysterD
44fca9aede Added BehaviorScript pointer handling to Lua API 2022-02-22 18:29:30 -08:00
MysterD
091a859104 Added level models to Lua API 2022-02-22 18:04:12 -08:00
MysterD
168bd78f47 Add support for display-list based extended models 2022-02-22 01:25:53 -08:00
MysterD
1131fb02db Prevented SM64 hang on object count overflow 2022-02-22 01:10:17 -08:00
MysterD
94bc7940cc Initial Lua support for spawning objects 2022-02-21 22:46:39 -08:00
MysterD
ebcaddede4 Prevent multiple star cutscenes from causing a rare softlock 2022-02-21 18:15:05 -08:00
MysterD
804bee1ff7 Prevent DJUI menu from getting stuck when pressing B and start 2022-02-21 00:08:20 -08:00
MysterD
db655c6746 Fix crash in is_anim_past_end 2022-02-21 00:00:53 -08:00
MysterD
21343194ff Possible fix for packet_level_macro crash 2022-02-20 23:58:32 -08:00
MysterD
7013443003 Fixes for Windows 2022-02-20 23:38:42 -08:00
MysterD
0954efff58 Fix more valgrind bugs 2022-02-20 23:25:58 -08:00
MysterD
660e787502 Fix bugs pointed out by valgrind 2022-02-20 22:06:53 -08:00
MysterD
c2ee370182 Fix missing changes 2022-02-20 20:39:05 -08:00
MysterD
d73eafc57d Fix compile issues for Linux/Mac 2022-02-20 20:24:46 -08:00
MysterD
8d81d8df50 Fix compile issues for Linux/Mac 2022-02-20 20:23:10 -08:00
MysterD
3ea8ff960c Merge branch 'unstable' of github.com:sm64ex-coop-dev/sm64ex-coop into unstable 2022-02-20 20:20:16 -08:00
MysterD
69fb69dfce Fix bugs/warnings from static analysis 2022-02-20 20:04:25 -08:00
Prince Frizzy
b9abf38957
Merge branch 'unstable' of github.com:sm64ex-coop-dev/sm64ex-coop into unstable 2022-02-20 18:52:19 -05:00
MysterD
ebbe1ef16c Merge branch 'unst17' into unstable 2022-02-19 22:06:06 -08:00
MysterD
4568da45f3 Fixed crash in geo_obj_init_animation* 2022-02-19 22:03:45 -08:00
MysterD
334de77139 Fix graphical issues that stem from text drawing 2022-02-19 22:03:25 -08:00
Prince Frizzy
aec356d1b0
Forgot this. 2022-02-19 22:34:05 -05:00
MysterD
b3e21d7edc Added object fields to Lua API 2022-02-19 13:51:02 -08:00
MysterD
3274fca929 Binary search Lua struct fields 2022-02-18 23:39:18 -08:00
MysterD
1269eef048 Ran autogen after refresh 12 merged 2022-02-18 22:43:38 -08:00
Prince Frizzy
32b0c91935
Fixes for Refresh 12 2022-02-19 01:39:38 -05:00
MysterD
cc9dc2c38c Fixed crash in geo_obj_init_animation* 2022-02-18 21:11:16 -08:00
MysterD
a3062287ac fix compile error 2022-02-18 18:38:26 -08:00
MysterD
a359b28bb4 Fixed crash in bhv_bowser_loop 2022-02-18 18:30:57 -08:00
MysterD
33ba20a5f9 Bump version to unst17 2022-02-18 18:23:10 -08:00
MysterD
b0a114eac7 Deallocate object when it failed to set a sync ID instead of crashing 2022-02-18 18:11:16 -08:00
MysterD
bb12aebb9e Fix crash screen on DirectX 2022-02-17 18:40:47 -08:00
MysterD
0a54b7ebed Merge branch 'unstable' of github.com:djoslin0/sm64ex-coop into unstable 2022-02-17 18:27:19 -08:00
MysterD
f5df2917b8 Prevented race condition that caused all objects to disappear in rare circumstances 2022-02-17 18:13:43 -08:00
MysterD
267b1c2542 Prevented 'player left this level' from being displayed when a player connects 2022-02-16 22:56:39 -08:00
MysterD
c6278694d1 Fix Yoshi sounds 2022-02-16 22:51:59 -08:00
MysterD
dab7cf4c2b Added player description to player list 2022-02-16 22:30:17 -08:00
MysterD
a44acd51f2 Added HUD rendering to hide-and-seek 2022-02-16 18:10:06 -08:00
MysterD
da5f9263fd Fix compile error that emerged in the merge 2022-02-15 22:29:22 -08:00
MysterD
e536d140bb Added HOOK_ON_INTERACT to Lua API 2022-02-15 22:21:31 -08:00
MysterD
1ea28b9c5a Added rect rendering to Lua API 2022-02-15 22:15:49 -08:00
MysterD
669e17bc18 Added global textures 2022-02-15 22:14:55 -08:00
MysterD
29599a82ec Created TextureInfo struct 2022-02-15 22:13:10 -08:00
MysterD
ded74e7fb5 Added image drawing to Lua API 2022-02-15 22:12:20 -08:00
MysterD
941375718b Added CPointers to Lua/autogen 2022-02-15 22:09:21 -08:00
MysterD
f862b3ac21 Adjusted function autogen to automatically pull includes 2022-02-15 22:08:24 -08:00
MysterD
3fcc31e233 Added text rendering to Lua API 2022-02-15 22:08:01 -08:00
MysterD
ef12ff9e70 Removed asserts (or made them soft) 2022-02-15 22:04:34 -08:00
MysterD
8c0e3460f6 Fixed certain object desyncs
Prevented friendly lakitu and 1up spawners from desyncing the object table
Resynchronized 1up spawners
Increased max packet size to 2048
2022-02-15 22:04:01 -08:00
MysterD
265d23892b Fixed crash in star seleciton 2022-02-15 22:03:17 -08:00
Isaac
46a4b377a5 Update controller_bind_mapping.c 2022-02-16 15:04:51 +10:00
Isaac
956a95bb8f Update crash_handler.c 2022-02-16 15:04:18 +10:00
MysterD
25fe547113 More audio fixes
by djoslin0 and theclashingfritz
2022-02-15 18:22:55 -08:00
Prince Frizzy
bd247372ef audio: Extend the amount of notes that can play at once.
Provided by theclashingfritz
2022-02-15 02:06:18 -08:00
Prince Frizzy
f565e89c68 sound: Add extended channel mode for sequences.
Provided by theclashingfritz
2022-02-15 01:36:44 -08:00
MysterD
c818b7930a Added wario sounds
Have yet to pitch correct them.

Huge thanks to theclashingfritz and anzz1
2022-02-14 23:36:53 -08:00
MysterD
91b26646e0 Fix crash in geo_process_node_and_siblings() 2022-02-14 18:15:54 -08:00
MysterD
8abae8d26b Fix crash in peach cutscene 2022-02-14 18:30:02 -08:00
MysterD
f73c841bfe Fixed crash in init_shadow() 2022-02-14 18:28:01 -08:00
MysterD
6d6d94fcde Add Wario's moveset based on steven's mod 2022-02-14 18:26:44 -08:00
MysterD
3436d6d26f Update lua docs 2022-02-13 22:18:03 -08:00
MysterD
6f8714c764 Added FluffaLuigi's Wario model 2022-02-13 21:52:35 -08:00
MysterD
de02ffbf71 Fixed init_shadow crash 2022-02-13 17:05:25 -08:00
MysterD
2fea65b8ef Fix crash in get_level_name() 2022-02-13 16:47:42 -08:00
MysterD
988c75d621 Fixed crash in save set flag packet 2022-02-13 16:31:22 -08:00
MysterD
6d7d79a4aa Fixed crash in spawn star packet 2022-02-13 16:24:11 -08:00
MysterD
2b9c5b5a90 Fixed crash in spawn object packet 2022-02-13 16:17:58 -08:00
MysterD
31f6896814 Fixed crash on chat message 2022-02-13 15:57:54 -08:00
MysterD
922f8ef582 Fixed painting crash - when shoved OOB in a wobbly painting room 2022-02-13 15:54:12 -08:00
MysterD
127a35d05b Fix water droplet crash 2022-02-13 14:43:50 -08:00
MysterD
92ea8b78b3 Bump version to 16 2022-02-13 14:04:54 -08:00
MysterD
b5de854674 Added chat commands: /kick /ban /permban /players 2022-02-12 15:23:05 -08:00
MysterD
6925db864c Added a custom version of PeachyPeach's crash screen for Windows 2022-02-12 13:30:53 -08:00
MysterD
0098b0c472 Fixed crashes on 32-bit due to pointer offsets 2022-02-10 18:05:47 -08:00
Cameron Hall
fc8bb5e6bd Fix strange audio bugs on 32-bit
increase audio heap size, fix buffer overflow reading gBankSetsData, warn on soundAlloc failure

Provided by: camthesaxman
2022-02-06 15:34:34 -08:00
MysterD
e95a1d48e0 Fixed code warnings on smlua files (32-bit) 2022-02-06 15:19:44 -08:00
MysterD
89ea861c5b Added Draco's acceleration/friction to character movesets 2022-02-05 13:15:35 -08:00
MysterD
5ca457d4cd Fixed pragma-packing 2022-02-05 12:22:41 -08:00
MysterD
132a942df4 Moved in-game mod list 2022-02-05 12:20:21 -08:00
MysterD
ccdfd0854d Bumped version to 15 2022-02-05 10:29:34 -08:00
MysterD
ece9eca819 Fixed WDW water level desync 2022-02-05 10:26:56 -08:00
MysterD
36fbe2053b Prevented level change popup for players in credits 2022-02-05 10:26:38 -08:00
MysterD
0c05fbae87 Made Lua mods show up in player list 2022-02-05 10:26:07 -08:00
MysterD
948e4283de Made Lua mods show up in Discord Activity 2022-02-05 10:25:36 -08:00
MysterD
a28f046eb9 Made players drop held obj when bouncing on each other 2022-02-05 10:25:20 -08:00
MysterD
434176e7d6 Added a bunch of functions to Lua wrapper 2022-02-04 19:13:15 -08:00
MysterD
b226f7c271 Added line logging for all lua errors 2022-02-04 01:19:48 -08:00
MysterD
73ecd55eb9 Fix configfile buffer overrun (Mac mods missing fix) 2022-02-04 00:43:49 -08:00
MysterD
44b1d89c58 Fixed stack corruption in pause menu (Mac crash fix) 2022-02-04 00:21:18 -08:00
MysterD
ab1e85994e Added hook_on_sync_table_change() to Lua API 2022-02-04 00:15:14 -08:00
MysterD
0935eed3b7 Rewrite of how lua hooks chat commands 2022-02-03 19:50:27 -08:00
MysterD
b6a3733bf0 Added network_get_player_text_color_string() to lua api 2022-02-03 19:05:59 -08:00
MysterD
6fcc60a791 Changed autogeneration of Lua constants to pull directly from src 2022-02-03 00:43:17 -08:00
MysterD
cf34aa0b08 Added support for returning structs from C to Lua 2022-02-03 00:43:08 -08:00