Commit graph

3150 commits

Author SHA1 Message Date
Isaac0-dev
d7352b8d2a fixed Lua profiler showing mods that aren't active 2024-10-20 21:36:30 +10:00
Prince Frizzy
a0ae1cdc02
Revamp Djui Profilers (#381) 2024-10-20 20:27:09 +10:00
Isaac0-dev
e99d600bf7 indentation in packet_player.c 2024-10-20 09:28:55 +10:00
Isaac0-dev
a621ed2eba bump version 2024-10-20 09:27:05 +10:00
Drahnokks
636b385e48
add controller.buttonReleased (#379) 2024-10-20 09:25:08 +10:00
John S
b712d4b6a3
Fix the branch bloat found in the atan2s and atan2_lookup functions (#375)
* Fix branch bloat in atan2s and atan2_lookup

* Fix unecessary inline on lookup
2024-10-18 16:47:00 +10:00
John S
479cc9d79d
Fix windows compilation by undefining min and max when defined via minwindef.h (already in main) (#378) 2024-10-18 15:23:36 +10:00
Isaac0-dev
f8a30e4fd8 fix some issue with recent prs 2024-10-18 12:47:24 +10:00
John S
3dd9226bc9
Update math_util.c and math_util.h to support autodoc with trig functions (inline instead of macros) and add new functions to smlua_math_utils (#359)
* Update math_util.c and math_util.h to move toward inlining functions instead of macros for autodoc. Expose some misc functions useful to lua

* Fix formatting

* Fix math_util.c formatting

* Fix formatting for smlua_math_utils.c

* Fix formatting smlua_functions.c

* Fix type redundancy in _Generic macros

* Add checks for including the highly optimized builtin compiler functions for GCC/Clang

* Add compiler checking for absx() to add in the highly optimized GCC/Clang builtins

* Fix repeated use of float built-ins for non floating point numbers

* Fix grammar mistake

* Fix functions to use camelCase as requested.

* Fixed the use of a custom sqrt approximation as modern procs have a built in FSQRT instruction that is faster.

---------

Co-authored-by: js <js@cartbara.columbus.rr.com>
2024-10-18 12:20:36 +10:00
Sunk
9621424069
Fix early hits (#363)
Sometimes, the player can ground pound a pole before even landing or punch/kick an enemy at high speeds which will kill the enemy but not give bounce back to the player. This fixes those, although there are definitely mod incompatibilities.
2024-10-17 18:31:01 +10:00
Sunk
8a62dfbdac
Fix piranha plant hitboxes (#355)
Bug reported in #150
2024-10-08 17:02:05 +10:00
Sunk
9adf922c08
Make dpad camera more precise (#358) 2024-10-08 16:48:42 +10:00
Isaac0-dev
34b78700c4 fix a crash while changing the volume 2024-10-08 16:04:41 +10:00
Isaac0-dev
45ea768590 a few adjustments to merged prs 2024-10-08 09:03:18 +10:00
Isaac0-dev
f503785ec2 manage cobject pointers better 2024-10-07 22:14:11 +10:00
Isaac0-dev
f0009d36b5 scrolling textures tweak 2024-10-07 22:13:35 +10:00
Sunk
b2bf9abafa
Add some suggestions from issues (#354)
* Make dives knockback based on speed

Suggestion from issue #349

* Add `get_local_coopnet_id`

Suggestion from issue #264

* Readd breakdancing as an attack

Suggestion not only from me but also from a few players I talked with. However this was not a suggestion that came from issues.

* Change around pvp damage

Suggestion from issue #343 and some changes from talking with the creator of the suggestion

* Change `get_local_coopnet_id`

The function can now take in any local id and has been renamed to just `get_coopnet_id`

* Suggested fixes
2024-10-07 13:43:04 +10:00
Sunk
260a429285
Some fixes for some small bugs (#351)
- Doors now no longer will be repeatedly talked even if you don't move away. It now behaves closer to vanilla.
- Fixed the ending level name not being able to be replaced.
2024-10-07 12:35:39 +10:00
John S
7a9d690305
Update smlua_cobject_map.c (#336) 2024-09-23 14:20:40 +10:00
Isaac0-dev
4aa2a20f72
fixes, clean up and some new features (#259)
- Only inited `smlua_audio_utils` if needed, since there will probably be plenty of people who play without ever using mods with custom audio.
- Fixed the pause anywhere setting - this ended up not being fully accurate to ex-coop, which it was originally intended to be.
- Stopped regenerating dynos collision bin on start up every time therefore giving a slight start up speed boost for some people.
- Added a config file setting that lets people choose to compress dynos bins on startup (disabled by default).
- Fixed a warning that shows on non macs during compiling.
- Properly fixed the chat box focus.
- Made the public lobby rules panel "temporary".
- Added a cleaner loading screen design.
- Added an ex-coop theme easter egg, can only be activated from the config file.
- Cleaned up the Lua traceback logging, now shows the folder and file the error occurred in, rather than the full path.
- Added a way to set `gCheckingSurfaceCollisionsForCamera`, so mods can specify to surface finding functions to ignore `SURFACE_FLAG_NO_CAM_COLLISION` internally.
- Rewrote the way smlua pushes CObjects/CPointers to Lua. Now using the C Lua API entirely to connect to Lua.
	- Fixed a use-after-free bug that could easily crash the game through Lua (explained further in one of my comments below).
- Fixed a common crash in `audio_sanity_check`.
2024-09-12 19:09:01 +10:00
EmeraldLockdown
c3d3f8545a
HOOK_ON_NAMETAGS_RENDER (#213) 2024-09-12 19:01:16 +10:00
EmeraldLockdown
39e035239c
Add djui_attempting_to_open_playerlist (#195) 2024-09-06 17:08:22 -04:00
Agent X
7fe3d281c6 Fix piranha plant bubble crash on ARM 2024-09-06 16:43:12 -04:00
Essem
39aaed235b
Fix build on Linux (#295) 2024-09-02 17:00:03 -04:00
Agent X
4e01841693 . 2024-09-01 20:41:39 -04:00
ThePlayerRolo
b18af26c61
Fix Compiler Bug. (#289)
* Add files via upload

* Update djui_panel_mod_menu.c

* Update djui_panel_mod_menu.c
2024-09-01 20:40:55 -04:00
Agent X
9bd8b7f017 Fix FOV jank 2024-09-01 19:19:10 -04:00
Agent X
044413653e This is no longer needed 2024-09-01 19:02:58 -04:00
Agent X
a4ed5ddb53 v1.0.3 2024-09-01 19:00:38 -04:00
Agent X
dad54c3dd3 Fix socket warning text cutting off early 2024-09-01 19:00:04 -04:00
Agent X
e6edb61dfb Bump online version 2024-09-01 17:51:20 -04:00
Agent X
4a971580ea Update mod_storage.cpp 2024-09-01 16:09:47 -04:00
Agent X
d9512a392a Revert "Sanity check MSAA"
This reverts commit 627ea49c14.
2024-09-01 15:19:26 -04:00
Agent X
c94990f743 v1.0.2 2024-09-01 14:17:52 -04:00
EmeraldLockdown
af8dc6995d
Allow user to change music in menu (#212)
* Allow user to change music in menu

* Remove annoying newline

* Fully reset menu

* No need for sSoundBox

* Add music to castle grounds

* Add translations

* oops

* Why did that not save!!

* Update lang/Polish.ini

Co-authored-by: Radek Krzyśków <46760021+Flower35@users.noreply.github.com>

* Update lang/Czech.ini

Co-authored-by: Radek Krzyśków <46760021+Flower35@users.noreply.github.com>

* Update lang/Russian.ini

Co-authored-by: Radek Krzyśków <46760021+Flower35@users.noreply.github.com>

---------

Co-authored-by: Radek Krzyśków <46760021+Flower35@users.noreply.github.com>
2024-09-01 13:15:04 -04:00
roddy
db3a7e3483
Update sockets and structs for full IPv6 support (#198)
* Initial IPv6 support

The address struct was changed to use sockaddr_in6 instead of sockaddr_in. Resolving domains also uses getaddrinfo() instead of the deprecated gethostbyname(), and if the returned address is IPv4, transform it to an IPv6-mapped address to make it work with the AF_INET6 socket.

* Direct Connection input box behaviour change

This makes the Direct Connection input box accept all types of addresses. IPv4, IPv6 and hostnames are now supported. Direct IPv6 addresses must be enclosed in square brackets [IPv6]:port to be able to separate IP from port, otherwise it will be treated as an IPv4 address or hostname.

* sanity checks

This fixes a weird error while reconnecting when using direct IPv6 addresses. getaddrinfo() doesn't like square brackets on the host IP, so remove those when found.
This commit also fixes a problem where gGetHostName wasn't being properly set when connecting through a hostname.

* cleanup and bugfix

Small code cleanup removing some debugging comments. This also fixes a bug where initializing the game without the --join argument (which initializes network as NT_NONE) was still calling a piece of code where it was resolving a domain and copying an empty gGetHostName to configJoinIp, which made coop_join_ip be cleared on the config file.

* fix rare cases of binding errors

Due to some options in the sockaddr_in6 struct that doesn't need to be set, rare cases can happen that there will be some random data that will interfere with such values. This made binding randomly or persistently fail. This commit makes that before binding, make sure to fill the entire struct with 0 before setting it up.

* Translations for WARN_SOCKET

This provides translations for the new text when hosting a server. I cannot guarantee the accuracy of the translations, except English, Portuguese and German, where it was written by native speakers.

* Update socket_windows.c

yeah right. resolving conflicts and stuff.
2024-09-01 12:48:24 -04:00
Jordan Russell
de47af0461
Mumble Positional Audio Integration (#247)
* added shared memory for mumble integration
update mumble struct with player and camera data

* osx compile fixes

* renamed methods

* fixed inversed unit vectors

* made mumble camera position mario

* cleaned up spacing

* added separate context for main menu

* added checks to avoid improperly changing contexts
2024-09-01 12:45:43 -04:00
Agent X
e73a95368c Make ending level be named "Ending" instead of "Peach's Castle" 2024-08-31 22:27:23 -04:00
Agent X
6e38084cf9 Make C buttons work for moving the first person player camera 2024-08-31 22:27:06 -04:00
Agent X
256539a925 Fix Mod Menu panel height bug 2024-08-31 22:26:33 -04:00
Agent X
a6d56efa33 WAAAOOOW when deleting save file 2024-07-22 12:44:25 -04:00
Agent X
7a9d32551c Sanity check FPS Display to prevent crash 2024-07-22 12:43:59 -04:00
Cooliokid956
c509dab0cf
Add rotation interpolation (#208)
* Interpolate rotation

* Autogen'd

* Resolution 1

* Resolution 2

* Resolution 3

* Resolution 4

* Fixed jitter at low angular velocities

More in the comment below
2024-07-21 18:58:38 -04:00
Blockyyy
1ac9ce8e4c
sequence_player_set_tempo, sequence_player_set_transposition (#224)
* Made Sequence function

* snake case
2024-07-21 18:56:18 -04:00
Mechstreme
73e9dd2c40
Fix bettercam zoom & pan level affecting main menu (#221) 2024-07-21 18:56:09 -04:00
Agent X
c9f07a8efc Whoops 2024-07-19 20:10:38 -04:00
Agent X
948f2bfe23 Small improvement to is_game_paused() 2024-07-19 12:09:05 -04:00
Agent X
627ea49c14 Sanity check MSAA 2024-07-18 14:42:53 -04:00
Agent X
c153162fa9 Disable demos for now, this whole main menu needs a rewrite 2024-07-17 16:05:09 -04:00
Agent X
78d287406d DJUI interactable crash fix 2024-07-17 12:25:16 -04:00