userGarry Newmancancel

19,214 Commits over 3,898 Days - 0.21cph!

1 Year Ago
Move PhysicsJoint, CollisionRules, PhysicsSettings to Sandbox.Physics
1 Year Ago
ToolEvent to EditorEvent Can change visibility of Razor created panels using @visibility https://files.facepunch.com/garry/ba7154d8-e33c-4ce8-b799-09ad82dc8d17.png
1 Year Ago
SandboxEditor becomes Editor Rename Tools to Editor
1 Year Ago
Remove env_tonemap_controller, Remove EnginePostProcess, Remove ITonemapEntity, make SceneTonemapParameters internal Warning fixes
1 Year Ago
BBox's "center" constructor takes an optional size argument
1 Year Ago
Make AssemblyInitialize internal Remove ApplicationTimings
1 Year Ago
Fixes
1 Year Ago
TypeLibrary.GetDescription becomes TypeLibrary.GetType
1 Year Ago
Clear that up, add some extensions to get water level easier Remove PhysicsBody.WaterLevel Show components in Entity list
1 Year Ago
Update GameDebug.cs Remove Entity WaterLevel + WaterEntity Protocol++ Hide EntityComponentAccessor, make component system interface based, accessible on IEntity (from tools etc)
1 Year Ago
Move DebugOverlayAttribuite to Event.Debug.Overlay
1 Year Ago
Removed Sandbox.Hooks obsolete code Moved VoiceSpeaker, VoiceEntry, VoiceList to Sandbox.UI namespace, removed Style.Dirty usage Tools: Remove Utility.RunCommand, replace with ConsoleSystem.Run (to match Sandbox.Game) Replace tools addon usage of Utility.RunCommand Merge branch 'master' into pain_day Merge remote-tracking branch 'origin/pain_day' into engine-refactor-2
1 Year Ago
Assure Base Runtime is available when loading a runtime game Add an assembly manifest to addons so we don't need the hack in the future when we let people add more assemblies
1 Year Ago
1 Year Ago
Load the packaged dlls in a determinate order
1 Year Ago
Fixed ConditionalWeakTableUpgrader Handles the case where oldInstance == newInstance, or if the collection gets modified while being processed Simplify JsonSerializerOptionsUpgrader Directly process JsonConverters inside existing JsonSerializerOptions, without creating a new instance. Handles case where we can't create a new instance, and the options aren't mutable. Also make sure we process static fields in System.Text.Json assembly. Possible fix for #640 Add some more easy hotload skips to save a few milliseconds JsonSerializerOptionsUpgrader .NET 7 fixes Log path to instance when a hotload error occurs Some nicer paths for items in common collections Replace TypeDescription / MemberDescription instances during swap Tests for TypeDescription / MemberDescription replacing Make hotload tests more strict Warn when encountering delegates that can't be upgraded Even simpler way to clear System.Text.Json cache on hotload Readonly field hotload test Trace instance paths when doing hotload tests Stop watching System.Text.Json since we're clearing its cache now Ignore LiteDB types during hotload Merge remote-tracking branch 'origin/master' into hotload-fixes Get rid of soon-to-be-unused "context" arg in OnTryCreateNewInstance Some more permutations of lambda method types Big DelegateUpgrader rewrite * A lot more careful about matching generated methods that change name * Fixed case where swapping unchanged code would substitute in the wrong lambda method * Now replace lambdas we can't find a match for with one that throws a helpful error (before they would become null) Easy case for delegate methods from non-swapped assemblies Failing delegate swap involving same-named methods Strategies for fixing HotloadTests.Delegate11 Split DelegateUpgrader up, mocked up same-named scope method solution Refactor to assume we have Mono.Cecil, WIP method resolution Fixed HotloadTests.Delegate11 Hotload message type consistency Warning: non-fatal, but recommend reloading the game Error: something went wrong that we should fix Fixed resolving nested type definitions Merge remote-tracking branch 'origin/master' into hotload-fixes Failing test for lambdas with a generator context method Fixed upgrading lambdas with a generator context method Tests for finding definitions of methods involving generic parameters More generic type / method fixes in hotload Added failing test for handling removed lambda with a return type Test case for nested lambdas Fixed generating error delegate if original lambda had a return type Some more test cases for upgrading delegates Fixed resolving multi-dimensional array parameter methods ByRef and async method tests Fixed resolving method definitions with ByRef parameters Support for upgrading lambdas defined in async methods More array and ByRef fixes Type equivalence fixes Vector2.Dot returns float Vector3.Equals doesn't use AlmostEqual, but the == and != operators do Move a bunch of stuff from Client to IClient, PlayerId is now SteamId Client.Pawn is an IEntity Game becomes GameController, added Sandbox.Game namespace Move stuff from GameController to BaseGameController where possible Remove Sandbox.Hooks Rename CameraMode to CameraComponent Make CameraSetup internal Delete FixedCamera.cs Delete LookAtCamera.cs Obsolete [UseTemplate] so we appreciate the scope of removing it Move Event.Frame to Event.Client.Frame, add ToolEvent.Frame Add Event.Client.PreCamera, PostCamera Move Event.BuildInput to Event.Client.BuildInput Move default BuildInput to internal BaseGameController Rename files to match new classnames GameController becomes GameManager Apparently MakeArrayType( 1 ) != MakeArrayType() We can skip cached lambda instances now They'll still get upgraded if they're referenced in a non-cache field somewhere Merge remote-tracking branch 'origin/master' into hotload-fixes Delete CameraSetup Delete CurrentView Use Map.Camera in place of CurrentView Remove dof and motionblur from ViewDesc Minor summary adjustment to PhysicsBody.SurfaceMaterial RangedFloat can be read from a number in JSON too Delete BrushEntity.Solid (was obsolete) SurroundingBoundsType.Obb => SurroundingBoundsType.OBB Use RangedFloat in SoundEvent resource This change will make existing assets lose their PitchRandom/VolumeRandom until updated Move GlobalRpcHandler to Sandbox.Internal Make Sound.Index internal Hide Prediction.CommandsAcknowledged/LastExecutedPacketNum Move QTextBlock to Tools namespace Rename ModelDoc namespace to Sandbox.ModelEditor Also moved all ModelDoc node classes to Sandbox.ModelEditor.Nodes Renamed ModelDocAttributes.cs to ModelEditorAttributes.cs Delete Sandbox.ConstantBuffer (obsolete & unused) Delete TriggerHurt and TriggerTeleport (obsolete aliases) Delete TriggerMultiple.Wait (obsolete alias) Delete ModelBreakPiece.CollisionGroupOverride (obsolete) Delete CameraMode.DoFPoint/DoFBlurSize (obsolete) Add Local.UserPreference.DefaultFieldOfView Remove unused properties of Sandbox.Water EnableShadows/EnableFog/EnableRefraction Fixed main SceneCamera not controlling the render properly Remove SharedRendering/SetDevLayer hack Remove/replace html templates in UI tests Delete more obsoletes Deleted PhysicsWorld.IsPointWater Deleted Sandbox.Component.Glow.Active/RangeMin/RangeMax Deleted FogStength from all light entities Deleted OrthoLightEntity.UseFogNoShadows Deleted Global.IsDedicatedServer/PhysicsSubSteps/PhysicsTimeScale Deleted ScenePanel.CameraPosition/CameraRotation/FieldOfView/AmbientColor/ClearColor/ZNear/ZFar/DisablePostProcessing/SceneAttributes Backport latest texture manager changes from Valve, fixes for race conditions in async hookup jobs Suppress texture frame updates for render hooks, fixes bound textures with no references getting deleted before the frame fully ended Revert ScreenEffects workaround from not being able to Material.Load within RenderHook Fix leaky strong handle from RenderTools.RenderScene on unused returned ITexture Delete CameraComponent DevCamera tweaks Convert GameIcon & Home to razor Loading screen to razor Remove FriendLine html template Remove Map.Camera, add global Camera Don't use EyeRotation for view angles - because it's laggy and fucked and I'm gonna remove it Remove Entity.,EyePosition, Entity.EyeRotation, Entity.EyeLocalPosition, Entity.EyeLocalRotation, Added Entity.GetAimRay() Delete StandardPlayerAnimator, PawnAnimator Fix monitor rendering in vr https://i.imgur.com/RxCVQ2h.png Refactoring Cleaning Notes for future Remove unsued Merge remote-tracking branch 'origin/pain-day-rubat1' into engine-refactor-1 Rename SurroundingBoundsType.OBB to SurroundingBoundsType.Object, comment out unused Remove now unused constant buffer binds Defaults for main camera Matched the volume of the grass footstep sound to match the rest Minimal template fixes Reduce default vertex size Move some stuff from base addon into the game dll protocol++ Add prediction tolerance to m_vecOrigin Split base and compiled assembly again Only compile base addon if we're a runtime game Remove debug Fix soundscape NRE Fix PanelList overflow Add support for TSPEC_USE_TYPED_IMAGEFORMAT back, video encoding needs this unfortunately Do not display "Recompile" option for assets that can't be recompiled Not Upload => Pending Upload Added "Copy Asset Path" to context menu in asset.party asset browser Also made "Copy Path" for local assets copy the correct extension Remove rest of fov hacking code, add Screen.CreateVerticalFieldOfView Always add "Compile" option for shader asset type Update TransformTest.cs Fix Gamemode download unit test to use new assembly schema Disable tests that are too much work to get working yet Only suppress texture deletion and not texture loading during managed render layers, fixes hangs Don't allow LocalScale < 0 Don't complain about TaskCanceledException on game shutdown Add Copy To Clipboard button to Stack property Add facepunch.unicycle_frenzy to test Lets mark a bunch of stuff as obsoleted so people aren't surprised Set default FOV back Merge pull request #669 from Facepunch/engine-refactor-1 orgs/sboxgame/discussions/2652 Clarify Camera.FieldOfView is vertical and Screen.CreateVerticalFieldOfView converts horizontal -> vertical SceneCamera.IsOrtho is SceneCamera.Ortho fix normal on pavement material/ asset cleanup Merge branch 'master' of sbox Add a couple of events to [ToolEvent.MapEditor] for discoverability Camera.FieldOfView is actually horizontal and not vertical 😳 Convert DevCamera ui to razor Local.PlayerId -> Local.SteamId Make PerformanceStats.Timings.History use a circular buffer, this was starting to take a small amount of time as we collected more and more perf stats Only default VR.Anchor to Local.Pawn.Transform unless it's been explicitly set from a game - that way games can set VR.Anchor whenever and whereever they want Add version to events Add defaults for znear/zfar, so if games don't mess they'll be fine. Add comments with suggested values. Merge pull request #668 from Facepunch/hotload-fixes Hotload Maintenance Merge branch 'master' into pain_day
1 Year Ago
Fixed ConditionalWeakTableUpgrader Handles the case where oldInstance == newInstance, or if the collection gets modified while being processed Simplify JsonSerializerOptionsUpgrader Directly process JsonConverters inside existing JsonSerializerOptions, without creating a new instance. Handles case where we can't create a new instance, and the options aren't mutable. Also make sure we process static fields in System.Text.Json assembly. Possible fix for #640 Add some more easy hotload skips to save a few milliseconds JsonSerializerOptionsUpgrader .NET 7 fixes Log path to instance when a hotload error occurs Some nicer paths for items in common collections Replace TypeDescription / MemberDescription instances during swap Tests for TypeDescription / MemberDescription replacing Make hotload tests more strict Warn when encountering delegates that can't be upgraded Even simpler way to clear System.Text.Json cache on hotload Readonly field hotload test Trace instance paths when doing hotload tests Stop watching System.Text.Json since we're clearing its cache now Ignore LiteDB types during hotload Merge remote-tracking branch 'origin/master' into hotload-fixes Get rid of soon-to-be-unused "context" arg in OnTryCreateNewInstance Some more permutations of lambda method types Big DelegateUpgrader rewrite * A lot more careful about matching generated methods that change name * Fixed case where swapping unchanged code would substitute in the wrong lambda method * Now replace lambdas we can't find a match for with one that throws a helpful error (before they would become null) Easy case for delegate methods from non-swapped assemblies Failing delegate swap involving same-named methods Strategies for fixing HotloadTests.Delegate11 Split DelegateUpgrader up, mocked up same-named scope method solution Refactor to assume we have Mono.Cecil, WIP method resolution Fixed HotloadTests.Delegate11 Hotload message type consistency Warning: non-fatal, but recommend reloading the game Error: something went wrong that we should fix Fixed resolving nested type definitions Merge remote-tracking branch 'origin/master' into hotload-fixes Failing test for lambdas with a generator context method Fixed upgrading lambdas with a generator context method Tests for finding definitions of methods involving generic parameters More generic type / method fixes in hotload Added failing test for handling removed lambda with a return type Test case for nested lambdas Fixed generating error delegate if original lambda had a return type Some more test cases for upgrading delegates Fixed resolving multi-dimensional array parameter methods ByRef and async method tests Fixed resolving method definitions with ByRef parameters Support for upgrading lambdas defined in async methods More array and ByRef fixes Type equivalence fixes Apparently MakeArrayType( 1 ) != MakeArrayType() We can skip cached lambda instances now They'll still get upgraded if they're referenced in a non-cache field somewhere Merge remote-tracking branch 'origin/master' into hotload-fixes Merge pull request #668 from Facepunch/hotload-fixes Hotload Maintenance
1 Year Ago
Add version to events Add defaults for znear/zfar, so if games don't mess they'll be fine. Add comments with suggested values.
1 Year Ago
Let ZNear/ZFar defaults feed through
1 Year Ago
Let ZNear/ZFar defaults feed through
1 Year Ago
Vector2.Dot returns float Vector3.Equals doesn't use AlmostEqual, but the == and != operators do Move a bunch of stuff from Client to IClient, PlayerId is now SteamId Client.Pawn is an IEntity Game becomes GameController, added Sandbox.Game namespace Move stuff from GameController to BaseGameController where possible Remove Sandbox.Hooks Rename CameraMode to CameraComponent Make CameraSetup internal Delete FixedCamera.cs Delete LookAtCamera.cs Obsolete [UseTemplate] so we appreciate the scope of removing it Move Event.Frame to Event.Client.Frame, add ToolEvent.Frame Add Event.Client.PreCamera, PostCamera Move Event.BuildInput to Event.Client.BuildInput Move default BuildInput to internal BaseGameController Rename files to match new classnames GameController becomes GameManager Delete CameraSetup Delete CurrentView Use Map.Camera in place of CurrentView Remove dof and motionblur from ViewDesc Delete BrushEntity.Solid (was obsolete) SurroundingBoundsType.Obb => SurroundingBoundsType.OBB Use RangedFloat in SoundEvent resource This change will make existing assets lose their PitchRandom/VolumeRandom until updated Move GlobalRpcHandler to Sandbox.Internal Make Sound.Index internal Hide Prediction.CommandsAcknowledged/LastExecutedPacketNum Move QTextBlock to Tools namespace Rename ModelDoc namespace to Sandbox.ModelEditor Also moved all ModelDoc node classes to Sandbox.ModelEditor.Nodes Renamed ModelDocAttributes.cs to ModelEditorAttributes.cs Delete Sandbox.ConstantBuffer (obsolete & unused) Delete TriggerHurt and TriggerTeleport (obsolete aliases) Delete TriggerMultiple.Wait (obsolete alias) Delete ModelBreakPiece.CollisionGroupOverride (obsolete) Delete CameraMode.DoFPoint/DoFBlurSize (obsolete) Add Local.UserPreference.DefaultFieldOfView Remove unused properties of Sandbox.Water EnableShadows/EnableFog/EnableRefraction Fixed main SceneCamera not controlling the render properly Remove SharedRendering/SetDevLayer hack Delete more obsoletes Deleted PhysicsWorld.IsPointWater Deleted Sandbox.Component.Glow.Active/RangeMin/RangeMax Deleted FogStength from all light entities Deleted OrthoLightEntity.UseFogNoShadows Deleted Global.IsDedicatedServer/PhysicsSubSteps/PhysicsTimeScale Deleted ScenePanel.CameraPosition/CameraRotation/FieldOfView/AmbientColor/ClearColor/ZNear/ZFar/DisablePostProcessing/SceneAttributes Delete CameraComponent DevCamera tweaks Remove Map.Camera, add global Camera Don't use EyeRotation for view angles - because it's laggy and fucked and I'm gonna remove it Remove Entity.,EyePosition, Entity.EyeRotation, Entity.EyeLocalPosition, Entity.EyeLocalRotation, Added Entity.GetAimRay() Delete StandardPlayerAnimator, PawnAnimator Refactoring Cleaning Notes for future Remove unsued Merge remote-tracking branch 'origin/pain-day-rubat1' into engine-refactor-1 Rename SurroundingBoundsType.OBB to SurroundingBoundsType.Object, comment out unused Remove now unused constant buffer binds Defaults for main camera Minimal template fixes Reduce default vertex size Move some stuff from base addon into the game dll protocol++ Add prediction tolerance to m_vecOrigin Split base and compiled assembly again Only compile base addon if we're a runtime game Remove debug Remove rest of fov hacking code, add Screen.CreateVerticalFieldOfView Update TransformTest.cs Fix Gamemode download unit test to use new assembly schema Disable tests that are too much work to get working yet Don't allow LocalScale < 0 Don't complain about TaskCanceledException on game shutdown Add Copy To Clipboard button to Stack property Add facepunch.unicycle_frenzy to test Lets mark a bunch of stuff as obsoleted so people aren't surprised Set default FOV back Merge pull request #669 from Facepunch/engine-refactor-1 orgs/sboxgame/discussions/2652
1 Year Ago
Lets mark a bunch of stuff as obsoleted so people aren't surprised Set default FOV back
1 Year Ago
Use Vertical FOV
1 Year Ago
Don't allow LocalScale < 0 Don't complain about TaskCanceledException on game shutdown Add Copy To Clipboard button to Stack property Add facepunch.unicycle_frenzy to test
1 Year Ago
Upgraded to new api
1 Year Ago
Update TransformTest.cs Fix Gamemode download unit test to use new assembly schema Disable tests that are too much work to get working yet
1 Year Ago
Api fix
1 Year Ago
Remove rest of fov hacking code, add Screen.CreateVerticalFieldOfView
1 Year Ago
Fix soundscape NRE Fix PanelList overflow
1 Year Ago
engine-refactor-1 Latest api
1 Year Ago
Remove debug
1 Year Ago
Only compile base addon if we're a runtime game
1 Year Ago
Fix addons getting not getting marked as game:any correctly
1 Year Ago
protocol++ Add prediction tolerance to m_vecOrigin Split base and compiled assembly again
1 Year Ago
get the ignore right
1 Year Ago
Upgraded
1 Year Ago
Reduce default vertex size Move some stuff from base addon into the game dll
1 Year Ago
Don't skip program when checking if shader is up to date if we failed to load the compiled version (it might not exist) memset shader header so we dont run into these issues that are caused by uninitialized memory Remove subview stuff from vr.cpp, not neded in our case Remove FSR, wasn't doing much and was causing issues with VR stencil, fix vr stencil debug Granular foveated rendering, still needs cleanup Remove old deprecated depth of field, cleanup checkerboard reconstruction Add convars for vr_foveated_rendering Get center lens position from HMD, pass foveation parameters to GPU Cleanup and update shader files Readd FSR for now, wouldn't be able to properly remove it until we have a good replacement, but don't bother with it if we're in VR Remove unused convars Tweak autofidelity, remove autofidelity for multigpu, add autofidelity for mobile while at it, fix typo Tie vr_foveated_rendering to autofidelity, optimize shaders a bit Fix rebase changes for shader assets Merge pull request #652 from Facepunch/vr-foveated-rendering VR Foveated Rendering Minor summary adjustment to PhysicsBody.SurfaceMaterial RangedFloat can be read from a number in JSON too Delete BrushEntity.Solid (was obsolete) SurroundingBoundsType.Obb => SurroundingBoundsType.OBB Use RangedFloat in SoundEvent resource This change will make existing assets lose their PitchRandom/VolumeRandom until updated Move GlobalRpcHandler to Sandbox.Internal Make Sound.Index internal Hide Prediction.CommandsAcknowledged/LastExecutedPacketNum Move QTextBlock to Tools namespace Rename ModelDoc namespace to Sandbox.ModelEditor Also moved all ModelDoc node classes to Sandbox.ModelEditor.Nodes Renamed ModelDocAttributes.cs to ModelEditorAttributes.cs Delete Sandbox.ConstantBuffer (obsolete & unused) Delete TriggerHurt and TriggerTeleport (obsolete aliases) Delete TriggerMultiple.Wait (obsolete alias) Delete ModelBreakPiece.CollisionGroupOverride (obsolete) Delete CameraMode.DoFPoint/DoFBlurSize (obsolete) Remove unused properties of Sandbox.Water EnableShadows/EnableFog/EnableRefraction Delete more obsoletes Deleted PhysicsWorld.IsPointWater Deleted Sandbox.Component.Glow.Active/RangeMin/RangeMax Deleted FogStength from all light entities Deleted OrthoLightEntity.UseFogNoShadows Deleted Global.IsDedicatedServer/PhysicsSubSteps/PhysicsTimeScale Deleted ScenePanel.CameraPosition/CameraRotation/FieldOfView/AmbientColor/ClearColor/ZNear/ZFar/DisablePostProcessing/SceneAttributes Merge remote-tracking branch 'origin/pain-day-rubat1' into engine-refactor-1 Rename SurroundingBoundsType.OBB to SurroundingBoundsType.Object, comment out unused Remove now unused constant buffer binds Defaults for main camera Minimal template fixes
1 Year Ago
Refactoring Cleaning Notes for future Remove unsued
1 Year Ago
Remove Entity.,EyePosition, Entity.EyeRotation, Entity.EyeLocalPosition, Entity.EyeLocalRotation, Added Entity.GetAimRay() Delete StandardPlayerAnimator, PawnAnimator
1 Year Ago
Remove Map.Camera, add global Camera Don't use EyeRotation for view angles - because it's laggy and fucked and I'm gonna remove it
1 Year Ago
DevCamera tweaks
1 Year Ago
Delete CameraComponent
1 Year Ago
Delete CameraSetup Delete CurrentView Use Map.Camera in place of CurrentView Remove dof and motionblur from ViewDesc Add Local.UserPreference.DefaultFieldOfView Fixed main SceneCamera not controlling the render properly Remove SharedRendering/SetDevLayer hack
1 Year Ago
GameController becomes GameManager
1 Year Ago
Obsolete [UseTemplate] so we appreciate the scope of removing it Move Event.Frame to Event.Client.Frame, add ToolEvent.Frame Add Event.Client.PreCamera, PostCamera Move Event.BuildInput to Event.Client.BuildInput Move default BuildInput to internal BaseGameController Rename files to match new classnames
1 Year Ago
Make CameraSetup internal Delete FixedCamera.cs Delete LookAtCamera.cs
1 Year Ago
Vector2.Dot returns float Vector3.Equals doesn't use AlmostEqual, but the == and != operators do Move a bunch of stuff from Client to IClient, PlayerId is now SteamId Client.Pawn is an IEntity Game becomes GameController, added Sandbox.Game namespace Move stuff from GameController to BaseGameController where possible Remove Sandbox.Hooks Rename CameraMode to CameraComponent
1 Year Ago
Latest from valve
1 Year Ago
Squashed commit of the following: commit f5d20681b7389cd09e9c877d4ea0d9e260762a44 Author: Rubat <3299036+robotboy655@users.noreply.github.com> Date: Mon Dec 5 21:48:02 2022 +0200 Delete Sandbox.Internal.Decals commit c9ed0a3acf8a248f4533109ddb63edba3a3c5330 Author: Rubat <3299036+robotboy655@users.noreply.github.com> Date: Mon Dec 5 21:43:19 2022 +0200 Remove obsoletes Removed Sandbox.SpotLightCone Removed Sandbox.SceneSpotLight.SpotCone Removed Sandbox.UI.DataSource.ArraySource Removed Sandbox.UI.DataSource.BaseDataSource Removed Sandbox.UI.DataSource.BindMethod Removed Sandbox.UI.DataSource.Property Removed Assert.True( bool ) in favor of Assert.True( bool, string=null ) Removed Assert.False( bool ) in favor of Assert.False( bool, string=null ) Removed Vector3.LerpTo( Vector3, float ) in favor of Vector3.LerpTo( Vector3, float, bool = true ) Removed Vector3.LerpTo( Vector3, Vector3 ) in favor of Vector3.LerpTo( Vector3, Vector3, bool = true ) Removed Sandbox.DecalSystem Nothing should be named "dynamic.*" anymore protocol++