Commit graph

4230 commits

Author SHA1 Message Date
Khangaroo
693a77078d
Low-hanging fruit mod loading optimizations (#493)
* Low-hanging fruit mod loading optimizations

* Fix DynOS fread spam and don't use a linked list for mod cache (still O(n^2), but much faster)
2024-11-16 12:44:57 +10:00
Isaac0-dev
15eb8dd8fc Revert "changes to recent pr"
This reverts commit 4ba9970972.
2024-11-14 22:58:53 +10:00
Isaac0-dev
3e39f5651a add some bounds checks 2024-11-13 13:29:50 +10:00
Isaac0-dev
4ba9970972 changes to recent pr 2024-11-13 13:28:36 +10:00
Khangaroo
d2aaeb23e9
Minor vertex processing optimizations (#490)
* Minor vertex processing optimizations

* Only cache global light if lighting is enabled
2024-11-13 13:27:43 +10:00
Agent X
fff34af6ac Disable file select on OG title screen (accessible with special_warp(SPECIAL_WARP_TITLE)) 2024-11-12 19:01:02 -05:00
Agent X
d5ec52fcc2 Restore vanilla Eyerok boss dialog 2024-11-12 17:50:15 -05:00
Agent X
d66cbf6dfc Restore vanilla chain chomp cutscene 2024-11-12 17:45:06 -05:00
Brobgonal Second
b730f7e58b
Fixed Toadette's hair being red, hair's palette now matches Toad's (#488) 2024-11-12 22:28:14 +10:00
Brobgonal Second
76c0f97c98
Updated Toadette's icon to match Toad's (#397)
* Fixed one Yoshi voiceline being stereo instead of mono

* Revert "Fixed one Yoshi voiceline being stereo instead of mono"

This reverts commit 10135bf94c.

* Fixed one Yoshi voiceline being stereo instead of mono

* Updated Toadette's icon to match Toad's
2024-11-12 22:27:56 +10:00
Khangaroo
1babad1640
Don't use default VAO (#487)
* Don't use default VAO

* Don't use a VAO on OpenGL 2.1
2024-11-12 11:08:21 +10:00
Agent X
aa830ce456 Some minor DJUI theme adjustments 2024-11-11 10:05:20 -05:00
Agent X
7e50a3790a
Update README to mention wiki 2024-11-11 10:04:50 -05:00
Sunk
945d1efe91
Move camera down if ceiling hanging with romhack camera (#407) 2024-11-11 15:12:25 +10:00
Radek Krzyśków
42cf0e3eea
Fixed smlua_model_util_get_id buffer overflow (#404)
- added the missing limit check for `sCustomModelsCount`
 (caused memory overflow into `bbh_seg7_vertex_`)
- changed `LOG_ERROR` to `LOG_LUA_LINE`, so that the mod dev can easily see any missing models
 (similar to getting warnings about missing audio files with `audio_sample_load`)
2024-11-11 08:45:21 +10:00
Khangaroo
b8381cf198
Fix DJUI text rendering with MSAA (#405) 2024-11-11 08:45:04 +10:00
Sunk
1a440f6380
Fix camera problems (#398)
Fixed the issue where the camera wasn't behaving like vanilla in vanilla sm64
Fixed the issue where the camera was just stuck while in water/flying in a romhack
2024-11-04 17:49:23 +10:00
Radek Krzyśków
aa12eaacce
Use virtual-key names instead of physical-key names in the binds menu (#395) 2024-11-03 07:57:04 +10:00
Blockyyy
93cbf480b6
Reset skybox color on network shutdown (#393) 2024-11-01 21:25:54 +10:00
Cooliokid956
d02b85bb5e
Nametags improvements (#392)
The nametag's scale is now controlled by its depth, matching the player's size
The nametag's color now uses the same function used by chat to retrieve the player color
The nametag will fade away if it gets too close to the camera
2024-10-31 19:02:48 +10:00
Brobgonal Second
4915bad1e7
Fixed one Yoshi voiceline being stereo instead of mono (#389)
* Fixed one Yoshi voiceline being stereo instead of mono

* Revert "Fixed one Yoshi voiceline being stereo instead of mono"

This reverts commit 10135bf94c.

* Fixed one Yoshi voiceline being stereo instead of mono
2024-10-27 15:52:35 +10:00
Cooliokid956
6badf67a33
Add location label override (#390) 2024-10-27 15:52:17 +10:00
John S
2cf1d03ed5
Optimization of mtxf_lookat() (#377)
* Update mtxf_lookat

* Make new mtxf_lookat a little easier to read and add mario specific types

* fix the declaration for mtx[3][3]

* Added negative sign
2024-10-24 07:17:29 +10:00
EmeraldLockdown
904c4c9c13
Change MAX_KEY_VALUE_LENGTH to 512 (#386) 2024-10-23 10:49:23 +10:00
Radek Krzyśków
b4b66c369a
Fixed clipboard (text copy & paste) implementation (#380)
- fixed "SDL_GetClipboardText" memory leak
- forcing unicode clipboard data format on Windows (UTF-16LE system, UTF-8 in-game)
- all "get_clipboard_text" functions return a zero-width string in case of failure, instead of NULL
2024-10-22 22:24:13 +10:00
Isaac0-dev
85a81d3d81 reset Lua error message on network shutdown 2024-10-22 21:09:46 +10:00
Isaac0-dev
fd99cee674 fixed non dev compile 2024-10-22 20:54:11 +10:00
Brobgonal Second
a81d8fde26 Fixed a bug with the [CS] VL-Tone & Cjes Luigi mod (#383)
Fixed a bug with the [CS] VL-Tone & Cjes Luigi mod when enabled without the Character Select mod enabled would send a wrong error message would say 'Extra Characters requires Character Select to be enabled.' instead of '[CS] VL-Tone & Cjes Luigi requires Character Select to be enabled.'
2024-10-22 17:23:30 +10:00
Motoo Chhotoo Chintoo
e967e2cd1e
Functions to update Mod Menu elements (#385)
Three new functions have been added, to be able to change the respective mod menu elements' values:
- update_mod_menu_element_checkbox
- update_mod_menu_element_slider
- update_mod_menu_element_inputbox
2024-10-22 16:45:19 +10:00
Cooliokid956
418b1201a0
Various FOV fixes and additions (#384)
* interpolate all fovs

* perfected the fov equation

just the facts

* create fov coefficient function

use it to scale units along with fov

* add get_current_fov

returns the current fov
2024-10-22 11:04:46 +10:00
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
John S
5300b559d3
Fix weird comment in Makefile (#365) 2024-10-16 17:19:42 +10:00
Jon Crall
1bde20d896
Better error messages in n64graphics (#370) 2024-10-16 17:19: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
Isaac0-dev
78e07a7064 typo fix 2024-10-07 22:13:19 +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