Commit graph

12 commits

Author SHA1 Message Date
Amethyst-szs
69d6a732c7
refac: abstracting game mode
- change: general game mode management more abstract and less H&S oriented
- change: split 8bit updateType into 4bit game mode and 4bit update type.
- change: don't process packets from other game modes (legacy mode for backwards compatibility)
- change: cache game mode of other players in puppet, resend GameModeInf on detected game mode change
- change: send gamemode NONE when H&S is selected but not active
- change: improved distance calculations in squared distance space
- change: change from hider to seeker when dead even if there are no other players
- fix: add hours to the minutes for the H&S GameModeInf packet
- fix: set milliseconds and hours when receiving time from server
- fix: keep the new time from the server for longer than a single frame
- fix: reset H&S icon after receiving a new state from the server
- refac: move code to generate PlayerList into own abstract LayoutPlayerList class.
- refac: to_string() method for GameTime to simplify code in the Game Mode Icon class.
- refac: rename TagInf packet to GameModeInf packet
- refac: remove param from `SocketClient::tryGetPacket()` (unused)
- refac: move all H&S specific files into the same directory (out of layouts)
- refac: move GameModeTimer.cpp from source/server/hns/ to source/server/gamemode/
- refac: clean up some unused, duplicate or complicated imports
- [mod menu] change: use the game mode name in the options & menu title
- [mod menu] change: select the next game mode in the game mode select menu
- [mod menu] change: possibility to always change the gravity setting in the H&S config menu
- [mod menu] add: toggle options to control mario/cappy collision/bounciness

(cherry picked from commit a9b2c87aa0)
(cherry picked from commit 918f61fbfd619d781d88dc74878d392c48cfa480)
(cherry picked from commit 96aff7dd7167d8244acef7884fa3503d4c3f868a)
(cherry picked from commit 0fb6413ec91bbf679e9f8cea1aa512159101fa46)
(cherry picked from commit ab78a812fd18781655ccf38e803f619ea427d1ac)

Co-authored-by: Robin C. Ladiges <rcl.git@blackpinguin.de>
2024-10-27 00:38:05 +02:00
Robin C. Ladiges
adc914d521
refac: whitespace 2024-10-27 00:37:57 +02:00
CraftyBoss
6493ef8d35
Merge pull request #67 from Istador/pr-main-mod-menu
Replace the action guide with the SMOO Mod Menu
2024-10-25 18:52:21 -07:00
Robin C. Ladiges
65582aafea
[mod menu] new: option to hide server in debug menu
- Client.hpp: add bool variable and methods
- hooks.cpp: save/load value from common.bin
- main.cpp: change
- StageSceneStateServerConfig: add button to the mod menu to toggle it
2024-06-26 09:17:23 +02:00
Amethyst-szs
e15e8f60e9
[main menu][pause menu] replace the action guide with the SMOO Mod Menu
Cherry picked this aspect from the original commit and did the romfs change for all languages (not only for `USen`).

a9b2c87aa0

(cherry picked from commit a9b2c87aa0)

Co-authored-by: Robin C. Ladiges <rcl.git@blackpinguin.de>
2024-05-31 23:50:36 +02:00
CraftyBoss
d4eabffff1 executor table re-impl, shine sync changes, send/recv netcode refactored 2022-09-04 02:23:02 -07:00
CraftyBoss
d3b1935899
Merge pull request #20 from Istador/dns
on invalid IPv4 addresses, assume it's a hostname and do a DNS lookup
2022-08-10 15:00:35 -07:00
Sanae
34691affb0 Overhaul gamemode management 2022-08-07 15:57:18 -06:00
Robin C. Ladiges
dd4f3202ae
change default IP
This might otherwise cause confusion with the server.json setting, which should stay at 0.0.0.0.

127.0.0.1 might at least work with emulators running on the same PC out of the box. Whereas 0.0.0.0 should be invalid (except on some systems that map
it to localhost).
2022-07-18 03:48:53 +02:00
Sanae
7c7b06542b Improve keyboard support and add port selection 2022-06-18 18:48:37 -06:00
CraftyBoss
b71a6fc27b update readme, fix screenshot hook, removed costume unlock hook 2022-06-17 22:18:24 -07:00
CraftyBoss
381293e2b8 First Commit 2022-06-16 14:33:18 -07:00