userConnacancel
reposboxcancel

818 Commits over 1,127 Days - 0.03cph!

4 Days Ago
Fix formatting
4 Days Ago
Cull after, ensure move direct to last tx if query out of time but entries remaining
5 Days Ago
Restore backward compat LerpTo
5 Days Ago
Use Time.Now
5 Days Ago
Some extra docs + let's call it Query to match the other class
5 Days Ago
Some cleanup
5 Days Ago
Test Clean up - use TransformInterpolate class Can't modify transform if we're a network object root and a proxy - we must stay true to network transform target Hook up Interpolation enable/disable from Inspector. When Owner calls ClearInterpolation, set a bit on the update msg to have other clients do so as well. Hook up Network.Interpolation and Enable/DisableInterpolation() on the accessor. Fix to allow interp property to be set by GameObjectHeader Serialize the interpolation bool with GameObject Combination of fixed update interpolator and networked interpolation buffer. Working nicely
5 Days Ago
Combination of fixed update interpolator and networked interpolation buffer. Working nicely
9 Days Ago
Serialize and Deserialize Scene properties such as Time Scale, Fixed Update Frequency, Threaded Animation... joining clients will now have correct values for the Scene. These don't replicate when changed after that though. Fixes Facepunch/sbox-issues#4483
9 Days Ago
When creating networked object from remote (networked), wrap Deserialize and NetworkSpawnRemote in CallbackBatch so that _net is initialized before OnAwake is called. Fixes Facepunch/sbox-issues#4950
10 Days Ago
Use StringTable.Remove instead of StringTable.Entries.Remove when removing Connection from ConnectionInfoManager. Fixes Facepunch/sbox-issues#4983
11 Days Ago
Test Clean up - use TransformInterpolate class Can't modify transform if we're a network object root and a proxy - we must stay true to network transform target Hook up Interpolation enable/disable from Inspector. When Owner calls ClearInterpolation, set a bit on the update msg to have other clients do so as well. Hook up Network.Interpolation and Enable/DisableInterpolation() on the accessor. Fix to allow interp property to be set by GameObjectHeader Serialize the interpolation bool with GameObject
11 Days Ago
Specify in documentation that NetPermission.OwnerOnly works the same as NetPermission.HostOnly for static actions.
11 Days Ago
Minor correction
11 Days Ago
Fixed reading String Table snapshot that has an entry with 0 elements throwing an exception. Instead, ByteStream.ReadArray should return null (empty span) if it has a length of 0. Added a test to prove the bug. Fixes Facepunch/sbox-issues#5357
12 Days Ago
Serialize Component FullName instead of ClassName. Fixes cases where two components with the same name exist in different namespaces, sometimes the wrong one will be serialized. Fully backwards compatible. Fixes Facepunch/sbox-issues#5331
12 Days Ago
Test Clean up - use TransformInterpolate class Can't modify transform if we're a network object root and a proxy - we must stay true to network transform target Hook up Interpolation enable/disable from Inspector. When Owner calls ClearInterpolation, set a bit on the update msg to have other clients do so as well. Hook up Network.Interpolation and Enable/DisableInterpolation() on the accessor. Fix to allow interp property to be set by GameObjectHeader Serialize the interpolation bool with GameObject
16 Days Ago
Serialize the interpolation bool with GameObject
16 Days Ago
Fix to allow interp property to be set by GameObjectHeader
16 Days Ago
Hook up Interpolation enable/disable from Inspector. When Owner calls ClearInterpolation, set a bit on the update msg to have other clients do so as well. Hook up Network.Interpolation and Enable/DisableInterpolation() on the accessor.
16 Days Ago
Can't modify transform if we're a network object root and a proxy - we must stay true to network transform target
16 Days Ago
Test Clean up - use TransformInterpolate class
17 Days Ago
Clean up - use TransformInterpolate class
17 Days Ago
Test
17 Days Ago
Fixed NetPermission not working for static Rpcs (Fixes Facepunch/sbox-issues#5188)
17 Days Ago
Fix failing test, use float.PositiveInfinity not -1
17 Days Ago
NetList implements IList, IList<T> NetDictionary implements IDictionary, IDictionary<TKey,TValue>
23 Days Ago
Avoid collection modified error in NetworkPrune (Fixes Facepunch/sbox-issues#5280)
30 Days Ago
Temp comment out this line to fix tests
30 Days Ago
Object Snapshot Refresh (#1500) * Initial commit * Component id + prune those for refresh as well * Serialize id properly * OnRefresh * Fix refresh for bones * Revert comp ids on this branch * Use Id not __id as that is what was settled with for Component Ids * When a component is added to a GameObject after it has been network spawned, and it has Sync vars we should register them with the network table * Don't do on the root though save that for the multi-comp PR * Include latest table snapshot with full refresh. Update to support __guid * Undo this bit * Added Connection.CanRefreshObjects permission (def: true) * Add checks for CanRefreshObjects to Network.Refresh() and when OnObjectRefresh is called * Register properties recursively when sending network refresh or receiving one * Test to re-register Sync props after Network.Refresh * Make docs clearer * If a Component isn't valid then just set the property anyway for a Sync var * By default, clients (except host) can NOT refresh network objects. Host can change this with Connection.CanRefreshObjects * Some additional validation checks * Better logic * Fix issue with nested types not having correct identity hash for wrapped property codegen
30 Days Ago
Fix NRE in GraphInputNodeType.GetPath Inflate heightfield query cell bounds by 0.5, fixes terrain collision Fix terrain collider not updating on heightmap import Terrain collision is per triangle again instead of per cell, should be 100% accurate https://files.facepunch.com/layla/1b1911b1/sbox-dev_bZpdwNGM3P.mp4 Vulkan: Fix validation errors with MSAA disabled, this should fix a lot of crashing problems for people playing without MSAA Actually set D_MSAA combo on depth_downsample Fix hair blue line Scene.Load ShowLoadingScreen actually works Update avatar scene Open avatar scene when you click the avatar button Rework terrain casting and sweeping Only clear contacts on tag change if the contacts should have no interaction Use faster _aligned_malloc in physics system Tweak citizen eye ao add compilled avatar scene (!) PanelComponent uses internal enable, disable, update Temporary fix for drag executing multiple times in one frame Expose render settings to tools https://files.facepunch.com/garry/0c9677be-c880-4ac5-8976-3c69143c9f5b.png Compile fix Max 8x msaa Fix deserializing ActionGraphs in Menu context (#1506) Nicer test for if nodes are operators OnDestroyInternal calls OnDisabledInternal instead of OnDisabled Reset panel parent before deleting it Include panel parent in hash, fixes panel not rendering when parent is disabled and enabled Don't flag SceneObject and SceneModel as ESceneObjectFlags.IS_OPAQUE, the materials should dictate it, fixes translucent materials drawing in opaque passes (& drawing twice) Messed with input action panel dialogs, fix Facepunch/sbox-issues#5232 Fixed delete prompt having no content Fixed editing input action group not showing visible changes until re-opening project settings menu. Fixes Facepunch/sbox-issues#5235 Better warning if we can't find ITagset Fixed ManualHitbox.HitboxTags being uneditable in the inspector (fixes Facepunch/sbox-issues#5231) Don't give gizmo mouse focus when it orbit mode Check if aaquality is a valid enum, users are likely to have outdated settings ModelCollider uses mass and damping properties from model physics parts Change Json.PushNodeLibrary() to NodeLibrary.Push() Call NodeLibrary.Push() instead of Scene.Push() if HostScene is null Fixes Facepunch/sbox-issues#5244 Remove unused Remove buttons Show icon if item has alternates Clothing container stores height SkinnedModelRenderer stores animgraph params, applies them OnEnabled CitizenAnimationHelper - make Height nullable Height option on avatar, can mess with and annoy citizen Normalize clothing before applying Reset input config in menu Remove unused UI system gets game buttons when no game is loaded VSync menu option Can switch between variants Merge branch 'master' into snapshot-refresh
30 Days Ago
Fix issue with nested types not having correct identity hash for wrapped property codegen
30 Days Ago
Better logic
30 Days Ago
Some additional validation checks
30 Days Ago
By default, clients (except host) can NOT refresh network objects. Host can change this with Connection.CanRefreshObjects
31 Days Ago
If a Component isn't valid then just set the property anyway for a Sync var
31 Days Ago
Make docs clearer
31 Days Ago
Test to re-register Sync props after Network.Refresh
32 Days Ago
Register properties recursively when sending network refresh or receiving one
32 Days Ago
Multi-Component Sync Vars + Sync Vars in Children (#1503) * Support for multiple components of the same type on a Network Object to have sync vars. Adding support for children of a network object that aren't themselves network objects to have components with Sync vars too * Register and unregister Sync properties for child gos/comps appropriately * It goes here * Also unregister/register sync properties accordingly when GameObject id changes * NetworkMode can't be changed from NetworkMode.Object if we are actually a networked object (_net is valid) * Simplify a bunch - allow setting property if slot not registered * Remove unused UnregisterProperties methods * Add a test to make sure child sync vars are added to network table * Suppress these warnings for now - there are legitimate reasons why we might not find these GOs * Suppress unknown slot Merge branch 'master' into snapshot-refresh
32 Days Ago
Added Connection.CanRefreshObjects permission (def: true) Add checks for CanRefreshObjects to Network.Refresh() and when OnObjectRefresh is called
32 Days Ago
Izabu: Don't try to destroy null proxy Fixes unable to parse guid error when trying to load properties called "id" but the type is not a guid (Fixes Facepunch/sbox-issues#5181) ImageFormat.Default uses RGBA8888 Ensure PanelComponent finds its parent If PanelComponent gets enabled before WorldPanel it fails to find a valid parent Resolves sbox-issues/issues/5024 Fix NRE if destroying object in animation event In the PrefabFile upgrader, upgrade Id to __guid as well if possible, fixes corrupt prefabs from before when it was called Id Authority check for network destroy - can never arbitrarily destroy unnetworked objects Authority RPC now correctly uses invoke permissions from the AuthorityAttribute. When calling Authority RPC, if there's no owner, the target would be the host connection Move Json.Upgrader out of Sandbox,Game, have it filter by type Add GameResource.ResourceVersion Inject version into gameresource saves Change DeserializeToObject to use JsonNodes GameResources can define JsonUpgraders v1 upgraders for SceneFile and PrefabFile Add GameResource.LoadFromJson and use that anywhere we load a GameResource Fix PrefabFile upgrader doing nothing Fix tests, supply upgraders Add [RequireComponent] Postprocess components use [RequireComponent] https://files.facepunch.com/garry/436210e0-e5e0-44d2-86b5-3456d99bfa33.png Refactor Networking/Connection - fixes sbox-issues/issues/4676 Fix SerializedList/Dictionary not converting property - fixes sbox-issues/issues/5104 If we pass in an invalid transform to Steam Audio, just ignore it Fix path stretching asset browser size - fixes sbox-issues/issues/4609 Editor startup cleanup & remove Editor.Utility Support per triangle physics surfaces on mesh shapes https://files.facepunch.com/layla/1b1411b1/sbox-dev_WzjagCCSeA.mp4 Fix RedirectFileSystem DirectoryExists case sensitive Remove key when SetMeta a null value Add ConfigData type Save/load Collision data to ProjectSettings/Collision.config Remove obsolete calls Fix BaseSoundComponent NRE Fix stereo sounds playing one channel Fix terrain trace hit normal Fix all sounds being downmixed to mono ModelPhysics recreates physics on active model change, fixes some props not initializing physics when created in code Sprite shader flips with uv sign Add SpriteRenderer FlipHorizontal and FlipVertical ShaderGraph: Fix ScreenPosition.XY incorrect component count Fix asset browser not finding files on T and U drives Resolves sbox-issues/issues/4560 Created bone objects on skinned model renderer update on model reload and model change Move Networking.HostConnection to Connection.Host Whitelist TaskExtensions.Unwrap Style tweaks ControlWidget doesn't create a struct editor for readonly structs Fix gameobject multi-select editing (blame @kurozael) )( Resolve sbox-issues/issues/5171 by making dragValue match Add Model.Physics.Surfaces to get all physics surfaces used in a model editor Shortcut can be widget, window, or application scope, can have autorepeat, and can respond when input is ambiguous Show exception info in EventSystem errors Add TreeView.StartEditing, simulates pressing F2 Add object.GetSerialized() Fix AudioMeter exception due to being empty Add configurable version of Layout.AddSeparator In VirtualWidget.PaintBackground, only paint if alpha > 0 BaseItemWidget only stomp ShotcutPressed if it doesn't have any modifiers Switch mixers to be tree based, allow saving and loading Default reflection off, don't do any reflection processing if it's off Don't do SA simulate in unit tests Handle missing type in CheckRequireComponent nicer Style tweaks Remove unused sheets Fixed AssetBrowser disaster - Fixes sbox-issues/issues/5201 Rename ProjectSettings to ProjectSettingsWindow Blank off AudioReflections profile so we're not left with old data Expose the audio processors Serialize the processors Tweak NavigationView Allow adding audio processors Transform local bounds by scene object transform in CMeshSystem::ChangeModel, fixes incorrect bounds on mesh renderer model change Reset anim graph instance on model change These should be continue, not return Precache the sound before trying to preload it These refs aren't really for us Unused We don't really need this cache size logic, right Reconfigure this Give some warnings if we fail here, just so we know Tweak SoundFile.LoadAsync, GetSamplesAsync Fix crashes due to returning address to temporary locals Split this off Cubemap fog uses material inside hammer now MapInstance now loads Cubemap fog reference ModelDoc option to disable keyframe interpolation to allow for constant keyframe animations F1 brings up the game description modal Add to AnalogLook description, letting everyone know it's already scaled by sensitivity Remove unused Show info when entering a game Fix modal cursor when in game Improve animated sceneobject bounds, include render bone sphere radius, fallback on mesh bounds Include model view bounds too Don't show header/footer when viewing game info Vulkan: Show error message box and bail on VK_ERROR_DEVICE_LOST Vulkan: Enable Nvidia Aftermath for GPU crashdumps with VK_NV_device_diagnostic_checkpoints Vulkan: Add VK_EXT_device_fault support and dump info after device loss Vulkan: out-of-date or suboptimal swapchains are verbose logging Vulkan: Assert for absurd swapchain width/height that are happening during shutdown Vulkan: Log layers that are older than specified API version, these are the most likely cause of GPU device crashes EnumControlWidget support for nullable Fixed title of scene.get target input Fix property panel handling nullable ActionGraph parameter types Fix warning when compiling Action Graph editor EnumDescription.Entry.Group Menu.AddOptions fixes for value type items Menu.AddMenu( Menu menu ) menu menu menu menu menu If icon is just a bunch of symbols, make sure it doesn't overflow https://files.facepunch.com/ziks/1b1811b1/kr69TajHB0.png Implement VectorControlWidget.StartEditing() Fix ControlSheet.AddObject return value regression Invalidate mesh selection on scene change Remove contacts and process intersections just before shape or body remove, this allows intersection end events to run before removal Group jam page by not played, updated Add test for warnings in built-in projects Facepunch/sbox-issues#5223 Fix warning in AG editor Facepunch/sbox-issues#5223 Map instance only creates skinned model renderer for props if the model has skinned meshes or morphs Asset inspector copy path uses RelativePath to stay consistent with asset browser copy path Merge branch 'master' into snapshot-refresh
32 Days Ago
Multi-Component Sync Vars + Sync Vars in Children (#1503) * Support for multiple components of the same type on a Network Object to have sync vars. Adding support for children of a network object that aren't themselves network objects to have components with Sync vars too * Register and unregister Sync properties for child gos/comps appropriately * It goes here * Also unregister/register sync properties accordingly when GameObject id changes * NetworkMode can't be changed from NetworkMode.Object if we are actually a networked object (_net is valid) * Simplify a bunch - allow setting property if slot not registered * Remove unused UnregisterProperties methods * Add a test to make sure child sync vars are added to network table * Suppress these warnings for now - there are legitimate reasons why we might not find these GOs * Suppress unknown slot
32 Days Ago
Suppress unknown slot
32 Days Ago
Suppress these warnings for now - there are legitimate reasons why we might not find these GOs
33 Days Ago
Add a test to make sure child sync vars are added to network table
33 Days Ago
Make PhysicsBody Enable and Disable actually work, remove shapes from broadphase and insert them back on enable Don't trace disabled bodies Izabu: Don't try to destroy null proxy Fixes unable to parse guid error when trying to load properties called "id" but the type is not a guid (Fixes Facepunch/sbox-issues#5181) ImageFormat.Default uses RGBA8888 Ensure PanelComponent finds its parent If PanelComponent gets enabled before WorldPanel it fails to find a valid parent Resolves sbox-issues/issues/5024 Fix NRE if destroying object in animation event In the PrefabFile upgrader, upgrade Id to __guid as well if possible, fixes corrupt prefabs from before when it was called Id Authority check for network destroy - can never arbitrarily destroy unnetworked objects Authority RPC now correctly uses invoke permissions from the AuthorityAttribute. When calling Authority RPC, if there's no owner, the target would be the host connection Move Json.Upgrader out of Sandbox,Game, have it filter by type Add GameResource.ResourceVersion Inject version into gameresource saves Change DeserializeToObject to use JsonNodes GameResources can define JsonUpgraders v1 upgraders for SceneFile and PrefabFile Add GameResource.LoadFromJson and use that anywhere we load a GameResource Fix PrefabFile upgrader doing nothing Fix tests, supply upgraders Add [RequireComponent] Postprocess components use [RequireComponent] https://files.facepunch.com/garry/436210e0-e5e0-44d2-86b5-3456d99bfa33.png Refactor Networking/Connection - fixes sbox-issues/issues/4676 Fix SerializedList/Dictionary not converting property - fixes sbox-issues/issues/5104 If we pass in an invalid transform to Steam Audio, just ignore it Fix path stretching asset browser size - fixes sbox-issues/issues/4609 Editor startup cleanup & remove Editor.Utility Support per triangle physics surfaces on mesh shapes https://files.facepunch.com/layla/1b1411b1/sbox-dev_WzjagCCSeA.mp4 Fix RedirectFileSystem DirectoryExists case sensitive Remove key when SetMeta a null value Add ConfigData type Save/load Collision data to ProjectSettings/Collision.config Remove obsolete calls Fix BaseSoundComponent NRE Fix stereo sounds playing one channel Fix terrain trace hit normal Fix all sounds being downmixed to mono ModelPhysics recreates physics on active model change, fixes some props not initializing physics when created in code Sprite shader flips with uv sign Add SpriteRenderer FlipHorizontal and FlipVertical ShaderGraph: Fix ScreenPosition.XY incorrect component count Fix asset browser not finding files on T and U drives Resolves sbox-issues/issues/4560 Created bone objects on skinned model renderer update on model reload and model change Move Networking.HostConnection to Connection.Host Whitelist TaskExtensions.Unwrap Style tweaks ControlWidget doesn't create a struct editor for readonly structs Fix gameobject multi-select editing (blame @kurozael) )( Resolve sbox-issues/issues/5171 by making dragValue match Add Model.Physics.Surfaces to get all physics surfaces used in a model editor Shortcut can be widget, window, or application scope, can have autorepeat, and can respond when input is ambiguous Show exception info in EventSystem errors Add TreeView.StartEditing, simulates pressing F2 Add object.GetSerialized() Fix AudioMeter exception due to being empty Add configurable version of Layout.AddSeparator In VirtualWidget.PaintBackground, only paint if alpha > 0 BaseItemWidget only stomp ShotcutPressed if it doesn't have any modifiers Switch mixers to be tree based, allow saving and loading Default reflection off, don't do any reflection processing if it's off Don't do SA simulate in unit tests Handle missing type in CheckRequireComponent nicer Style tweaks Remove unused sheets Fixed AssetBrowser disaster - Fixes sbox-issues/issues/5201 Rename ProjectSettings to ProjectSettingsWindow Blank off AudioReflections profile so we're not left with old data Expose the audio processors Serialize the processors Tweak NavigationView Allow adding audio processors Transform local bounds by scene object transform in CMeshSystem::ChangeModel, fixes incorrect bounds on mesh renderer model change Reset anim graph instance on model change These should be continue, not return Precache the sound before trying to preload it These refs aren't really for us Unused We don't really need this cache size logic, right Reconfigure this Give some warnings if we fail here, just so we know Tweak SoundFile.LoadAsync, GetSamplesAsync Fix crashes due to returning address to temporary locals Split this off Cubemap fog uses material inside hammer now MapInstance now loads Cubemap fog reference ModelDoc option to disable keyframe interpolation to allow for constant keyframe animations F1 brings up the game description modal Add to AnalogLook description, letting everyone know it's already scaled by sensitivity Remove unused Show info when entering a game Fix modal cursor when in game Improve animated sceneobject bounds, include render bone sphere radius, fallback on mesh bounds Include model view bounds too Don't show header/footer when viewing game info Vulkan: Show error message box and bail on VK_ERROR_DEVICE_LOST Vulkan: Enable Nvidia Aftermath for GPU crashdumps with VK_NV_device_diagnostic_checkpoints Vulkan: Add VK_EXT_device_fault support and dump info after device loss Vulkan: out-of-date or suboptimal swapchains are verbose logging Vulkan: Assert for absurd swapchain width/height that are happening during shutdown Vulkan: Log layers that are older than specified API version, these are the most likely cause of GPU device crashes Merge branch 'master' into multi-comp-synvar
37 Days Ago
Remove unused UnregisterProperties methods
37 Days Ago
Simplify a bunch - allow setting property if slot not registered
37 Days Ago
Authority RPC now correctly uses invoke permissions from the AuthorityAttribute. When calling Authority RPC, if there's no owner, the target would be the host connection