Commit graph

2061 commits

Author SHA1 Message Date
Isaac0-dev
f7a3e5f0a6
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
2f4008f9c9 Fixed compiling with DISCORD_SDK=0 2023-04-04 16:22:07 -07:00
MysterD
6f7d783602 Preventing spamming of join packets when the ping is high 2023-04-04 00:34:54 -07:00
MysterD
e7ebce5207 Removed lag compensation functions that shouldn't be added to the Lua API 2023-04-03 21:56:52 -07:00
MysterD
4d545fd2ca Fix zip file extraction error 2023-04-03 21:09:15 -07:00
MysterD
c437b386f6 Add drag & drop to DirectX versions 2023-04-03 20:36:29 -07:00
MysterD
4578b4e71f Added new spanish strings 2023-04-03 19:32:34 -07:00
MysterD
9c6fef9ecd Allowed Drag & Drop importing of mods and DynOS packs 2023-04-03 19:22:22 -07:00
MysterD
0d21c66037 Restore vanilla angle checks for kick/pick 2023-04-03 15:23:10 -07:00
MysterD
fce88728d2 Improve lag compensation 2023-04-03 13:55:03 -07:00
MysterD
01b2cc2997 Fix incorrect font rendering offset 2023-04-02 23:06:06 -07:00
MysterD
192d47aea0 Added FONT_TINY 2023-04-02 23:02:14 -07:00
MysterD
dcd1bc7aa8 Made rejoining popup only show up once per rejoin 2023-04-02 22:28:34 -07:00
MysterD
4328c00299 Increase rainbow buffer size 2023-04-02 22:20:04 -07:00
MysterD
5406593660 Fixed player smoke particle flags 2023-04-02 22:11:16 -07:00
MysterD
304cf9e8eb Made players invulnerable to PVP when ground pounding 2023-04-02 22:11:04 -07:00
MysterD
fda3c54c8b Merge branch 'coop' of github.com:sm64ex-coop-dev/sm64ex-coop into coop 2023-04-02 21:19:04 -07:00
MysterD
92a8cc8675 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
fe53cdffd1
Fix cheats (#335) 2023-04-02 22:19:57 -04:00
MysterD
cdd077c9f8 Use the basic character on the title font if it's missing 2023-04-02 19:11:51 -07:00
MysterD
f593a263aa 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
8f2f46fbdc Adjust text in inputboxes 2023-04-02 15:34:47 -07:00
MysterD
44a1831698 Fix desync when changing areas 2023-04-02 14:44:52 -07:00
MysterD
193f2cc447 Turned title font into a sprite sheet 2023-04-02 13:51:52 -07:00
MysterD
68346eecf1 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
e578943700 Started optimizing text rendering 2023-04-01 23:44:10 -07:00
MysterD
9cfa078b5e Make gMarioStates->controller immutable in Lua 2023-04-01 17:16:18 -07:00
MysterD
0b6e087936 coop now restores a backup configuration file if loading the config file threw an error 2023-04-01 17:01:50 -07:00
MysterD
af458cf210 Fixed crash handler 2023-04-01 05:12:46 -07:00
MysterD
bff3dc74fe Fixed clicking your cursor on the rightmost letter of inputbox 2023-04-01 03:56:23 -07:00
MysterD
d09d66b5d5 Change certain asserts in configfile to logs 2023-04-01 03:39:23 -07:00
MysterD
213af9b2dc Remove djui panels from main djui header 2023-04-01 00:30:35 -07:00
MysterD
6fc711e440 Added smlua_text_utils_get_language() 2023-04-01 00:04:45 -07:00
MysterD
fb51d48c02 Capitalize language files 2023-04-01 00:00:44 -07:00
MysterD
80aa63d090 Automatically resize join and confirm text 2023-03-31 23:57:03 -07:00
MysterD
e86aa59a4d Fix memory leak in djui panel 2023-03-31 23:54:26 -07:00
MysterD
f3c1e15659 Resized DJUI menu panels so that other languages will fit 2023-03-31 22:05:37 -07:00
MysterD
4839adf289 Made the background controller setting not require a restart 2023-03-31 22:05:09 -07:00
MysterD
a9fe991ba4 Make language configurable in-game 2023-03-31 19:38:06 -07:00
MysterD
30e802179b Added more things to the language system 2023-03-31 17:44:29 -07:00
MysterD
fe8c510ee4 Started adding the ability to translate DJUI menus 2023-03-31 15:18:19 -07:00
MysterD
abaaf10931 Continue simplifying DJUI panels 2023-03-31 12:34:20 -07:00
MysterD
2f59539d37 Started simplifying DJUI panels 2023-03-31 03:16:58 -07:00
MysterD
63f2166bab Merge branch 'coop' of github.com:sm64ex-coop-dev/sm64ex-coop into coop 2023-03-31 00:29:32 -07:00
MysterD
8029400e48 Use UTF-8 for djui text 2023-03-30 23:12:32 -07:00
MysterD
87c6ee6e80 Reduce log spam 2023-03-30 12:19:04 -07:00
MysterD
f2c0993342 Prevent redirecting mod_list_request packets 2023-03-30 12:16:13 -07:00
Isaac0-dev
ca23c4d5e7
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
b7879c1d5a Merge branch 'coop' of github.com:sm64ex-coop-dev/sm64ex-coop into coop 2023-03-29 17:36:22 -07:00
MysterD
341953390c Allow the ability to change server settings/mods while hosting 2023-03-29 17:36:13 -07:00
Prince Frizzy
79b1628dd8
Fix iteration of players for paintings. Causes undefined behavior otherwise. (#333) 2023-03-29 06:05:06 -04:00
MysterD
2acb51b314 Fix display of star 2023-03-28 22:28:04 -07:00
MysterD
90d1a71b64 Added 15 more characters 2023-03-28 16:15:42 -07:00
MysterD
c0ee5016dd Make adding extra characters even easier, add more umlaut and grave characters 2023-03-28 13:23:00 -07:00
MysterD
e0b5886bdf Make the extended character names and order make more sense 2023-03-28 12:33:13 -07:00
MysterD
4457edb412 Added portuguese letters to chat font 2023-03-28 00:57:05 -07:00
MysterD
be67a063e6 Added most of the spanish characters 2023-03-28 00:34:52 -07:00
MysterD
8f274afd49 Only send debug sync packet if no lag is detected 2023-03-27 23:08:54 -07:00
MysterD
6e46bc316e Make debug sync packet not-reliable 2023-03-27 22:48:54 -07:00
MysterD
67fefe2a9a Make ping unreliable 2023-03-27 22:16:21 -07:00
MysterD
33b5552ea6 Allow pings through unknown players 2023-03-27 22:12:48 -07:00
MysterD
7df87d583e Fix crash when removing a sync objects and iterating at the same time 2023-03-27 20:25:35 -07:00
MysterD
f4fe5a9457 Added ñ and Ñ to coop 2023-03-27 18:35:39 -07:00
Agent X
f97cc25732
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
b738cf73f9
/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
32e39516d6
revert crash fix (#331)
revert crash fix, causing more serious issues in star road
2023-03-27 15:49:29 -07:00
MysterD
e7c52e8adb Bump version 2023-03-27 15:36:37 -07:00
MysterD
ec7cb86c2c Fixed sync ID assignments 2023-03-27 15:34:22 -07:00
MysterD
e47f40af9e Swapped out hashmap to C++ for sync objects 2023-03-27 14:29:15 -07:00
MysterD
ca94b7387e More sync object fixes 2023-03-27 12:51:10 -07:00
MysterD
de6e783c20 Fix some sync ID bugs 2023-03-27 12:29:20 -07:00
MysterD
73dfbe5e59 Increase max packets per second to 100 2023-03-27 11:59:06 -07:00
MysterD
b596cb2af2 Figure out a ping between every player, adjust resend rate based on it 2023-03-27 11:50:32 -07:00
MysterD
406bcb158d More shadow adjustments 2023-03-27 01:04:30 -07:00
MysterD
b83bda7d6b Possible fix for shadows going wonky on moving platforms 2023-03-27 00:59:19 -07:00
MysterD
68ec3a21e0 Skip animation interpolation more often
(hands no longer swap places after side jumping)
2023-03-27 00:24:06 -07:00
MysterD
46a95f7a72 Fixed bug in romhacks where coins re-appear when re-entering 2023-03-26 22:05:22 -07:00
MysterD
89d2eb9853 Deterministically set the syncId of child objects of level objects 2023-03-26 21:35:04 -07:00
MysterD
6346293468 Deterministically set the sync ID for level objects that spawn from spawninfo, macros, and special 2023-03-26 21:10:38 -07:00
MysterD
d12fc6c37a Remove old sync id reservation system 2023-03-26 19:06:18 -07:00
MysterD
015a49dc1a Rewrite syncID allocation and memory structure 2023-03-26 18:43:35 -07:00
MysterD
6c8b6387b4 Fix debug builds on linux 2023-03-26 14:53:01 -07:00
Isaac0-dev
c22eb8b2ba
fix version string buffer overflow (#327) 2023-03-26 14:52:13 -07:00
Agent X
01a81fc6f5
Beta 32.0.2 (#330) 2023-03-26 15:17:58 -04:00
Agent X
6c9a15cbe9
Fix envfx not resetting (#329) 2023-03-26 12:50:21 -04:00
Isaac0-dev
6cb1b2faec
Beta 32.0.1 (#325)
* patch for beta 32

* require the development flag for Lua profiler

* autogen
2023-03-26 01:15:28 -04:00
Agent X
4277230f20
Show players on star select toggle (#321)
* Show players on star select toggle

* Make only toggleable by mods

* Allow player list to also be disabled
2023-03-23 21:12:26 -04:00
Agent X
3676d2030d
Fix extended pause display (#319) 2023-03-23 17:42:53 -04:00
Agent X
1a86d46d95
Override envfx from Lua (#316)
* Override envfx from Lua

set_override_envfx(-1) to reset override

* Fix type mismatch
2023-03-23 14:46:15 -04:00
Agent X
c79a001f5f
Make fixed collision rounded corners toggleable (#315) 2023-03-22 21:02:43 -04:00
Agent X
d562a857d3
Clean up pause menu code and fix player menu bug (#314)
* Clean up pause menu code and fix player menu bug

* Final fixes to player panel bugs
2023-03-22 18:57:23 -04:00
Agent X
53b8a2f8e6
Fix compilation warnings and stop demos when hosting (#313)
* [WIP] fix warnings

Committing now as is for Isaac to take a look at this.
Having issues with VERSION_TEXT

* Fix VERSION_TEXT crash and stop demos on host
2023-03-21 22:41:43 -04:00
Isaac0-dev
7e46ce4a21
fixes and other improvements (#309)
* HOOK_JOINED_GAME

* expose VERSION_TEXT, and two more adjusments

* show if a constant type is a string with autogen

* fix another blunder by that guy

* should use an or operator here

* fix frame limiter stuff
2023-03-21 19:43:29 -04:00
Agent X
751dfe61c7
Move everything over (#280) 2023-03-20 22:36:25 -04:00
Agent X
7f6f7fea47
Fix NaN position bug with fixed collision (#312)
* Fix fixed collision NaN position

Thanks to @Marioiscool246 for figuring this out.
Sometimes Mario's position will become NaN when doing specific things, this fixes that.

Co-Authored-By: Marioiscool246 <27823923+Marioiscool246@users.noreply.github.com>

* Formatting

Co-Authored-By: Marioiscool246 <27823923+Marioiscool246@users.noreply.github.com>

* Fix ordering

* Final fix(?)

---------

Co-authored-by: Marioiscool246 <27823923+Marioiscool246@users.noreply.github.com>
2023-03-20 21:13:02 -04:00
Agent X
42b43a9b7e
get_ttc_speed_setting and set_ttc_speed_setting (#307) 2023-03-20 20:20:11 -04:00
Agent X
b2ba30e41c
Merge pull request #306 from Agent-11/smlua-exec-str
/lua (Run Lua from chat IF you compiled with DEVELOPMENT)
2023-03-20 20:12:52 -04:00
Agent X
d0318c23d5
Merge pull request #301 from Agent-11/hooks
Touch up new hooks
2023-03-20 20:07:14 -04:00
Agent X
b05c7ccf74
Merge pull request #302 from Isaac0-dev/apple
put everyone in the jumbo star cutscene if one person is in it
2023-03-20 20:06:05 -04:00
Agent X
3a45334a3d
Merge pull request #310 from Agent-11/time
get_time()
2023-03-20 19:59:31 -04:00