Commit Graph

67 Commits (c7d05d39502794ff9380de1d24a7feed50d57808)

Author SHA1 Message Date
MysterD dd0f1cddac Resync bomp using Network Area Timer 2021-08-03 18:52:48 -07:00
MysterD 53b4ddef7a Added configurable player name, model, and palette 2021-08-02 22:33:38 -07:00
MysterD 89decfe9a6 DJUI: Added mouse support to DX11/DX12 2021-07-31 02:30:10 -07:00
MysterD 7ea1203433 Merge branch 'dev/djui' into dev/unstable 2021-07-22 20:38:21 -07:00
MysterD 38b7525848 DJUI: Reimplemented chat 2021-07-21 00:53:28 -07:00
MysterD 8bc33d05dc Made cheats server-setting, created cheat menu 2021-07-16 18:43:21 -07:00
MysterD df53c263e8 DJUI: Replaced old ingame menu with new DJUI menu 2021-07-15 19:37:09 -07:00
MysterD f35d15d588 DJUI: Changed quit menu into confirm menu, confirmed save erase 2021-07-14 19:14:07 -07:00
MysterD 1ea3007256 Added save file selection to host menu 2021-07-14 18:58:52 -07:00
MysterD e92c541052 DJUI: Created popup system, re-added missing popup messages 2021-07-12 18:29:39 -07:00
MysterD bb93ee4073 Added a join message screen
Displays an animation while joining
Shows version mismatch error in join message screen
Shows mod mismatch error in join message screen (displays mismatching mods now)
Displays party is full / host closed connection in join message screen
Added string builder
2021-07-10 22:30:58 -07:00
MysterD fa55493dbc Removed old custom menu system 2021-07-01 21:27:57 -07:00
MysterD a2e8113cfc Removed old chat system 2021-07-01 21:14:11 -07:00
MysterD 638c36b43e DJUI: Added join panel 2021-07-01 21:03:14 -07:00
MysterD c4cd73fe7d DJUI: Started adding inputbox 2021-06-29 19:04:23 -07:00
MysterD 4889e52ca0 DJUI: Added host menu
Added host message menu
Refactored how panel menus are constructed
Adjusted normal font's line height
Adjusted how text boxes detect max lines
2021-06-28 00:04:48 -07:00
MysterD e62770a51b DJUI: Added controls menu 2021-06-27 15:54:10 -07:00
MysterD a2439cbacc DJUI: Added selectionbox 2021-06-26 14:20:39 -07:00
MysterD caa8cce39a DJUI: Added sliders, made Sound menu work 2021-06-25 15:50:31 -07:00
MysterD 450e35783e DJUI: Wrote active panel system 2021-06-24 18:15:59 -07:00
MysterD 019639f44b DJUI: Added 'Three Panel' component 2021-06-23 19:17:46 -07:00
MysterD a5a3458221 DJUI: Added keyboard/gamepad support 2021-06-22 20:01:16 -07:00
MysterD 9d401be5ad DJUI: started adding options menu 2021-06-22 00:13:37 -07:00
MysterD bcdd5b8eda Added custom title font
Adjusted text system to have multiple fonts
Added color escape to text
2021-06-21 21:18:27 -07:00
MysterD 24bd83963e Added quit menu
create enabled switch to disable interactables
fixed djui_base_destroy()
added on_click() event
2021-06-21 03:11:53 -07:00
MysterD 326bc52d08 DJUI: Created main menu panel
Added ability to make a DjuiBase keep its aspect ration
Added on_render_pre callback
Added ability to display 32b images
Added DjuiFlowLayout
Added logo
2021-06-20 23:34:14 -07:00
MysterD 43dc7bd6a1 Many small adjustments to networking code
In an attempt to track down an issue that causes packet flooding and
hanging, I've looked at every step of the networking process and tried
to clean up anything strange I saw.
2021-06-20 04:36:33 -07:00
MysterD 5eecb9d48e DJUI: Rendering, interactable, and mouse adjustments
Made DJUI render at 60 fps
Added mouse cursor and hooks in SDL for capturing the window-relative mouse position
Started creating an interable system where elements can respond to events such as on_mouse_hover
2021-06-19 18:22:44 -07:00
MysterD 38e6b5d340 Initial DJUI commit
The birth of a custom user interface system.

Has the ability to draw things to the screen at native resolution
regardless of window size.

Components can be nested within one another to an arbitrary depth.

Text rendering is completely rewritten.

