v2022.2.3
Release Date: 08/01/2022
Changes
- REMOVE the Collection Audio field from the Resource entity inspector.
- FIX building construction tasks being automatically added to the builder's tasks queue even if the tasks queue specific key is not held down.
- FIX a bug that freezes unit movement with adding movement tasks to a unit's tasks queue at the time when the unit finishes a movement task executed by the queue.
- FIX a bug where multiple collector units are sent to the same drop off point at the same time where some of them unable to reach the drop off point position rendering them stuck.
- FIX a bug where the CarriableUnit component does not correctly pass whether the unit can carried by a different faction or not whenever an external script requests its options for the AddableUntiData struct.
- FIX the hidden fields in the Resource component inspector.
- FIX a bug where resource collectors sent by a rallypoint to collect a resource that has already reached maximum workers wander to resources of a different type. Same type resource within a range of the original rallypoint resource entity is enforced now.
- FIX a bug with the worker manager (for both builders and resource collectors) not issuing any player error messages for when it fails to find a proper worker position or fails to find a target destination for the worker unit even if there is a valid worker position.
- FIX an error that occurs with the UnitCarrier when there are no static carrier positions defined.
- UPDATE GlobalTimeModifiedTimer (data type used for cooldowns and reloads) to allow to fetch the default reload time randomly from a range of values instead of just a fixed value.
- UPDATE ResourceGenerator and DropOffSource to handle the cases where the resources unloaded/generated by those components reach the limit capacity. For drop off resources, the resource collector will still collecting the capped resource and will be able to collect other resource types. For the resource generator, an error will be shown once and not again until the resource capacity is increased. For both cases, appropriate player message errors are shown.
- UPDATE model caching to allow for preserving the initial local Transform component (position, rotation and scale) of the parent model entity object for pre-placed entities in the map.
- UPDATE handling of error messages to show a player error message in the UI elements of the game as a feedback for any failure during a player issued command to a faction entity.
- UPDATE ResourceGenerator to allow resource generation to occur locally in each client instance in a multiplayer game without having to send a network command for each individual resource generator with the actual collection of the generated resources still requiring a network input to be launched by the game's master instance.
- UPDATE EntityWorkerManager with fields that allow to specify a maximum amount of workers that can be lower than the amount of specified worker positions. This means that a resource or a building entity can have more possible worker positions than the amount of workers that it allows at the same time.
- ADD DropOffUnloaded event to IDropOffSource, triggered whenever a resource collector unit successfully drops off the resources it holds at a drop off point.
- ADD the field 'Enable Side Base Terrain' to the Terrain Manager inspector. When enabled, this field allows to create base terrain colliders on each side of the map (instead of just on the bottom of the map) to avoid the raycasting errors caused by the main camera when it is not directly looking at the bottom of the map. Enable this field if you allow the player to rotate the main camera freely, including rotating it so that the camera corners face any of the sides of the map and not the bottom directly.
- ADD a field to the Builder component inspector that allows to choose whether the construction audio is fetched then played and looped for the entirety of the construction phase or whether it is fetched and played (but not looped) every time the builder adds health to the target building it is constructing.
- ADD the option to define the type of how a capacity resource type amount and capacity is handled. There are now two options. 'Simple Limit' means that the resource amount will be capped/limited by a maximum capacity amount. 'Slot Based' means that the free amount (difference between the capacity and the current amount) is the value that is available to be filled/used, the 'Slot Based' capacity allows for having population slots as a resource type for example.
- ADD the option to the Rallypoint to automatically search for a target resource entity if the rallypoint's last active target was a resource entity that was depleted. The condition would be another resource entity of the same type that exists within a range of the last target resource entity. The range can be defined in the inspector.
- ADD field in the ResourceNotificationUIHandler to pick or restrict what faction entities are allowed to show the resource UI notification on resource drop off or resource generation.
- ADD the option to define health ranges in entity health states as percentages instead of using raw health point values.
- ADD the option to specify a collection audio clip in the ResourceCollector component for each type of resource that the collector is allowed to gather with the option to specify whether the audio clip is played looped during the time the collector is gather resources or played it once everytime the collector gathers new resource units.
Demo
- DELETE empty objects that has a collider and nav mesh obstacle component from demo map.
API
- ADD the UpdateRadius method to the Entity class that allows the radius of an entity to be modified during runtime. Make sure that this method call is done locally for all client instances in case of a multiplayer game to avoid desync.
- UPDATE UpdateResource methods in the IResourceManager interface to include an out parameter that returns the rest amount in case an amount is added to a capacity resource with a simple limit/cap in case the resource already reaches its limit so that the component that attempted to update the resource amount can handle the rest amount internally.
- ADD DropOffUnloaded event to IDropOffSource, triggered whenever a resource collector unit successfully drops off the resources it holds at a drop off point.
Modules
- Save System
- ADD error logging when game services that implement the ISavableGameService interface do not all have distinct SaveCode properties.
- Singleplayer Lobby / Multiplayer Lobby
- ADD the option in the lobby menu to pick a random faction type for a faction slot which allow the faction to have a random faction type of the ones specified in the currently selected map.
v2022.2.3 Update Guide
- Re-assign resource collection audio clips on ResourceCollector components on units (the audio clip field was previously assignable in the Resource entity component inspector, which is now removed).