Commit Graph

1141 Commits (24bd83963ea593c3f14b09ae61d742ee34cddbaf)

Author SHA1 Message Date
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 acb0472dea DJUI: Added interactable mousedown events 2021-06-19 19:50:59 -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 2c8a422403 DJUI: Added drop shadow to text 2021-06-19 01:21:25 -07:00
MysterD e255e84edd DJUI: Added padding to DjuiBase 2021-06-19 01:10:24 -07:00
MysterD 121d969795 DJUI: Added borders to DjuiBase 2021-06-18 18:53:41 -07:00
MysterD 05272cf12c DJUI: added ability for x/y/w/h values to be relative to parent's size 2021-06-18 16:16:41 -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 31acc96535 Bump version number to 5 2021-06-15 21:27:59 -07:00
MysterD 99f986114b Bowser, cannon door, and eyerok no longer require server to be in level
All have been switched from being owned by the server to being owned by
the player with the lowest global ID in the level.
2021-06-15 21:04:51 -07:00
MysterD 578b54a610 BBH bookshelf manager no longer requires the server to be in BBH
Instead of only allowing the server to update the bookshelf manager, allow the
lowest global ID player to update it.
2021-06-15 21:01:28 -07:00
MysterD 5fb19927e9 Resynchronized DDD poles to use area timer system 2021-06-15 18:01:03 -07:00
MysterD dc2f7c5a47 Change unstable build disclaimer 2021-06-15 00:20:29 -07:00
MysterD 902418bde0 Fixed Discord packet system for >2 players 2021-06-15 00:15:03 -07:00
MysterD 88b304e52d Fixed how Linux registers the discord executable 2021-06-14 23:31:22 -07:00
MysterD 6d53fb7eaf Fixed the merry go round in BBH
Fixed releasing of sync objects that otherwise don't sync their death events
Fixed using/releasing reserved objects in an area that the server isn't in
2021-06-14 21:06:07 -07:00
MysterD aebaecc1cc Resynchronized checkerboard elevators to use area timer 2021-06-14 20:29:08 -07:00
MysterD ecccc66906 Resynchronized LLL puzzle pieces
Created a timer based on area that is shared. The puzzle pieces will
execute rapidly to catch up to the timer on level join. This keeps them
in sync without constantly needing to acknowledge that a puzzle piece
had moved before continuing.
2021-06-14 20:14:47 -07:00
MysterD 810f425472 Synchronized moat draining and cap switch unlocks 2021-06-14 19:59:11 -07:00
MysterD 79a5002faa Fix bowser key unlock sync 2021-06-14 19:21:47 -07:00
MysterD cd96d3beab Added indication of which players are in which acts 2021-06-14 19:11:26 -07:00
MysterD 041ebf95e3 Instance levels based on which star was selected
Previously the levels were instanced based on "act" which is a concept
that is invisible and unintuitive to the user.
2021-06-14 18:25:24 -07:00
MysterD d2c1357d89 Additional synchronization + misc fixes
Prevented crash that happened when an upstairs painting was entered
Synchronized TTC speed setting
Synchronized WDW water level on late join
Player packets no longer broadcasted to clients in a different location
2021-06-14 18:13:58 -07:00
MysterD 13b2ec9cf7 Adjusted how "static" sync entities are removed
No longer needs hacky stuff like relying on the macro for goomba triplet removal.
Instead we simply keep a list of sync ids of objects that were removed (but were
around at the start of level loading)
2021-06-13 19:00:55 -07:00
MysterD 3554fc50b9 Synchronized red coin count on join. 2021-06-13 18:32:35 -07:00
MysterD e4dc2a5931 Server makes sure the client can receive the packet before sending/tunnelling 2021-06-13 17:57:54 -07:00
MysterD 75038b46f2 Fixed how "levelAreaMustMatch" packets are sent/processed
Instead of the server dropping them immediately, the server only drops the processing. This allows it to broadcast/send the packet to the correct client without the server processing it.

Fixed how "static" level objects were detected. The old way was error prone and would consider spawned objects to be static anyway.

Made ERROR_LOGs always show up, "disabling" logging only turns off INFO_LOGs now.
2021-06-13 17:47:58 -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 c71e1dbc97 Added ordered packet system
Now packets can be grouped up and sent separately, but still be processed
sequentially regardless of how much they get scrambled over the network.
If a packet group isn't received for 15 seconds, all unprocessed packets
in that group will be dropped. Packet ordering is required for level and
area synchronization information when someone joins the level late.
2021-06-11 19:37:32 -07:00
MysterD a05eb495b3 Informed players of ent deletions in a different area (but same level)
Added packet_level_respawn_info to inform the players of entity
deletions in a different area of the same level. Currently it's
massively noisy due to sending out a new packet for each entity
destroyed. This can cause chaos when collecting a series of coins.

Ideally this information would be batched and sent in one big blob every
so often.
2021-06-11 16:19:24 -07:00
MysterD 016a912286 Complete rewrite of level-change/area-change system
Now level changes and area changes are separated. Entity deletions are
properly tracked on level change or area change. Late entity
synchronization is now triggered on any area change.
2021-06-11 14:39:25 -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 ab155b3147 Synchronized race timers 2021-06-08 22:05:12 -07:00
MysterD 3ab8f04c61 Synchronized respawners and entities created after level load 2021-06-08 21:21:52 -07:00
MysterD 09282cc63b Synchronize late-join coin collection 2021-06-08 02:26:35 -07:00
MysterD 9beaea7cdb Late-join synchronized chain chomp and exclamation box 2021-06-08 01:29:21 -07:00
MysterD 56f242ddc7 Added ability for clients to send packets to each other skipping server
Added memory of last reliable packet about each sync object
2021-06-07 23:12:17 -07:00
MysterD eec5ca4420 Keep track of static level spawn removals and sync them on location response 2021-06-07 19:25:31 -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
djoslin0 cb0c742514 Merge pull request #103 from fgsfdsfgs/coop-dev
custom player colors (and other "unstable 3" changes)
2021-04-08 00:11:02 -07:00
fgsfds 0e4e6a2899 sync with stable 2021-04-06 22:56:08 +03:00
fgsfds 8c28b0c269 windows: bump SO_SNDBUF size when playing with >4 players 2021-04-06 18:09:07 +03:00
fgsfds d24798d26f add more player colors 2021-04-06 18:08:41 +03:00
fgsfds 5c8e4b293c bump MAX_PLAYERS to 16 2021-04-06 02:32:06 +03:00
fgsfds 06f2011128 bump unstable version number 2021-04-06 02:30:54 +03:00
fgsfds c406222342 colorize chat messages with player color 2021-04-06 02:30:37 +03:00
fgsfds 3317154ec2 implement changeable model colors
in a very dumb way:

the custom colors are set for lights 3, 4, 5, 6 in a GEO_ASM callback, then copied to lights 1, 2 using gsSPCopyLightEXT
2021-04-06 00:22:42 +03:00
fgsfds 66c11d9329 added new GBI command: G_COPYMEM
exclusively for copying lights around for now; required for my retarded model color implementation
2021-04-06 00:18:04 +03:00
fgsfds e0a07a41b8 everyone except host is luigi 2021-04-05 04:21:23 +03:00