Text and images can be clipped by their parent container.
2021-06-18 15:23:59 -07:00
MysterD aebaecc1cc Resynchronized checkerboard elevators to use area timer 2021-06-14 20:29:08 -07:00
MysterD 248e8a8963 Complete rewrite of entity ID reservation system
Now "syncId"s can only be reserved at ID 127+. This ensures that static level
objects and spawned reserved objects never clash. The server keeps track of
every player's list of reserved IDs, as well as when an ID is used, or when
an entity using that ID is destroyed. This is much more complicated than it
used to be, but this complication is required due to players being allowed to
be in different areas of the game.
2021-06-13 16:04:28 -07:00
MysterD cabdab421b Improvements to late-join synchronization
Removed (slightly) old coin and static ent removal system
Resynchronized respawners
Added packet for macro deletions
    better than previous system since the entities don't need a sync id and we can synchronize deletion station across areas
    allows the synchronization of odd entities like lines of coins
Added packet for spawn info deletions
Split packet_location_request into multiple files
2021-06-09 22:35:34 -07:00
MysterD 27b4b368e4 Ripped out level synchronization/warp code
Began writing new system that synchronizes course/act/level/area per
player and 'ownership' of that location.
2021-06-07 12:19:59 -07:00
fgsfds 5eba0cb0f6 djoslin0's new warp code 2021-04-05 03:21:37 +03:00
MysterD 4f631ab151 Translated Luigi sounds through new Character system 2020-10-16 23:33:41 -07:00
MysterD cd05b6ffc9 Created character struct for mario/luigi asset differences
Removed multiple two-player hacks in the process
2020-10-13 18:33:51 -07:00
MysterD c5fac42ab1 Establish new versioning system (beta 1) 2020-10-11 15:49:24 -07:00
MysterD 96a698aec3 Enhancements to networked player infrastructure 2020-10-10 01:18:45 -07:00
MysterD c399e337cd Rewrote how RNG is synchronized
The old implementation was hacky and often returned desynchronized
results. This implementation gives a seed to each sync object, and
synchronizes that seed. Also allows for a seed to be saved temporarily
based on position and recycled for multiple calls.
2020-10-05 19:15:13 -07:00
MysterD 9d3390f4b2 Added mod registration system
Allows mods to register themselves so that mismatches don't occur. This
does not automagically detect when someone modified the game, so the
mods will have to insert a function like this into their patch:

static void __attribute__((constructor)) _register_this_mod() {
    network_register_mod("mod name here");
}
2020-10-04 16:41:55 -07:00
MysterD aec70e0c57 Fix chat so remote is filled-in and local is non-filled-in star 2020-09-28 20:13:44 -07:00
MysterD 28b06da7e1 Added player connected/disconnected events
Changed synchronizing text to be more descriptive
Added 'player connected', 'player disconnected', 'network shutdown' chat messages
Prevented someone from joining through Discord while in another lobby
Added the distinction of sending a packet to all vs to a specific player
Enforced lobby size of 2, multiple joiners in a direct connection will be booted
Stored network destination for each player
Detected network drops
2020-09-18 23:06:26 -07:00
MysterD 7f1a3631b1 Added warning when Discord isn't detected. Added missing sounds to buttons and events in menu 2020-09-15 09:47:26 -07:00
MysterD 3bab7a7fdb Complete rewrite of custom main menu
The vanilla main menu is an awful pile of code that is extremely painful
to make additions to. So I've side-stepped the problem by writing an
entiely new menu system without all of vanilla's quirks. I've separated
the custom menu system from the menus I want to make, which allows for
easy additions and a clear separation of responsibilities.

Along with this rewrite comes a host menu, adding the missing
configuration options in-game.

Fixes #29
2020-09-13 23:57:14 -07:00
MysterD 15601ac856 Add Discord Game SDK networking system
Allows players to host without forwarding their ports or using a program
like Hamachi.
2020-09-13 03:27:35 -07:00
MysterD cf50e65ab9 Abstracted all socket code behind a NetworkSystem
In preparation for other forms of communication, I have abstracted all
of the socket code (which needs direct connections) behind a struct
whose calls can be swapped out for other systems if desired.
2020-09-12 17:56:42 -07:00
MysterD dc9eba85b9 Added debug level-warping for testing purposes 2020-09-11 20:10:29 -07:00
MysterD 3102c93d34 Completely rewrote level transition synchronization code
Should be snappier and less prone to crashes. I tested as many scenarios
as I could think of and it has been rock solid. But time will tell.

Also created a new debug log system, just so I could understand what the
hell was going on with this code.
2020-09-10 00:17:30 -07:00
MysterD 96c19d3c4c Synchronized save files
Now when a client joins, it will request the entire 512 byte EEPROM from
the server and refuse to continue until the server replies with the
contents. Then the client will override all reads and writes to the
EEPROM/save file. Thus, a client will never overwrite their local save.

Fixes #21
2020-09-04 15:07:32 -07:00
MysterD 9e7d7b03ea Removed 'int' from most of networking code
moved -Werror over to 'STRICT'
2020-09-04 11:43:12 -07:00