userConnacancel
reposboxcancel

1,239 Commits over 1,341 Days - 0.04cph!

8 Months Ago
Component id + prune those for refresh as well Serialize id properly
9 Months Ago
Initial commit Component id + prune those for refresh as well Serialize id properly OnRefresh Fix refresh for bones
9 Months Ago
OnDestroyInternal should be internal
9 Months Ago
Game Object Network Mode Selection https://files.facepunch.com/conna/1b0711b1/sbox-dev_G97N4pdA3q.png (#1495)
9 Months Ago
Fixes local interpolation jitter
9 Months Ago
Game Object Network Mode Selection https://files.facepunch.com/conna/1b0711b1/sbox-dev_G97N4pdA3q.png
9 Months Ago
Fixed a boo boo
9 Months Ago
ComponentFlags.NotNetworked. When a component has this flag, it won't be serialized in the scene snapshot or with a networked object when sent to other clients
9 Months Ago
Don't EditLog if we're not in the Editor. EditLog separate from BreakFromPrefab because we don't wanna do that just because we're spawning a networked object in a running scene.
9 Months Ago
Interpolation Fixes w/ Ownership Change (#1494) 🤞
9 Months Ago
This doesn't need to be internal anymore, was leftover from testing
9 Months Ago
Speeling
9 Months Ago
Only interp here if we're a proxy?
9 Months Ago
Test comment something out
9 Months Ago
Initial commit to fix interp issues and ownership change
9 Months Ago
Finally fixes Facepunch/sbox-issues#4716 - reloading Map Instance when recompiled in Hammer
9 Months Ago
Add support for expression bodied methods for CodeGen. Fixes Facepunch/sbox-issues#5025 Add test for expression bodied CodeGen method
9 Months Ago
When joing via new instance, Project.Current is null - this can break <style> because it can't get relative path of current file. Fix that by just using absolute path in that case. Remove unnecessary assert
9 Months Ago
Host can always drop ownership of a networked object Host can always network destroy a networked object
9 Months Ago
wasted 2 days on this, works-ish but absolutely horrific, stashing anyway
9 Months Ago
Fixed [Sync] vars on private properties in base classes not being registered. What a strange one! Fixes Facepunch/sbox-issues#4916
9 Months Ago
Determine fate of network objects when owner disconnects (#1463) * Can specify what happens to a network object when owner disconnects - don't love the naming * Unused usings * Some cleanup * DisconnectAction -> NetworkOrphaned. Same terms everywhere else. Add NetworkOrphaned.Random - randomly assign owner when owner disconnects - route this through the host though
9 Months Ago
DisconnectAction -> NetworkOrphaned. Same terms everywhere else. Add NetworkOrphaned.Random - randomly assign owner when owner disconnects - route this through the host though
9 Months Ago
Make it an interface
9 Months Ago
Correct order
9 Months Ago
Might not have an active scene
9 Months Ago
Remove this log
9 Months Ago
Bit cleaner perhaps
9 Months Ago
Testing something but its shit, stash it though
9 Months Ago
Some cleanup
9 Months Ago
Unused usings
9 Months Ago
Can specify what happens to a network object when owner disconnects - don't love the naming
9 Months Ago
Fixed Sync vars on derived component types not working
9 Months Ago
Host Sync Vars (#1462) * NetworkTable.Entry.HasControl test. Separate sending network table changes from main update. Host or Owner can send table changes (only send entries they _control_) * When using WriteAll always write all regardless of control. Make it so unless YOU control a Sync property you can't physically change its value * Revert that for now - let people change Sync var value locally as it was before, we can try to find a better way to prevent this later. Complication comes from INetworkCustom * Remove redundant call * Let''s have each entry define if it has changes now that each one can be potentially controlled by different clients. Make sure we clear changed flag on entry when reading it. NetworkTable.HasChanges will now return true if any entry we have control over is dirty * Clarify comment * Let's call it HostSync * Prevent actual setting of Sync property, modification of NetList, or NetDictionary if you don't have control over it. Non-owner, non-host can't change the values locally, they _must_ be what the synchronized value is * We can always set the property if network not initialized * Default HasControl to true for NetList/NetDictionary in-case not set
9 Months Ago
Default HasControl to true for NetList/NetDictionary in-case not set
9 Months Ago
Let's call it HostSync Prevent actual setting of Sync property, modification of NetList, or NetDictionary if you don't have control over it. Non-owner, non-host can't change the values locally, they _must_ be what the synchronized value is We can always set the property if network not initialized
9 Months Ago
Clarify comment
9 Months Ago
Let''s have each entry define if it has changes now that each one can be potentially controlled by different clients. Make sure we clear changed flag on entry when reading it. NetworkTable.HasChanges will now return true if any entry we have control over is dirty
9 Months Ago
Remove redundant call
9 Months Ago
Revert that for now - let people change Sync var value locally as it was before, we can try to find a better way to prevent this later. Complication comes from INetworkCustom
9 Months Ago
When using WriteAll always write all regardless of control. Make it so unless YOU control a Sync property you can't physically change its value
9 Months Ago
NetworkTable.Entry.HasControl test. Separate sending network table changes from main update. Host or Owner can send table changes (only send entries they _control_)
9 Months Ago
9 Months Ago
Network Authority / Permissions (#1457) * Can a connection create objects? * Send network destroy even if DestroyImmediate is called * Ownership authority flags * Let GameObject have [Sync] too (test) * Reorder enum, add [Expose] * Change up logic for can create objects - only check if we have a source * Default CanCreateObjects to true for now (this is current behavior) * Initial implementatior for ownership authority * Use NetworkAccessor for changing ownership authority. (Temp? Depending on review) don't use TL for set prop for Sync Vars * Initial implementation of Rpc authority * Remove a test log * CodeGen static array for attributes on a CodeGenerator method/prop now marked as [SkipHotload] and readonly, so they do update when changed * Make it CanSpawnObjects * CanSpawnObjects settable only by the host * Some renaming. Set OwnerTransfer direct on GameObject instead of method on NetworkAccessor * Make sure CanSpawnObjects is synchronized to clients when set from host via ConnectionInfo * Default CanSpawnObjects to true for now * When OwnerTransfer is Request, make actual requests to the host for Drop/Assign/Take ownership and if host approves, then host will send the messages to everyone to take that action. Each message will then validate if was received from host * Remove this for now, sus is later * CanSpawnObjects is always true for the host. Early out in NetworkSpawn if local connection can't spawn objects - why bother trying at all? * NetworkAccessor.SetOwnerTransfer method * Documentation fixes * Rename Rpc.HasAuthority to Rpc.HasPermission for consistency * Owner can always drop ownership * Allow owner transfer changing from current owner
9 Months Ago
Allow owner transfer changing from current owner
9 Months Ago
Owner can always drop ownership
9 Months Ago
Rename Rpc.HasAuthority to Rpc.HasPermission for consistency
9 Months Ago
Documentation fixes
9 Months Ago
NetworkAccessor.SetOwnerTransfer method
9 Months Ago
CanSpawnObjects is always true for the host. Early out in NetworkSpawn if local connection can't spawn objects - why bother trying at all?