I got an email last night that Unity has found some security vulnerabilities so this update is coming out early to address them. I highly doubt that Aiyana will be affected but this update was in a position where it could be released anyway so I figured, might as well be safe.
If you're curious, more info here:
https://unity.com/security/unity-brotli-decoder-vulnerability
https://unity.com/security/unity-emudhra-compromise
Trees Collisions, Part 2
Because I found the serious flaw in data upgrades in the last update I only applied the change to tree physics to a few tree types. Now the change is applied to all trees and removes a bunch of logic now that all trees act the same way.
As a result, world loading times should be even faster and the bug that original triggered all this (objects being slow to load after teleporting) should hopefully be none existent now.
I've also made sure that spells now cause damage to trees, so you can chop them down with Energy Blast or Rock Volley.
General Performance
A few things cropped and got addressed as part of this update to improve performance. Once I finished converting all trees it helped highlight other issues, one of which was animal pathfinding logic.
Here is how it worked. Assume this random collection of characters is work done by your computer:
XXGGGHUUUTTTTTTTT
AAAAAAAAAAAA
The top line is one thread and each letter is some work. 'T' would be for trees. The bottom line is a second thread, 'A' being all work to calculate animal pathfinding. In this example, it doesn't matter that animals take a long time because everything else combined is still longer. However with trees optimised the threads now look like this:
XXGGGHUUUT
AAAAAAAAAAAA
This means that animals are now causing a problem. It doesn't matter what else I optimise on the first thread, such as reducing 'U' or 'G', because now animals will always take longer and other threads have to wait for it to finish its work before rendering can start.
There are a few ways I can address this but for now all I've done is reduce the number of path finding calculations that animals do as a temporary solution. I'll attempt to address this properly soon.
Animal Collisions
I've had very occasional comments for a while about how sometimes animal collisions don't make sense. As though most animals are fine but occasionally you will find a wolf that is Really hard to hit.
I hadn't been able to recreate that myself until recently but whilst debugging a different issue in multiplayer challenges I was Finally able to see it myself.
I'm not sure how rare the issue was but it is now finally fixed.
Multiplayer
I'm still making progress on multiplayer and I'm hoping that next big update has an early version of it to try. As a warning, the first version is likely going to be two players only purely because its the only way I have tested so far and means any more players is likely to have bugs I've yet to find.
My plan is that whilst 2 player is live I can work on more players behind the scenes. For the record, all the logic should account for larger groups I've just not organised testing to confirm that. Since I'm a solo dev that is harder to do, I can't just grab 2 other people to play as needed. Instead I'll need to wait until the weekend and hijack my family and friends to play/test which means I can only make progress once a week, at best.
Controller Support
Finally we come onto controller support. A few weeks ago someone sort of asked me for an update on it:
https://steamcommunity.com/app/1182860/discussions/0/573801042469381076/
I said I would look into it and I'll be honest, I forgot to. When I did finally remember I felt bad so I vouched to myself that I would put in a proper effort and did exactly that.
I then realised that the situation is just getting stupid. I have been avoiding this for far too long so I mentally slapped myself across the face, sat down, and got it done.
As a result, this update brings controller support up to about 99% finished. I put in a serious effort and tried to address everything that still needed support.
I was in the progress of attempting to finish the entire game using only the controller when I got the email about the security issues so there are likely still things I will fix/improve as I finish that testing.
Once I do I'll apply to get the Steam Deck reevaluated and change the official tags to say Aiyana is fully controller supported.
Bug Fixes & Changes
Optimised portal particles to avoid using an expensive distortion effect
Prevented underground enemies from spawning during a challenge
Optimised the time spent calculating decorative leaves dropping from trees (was taking more time than I thought)
Changed when colliders are registered to a more optimal time (leading to a decent performance gain as it forced a job to run on the main thread)
Added a LOD to compost bins & enchanting benches (means they render slightly quicker)
Added a LOD for Ebony trees (should help improve performance a little with chunk draw distances above 30)
Drastically reduced the time it takes to render tree shadows
Fixed issues with tamed animals throwing errors on load (not sure what impact this would have had)
Fixed rain flickering badly when the game is paused
Fixed an issue with underground enemy spawning that would either prevent them from spawning or spawn them Far away from the player
Fixed various rugs not having a selection effect
Saplings will now check if there is enough space before it finishes growing (this prevents a host of other potential bugs due to the new colliders)
Fixed the stamina bar sometimes being red and updated its animation to turn red once low
Fixed hearing wet footsteps/jump landing audio when in a cave and near a torch, when its raining above ground
Rock Volley can now explode TNT on impact
Trees can now be damaged with Energy Blast and Rock Volley
Fixed TNT not exploding in some scenarios
Improved how explosions work around trees and fixed trees not dropping their loot during explosions
Fixed animals being able to appear to climb up blocks of any height to attack you
Reduced the max potential scale for oak trees, which should prevent you from looking through some of the larger trees
Fixed the settings screen not closing when you attempt to move (important for MP where time doesn't pause)
Fixed various things in swamps always glowing as though its night time
Fixed tree selections getting stuck until you look at a different block
Added info for enemies killed to the wave complete screen of challenges
Updated the texture of back buttons in an effort for them to be more noticeable
Updated the UI for leaderboards very slightly so its easier to read
Added a message to emphasise what you have unlocked when unlocking decorative tech
Fixed Cicas selection rings being bigger than intended
Reduced the max potential scale of Willow trees a little (meaning Swamps might be a little thinner but this was done to ensure better accuracy with the new block colliders)
Fixed the first 2 trees that decorate the starting island rendering in very slightly the wrong position
Fixed animals trying to target you when far above/below them and posing in weird angles (e.g attacking as though on their backs)
Fixed animals getting stuck on single blocks like chests and furnaces
Fixed the first time you craft a furnace not consuming any resources
Release 0.6.1.3
A lot of small changes came up in testing so this release attempts to address them. I still have more testing to do so I suspect 0.6.1.4 will be more of the same.
Stamina Recovery
Stamina recover is feeling too punishing when exploring larger biomes so I changed the formulas so its recovery increases the longer you don't consume stamina.
The knock on effect of this is that the max stamina attribute can now level up Much faster. For now it should be fine but in the future I might tweak its formulas as well.
Bug Fixes and Changes
Fixed the control hint for toggling arrows being rotated the wrong way
Changed the new item outline to a text label instead (the outline was unclear compared to the current controllers selection)
Please note that all of the follow relate to controller support only
Fixed the wave complete screen closing instantly if you end a challenge whilst mashing jump
Fixed not being able to open the enchanting talent tree
Fixed being able to upgrade perks multiple times or perks that shouldn't be available yet
Fixed pressing B from stats not behaving properly
Pressing Y can now move items from quickbars to inventory
Fixed cooking an enchanting recipes not unlocking once picked up
Fixed recipe unlocks not being dismissed with A
Fixed the currently selected item snapping back if you change the quick bar
Fixed various issues with abandoning a challenge (such as not being able to look around or screens getting stuck in loops)
Fixed furnaces not closing properly when pressing X and no ore has been selected
Fixed the LB hint on main inventory rendering over tutorials
Fixed not being able to change crafting/cooking recipes with the d-pad after crafting/cooking something
Fixed crafting UI stacking on itself in certain scenarios
Fixed the current item previews not updating when selecting things in chests
Fixed alchemy benches logic still attempting to run once they are closed
Fixed crafting UI not properly resuming selections
Fixed two groups being selected at the same time when using a furnace
Fixed the choose output section of alchemy not listening to controllers at all
Fixed not being able to close the second hotbar and held torch tutorials
Updated the spells tutorials to show a controller icon not a keyboard one
Updated the intro objective to open the Lore screen to say 'Start' instead of 'Esc' when using a controller
Fixed held spells like hover playing audio once you select a new spell
Disabled the search tutorial for crafting appearing (its less likely to be useful on a controller but the bar still works)
Fixed crafting things like metal tools not letting you easily select both the metal and wood material needed (its not the clearest currently but it at least works)
Fixed not being able to scroll to view the materials needed for recipes with lots of input like basic beds
Release 0.6.1.4
Fixed not being able to open the portals UI
Controller Support:
Fixed the left side of crafting UI able to get stuck in a loop
Fixed the second hotbar tutorial only closing when pressing dpad up instead of down
Fixed not being able to dismiss the challenges tutorial
Release 0.6.1.5
Fixed some dungeons not opening their loot doors once completed
Updated the portals UI so the compass UI doesn't overlap the portals position info
Fixed the held torch and protection totem tutorials from being able to appear at the same time
Controller Support:
The intro task now says press Back to open the map instead of M
Fixed the enchanting essence gatherer not doing anything when you press x
Fixed the furnace not scrolling as you select ores/fuels
Changed quick storing from the quickbar to favour chests before the main inventory
Fixed restoring default settings getting stuck in a loop
Fixed some screens not responding properly if you tab out from the torch fuels, achievements or perks screens instead of closing them with B
Fixed various issues with selecting Dungeons at a portal
Fixed the crafting UI geting confused and sometimes selecting the utterly wrong group
Release 0.6.1.6
Changed how trees are registered/unloaded for a decent performance gain whilst exploring
Changed how tree leaf particles are dropped for another performance boost (was still taking longer than I would like before this change)
Fixed the death screen being hidden if you load with a character that had died
Reverted the pathfinding distance checks for animals to be longer again but cached the calculated path for an overall performance gain
Fixed white and purple crystals in the Lost Civ being invisible
Fixed the music for the Lost Civ boss fight not looping as intended
Updated the wording for the tool swing speed perk
Fixed talent tree tooltips not showing at all
Fixed a perk in the farming tree being unlockable earlier than intended
Fixed the selection effort for silver ore blocks being 1 too high
Toned down the visuals of rain a little so its easier to see
Fixed rain getting stuck to the floor during the last few seconds as raining stops
Reduced how much rain glows at night
Added unlocking audio when you learn new crafting, cooking or enchanting recipes
Fixed the new stamina ramping recovery from staying active whilst casting spells, causing spells like hover to effectively not consume stamina once max stamina is high
Added a new tooltip which shows you the stats of the buff you just applied on the HUD
Controller Support
Attempted to fix old controller selections still being visible for inventory grids
Fixed not being able to place structures at long distances
Fixed not being able to place blocks on lava
Fixed not being able to hold left trigger to place multiple blocks
Release 0.6.1.7
I'm hoping this is the last minor patch and that I can get back to multiplayer after this. I'm doing this to address issues in an attempt to get a positive rating for Steam Deck Support
Fixed an early tutorial to chop trees not showing properly
Added the tutorial info about creative mode to the Lore screen
Controller Support
Made the main controls prompt when looking at objects (E.G X to open) bigger and clearer
Added a Right Trigger prompt for the chop trees tutorial
Updated more intro tutorials to account for controllers in their wording
Fixed the tutorial for taming animals in the Lore screen saying things like right click instead of right trigger
Fixed the more info button for the structure builder tutorial in the lore screen not listening to the X button as it claimed it would
Fixed toggle flying for creative mode listening for A instead of Y
Fixed not being able to scroll the controls view of the key rebinding screen
Fixed not being able to scroll the stats screen
Fixed drop downs not working in the settings and feedback screens
Updated the first creative mode tutorial to show controller prompts and not keyboard ones
