Commit graph

4429 commits

Author SHA1 Message Date
Agent X
eac580e04a Expose more lag compensation things to Lua 2024-12-01 16:46:05 -05:00
Isaac0-dev
c65a67ccf1 use a hmap for scroll targets 2024-11-30 15:34:25 +10:00
Isaac0-dev
c0691d4b3e add unordered map to cmap 2024-11-30 15:33:11 +10:00
Isaac0-dev
2bfd9bc5f6 init dynos levels in DynOS_Level_GetCollision 2024-11-30 09:12:47 +10:00
Isaac0-dev
97439fa557 fix a buffer overflow in smlua_text_utils 2024-11-30 07:30:57 +10:00
Agent X
849b5ead50 Fix chain chomp and Eyerok cutscenes 2024-11-29 12:40:39 -05:00
Isaac0-dev
4bd519f312 mod menu refresh button bug fixes
- stop players from going back from the main menu during a refresh
- don't respond to category changes during a refresh
2024-11-29 12:53:56 +10:00
Isaac0-dev
cbd80a0b27 keep previous game names 2024-11-29 11:13:40 +10:00
Isaac0-dev
608c0e04ed improve nametags and djui_hud_world_pos_to_screen_pos
- Fix a bug where nametags could be seen when the player is not in view
- Make nametags use the head Y value at all times
- fixed djui_hud_world_pos_to_screen_pos in some screen sizes with RESOLUTION_DJUI
- made djui_hud_world_pos_to_screen_pos calculate viewport offset (for the credits)
2024-11-29 10:49:12 +10:00
PeachyPeach
7c2f055a86
Fix frame rate (again) (#537) 2024-11-29 08:14:50 +10:00
Blockyyy
fa2ec0957b
add set_room_override (#522)
lets you override the displayed room, do set_room_override(-1) in order to get back to normal
2024-11-29 07:48:19 +10:00
Agent X
bea8a3f9e9 Fix chat messages cutting off before limit 2024-11-28 10:58:27 -05:00
Agent X
33e83c88bb Add renderer to crash screen 2024-11-28 10:42:20 -05:00
Agent X
75d176c993 Fix DJUI base crash 2024-11-28 10:42:12 -05:00
Agent X
78e3271391 Update version number 2024-11-28 10:41:44 -05:00
Agent X
9206aa1e98 Add --no-discord launch param 2024-11-28 10:40:55 -05:00
Isaac0-dev
27bc5c0e09 sanity check in case mario is not spawned
This can't be tested very easily since the chances of this happening is really low.
2024-11-28 17:00:57 +10:00
Isaac0-dev
92fbe54ebd separate dynos pack model and mod owned model ids
to address the grand star late join model bug that can happen with mods like omm.
the bug happened when players have different dynos packs, and during a late join, the model ids are relied on to be the same.
dynos packs can offset the available model ids, therefore desyncing the model used on late join.
2024-11-28 14:02:27 +10:00
PeachyPeach
b2137ca2ae
Fix frame rate (#530) 2024-11-28 10:54:15 +10:00
John S
a47bc97011
Additional Fix for sqr, max, and min Functions Focusing on Improved Performance and Documentation Support (#529)
Co-authored-by: js <js@archlinux.local>
2024-11-28 08:56:16 +10:00
xLuigiGamerx
59aada62d7
Exposed djui_language_get() (#524)
* Removed unintentionally exposed function and disallowed it in autogen

* Exposed djui_language_get to lua
2024-11-28 08:11:27 +10:00
Isaac0-dev
96dc4da358 fix min max and sqr macros again 2024-11-27 23:50:56 +10:00
Isaac0-dev
50b727b41b disable audio threading until it seems stable 2024-11-28 06:49:34 +10:00
Isaac0-dev
c63e28c28c sanity check just in case 2024-11-28 06:49:16 +10:00
Isaac0-dev
e54aec5407 fix star spawn cutscene softlock 2024-11-27 09:57:53 +10:00
Isaac0-dev
268e759829 remove temporary fix 2024-11-27 09:17:13 +10:00
John S
74e344bef6
Fix issues in PR #359 relating to incorrect handling of miscellaneous data types (#527)
* Update math_util.h to fix issues in last PR

* Update math_util.h again
2024-11-27 09:15:54 +10:00
Isaac0-dev
831fdcefc9 fix linked lists in mod enabled list 2024-11-27 07:39:38 +10:00
xLuigiGamerx
7d08a546e8
Fixed the player and mod lists not updating on language change (#526) 2024-11-27 07:21:28 +10:00
Isaac0-dev
e5a51a6687 fixed wip mods crashing joiners
This is a temporary fix for a much larger issue in commit 3dd9226bc9
The problem is data sizes. The min function was being treated as a different data size since its no longer using the type agnostic macros.
2024-11-27 00:38:04 +10:00
xLuigiGamerx
e4fd83bec7
Fixed the playerlist and modlist not updating their themes and added djui_menu_get_theme() (#519)
* Fixed the playerlist and modlist not updating their theme instantly

* Added djui_menu_get_theme()

* Removed text

* Fixed syntax error
2024-11-26 16:50:47 +10:00
Isaac0-dev
620f555200 threaded the refresh button 2024-11-26 16:44:17 +10:00
Isaac0-dev
10ead40b5d fix some threading crashes 2024-11-26 16:28:27 +10:00
Prince Frizzy
507f578dbb
Threaded Audio Support (#176)
* Initial threaded audio. (WIP)

* Ready for testing threaded audio.

* Remove this, It causes issues on older gcc versions.

* Fix Loading Thread not running properly.

* Fix Loading Screen & Implementation Updates

* Update comment.

* Revamp Thread States
2024-11-26 15:53:09 +10:00
Isaac0-dev
bf2d7b629e refactored mod categories and refresh button
no longer restarts djui
2024-11-26 14:37:37 +10:00
Denis Kopyrin
cd6cb12df6 Improve romhack camera Y axis smoothness (#516) 2024-11-26 12:22:30 +10:00
EmeraldLockdown
0f8e397a25
Add Mod Categories (#214)
* Add Mod Categories

* Update French Translation

take 3, hope this coauthor works frfr

Co-Authored-By: Skeltan <110261917+Skeltan@users.noreply.github.com>

* Add "All" option

* Portugese translation

Co-Authored-By: Mechstreme <84944335+Mechstreme@users.noreply.github.com>

* Add Categorias to purtugese

Co-Authored-By: Mechstreme <84944335+Mechstreme@users.noreply.github.com>

* Update French.ini

Co-Authored-By: Skeltan <110261917+Skeltan@users.noreply.github.com>

* Free category from memory

* Update German Language

Co-Authored-By: DMMaster636 <86197998+DMMaster636@users.noreply.github.com>

* Add CS mod category

* Make built in character select mods use CS category

* Remove main Character Select mod from having category entry

CS has its own github repo so gonna let Squishy handle that

* Add all translations using DeepL

* Forgot to remove that

* Actually translate the italian language lol

* Remove uneccessary translation comments

* Ok, now I actually saved all the files, so this should work now :D

---------

Co-authored-by: Skeltan <110261917+Skeltan@users.noreply.github.com>
Co-authored-by: Mechstreme <84944335+Mechstreme@users.noreply.github.com>
Co-authored-by: DMMaster636 <86197998+DMMaster636@users.noreply.github.com>
2024-11-26 12:19:10 +10:00
Radek Krzyśków
f81919ca23
Updated DirectX mouse buttons handling (#382)
- mouse clicks registered even when the game doesn't have focus
  - generally, `SDL_GetMouseState()` and `SDL_GetRelativeMouseState()` functions will not work with the `DXGI` backend, so that's why custom logic exists in `"src/pc/controller/controller_mouse.c"` 
  - fixing this issue required adding explicit checks for `(GetFocus() == game_window)`
- mouse clicks being registered immediatelly once the window receives focus
  - added a check to match the logic of the "SDL2 / OpenGL" version: 1st mouse click only activates the focus, then any following mouse buttons are processed as usual
- detecting whether the primary and secondary mouse buttons were swapped
  - `GetKeyState()` seems to work better than `GetAsyncKeyState()` because it does not require extra conditional statement like `(GetSystemMetrics(SM_SWAPBUTTON) != FALSE)`, and also from testing it seems the game will not receive an input when user clicks away to choose a different window
2024-11-26 11:46:35 +10:00
Sunk
947ce9f080
Rework PvP Balance (#357)
* PvP Rework

This rearranges the damages of last PR. The underused attacks should still see some buffs.

* Adjust how punches apply invincibility

Also increase punch invincibility timer to 12

* EmeraldLoc's easy suggestions

* Rework punching pvp

Punching no longer reduces invincibility frames. Instead, punches can ignore knockback invincibility and the full punch punch kick combo can be done.

* Adjust numbers

Breakdances should not deal 3 damage

* Potential fix for more common tripping

"Trip" here refers to 1 damage kicks

* Add temporary invincibility to rollouts

This is a test to see how different pvp feels with this change. Suggestion by sausrelics.

* Fix invincibility

* Prevent low damage/low knockback kicks altogether

* Update ignored attack list

* Allow dives to be attacked by most actions

A lot of people don't want dives to be entirely invincible and some suggested to make dives be able to only pierce through jump kicks

* Slightly nerf kick knockback

Suggestion by emily

* Rework dive piercing

Instead of all actions being able to hit dives other than jumpkicks, now only slidekicks (and ground pounds) can hit dives.

* Mild kick knockback increase from nerf

* Change direct equality to checking flag

* Decrease dive and punch knockback

* Prevent trades against dives with slidekicks

* Revert "Prevent trades against dives with slidekicks"

This reverts commit 2a2c3266a7.

* Allow ground pounds to always hit a sliding player

* Add server setting to change pvp

* Add pvp settings to config

* Add selection to menu

* Fix issues + autogen

* Rewrite goto statement to not use goto
2024-11-25 20:48:40 +10:00
Radek Krzyśków
cb34d85c33
Fixed empty keyboard bind names on DXGI (#510) 2024-11-25 19:28:42 +10:00
Sunk
5965b55eb6
Custom exclamation boxes (again) (#360)
* Unhardcode exclamation boxes

Part 1 of creating custom exclamation boxes

* Add `set_exclamation_box` and `get_exclamation_box`

Part 2 of creating custom exclamation boxes

* Exclamation box docs

Part 3 of creating exclamation boxes, although this was entirely optional

* Safety check

* Add a warning

* Remake component check

* Update warnings

* Check for subtables not being tables

* Reduce exclamation box size

This matches how many contents could exist in vanilla due to its hardcoded id 99 check. This check allows me to reasonably assume that no romhacks have more than 99 custom contents. Other mods that may use this function really shouldn't need more than 99 contents either.
2024-11-25 19:26:37 +10:00
Blockyyy
d51ee7ffe4
Fix HOOK_ON_SEQ_LOAD (#518) 2024-11-25 16:51:32 +10:00
Cooliokid956
70866a66e3
Remove temporary ex-coop CoopNet versioning (#521)
* Remove temporary ex-coop CoopNet versioning

* don't need this anymore
2024-11-25 16:50:10 +10:00
Isaac0-dev
39826deadd add a way to find surface types in collision 2024-11-22 08:57:37 +10:00
Isaac0-dev
4deff6f3f4 fix an oversight 2024-11-21 15:10:21 +10:00
Isaac0-dev
f85b8419af
Merge pull request #501 from coop-deluxe/dev 2024-11-21 10:51:49 +10:00
Sunk
382b03d97f
Fix gLevelValues.numCoinsToLife div/0 error (#500) 2024-11-20 07:48:11 +10:00
Isaac0-dev
d10e7c758e library update 2024-11-18 19:01:19 +10:00
Sunk
eb6183e87a
Fix camera reset bug (#499)
* Move camera down if hanging with romhack camera

* Fix camera reset bug

From issue #494

* Isaac's suggestions
2024-11-16 14:21:40 +10:00
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