mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
61 KiB
61 KiB
Release notes for RobustToolbox.
Master
Breaking changes
None yet
New features
- If a sandbox error is caused by a compiler-generated method, the engine will now attempt to point out which using code is responsible.
- Added
OrderedDictionary<TKey, TValue>andSystem.StringComparerto the sandbox whitelist. - Added more overloads to
MapLoaderSystemtakingTextReader/TextWriterwhere appropriate.
Bugfixes
None yet
Other
- Public APIs involving
System.Randomhave been obsoleted. UseIRobustRandom/RobustRandomand such instead.
Internal
None yet
272.0.0
Breaking changes
- Reversed an undocumented breaking change from
v267.3.0: entity spawning with aMapCoordinatesnow takes the rotation as relative to the map again instead of relative to the grid the entity was attached to.
New features
- Added
ProfManager.Valueguard method.
Bugfixes
- Fixed
ValidateMemberAnalyzertaking a ridiculous amount of compile time.
Other
ProfManageris now initialized on the server.
271.2.0
New features
IRobustSerializercan now be configured to remove float NaN values when reading.- This is intended to blanket block cheat clients from sending NaN values in input commands they shouldn't.
- To enable, set
IRobustSerializer.FloatFlagsfrom your content entrypoint. - If you do really want to send NaN values while using the above, you can use the new
UnsafeFloat,UnsafeHalf, andUnsafeDoubletypes to indicate a field that is exempt.
Other
- Improved some debug asserts related to contacts.
Internal
- Warning cleanup.
271.1.0
New features
- Added
AnimationStartedEventandControl.AnimationStartedevents.
Bugfixes
- Fixed the new transfer system not working.
- Fixed
NetManagerclient state not getting reset properly when disconnected without call toClientDisconnect().
Other
- The
launchauthcommand now displays completions.
271.0.0
Breaking changes
- Made types & methods related to
SharedNetworkResourceManagerinternalsinternal.
New features
- Added a new "high-bandwidth transfer" subsystem accessible via
ITransferManager. Requires server-side setup with new CVars to get full benefit. - Added
NetMessage.SequenceChannel. - Added
INetChannel.CanSendImmediately. - Added
[Animatable]to some control properties.
Bugfixes
- Localization string fixes that were causing warning spam.
- Fixed
MarkupNode.ToString()not properly separating attributes with whitespace. - Fixed
SpriteComponent.Layercopy constructor not properly copying unshaded shaders. - Fixed looped audio playback getting stuck in some cases by "exceeding" the length of the audio track.
Other
- Resource uploads/downloads now use the new high-bandwidth transfer system.
DebugTools.AssertNotNull()has been marked with[NotNull], making C# nullable analysis recognize it.SpriteViewupdates its size when changing the set entity.- Improved error message when directly referencing RT projects.
- Improve container remove assert message.
TabContainernow wraps tabs if there are too many for the width of the control.- The game now displays task bar progress when loading.
- Switched order of
TileChangedEventandRegenerateCollision()when setting tiles on grids, so the grid gets deleted after raising the event. - Reverted change that made
SharedAudioSystem.Stopnot do nothing when the current tick has already been predicted. - VV works with structs in components.
- Fixed
Robust.Benchmarksfailing to run due to project structure changes. - Made component tree system more robust to errors to avoid entire game freezing.
Internal
- Updated SDL3 to 3.4.0
270.1.0
New features
- macOS: there is now tooling in place to build a content start binary to an app bundle in the development environment. This is a prerequisite for WebView support.
- Added override of
SharedPhysicsSystem.GetHardCollisionthat takes a sole component. - Added more parameters to
OutputPanel.AddMessage& overloads.
Other
ILocalizationManager.GetStringnow logs a warning when failing to find a string. In cases where you expect this to happen useTryGetStringinstead.run_server.batin published servers nowcds to the correct directory.IRobustRandom.GetRandom()is now obsolete. This API should've never existed.- Started work on macOS support for WebView. This is not complete yet and will not work out of the box.
- Re-enable GPU compositing as the proper solution to the resizing bug has been found.
RichTextLabel.Textsets all tags as allowed again, unlikeSetMessage().EntProtoId<T>.TryGetno longer throws if the prototype ID is invalid.
270.0.0
Breaking changes
- Fixed
IClydeWindowInternalerroneously being public. - Added a new
[NotContentImplementable]attribute and made many interfaces in the engine have it. This attribute marks that we may add members to these interfaces in the future, so content should not implement them. - Removed unused
IRenderableComponent,IRand, andIPlayerInputinterfaces.
New features
- Added
IsUiOpenandIsAnyUiOpentoSharedUserInterfaceSystem. (was in previous engine release, missed in changelog) - Added
game.time_scaleCVar.
Bugfixes
- Fix a fake error being logged every time when setting the clipboard.
- Fixed audio loading by reverting dependency update to
VorbisPizza.
Other
- The size of the serializer string map is now logged.
269.0.1
Bugfixes
- Fixed transitive project dependencies in content triggering "no direct project reference" detection.
269.0.0
Breaking changes
- The project now targets .NET 10. You will have to install the new runtime on game servers when updating.
- We have adopted a new "solution management" system for games.
- This enables us to add new projects to RT (e.g. split stuff up) without causing breaking changes.
- Games must move to
.slnxsolutions and rundotnet run --project ./RobustToolbox/Tools/Robust.SolutionGen/ -- updateafter updating RT. This should be done after every RT feature update.
- Games may no longer directly reference RT projects. To depend on these, import the various
.propsfiles in theImports/folder. - We've tidied up all the transitive dependencies RT projects used to expose, meaning packages used by Robust aren't automatically visible to content projects anymore. You will likely have both accidental usages that are now erroring, or valid usages that you will need to add a
<PackageReference>for. OutputPanelandRichTextLabelnow set a default set of "safe" markup tags when using overloads that don't take in aType[]? allowedTags. These tags are formatting only, so dangerous stuff like[cmdlink]is blocked by default.- The constructor of
EntityQuery<TComp1>has been made internal.
New features
- Added
ExtensionMarkerAttribute, used by the new C# 14 extension members, for the sandbox. - Added
CommandWhenUIFocusedproperty toCommandkeybinds, to make them not fire when a UI control is focused. - Startup logging now lists total memory and AVX10 intrinsics.
- Added new
FormattedStringtype that represents a plainstringthat has markup formatting. - Added an analyzer to detect redundant
[Prototype("foobar")]strings. - Added an analyzer to detect
DirtyField()calls with incorrect field names.
Bugfixes
- Fixed
FormattedMessagenot escaping plain text content properly with.ToMarkup(). - Fixed wrapping on inline rich text controls like links.
- Fixed some native libs getting packaged for Linux clients when they shouldn't.
- Fixed
TilesEnumeratorbeing able to stack overflow due to the recursive implementation. - Fixed some typos in
EntityDeserializerlog messages. - Fixed WebView control resizing being fucky.
- Fixed
DataDefinitionAnalyzerto recognize[MeansDataDefinition]attributes.
Other
- Updated NuGet package dependencies.
- Prototype loading now tries to do some basic interning to avoid duplicate string objects being stored. This saves some memory.
- Avoid redundant texture uploads on WebView controls.
- Updated and added a lot of documentation to various parts of the engine.
- Moved to
.slnx, and changed the default marker filename for hot reload to.slnxtoo. - Removed GLFW windowing implementation.
EntityQuery.Resolvenow logs more info on error.- Disabled some unnecessary .NET SDK source generators that slowed down build.
- Removed kdialog/nfd file dialog implementation.
Internal
- Added a prototype
AspectRatioPanelcontrol. Not stabilized yet. - Added gay colors to uitest.
- "Test content master" RT workflow now replaces
global.jsonin SS14. - Updated
Robust.LoaderApiandNetSerializerto .NET 10. - Fixed all the configurations in
RobustToolbox.sln. - Split up
Robust.UnitTestinginto many more projects. - Internal warning fixes.
268.1.0
New features
- Added
IReplayFileWriter.WriteYaml(), for writing yaml documents to a replay zip file. - Added Caps Lock as a proper bindable key.
- Added
IParallelBulkRobustJobas an alternative toIParallelRobustJob, taking ranges instead of indices. - Allow content to override
ProcessStreamandGetOcclusioninAudioSystem
Bugfixes
ActorComponentnow has theUnsavedComponentAttribute- Previously it was unintentionally get serialized to yaml, which could result in NREs when deserializing.
- Don't spam error messages on startup trying to draw splash logos for projects that don't have one.
- Fix
SpriteSystem.LayerExistssaying that layer 0 is invalid. - Fix
ButtonGroups unpressing buttons in an edge case with UI rebuilding. - Added
CreatedTimetoNetUserData. - Fix loading of
WebView.
Other
- Reverted undocumented change from 268.0.0 which obsoleted many
IoCManagermethods. - Fix .NET 10 serializer compatibility of
BitArray. (backported to older engines). - Revert performance change to physics due to issues (double-buffered contact events).
- Audio entities are marked as
HideSpawnMenunow. - Make
SharedAudioSystem.Stopnot do nothing when the current tick has already been predicted. - Warning cleanup.
Internal
- Consolidated and updated physics benchmarks.
268.0.0
Breaking changes
- Events that are raised via
IEventBus.RaiseComponentEvent()now must be annotated with theComponentEventAttribute.- By default, events annotated with this attribute can only be raised via
IEventBus.RaiseComponentEvent(). This can be configured viaComponentEventAttribute.Exclusive
- By default, events annotated with this attribute can only be raised via
- StartCollide and EndCollide events are now buffered until the end of physics substeps instead of being raised during the CollideContacts step. EndCollide events are double-buffered and any new ones raised while the events are being dispatched will now go out on the next tick / substep.
New features
- Added
IUserInterfaceManager.ControlSawmillandControl.Logproperties so that controls can easily use logging without using static methods.
267.4.0
New features
- Added two new custom yaml serializers
CustomListSerializerandCustomArraySerializer. - CVars defined in
[CVarDefs]can now be private or internal. - Added config rollback system to
IConfigurationManager. This enables CVars to be snapshot and rolled back, even in the event of client crash. OptionButtonnow has aFilterableproperty that gives it a text box to filter options.- Added
FontTagHijackHolderto replace fonts resolved byFontTag. - Sandbox:
- Exposed
System.Reflection.Metadata.MetadataUpdateHandlerAttribute. - Exposed more overloads on
StringBuilder.
- Exposed
- The engine can now load system fonts.
- At the moment only available on Windows.
- See
ISystemFontManagerfor API.
- The client now display a loading screen during startup.
Bugfixes
- Fix
MenuandNumpadDecimalkey codes on SDL3. - client-side predicted entity deletion (
EntityManager.PredictedQueueDeleteEntity) now behaves more like it does on the server. In particular, entities will be deleted on the same tick after all system have been updated. Previously, it would process deletions at the beginning of the next tick. - Fix modifying
Label.FontOverridenot causing a layout update. - Controls created by rich-text tags now get arranged to a proper size.
- Fix
OutputPanelscrollbar breaking if a style update changes the font size.
Other
- ComponentNameSerializer will now ignore any components that have been ignored via
IComponentFactory.RegisterIgnore. - Add pure to some SharedTransformSystem methods.
- Significantly optimised collision detection in SharedBroadphaseSystem.
Control.Stylesheetdoes not do any work if assigning the value it already has.- XAML hot reload now JITs UIs when first opened rather than doing every single one at client startup. This reduces dev startup overhead significantly and probably helps with memory usage too.
Internal
- The
dmetamemcommand now sorts its output, and doesn't output to log anymore to avoid output interleaving.
267.3.0
New features
- Sandbox:
- Added
System.DateOnlyandSystem.TimeOnly.
- Added
MapId,MapCoordinates, andEntityCoordinatesare now yaml serialisable- The base component tree lookup system has new methods including several new
QueryAabb()overloads that take in a collection and various newIntersectRay()overloads that should replaceIntersectRayWithPredicate. - Added
OccluderSystem.InRangeUnoccluded()for checking for occluders that lie between two points. LocalizedCommandsnow pass the command name as an argument to the localized help text.
Bugfixes
- Fixed
MapLoaderSystem.SerializeEntitiesRecursive()not properly serialising when given multiple root entities (e.g., multiple maps) - Fixed yaml hot reloading throwing invalid path exceptions.
- The
EntityManager.CreateEntityUninitializedoverload that uses MapCoordinates now actually attaches entities to a grid if one is present at those coordinates, as was stated in it's documentation. - Fixed physics joint relays not being properly updated when an entity is removed from a container.
Other
- Updated natives again to attempt to fix issues caused by the previous update.
267.2.1
267.2.0
New features
- Sprites and Sprite layers have a new
Loopdata field that can be set to false to automatically pause animations once they have finished.
Bugfixes
- Fixed
CollectionExtensions.TryGetValuethrowing an exception when given a negative list index. - Fixed
EntityManager.PredictedQueueDeleteEntity()not deferring changes for networked entities until the end of the tick. - Fixed
EntityManager.IsQueuedForDeletionnot returning true foe entities getting deleted viaPredictedQueueDeleteEntity()
Other
IResourceManager.GetContentRoots()has been obsoleted and returns no more results.
Internal
IResourceManager.GetContentRoots()has been replaced with a similar method onIResourceManagerInternal. This new method returnsstrings instead ofResPaths, and usage code has been updated to use these paths correctly.
267.1.0
New features
- Animation:
AnimationTrackProperty.KeyFramecan now have easings functions applied.
- Graphics:
PointLightComponentnow has two fields,falloffandcurveFactor, for controlling light falloff and the shape of the light attenuation curve.IClydeViewportnow has anIdandClearCachedResourcesevent. Together, these allow you to properly cache rendering resources per viewport.
- Miscellaneous:
- Added
display.max_fpsCVar. - Added
IGameTiming.FrameStartTime.
- Added
- Sandbox:
- Added
System.WeakReference<T>. - Added
SpaceWizards.Sodium.CryptoGenericHashBlake2B.Hash(). - Added
System.Globalization.UnicodeCategory.
- Added
- Serialization:
- Added a new entity yaml deserialization option (
SerializationOptions.EntityExceptionBehaviour) that can optionally make deserialization more exception tolerant.
- Added a new entity yaml deserialization option (
- Tooling:
devwindownow has a tab listing activeIRenderTargets, allowing insight into resource consumption.loadgridnow creates a map if passed an invalid map ID.- Added game version information to F3 overlay.
- Added completions to more map commands.
- UI system:
Control.OrderedChildCollection(gotten from.Children) now implementsIReadOnlyList<Control>, allowing it to be indexed directly.- Added
WrapContainercontrol. This lays out multiple elements along an axis, wrapping them if there's not enough space. It comes with many options and can handle multiple axes.
- Added
- Popups/modals now work in secondary windows. This entails putting roots for these on each UI root.
- If you are not using
OSWindowand are instead creating secondary windows manually, you need to callWindowRoot.CreateRootControls()manually for this to work. - Added
Axisenum,IAxisImplementationinterface and axis implementations. These allow writing general-purpose UI layout code that can work on multiple axis at once.
- WebView:
- Added
web.remote_debug_portCVar to change Chromium's remote debug port.
- Added
Bugfixes
- Audio:
- Fix audio occlusion & velocity being calculated with the audio entity instead of the source entity.
- Bound UI:
- Try to fix an assert related to
UserInterfaceComponentdelta states.
- Try to fix an assert related to
- Configuration:
- The client no longer tries to send
CLIENT | REPLICATEDCVars when not connected to a server. This could cause test failures.
- The client no longer tries to send
- Math:
- Fixed
Matrix3Helpers.TransformBounds()returning an incorrect result. Now it effectively behaves likeMatrix3Helpers.TransformBox()and has been marked as obsolete.
- Fixed
- Physics:
- Work around an undiagnosed crash processing entities without parents.
- Serialization:
- Fix
[DataRecord]s with computed get-only properties.
- Fix
- Resources:
- Fix some edge case broken path joining in
DirLoaderandWritableDirProvider.
- Fix some edge case broken path joining in
- Tests:
- Fix
PlacementManager.CurrentMousePositionin integration tests.
- Fix
- UI system:
- Animations for the debug console and scrolling are no longer framerate dependent.
- Fix
OutputPanel.SetMessagetriggering a scrolling animation when editing messages other than the last one. - Fix word wrapping with two-
charrunes inRichTextLabelandOutputPanel.
- WebView:
- Multiple clients with WebView can now run at the same time, thanks to better CEF cache management.
Other
- Audio:
- Improved error logging for invalid file names in
SharedAudioSystem.
- Improved error logging for invalid file names in
- Configuration:
- Fix crash if more than 255
REPLICATEDCVars exist. Also increased the max size of the CVar replication message.
- Fix crash if more than 255
- Entities:
- Transform:
AnchorEntitylogs instead of using an assert for invalid arguments.
- Containers:
SharedContainerSystem.CleanContainernow usesPredictedDel()instead.
- Transform:
- Networking:
- The client now logs an error when attempting to send a network message without server connection. Previously, it would be silently dropped.
net.interpandnet.buffer_sizeCVars are nowREPLICATED.
- Graphics:
- The function used for pointlight attenuation has been modified to be c1 continuous as opposed to simply c0 continuous, resulting in smoother boundary behavior.
- RSI validator no longer allows empty (
"") state names.
- Packaging:
- Server packaging now excludes all files in the
Audio/directory. - Server packaging now excludes engine resources
EngineFonts/andMidi/. - ACZ explicitly specifies manifest charset as UTF-8.
- Server packaging now excludes all files in the
- Serialization:
CurTime-relativeTimeSpanvalues that areMaxValuenow deserialize without overflow.SpriteSpecifier.Texturewill now fail to validate if the path is inside a.rsi. Use RSI sprite specifiers instead.
- Resources:
IWritableDirProvider.RootDiris now null on clients.
- WebView:
- CEF cache is no longer in the content-accessible user data directory.
Internal
- Added some debug commands for debugging viewport resource management:
vp_clear_all_cached&vp_test_finalize uitestcommand now supports command argument for tab selection, likeuitest2.- Rewrote
BoxContainerimplementation to make use of new axis system. - Moved
uitest2anddevwindowto use theOSWindowcontrol. - SDL3 binding has been moved to
SpaceWizards.SdlNuGet package. dmetamemcommand has been moved fromDEBUGtoTOOLS.- Consolidate
AttachToGridOrMapwithTryGetMapOrGridCoordinates. - Secondary window render targets have clear names specified.
- Updated
SpaceWizards.NFluidsynthto0.2.2. Robust.Client.WebView.Cef.Programis now internal.download_manifest_file.pyscript in repo now always decodes as UTF-8 correctly.- Added a new debug assert to game state processing.
267.0.0
Breaking changes
- When a player disconnects, the relevant callbacks are now fired after removing the channel from
INetManager.
New features
- Engine builds are now published for ARM64 & FreeBSD.
- CPU model names are now detected on Windows & Linux ARM64.
- Toolshed's
spawn:incommand now works on entities withoutPhysicscomponent.
Bugfixes
-
SDL3 windowing backend fixes:
- Avoid macOS freezes with multiple windows.
- Fix macOS rendering breaking when closing secondary windows.
- File dialogs properly associate parent windows.
- Fix IME positions not working with UI scaling properly.
- Properly specify library names for loading native library.
-
WinBit threads don't permanently stay stuck when their window closes.
-
Checking for the "
null" literal in serialization is now culture invariant.
Other
- Compat mode on the client now defaults to on for Windows Snapdragon devices, to work around driver bugs.
- Update various libraries & natives. This enables out-of-the-box ARM64 support on all platforms and is a long-overdue modernization.
- Key name displays now use proper Unicode symbols for macOS ⌥ and ⌘.
- Automated CI for RobustToolbox runs on macOS again.
- Autocompletions for
ProtoId<T>in Toolshed now usePrototypeIdsLimitedinstead of arbitrarily cutting out if more than 256 of a prototype exists.
266.0.0
Breaking changes
- A new analyzer has been added that will error if you attempt to subscribe to
AfterAutoHandleStateEventon a component that doesn't have theAutoGenerateComponentStateattribute, or doesn't have the first argument of that attribute set totrue. In most cases you will want to set said argument totrue. - The fields on
AutoGenerateComponentStateAttributeare nowreadonly. Setting these directly (instead of using the constructor arguments) never worked in the first place, so this change only catches existing programming errors. - When a player disconnects,
ISharedPlayerManager.PlayerStatusChangedis now fired after removing the session from theSessionslist. .rsifiles are now compacted into individual.rsicfiles on packaging. This should significantly reduce file count & improve performance all over release builds, but breaks the ability to access.pngfiles into RSIs directly. To avoid this,"rsic": falsecan be specified in the RSI's JSON metadata.- The
scalecommand has been removed, with the intent of it being moved to content instead.
New features
- ViewVariables editors for
ProtoIdfields now have a Select button which opens a window listing all available prototypes of the appropriate type. - added IConfigurationManager.SubscribeMultiple ext. method to provide simpler way to unsubscribe from multiple cvar at once
- Added
SharedMapSystem.QueueDeleteMap, which deletes a map with the specified MapId in the next tick. - Added generic version of
ComponentRegistry.TryGetComponent. AttributeHelper.HasAttributehas had an overload's type signature loosened fromINamedTypeSymboltoITypeSymbol.- Errors are now logged when sending messages to disconnected
INetChannels. - Warnings are now logged if sending a message via Lidgren failed for some reason.
.ymland.ftlfiles in the same directory are now concatenated onto each other, to reduce file count in packaged builds. This is done through the newAssetPassMergeTextDirectoriespass.- Added
System.Linq.ImmutableArrayExtensionsto sandbox. ImmutableDictionary<TKey, TValue>andImmutableHashSet<T>can now be network serialized.[AutoPausedField]now works on fields of typeDictionary<TKey, TimeSpan>.[NotYamlSerializable]analyzer now detects nullable fields of the not-serializable type.ItemListitems can now have a scale applied for the icon.- Added new OS mouse cursor shapes for the SDL3 backend. These are not available on the GLFW backend.
- Added
IMidiRenderer.MinVolumeto scale the volume of MIDI notes. - Added
SharedPhysicsSystem.ScaleFixtures, to apply the physics-only changes of the priorscalecommand.
Bugfixes
LayoutContainer.SetMarginsPresetandSetAnchorAndMarginPresetnow correctly use the provided control's top anchor when calculating the margins for its presets; it previously used the bottom anchor instead. This may result in a few UI differences, by a few pixels at most.IConfigurationManagerno longer logs a warning when saving configuration in an integration test.- Fixed impossible-to-source
ChannelClosedExceptions when sending some net messages to disconnectedINetChannels. - Fixed an edge case causing some color values to throw an error in
ColorNaming. - Fresh builds from specific projects should no longer cause errors related to
Robust.Client.Injectorsnot being found. - Stopped errors getting logged about
NoteOffandNoteOnoperations failing in MIDI. - Fixed MIDI players not resuming properly when re-entering PVS range.
Other
- Updated ImageSharp to 3.1.11 to stop the warning about a DoS vulnerability.
- Prototype YAML documents that are completely empty are now skipped by the prototype loader. Previously they would cause a load error for the whole file.
TileSpawnWindowcan now be localized.BaseWindowuses the new mouse cursor shapes for diagonal resizing.NFluidsynthhas been updated to 0.2.0
Internal
- Added
uitesttab for standard mouse cursor shapes.
265.0.0
Breaking changes
- More members in
IntegrationInstancenow enforce that the instance is idle before accessing it. Prototype.ValidateDirectorynow requires that prototype IDs have no spaces or periods in them.IPrototypeManager.TryIndexno longer logs errors unless using the overload with an optional parameter. UseResolve()instead if error logging is desired.LocalizedCommandsnow has aLocproperty that refers toLocalizationManager. This can cause compile failures if you have static methods in child types that referenced staticLoc.[AutoGenerateComponentState]now works on parent members for inherited classes. This can cause compile failures in certain formerly silently broken cases with overriden properties.Vector3,Vector4,Quaternion, andMatrix4have been removed fromRobust.Shared.Maths. Use theSystem.Numericstypes instead.
New features
RobustClientPackaging.WriteClientResources()andRobustServerPackaging.WriteServerResources()now have an overload taking in a set of things to ignore in the content resources directory.- Added
IPrototypeManager.Resolve(), which logs an error if the resolved prototype does not exist. This is effectively the previous (but not original) default behavior ofIPrototypeManager.TryIndex. - There's now a ViewVariables property editor for tuples.
- Added
ColorNaminghelper functions for getting textual descriptions of color values. - Added Oklab/Oklch conversion functions for
Color. ColorSelectorSlidersnow displays textual descriptions of color values.- Added
TimeSpanExt.TryTimeSpanto parseTimeSpans with the1.5hformat available in YAML. - Added
ITestContextLikeand related classes to allow controlling pooled integration instances better. EntProtoIdVV prop editors now don't allow setting invalid prototype IDs, inline withProtoId<T>.- Custom VV controls can now be registered using
IViewVariableControlFactory. - The entity spawn window now shows all placement modes registered with
IPlacementManager. - Added
VectorHelpers.InterpolateCubicforSystem.NumericsVector3andVector4. - Added deconstruct helpers for
System.NumericsVector3andVector4.
Bugfixes
- Pooled integration instances returned by
RobustIntegrationTestare now treated as non-idle, for consistency with non-pooled startups. SharedAudioSystem.SetStateno longer callsDirtyFieldonPlaybackPosition, an unnetworked field.- Fix loading texture files from the root directory.
- Fix integration test pooling leaking non-reusable instances.
- Fix multiple bugs where VV displayed the wrong property editor for remote values.
- VV displays group headings again in member list.
- Fix a stack overflow that could occur with
ColorSelectorSliders. MidiRenderernow properly handlesNoteOnevents with 0 velocity (which should actually be treated asNoteOffevents).
Other
- The debug assert for
RobustRandom.Next(TimeSpan, TimeSpan)now allows for the two arguments to be equal. - The configuration system will now report an error instead of warning if it fails to load the config file.
- Members in
IntegrationInstancethat enforce the instance is idle now always allow access from the instance's thread (e.g. from a callback). IPrototypeManagermethods now have[ForbidLiteral]where appropriate.- Performance improvements to physics system.
[ValidatePrototypeIdAttribute]has been marked as obsolete.ParallelManagerno longer cuts out exception information for caught job exceptions.- Improved logging for PVS uninitialized/deleted entity errors.
Internal
- General code & warning cleanup.
- Fix
VisibilityTestbeing unreliable. ColorSelectorSlidershas been internally refactored.- Added CI workflows that test all RT build configurations.
264.0.0
Breaking changes
IPrototypeManager.Index(Type kind, string id)now throwsUnknownPrototypeExceptioninstead ofKeyNotFoundException, for consistency withIPrototypeManager.Index<T>.
New features
- Types can now implement the new interface
IRobustCloneable<T>to be cloned by the component state source generator. - Added extra Roslyn Analyzers to detect some misuse of prototypes:
- Network serializing prototypes (tagging them with
[Serializable, NetSerializable]). - Constructing new instances of prototypes directly.
- Network serializing prototypes (tagging them with
- Add
PrototypeManagerExt.Indexhelper function that takes a nullableProtoId<T>, returning null if the ID is null. - Added an
AlwaysActivefield toWebViewControlto make a browser window active even when not in the UI tree. - Made some common dependencies accessible through
IPlacementManager. - Added a new
GENITIVE()localization helper function, which is useful for certain languages.
Bugfixes
- Sprite scale is now correctly applied to sprite boundaries in
SpriteSystem.GetLocalBounds. - Fixed documentation for
IPrototypeManager.Index<T>stating thatKeyNotFoundExceptiongets thrown, when in actualityUnknownPrototypeExceptiongets thrown.
Other
- More tiny optimizations to
DataDefinitionAnalyzer. - NetSerializer has been updated. On debug, it will now report where a type that can't be serialized is referenced from.
Internal
- Minor internal code cleanup.
263.0.0
Breaking changes
- Fully removed some non-
Entity<T>container methods.
New features
IMidiRenderer.LoadSoundfonthas been split intoLoadSoundfontResourceandLoadSoundfontUser, the original now being deprecated.- Client command execution now properly catches errors instead of letting them bubble up through the input stack.
- Added
CompletionHelper.PrototypeIdsLimitedAPI to allow commands to autocomplete entity prototype IDs. - Added
spawn:inToolshed command. - Added
MapLoaderSystem.TryLoadGenericoverload to load from aStream. - Added
OutputPanel.GetMessage()andOutputPanel.SetMessage()to allow replacing individual messages.
Bugfixes
- Fixed debug asserts when using MIDI on Windows.
- Fixed an error getting logged on startup on macOS related to window icons.
CC-BY-NC-ND-4.0is now a valid license for the RGA validator.- Fixed
TabContainer.CurrentTabclamping against the wrong value. - Fix culture-based parsing in
TimespanSerializer. - Fixed grid rendering blowing up on tile IDs that aren't registered.
- Fixed debug assert when loading MIDI soundfonts on Windows.
- Make
ColorSelectorSlidersproperly update the dropdown when changingSelectorType. - Fixed
tptoallowing teleports to oneself, thereby causing them to be deleted. - Fix OpenAL extensions being requested incorrectly, causing an error on macOS.
- Fixed horizontal measuring of markup controls in rich text.
Other
- Improved logging for some audio entity errors.
- Avoided more server stutters when using
csci. - Improved physics performance.
- Made various localization functions like
GENDER()not throw if passed a string instead of anEntityUid. - The generic clause on
EntitySystem.AddComp<T>has been changed toIComponent(fromComponent) for consistency withIEntityManager.AddComponent<T>. DataDefinitionAnalyzerhas been optimized somewhat.- Improved assert logging error message when static data fields are encountered.
Internal
- Warning cleanup.
- Added more tests for
DataDefinitionAnalyzer. - Consistently use
EntitySystemproxy methods in engine.
262.0.0
Breaking changes
- Toolshed commands will now validate that each non-generic command argument is parseable (i.e., has a corresponding type parser). This check can be disabled by explicitly marking the argument as unparseable via
CommandArgumentAttribute.Unparseable.
New features
ToolshedManager.TryParsenow also supports nullable value types.- Add an ignoredComponents arg to IsDefault.
Bugfixes
- Fix
SpriteComponent.Layer.Visiblesetter not marking a sprite's bounding box as dirty. - The audio params in the passed SoundSpecifier for PlayStatic(SoundSpecifier, Filter, ...) will now be used as a default like other PlayStatic overrides.
- Fix windows not saving their positions correctly when their x position is <= 0.
- Fix transform state handling overriding PVS detachment.
261.2.0
New features
- Implement IEquatable for ResolvedPathSpecifier & ResolvedCollectionSpecifier.
- Add NearestChunkEnumerator.
Bugfixes
- Fix static entities not having the center of mass updated.
- Fix TryQueueDelete.
- Fix tpto potentially parenting grids to non-map entities.
Other
- TileChangedEvent is now raised once in clientside grid state handling rather than per tile.
- Removed ITileDefinition.ID as it was redundant.
- Change the lifestage checks on predicted entity deletion to check for terminating.
Internal
- Update some
GetComponentName<T>uses to generic.
261.1.0
New features
- Automatically create logger sawmills for
UIControllers similar toEntitySystems.
Bugfixes
- Fix physics forces not auto-clearing / respecting the cvar.
Internal
- Cleanup more compiler warnings in unit tests.
261.0.0
Breaking changes
- Remove unused TryGetContainingContainer override.
- Stop recursive FrameUpdates for controls that are not visible.
- Initialize LocMgr earlier in the callstack for GameController.
- Fix FastNoiseLise fractal bounding and remove its DataField property as it should be derived on other properties updating.
- Make RaiseMoveEvent internal.
- MovedGridsComponent and PhysicsMapComponent are now purged and properties on
SharedPhysicsSystem. Additionally the TransformComponent for Awake entities is stored alongside the PhysicsComponent for them. - TransformComponent is now stored on physics contacts.
- Gravity2DComponent and Gravity2DController were moved to SharedPhysicsSystem.
New features
IFileDialogManagernow allows specifyingFileAccessandFileSharemodes.- Add Intersects and Enlarged to Box2i in line with Box2.
- Make
KeyFrames onAnimationTrackPropertypublic settable. - Add the spawned entities to a returned array from
SpawnEntitiesAttachedTo.
Bugfixes
- Fixed SDL3 file dialog implementation having a memory leak and not opening files read-write.
- Fix GetMapLinearVelocity.
Other
uploadfileandloadprototypecommands now only open files with read access.- Optimize
ToMapCoordinates.
Internal
- Cleanup on internals of
IFileDialogManager, removing duplicate code. - Fix Contacts not correctly being marked as
Touchingwhile contact is ongoing.
260.2.0
New features
- Add
StringBuilder.Insert(int, string)to sandbox. - Add the WorldNormal to the StartCollideEvent.
260.1.0
New features
ComponentFactoryis now exposed toEntitySystemasFactory
Other
- Cleanup warnings in PLacementManager
- Cleanup warnings in Clide.Sprite
260.0.0
Breaking changes
- Fix / change
StartCollideEvent.WorldPointto return all points for the collision which may be up to 2 instead of 1.
New features
- Add SpriteSystem dependency to VisualizerSystem.
- Add Vertical property to progress bars
- Add some
EntProtoIdoverloads for group entity spawn methods.
259.0.0
Breaking changes
- TileChangedEvent now has an array of tile changed entries rather than raising an individual event for every single tile changed.
Other
Entity<T>methods were marked asreadonlyas appropriate.
258.0.1
Bugfixes
- Fix static physics bodies not generating contacts if they spawn onto sleeping bodies.
258.0.0
Breaking changes
IMarkupTagand related methods inMarkupTagManagerhave been obsoleted and should be replaced with the newIMarkupTagHandlerinterface. Various engine tags (e.g.,BoldTag,ColorTag, etc) no longer implement the old interface.
New features
- Add IsValidPath to ResPath and make some minor performance improvements.
Bugfixes
- OutputPanel and RichTextLabel now remove controls associated with rich text tags when the text is updated.
- Fix
SpriteComponent.Visibledatafield not being read from yaml. - Fix container state handling not forcing inserts.
Other
SpriteSystem.LayerMapReserve()no longer throws an exception if the specified layer already exists. This makes it behave like the obsoletedSpriteComponent.LayerMapReserveBlank().
257.0.2
Bugfixes
- Fix unshaded sprite layers not rendering correctly.
257.0.1
Bugfixes
- Fix sprite layer bounding box calculations. This was causing various sprite rendering & render-tree lookup issues.
257.0.0
Breaking changes
- The client will now automatically pause any entities that leave their PVS range.
- Contacts for terminating entities no longer raise wake events.
New features
- Added
IPrototypeManager.IsIgnored()for checking whether a given prototype kind has been marked as ignored viaRegisterIgnore(). - Added
PoolManager&TestPairclasses toRobust.UnitTesting. These classes make it easier to create & use pooled server/client instance pairs in integration tests. - Catch NotYamlSerializable DataFields with an analyzer.
- Optimized RSI preloading and texture atlas creation.
Bugfixes
- Fix clients unintentionally un-pausing paused entities that re-enter pvs range
Other
- The yaml prototype id serialiser now provides better feedback when trying to validate an id for a prototype kind that has been ignored via
IPrototypeManager.RegisterIgnore() - Several SpriteComponent methods have been marked as obsolete, and should be replaced with new methods in SpriteSystem.
- Rotation events no longer check for grid traversal.
256.0.0
Breaking changes
ITypeReaderWriter<TType, TNode>has been removed due to being unused. ImplementITypeSerializer<TType, TNode>instead- Moved AsNullable extension methods to the Entity struct.
New features
- Add DevWindow tab to show all loaded textures.
- Add Vector2i / bitmask converfsion helpers.
- Allow texture preload to be skipped for some textures.
- Check audio file signatures instead of extensions.
- Add CancellationTokenRegistration to sandbox.
- Add the ability to serialize TimeSpan from text.
- Add support for rotated / mirrored tiles.
Bugfixes
- Fix yaml hot reloading.
- Fix a linear dictionary lookup in PlacementManager.
Other
- Make ItemList not run deselection callback on all items if they aren't selected.
- Cleanup warnings for CS0649 & CS0414.
Internal
- Move PointLight component states to shared.
255.1.0
New features
- The client localisation manager now supports hot-reloading ftl files.
- TransformSystem can now raise
GridUidChangedEventandMapUidChangedEventwhen a entity's grid or map changes. This event is only raised if theExtraTransformEventsmetadata flag is enabled.
Bugfixes
- Fixed a server crash due to a
NullReferenceExceptionin PVS system when a player's local entity is also one of their view subscriptions. - Fix CompileRobustXamlTask for benchmarks.
- .ftl files will now hot reload.
- Fix placementmanager sometimes not clearing.
Other
- Container events are now documented.
255.0.0
Breaking changes
RobustIntegrationTestnow pools server/client instances by default. If a custom settings class is provided, it will still disable pooling unless explicitly enabled.- Server/Client instances that are returned to the pool should be disconnected. This might require you to update some tests.
- Pooled instances also require you to use
RobustIntegrationTestmethods likeWaitPost()to ensure the correct thread is used.
Bugfixes
- Fix
EntityDeserializerimproperly setting entity lifestages when loading a post-mapinit map. - Fix
EntityManager.PredictedDeleteEntity()not deleting pure client-side entities. - Fix grid fixtures using a locale dependent id. This could cause some clients to crash/freeze when connected to a server with a different locale.
Other
- Add logic to block cycles in master MIDI renderers, which could otherwise cause client freezes.
254.1.0
New features
- Add CC ND licences to the RGA validator.
- Add entity spawn prediction and entity deletion prediction. This is currently limited as you are unable to predict interactions with these entities. These are done via the new methods prefixed with "Predicted". You can also manually flag an entity as a predicted spawn with the
FlagPredictedmethod which will clean it up when prediction is reset.
Bugfixes
- Fix tile edge rendering for neighbor tiles being the same priority.
Other
- Fix SpawnAttachedTo's system proxy method not the rotation arg like EntityManager.
254.0.0
Breaking changes
- Yaml mappings/dictionaries now only support string keys instead of generic nodes
- Several MappingDataNode method arguments or return values now use strings instead of a DataNode object
- The MappingDataNode class has various helper methods that still accept a ValueDataNode, but these methods are marked as obsolete and may be removed in the future.
- yaml validators should use
MappingDataNode.GetKeyNode()when validating mapping keys, so that errors can print node start & end information
- ValueTuple yaml serialization has changed
- Previously they would get serialized into a single mapping with one entry (i.e.,
{foo : bar }) - Now they serialize into a sequence (i.e.,
[foo, bar]) - The ValueTuple serializer will still try to read mappings, but due to the MappingDataNode this may fail if the previously serialized "key" can't be read as a simple string
- Previously they would get serialized into a single mapping with one entry (i.e.,
New features
- Add cvar to disable tile edges.
- Add GetContainingContainers method to ContainerSystem to recursively get containers upwards on an entity.
Internal
- Make component lifecycle methods use generics.
253.0.0
New features
- Add a new
SerializationManager.PushComposition()overload that takes in a single parent instead of an array of parents. BoundUserInterfaceMessageAttemptonce again gets raised as a broadcast event, in addition to being directed.- This effectively reverts the breaking part of the changes made in v252.0.0
- Fix CreateDistanceJoint using an int instead of a float for minimum distance.
Bugfixes
- Fix deferred component removal not setting the component's life stage to
ComponentLifeStage.Stoppedif the component has not yet been initialised. - Fix some
EntitySystem.Resolve()overloads not respecting the optionallogMissingargument. - Fix screen-space overlays not being useable without first initializing/starting entity manager & systems
- ItemList is now significantly optimized. VV's
AddComponentwindow in particular should be much faster. - Fix some more MapValidator fields.
- Fix popup text overflowing the sides of the screen.
- Improve location reporting for non-writeable datafields via analyzer.
Other
- TestPoint now uses generics rather than IPhysShape directly.
252.0.0
Breaking changes
- BoundUserInterfaceMessageAttempt is raised directed against entities and no longer broadcast.
251.0.0
Breaking changes
- Localization is now separate between client and server and is handled via cvar.
- Contacting entities no longer can be disabled for CollisionWake to avoid destroying the contacts unnecessarily.
New features
- Added
DirectionExtensions.AllDirections, which contains a list of allDirections for easy enumeration. - Add ForbidLiteralAttribute.
- Log late MsgEntity again.
- Show entity name in
physics shapeinfooutput. - Make SubscribeLocalEvent not require EntityEventArgs.
- Add autocomplete to
tpcommand. - Add button to jump to live chat when scrolled up.
- Add autocomplete to
savemapandsavegrid.
Bugfixes
- Fix velocity not re-applying correctly on re-parenting.
- Fix Equatable on FormattedMessage.
- Fix SharedTransformSystem methods logging errors on resolves.
Other
- Significantly optimized tile edge rendering.
Internal
- Remove duplicate GetMassData method.
- Inline manifold points for physics.
250.0.0
Breaking changes
- The default shader now interprets negative color modulation as a flag that indicates that the light map should be ignored.
- This can be used to avoid having to change the light map texture, thus reducing draw batches.
- Sprite layers that are set to use the "unshaded" shader prototype now use this.
- Any fragment shaders that previously the
VtxModulatecolour modulation variable should instead use the newMODULATEvariable, as the former may now contain negative values.
New features
- Add OtherBody API to contacts.
- Make FormattedMessages Equatable.
- AnimationCompletionEvent now has the AnimationPlayerComponent.
- Add entity description as a tooltip on the entity spawn panel.
Bugfixes
- Fix serialization source generator breaking if a class has two partial locations.
- Fix map saving throwing a
DirectoryNotFoundExceptionwhen given a path with a non-existent directory. Now it once again creates any missing directories. - Fix map loading taking a significant time due to MappingDataNode.Equals calls being slow.
Other
- Add Pure to some Angle methods.
Internal
- Cleanup some warnings in classes.
249.0.0
Breaking changes
- Layer is now read-only on VisibilityComponent and isn't serialized.
New features
- Added a debug overlay for the linear and angular velocity of all entities on the screen. Use the
showvelandshowangvelcommands to toggle it. - Add a GetWorldManifold overload that doesn't require a span of points.
- Added a GetVisMaskEvent. Calling
RefreshVisibilityMaskwill raise it and subscribers can update the vismask via the event rather than subscribers having to each manually try and handle the vismask directly.
Bugfixes
BoxContainerno longer causes stretching children to go below their minimum size.- Fix lights on other grids getting clipped due to ignoring the light range cvar.
- Fix the
showvelocitiescommand. - Fix the DirtyFields overload not being sandbox safe for content.
Internal
- Polygon vertices are now inlined with FixedArray8 and a separate SlimPolygon using FixedArray4 for hot paths rather than using pooled arrays.
248.0.2
Bugfixes
- Don't throw in overlay rendering if MapUid not found.
Internal
- Reduce EntityManager.IsDefault allocations.
248.0.1
Bugfixes
- Bump ImageSharp version.
- Fix instances of NaN gain for audio where a negative-infinity value is being used for volume.
248.0.0
Breaking changes
- Use
Entity<MapGridComponent>for TileChangedEvent instead of EntityUid. - Audio files are no longer tempo perfect when being played if the offset is small. At some point in the future an AudioParams bool is likely to be added to enforce this.
- MoveProxy method args got changed in the B2DynamicTree update.
- ResPath will now assert in debug if you pass in an invalid path containing the non-standardized directory separator.
New features
- Added a new
MapLoaderSystem.TryLoadGrid()override that loads a grid onto a newly created map. - Added a CVar for the endbuffer for audio. If an audio file will play below this length (for PVS reasons) it will be ignored.
- Added Regex.Count + StringBuilder.Chars setter to the sandbox.
- Added a public API for PhysicsHull.
- Made MapLoader log more helpful.
- Add TryLoadGrid override that also creates a map at the same time.
- Updated B2Dynamictree to the latest Box2D V3 version.
- Added SetItems to ItemList control to set items without removing the existing ones.
- Shaders, textures, and audio will now hot reload automatically to varying degrees. Also added IReloadManager to handle watching for file-system changes and relaying events.
- Wrap BUI disposes in a try-catch in case of exceptions.
Bugfixes
- Fix some instances of invalid PlaybackPositions being set.
- Play audio from the start of a file if it's only just come into PVS range / had its state handled.
- Fix TryCopyComponents.
- Use shell.WriteError if TryLoad fails for mapping commands.
- Fix UI control position saving causing exceptions where the entity is cleaned-up alongside a state change.
- Fix Map NetId completions.
- Fix some ResPath calls using the wrong paths.
Internal
- Remove some unused local variables and the associated warnings.
247.2.0
New features
- Added functions for copying components to
IEntityManagerandEntitySystem. - Sound played from sound collections is now sent as "collection ID + index" over the network instead of the final filename.
- This enables integration of future accessibility systems.
- Added a new
ResolvedSoundSpecifierto represent played sounds. Methods that previously took a filename now take aResolvedSoundSpecifier, with an implicit cast from string being interpreted as a raw filename.
VisibilitySystemhas been made accessible to shared asSharedVisibilitySystem.ScrollContainernow has properties exposingValueandValueTargeton its internal scroll bars.
Bugfixes
- Fix prototype hot reload crashing when adding a new component already exists on an entity.
- Fix maps failing to save in some cases related to tilemap IDs.
- Fix
Regex.Escape(string)not being available in sandbox. - Prototypes that parent themselves directly won't cause the game to hang on an infinite loop anymore.
- Fixed disconnecting during a connection attempt leaving the client stuck in a phantom state.
Internal
- More warning cleanup.
247.1.0
New features
- Added support for
Color[]shader uniforms - Added optional minimumDistance parameter to
SharedJointSystem.CreateDistanceJoint()
Bugfixes
- Fixed
EntitySystem.DirtyFields()not actually marking fields as dirty.
Other
- Updated the Yamale map file format validator to support v7 map/grid files.
247.0.0
Breaking changes
ITileDefinitionManager.AssignAliasand general tile alias functionality has been removed.TileAliasPrototypestill exist, but are only used during entity deserialization.IMapManager.AddUninitializedMaphas been removed. Use the map-init options onCreateMap()instead.- Re-using a MapId will now log a warning. This may cause some integration tests to fail if they are configured to fail when warnings are logged.
- The minimum supported map format / version has been increased from 2 to 3.
- The server-side
MapLoaderSystemand associated classes & structs has been moved toRobust.Shared, and has been significantly modified.- The
TryLoadandSavemethods have been replaced with grid, map, generic entity variants. I.e,SaveGrid,SaveMap, andSaveEntities. - Most of the serialization logic and methods have been moved out of
MapLoaderSystemand into newEntitySerializerandEntityDeserializerclasses, which also replace the oldMapSerializationContext. - The
MapLoadOptionsclass has been split intoMapLoadOptions,SerializationOptions, andDeserializationOptionsstructs.
- The
- The interaction between PVS overrides and visibility masks / layers have changed:
- Any forced entities (i.e.,
PvsOverrideSystem.AddForceSend()) now ignore visibility masks. - Any global & session overrides (
PvsOverrideSystem.AddGlobalOverride()&PvsOverrideSystem.AddSessionOverride()) now respect visibility masks. - Entities added via the
ExpandPvsEventrespect visibility masks. - The mask used for any global/session overrides can be modified via
ExpandPvsEvent.Mask.
- Any forced entities (i.e.,
- Toolshed Changes:
- The signature of Toolshed type parsers have changed. Instead of taking in an optional command argument name string, they now take in a
CommandArgumentstruct. - Toolshed commands can no longer contain a '|', as this symbol is now used for explicitly piping the output of one command to another. command pipes. The existing
|and '|~' commands have been renamed tobitorandbitnotor. - Semicolon terminated command blocks in toolshed commands no longer return anything. I.e.,
i { i 2 ; }is no longer a valid command, as the block has no return value.
- The signature of Toolshed type parsers have changed. Instead of taking in an optional command argument name string, they now take in a
New features
- The current map format/version has increased from 6 to 7 and now contains more information to try support serialization of maps with null-space entities and full game saves.
IEntitySystemManagernow provides access to the systemIDependencyCollection.- Toolshed commands now support optional and
params T[]arguments. optional / variable length commands can be terminated using ';' or '|'.
Bugfixes
- Fixed entity deserialization for components with a data fields that have a AlwaysPushInheritance Attribute
- Audio entities attached to invisible / masked entities should no longer be able to temporarily make those entities visible to all players.
- The map-like Toolshed commands now work when a collection is piped in.
- Fixed a bug in toolshed that could cause it to preferentially use the incorrect command implementation.
- E.g., passing a concrete enumerable type would previously use the command implementation that takes in an unconstrained generic parameter
Tinstead of a dedicatedIEnumeerable<T>implementation.
- E.g., passing a concrete enumerable type would previously use the command implementation that takes in an unconstrained generic parameter
Other
MapChangedEventhas been marked as obsolete, and should be replaced withMapCreatedEventand `MapRemovedEvent.- The default auto-completion hint for Toolshed commands have been changed and somewhat standardized. Most parsers should now generate a hint of the form:
<name (Type)>for mandatory arguments[name (Type)]for optional arguments[name (Type)]...for variable length arguments (i.e., forparams T[])
246.0.0
Breaking changes
- The fixes to renderer state may have inadvertantly broken some rendering code that relied upon the old behavior.
- TileRenderFlag has been removed and now it's just a byte flag on the tile for content usage.
New features
- Add BeforeLighting overlay draw space for overlays that need to draw directly to lighting and want to do it immediately beforehand.
- Change BlurLights to BlurRenderTarget and make it public for content usage.
- Add ContentFlag to tiles for content-flag usage.
- Add a basic mix shader for doing canvas blends.
- Add GetClearColorEvent for content to override the clear color behavior.
Bugfixes
- Fix pushing renderer state not restoring stencil status, blend status, queued shader instance scissor state.
245.1.0
New features
- Add more info to the AnchorEntity debug message.
- Make ParseObject public where it will parse a supplied Type and string into the specified object.
Bugfixes
- Fix EntityPrototypeView not always updating the entity correctly.
- Tweak BUI shutdown to potentially avoid skipping closing.
Other
- Increase Audio entity despawn buffer to avoid clipping.
245.0.0
Breaking changes
BoundUserInterface.Open()now has theMustCallBaseattribute
Bugfixes
- Fixed an error in
MappingDataNode.TryAddCopy(), which was causing yaml inheritance/deserialization bugs.
244.0.0
Breaking changes
- Increase physics speedcap default from 35m/s to 400m/s in-line with box2d v3.
New features
- Add EntityManager overloads for ComponentRegistration that's faster than the generic methods.
- Add CreateWindowCenteredRight for BUIs.
Bugfixes
- Avoid calling UpdateState before opening a BUI.
243.0.1
Bugfixes
- Fixed
BaseWindowsometimes not properly updating the mouse cursor shape. - Revert
BaseWindowOnClose ordering due to prior reliance upon the ordering.
243.0.0
Breaking changes
- RemoveChild is called after OnClose for BaseWindow.
New features
- BUIs now have their positions saved when closed and re-used when opened when using the
CreateWindow<T>helper or via manually registering it via RegisterControl.
Other
- Ensure grid fixtures get updated in client state handling even if exceptions occur.
242.0.1
Bugfixes
- Fixed prototype reloading/hotloading not properly handling data-fields with the
AlwaysPushInheritanceAttribute - Fix the pooled polygons using incorrect vertices for EntityLookup and MapManager.
Internal
- Avoid normalizing angles constructed from vectors.
242.0.0
Breaking changes
- The order in which the client initialises networked entities has changed. It will now always apply component states, initialise, and start an entity's parent before processing any children. This might break anything that was relying on the old behaviour where all component states were applied before any entities were initialised & started.
IClydeViewportoverlay rendering methods now take in anIRenderHandleinstead of a world/screen handle.- The
OverlayDrawArgsstruct now has an internal constructor.
New features
- Controls can now be manually restyled via
Control.InvalidateStyleSheet()andControl.DoStyleUpdate() - Added
IUserInterfaceManager.RenderControl()for manually drawing controls. OverlayDrawArgsstruct now has anIRenderHandlefield such that overlays can use the newRenderControl()methods.- TileSpawnWindow will now take focus when opened.
Bugfixes
- Fixed a client-side bug where
TransformComponent.GridUiddoes not get set properly when an existing entity is attached to a new entity outside of the player's PVS range. - EntityPrototypeView will only create entities when it's on the UI tree and not when the prototype is set.
- Make CollisionWake not log errors if it can't resolve.
Other
- Replace IPhysShape API with generics on IMapManager and EntityLookupSystem.
Internal
- Significantly reduce allocations for Box2 / Box2Rotated queries.
241.0.0
Breaking changes
- Remove DeferredClose from BUIs.
New features
- Added
EntityManager.DirtyFields(), which allows components with delta states to simultaneously mark several fields as dirty at the same time. - Add
CloserUserUIs<T>to close keys of a specific key.
Bugfixes
- Fixed
RaisePredictiveEvent()not properly re-raising events during prediction for event handlers that did not take anEntitySessionEventArgsargument. - BUI openings are now deferred to avoid having slight desync between deferred closes and opens occurring in the same tick.
240.1.2
240.1.1
Bugfixes
- Fixed one of the
IOverlayManager.RemoveOverlayoverrides not fully removing the overlay.
240.1.0
New features
- Added an
AsNullableextension method for converting anEntity<T>into anEntity<T?>
Bugfixes
- Fixed an exception in
PhysicsSystem.DestroyContacts()that could result in entities getting stuck with broken physics.
Other
GamePrototypeLoadManagerwill now send all uploaded prototypes to connecting players in a singleGamePrototypeLoadMessage, as opposed to one message per upload.
240.0.1
Bugfixes
- Fixed
SharedBroadphaseSystem.GetBroadphases()not returning the map itself, which was causing physics to not work properly off-grid.
240.0.0
Breaking changes
ComponentRegistryno longer implementsISerializationContext- Tickrate values are now
ushort, allowing them to go up to 65535.
New features
- Console completion options now have new flags for preventing suggestions from being escaped or quoted.
- Added
ILocalizationManager.HasCulture(). - Static
EntProtoId<T>fields are now validated to exist.
Bugfixes
- Fixed a state handling bug in replays, which was causing exceptions to be thrown when applying delta states.
Other
- Reduced amount of
DynamicMethods used by serialization system. This should improve performance somewhat.
Internal
- Avoided sorting overlays every render frame.
- Various clean up to grid fixture code/adding asserts.
Older versions
Release notes for older versions have been culled due to file size, see here for them.