Commit Graph

2184 Commits (38cef3b77e308f51c3bfb09f5bd8bf53528f2c63)

Author SHA1 Message Date
MysterD 78f9f581d8 Update lobby info on rehost 2023-04-16 19:36:27 -07:00
MysterD 75e3be3fdf Make password inputboxes display '#'s 2023-04-16 18:43:07 -07:00
MysterD c916e01a26 Restored how player packets are sent, they're compressed elsewhere 2023-04-16 18:21:54 -07:00
MysterD 4dc694279b Compressed all game packets 2023-04-16 18:18:18 -07:00
MysterD 52c46a831e Added error handling for coopnet 2023-04-16 16:06:30 -07:00
MysterD de895af1cf Do not display the socket page when hosting on coopnet 2023-04-16 15:10:21 -07:00
MysterD a39efe7a60 Compressed and reduced rate of Player packets
Now player packets are only sent immediately if their inputs or actions changed.
Otherwise, it waits a bit before sending out another one
2023-04-16 02:29:59 -07:00
MysterD c8a0cfc5ab Actually fix discord crash 2023-04-15 23:43:51 -07:00
MysterD b530459f8c Fix discord crash 2023-04-15 23:34:54 -07:00
MysterD 2bf016c844 Test 2023-04-15 22:25:58 -07:00
MysterD 71c3c24d28 Restore functionality of network_discord_id_from_local_index(0) 2023-04-15 21:09:26 -07:00
MysterD 3fd75eacd0 Set default coopnet ip 2023-04-15 20:40:29 -07:00
MysterD 2d0cdabe13 Fix case when joining discord lobby without a password 2023-04-15 20:27:28 -07:00
MysterD 73bf1d1e72 Clear discord party id and secrets when not in-game 2023-04-15 20:18:20 -07:00
MysterD 1112c4e03f Attempt to enable discord invites 2023-04-15 20:12:06 -07:00
MysterD a17841106c Change how discord secrets are sent 2023-04-15 20:05:04 -07:00
MysterD f2591bd5b4 Ripped out discord network system, started re-adding invites 2023-04-15 19:53:34 -07:00
MysterD 384d7e60ae Made it so changing server settings works in CoopNet 2023-04-15 15:54:44 -07:00
MysterD 8fab9b1e9a Added ability to set lobby password 2023-04-15 15:11:39 -07:00
MysterD 2a1ab2a072 Fix bug where replies to unknown players went to the wrong place 2023-04-15 01:16:59 -07:00
MysterD 3cd10634e5 Increased starting ping 2023-04-15 00:33:56 -07:00
MysterD c13888d50f Made banning work on CoopNet 2023-04-14 22:06:56 -07:00
MysterD 362546a81a Added messages to lobby list when no lobbies found, or coopnet connection fails 2023-04-14 19:58:36 -07:00
MysterD de8761120d Make lobby hosting detect the largest mod by lua size 2023-04-14 11:59:35 -07:00
MysterD 71f590f390 Made version mismatch lobbies more obvious 2023-04-14 11:25:45 -07:00
MysterD bc946aa3b3 Fix how languages detect the lang file path 2023-04-14 11:04:22 -07:00
MysterD 9114aff9cd Merge branch 'coop' into coopnet 2023-04-14 10:53:58 -07:00
MysterD 60c6cc0b40 Make sure coopnet always sets callbacks 2023-04-13 23:39:00 -07:00
MysterD 416dfe33a7 Make coopnet IP and Port configurable (Isaac) 2023-04-13 22:58:58 -07:00
MysterD 71b616c76c Ran autogen 2023-04-13 22:39:42 -07:00
MysterD 98cdfcb8e1 Bumped version 2023-04-13 22:39:25 -07:00
MysterD 8eece1572a Fixed crash in void geo_process_node_and_siblings() 2023-04-13 22:38:32 -07:00
MysterD 78d1fea9cc Fixed crash in network_send_spawn_objects_to() 2023-04-13 22:36:47 -07:00
MysterD 2ce229a818 Fixed crash in reset_camera() 2023-04-13 22:32:18 -07:00
MysterD f39144fb9a Fixed crash in network_receive_lua_custom() 2023-04-13 22:29:10 -07:00
MysterD 9608796c44 Increased max lag compensation to 1s 2023-04-13 22:23:56 -07:00
MysterD 816f595fcc Clear interaction's invulnerable flag after each player has been processed 2023-04-13 22:17:01 -07:00
MysterD e6343238db Merge branch 'coop' of github.com:sm64ex-coop-dev/sm64ex-coop into coop 2023-04-13 21:35:08 -07:00
Isaac0-dev 3336be7bbd improve djui paginated panels and fix some typos (#347)
* improve djui paginated panels and fix some typos

* naming
2023-04-13 21:33:34 -07:00
MysterD b4223013c2 Add lobby refresh button 2023-04-13 18:27:18 -07:00
MysterD 9217979788 Added menus for public and private lobbies 2023-04-11 21:38:17 -07:00
MysterD a98bb1c9b4 Merge branch 'coop' of github.com:sm64ex-coop-dev/sm64ex-coop into coop 2023-04-11 20:07:12 -07:00
MysterD a90a268462 Add single-lua-file mods to mod cache 2023-04-11 20:07:09 -07:00
Agent X d534010fb2 Flying triple jump off players if wing cap (#344) 2023-04-11 18:41:41 -04:00
MysterD 787efc0ce8 Fixed crash in smlua_set_sync_table_field_from_network() 2023-04-11 15:02:51 -07:00
MysterD 6d13e010d8 Make sure lag_compensation_get_local_state() always returns a MarioState 2023-04-11 14:53:04 -07:00
MysterD 9b9f09b4c6 Made cur_obj_call_action_function safer 2023-04-11 14:40:24 -07:00
Agent X 24e92e9925 Hopefully fix passes_pvp_interaction_checks crash (#343)
* Hopefully fix passes_pvp_interaction_checks crash
* Hopefully fix cur_obj_call_action_function crash
2023-04-11 14:32:47 -07:00
MysterD c8cf2a45b0 Use the correct resolution for djui hud interpolation 2023-04-11 14:26:42 -07:00
MysterD 84147a223e Fixed coopnet disconnect, separated coopnet_id, started adding password stuff 2023-04-11 14:07:58 -07:00
MysterD 6413565fc5 Fix warnings, add Makefile logic for coopnet in other OS 2023-04-10 19:45:06 -07:00
MysterD 918b58935c WIP: lobby browser 2023-04-10 19:40:48 -07:00
MysterD 6eb39e5b18 Fixed graphical corruption when text renders offscreen 2023-04-10 19:03:34 -07:00
MysterD 14c975ca1f Fixed crash in mod_clear() 2023-04-10 17:53:28 -07:00
MysterD c90e89b4fb Fix crash in is_anim_past_frame() 2023-04-10 17:50:57 -07:00
MysterD 471fea6073 Crash fix for discord_activity_update() 2023-04-10 17:48:56 -07:00
MysterD c7d05ca99c Possible crash fix for osPiStartDma() 2023-04-10 17:46:45 -07:00
MysterD fad378c3bb Possible crash fix for network_receive_download() 2023-04-10 17:45:43 -07:00
MysterD f9bc687857 Fixed crash in cur_obj_follow_path 2023-04-10 17:41:51 -07:00
MysterD f5877a651f Erase and recreate lua directories on import 2023-04-10 15:28:47 -07:00
MysterD a0afc540d0 Cleanup zip file in more failure scenarios 2023-04-10 14:59:29 -07:00
PeachyPeach 977b5474b8 level_script_parse now calls the callback for objects with custom behaviors (#342) 2023-04-10 14:37:25 -07:00
Agent X e13856425f Hopefully fix 3 crashes (#341)
* Hopefully fix 3 crashes
2023-04-10 10:31:45 -07:00
MysterD e6ede0d84d Basic lobby browser 2023-04-10 01:10:24 -07:00
MysterD a65136be93 Add coopnet defines 2023-04-09 23:45:52 -07:00
MysterD 033035b887 Merge branch 'coop' into coopnet 2023-04-09 22:52:35 -07:00
MysterD dbbea81851 Quick fix - create dynos/mods directories if they don't exist 2023-04-09 18:53:32 -07:00
MysterD f78f9dcbd5 Made mod description panel appear behind mod selection panel 2023-04-09 17:55:29 -07:00
MysterD cd20ef041e Update discord activity when rehosting 2023-04-09 17:46:53 -07:00
MysterD 7d80938901 Revert some small text rendering optimizations so that mods still render correctly 2023-04-09 17:40:41 -07:00
MysterD cde2125a8d Fix selectionbox crash when out of range 2023-04-09 17:25:45 -07:00
MysterD 0a142a25f8 Started adding CoopNet 2023-04-09 17:20:07 -07:00
Prince Frizzy 25e339fcb6 Fix for djui_panel_find_first_interactable returning garbage if the loop aborts. (#339) 2023-04-09 07:52:02 -04:00
Isaac0-dev fe42d422f2 add a way for Lua mods to detect what OS coop is running on (#338)
* patch for beta 32

* bump version

* fix lakitu cam duplication hopefully

* add a way for Lua mods to see what OS its running on
2023-04-08 19:52:16 -04:00
MysterD 54bd10dd02 Fixed compiling with DISCORD_SDK=0 2023-04-04 16:22:07 -07:00
MysterD 48b4c960f0 Preventing spamming of join packets when the ping is high 2023-04-04 00:34:54 -07:00
MysterD 9f9dfa53a3 Removed lag compensation functions that shouldn't be added to the Lua API 2023-04-03 21:56:52 -07:00
MysterD d701dab830 Fix zip file extraction error 2023-04-03 21:09:15 -07:00
MysterD b45274f3e7 Add drag & drop to DirectX versions 2023-04-03 20:36:29 -07:00
MysterD 79df9fda32 Added new spanish strings 2023-04-03 19:32:34 -07:00
MysterD 48caad4603 Allowed Drag & Drop importing of mods and DynOS packs 2023-04-03 19:22:22 -07:00
MysterD 4bd96823cc Restore vanilla angle checks for kick/pick 2023-04-03 15:23:10 -07:00
MysterD ede53830b6 Improve lag compensation 2023-04-03 13:55:03 -07:00
MysterD 041628c60c Fix incorrect font rendering offset 2023-04-02 23:06:06 -07:00
MysterD 9f60ae5123 Added FONT_TINY 2023-04-02 23:02:14 -07:00
MysterD fb70600e10 Made rejoining popup only show up once per rejoin 2023-04-02 22:28:34 -07:00
MysterD 6fb49d0d5e Increase rainbow buffer size 2023-04-02 22:20:04 -07:00
MysterD aa318c56d0 Fixed player smoke particle flags 2023-04-02 22:11:16 -07:00
MysterD 5cd4546c44 Made players invulnerable to PVP when ground pounding 2023-04-02 22:11:04 -07:00
MysterD dbde7dc22e Merge branch 'coop' of github.com:sm64ex-coop-dev/sm64ex-coop into coop 2023-04-02 21:19:04 -07:00
MysterD 20103bd287 Fix player interactions
Separate normal player collisions from pvp
Normal collisions use local state
PVP collisions use rollback state
Make squish when bouncing completely local
Increase rollback buffer
2023-04-02 21:18:17 -07:00
Agent X 4b724d9963 Fix cheats (#335) 2023-04-02 22:19:57 -04:00
MysterD 3531a4811a Use the basic character on the title font if it's missing 2023-04-02 19:11:51 -07:00
MysterD bcce782039 PVP improvements
Removed angle check for punch/kick
Compensated for lag, so interactions favor the attacker now
2023-04-02 18:26:00 -07:00
MysterD 6923639120 Adjust text in inputboxes 2023-04-02 15:34:47 -07:00
MysterD 1209126aea Fix desync when changing areas 2023-04-02 14:44:52 -07:00
MysterD 3c4accf481 Turned title font into a sprite sheet 2023-04-02 13:51:52 -07:00
MysterD 54fb22ac96 Text rendering optimizations + resolution increase on normal font
Increased resolution of normal font 2x
Combined all normal font characters into a sprite sheet
Adjusted kerning on normal font
Removed 'rotatedUV' setting for DJUI fonts
2023-04-02 13:18:10 -07:00
MysterD d022fe596f Started optimizing text rendering 2023-04-01 23:44:10 -07:00
MysterD 103e184270 Make gMarioStates->controller immutable in Lua 2023-04-01 17:16:18 -07:00
MysterD 62e1bac41a coop now restores a backup configuration file if loading the config file threw an error 2023-04-01 17:01:50 -07:00
MysterD 1a48aefffe Fixed crash handler 2023-04-01 05:12:46 -07:00
MysterD 01c165477d Fixed clicking your cursor on the rightmost letter of inputbox 2023-04-01 03:56:23 -07:00
MysterD a7d14dbe39 Change certain asserts in configfile to logs 2023-04-01 03:39:23 -07:00
MysterD 4c2ae5ffed Remove djui panels from main djui header 2023-04-01 00:30:35 -07:00
MysterD ce46d38417 Added smlua_text_utils_get_language() 2023-04-01 00:04:45 -07:00
MysterD fcda4c938a Capitalize language files 2023-04-01 00:00:44 -07:00
MysterD 08deb1dcc6 Automatically resize join and confirm text 2023-03-31 23:57:03 -07:00
MysterD a6575cd9a8 Fix memory leak in djui panel 2023-03-31 23:54:26 -07:00
MysterD 307981eab8 Resized DJUI menu panels so that other languages will fit 2023-03-31 22:05:37 -07:00
MysterD cf465418f9 Made the background controller setting not require a restart 2023-03-31 22:05:09 -07:00
MysterD 7bcf44ba54 Make language configurable in-game 2023-03-31 19:38:06 -07:00
MysterD a205bb8c2a Added more things to the language system 2023-03-31 17:44:29 -07:00
MysterD 6d69253149 Started adding the ability to translate DJUI menus 2023-03-31 15:18:19 -07:00
MysterD 1b138f8ad6 Continue simplifying DJUI panels 2023-03-31 12:34:20 -07:00
MysterD c370d235b4 Started simplifying DJUI panels 2023-03-31 03:16:58 -07:00
MysterD 7b0e72852c Merge branch 'coop' of github.com:sm64ex-coop-dev/sm64ex-coop into coop 2023-03-31 00:29:32 -07:00
MysterD cbf63d2db2 Use UTF-8 for djui text 2023-03-30 23:12:32 -07:00
MysterD 689cff1b95 Reduce log spam 2023-03-30 12:19:04 -07:00
MysterD 529934f3d0 Prevent redirecting mod_list_request packets 2023-03-30 12:16:13 -07:00
Isaac0-dev 2eb1882f25 clean up a bit after change server settings/mods while hosting (#334)
* clean up change server settings/mods while hosting

* update discord activity when rehosting

* optimised lakitucam mod
2023-03-30 10:56:46 -07:00
MysterD dc04919a74 Merge branch 'coop' of github.com:sm64ex-coop-dev/sm64ex-coop into coop 2023-03-29 17:36:22 -07:00
MysterD 2c94a48090 Allow the ability to change server settings/mods while hosting 2023-03-29 17:36:13 -07:00
Prince Frizzy c7ccd9536e Fix iteration of players for paintings. Causes undefined behavior otherwise. (#333) 2023-03-29 06:05:06 -04:00
MysterD c10f080d11 Fix display of star 2023-03-28 22:28:04 -07:00
MysterD 3a8fa721ac Added 15 more characters 2023-03-28 16:15:42 -07:00
MysterD ccbe0a186b Make adding extra characters even easier, add more umlaut and grave characters 2023-03-28 13:23:00 -07:00
MysterD 96943d7edc Make the extended character names and order make more sense 2023-03-28 12:33:13 -07:00
MysterD 93f5f9b1db Added portuguese letters to chat font 2023-03-28 00:57:05 -07:00
MysterD 4fcb226db6 Added most of the spanish characters 2023-03-28 00:34:52 -07:00
MysterD 09e3352c97 Only send debug sync packet if no lag is detected 2023-03-27 23:08:54 -07:00
MysterD b69dbbce96 Make debug sync packet not-reliable 2023-03-27 22:48:54 -07:00
MysterD 7b47eaec51 Make ping unreliable 2023-03-27 22:16:21 -07:00
MysterD f6f22b1629 Allow pings through unknown players 2023-03-27 22:12:48 -07:00
MysterD 2fa5d68260 Fix crash when removing a sync objects and iterating at the same time 2023-03-27 20:25:35 -07:00
MysterD 8a24a2dd84 Added ñ and Ñ to coop 2023-03-27 18:35:39 -07:00
Agent X 4f0b958f6e Make cheats much better and add new ones (#305)
* Make cheats much better and add new ones

Improved some, added some.
- Formatted cheats code to fit with the rest of sm64's naming style of things like structs
- Cheats will now always check for gServerSettings.enableCheats instead of its own variable
- Moon Jump: Increased vertical speed, automatically exit bonks
- God Mode: Tiny code improvements
- Super Speed: Exponentially improved, moved to step code and now works as it always should have
- Rapid Fire (New): When on, A will become rapid fire
- Always Triple Jump (New): When on, Mario will triple jump regardless of forwards velocity
- BLJ Anywhere (New): When on, spam A while BLJing to BLJ anywhere

* Add m->playerIndex == 0 checks
2023-03-27 15:53:12 -07:00
PeachyPeach d34e33904d /luaf; fix compilation issues with audio and debug + dev (#328)
/luaf command to execute lua code from a file. Note that this command doesn't load the file the same way mod files are loaded, so no access to gGlobalSyncTable and gPlayerSyncTable. hook_chat_command cannot be called, but hook_event can.

Fix some compilation issues
2023-03-27 15:50:49 -07:00
Isaac0-dev 6253241e4a revert crash fix (#331)
revert crash fix, causing more serious issues in star road
2023-03-27 15:49:29 -07:00
MysterD b563a96886 Bump version 2023-03-27 15:36:37 -07:00
MysterD 13079a03c3 Fixed sync ID assignments 2023-03-27 15:34:22 -07:00
MysterD d21d2bbfba Swapped out hashmap to C++ for sync objects 2023-03-27 14:29:15 -07:00
MysterD 90478c6e0f More sync object fixes 2023-03-27 12:51:10 -07:00
MysterD 83beb23b2c Fix some sync ID bugs 2023-03-27 12:29:20 -07:00
MysterD 2dc74815ad Increase max packets per second to 100 2023-03-27 11:59:06 -07:00
MysterD c1322b7aa1 Figure out a ping between every player, adjust resend rate based on it 2023-03-27 11:50:32 -07:00
MysterD f74702fe97 More shadow adjustments 2023-03-27 01:04:30 -07:00
MysterD 283d7e45a5 Possible fix for shadows going wonky on moving platforms 2023-03-27 00:59:19 -07:00
MysterD 384903e610 Skip animation interpolation more often
(hands no longer swap places after side jumping)
2023-03-27 00:24:06 -07:00
MysterD d19b7802d3 Fixed bug in romhacks where coins re-appear when re-entering 2023-03-26 22:05:22 -07:00