1,756 Commits over 366 Days - 0.20cph!
merge from buildingerrors_improvements
When showing the not enough ressources UI, hide any ongoing error toast and vice versa to avoid overlapping
errortoasts_debug is now saved to ClientInfo so we can get it server side when logging construction debug from the server
Do not merge dropped items with a different skin id, fixes dropped wallpaper with different skins merging together
▋▉▇▋█▄▍ ▊▋▄ ▉▉▌▍-▉▅▆ ▉▅▊ ▇▌▉▇▍▌▊▆ ▍▇ ▆▍▍ ▌▉▆█ ▌▇ ▌ ▄▄▍▋▄▇▇▌▊▅ ▅▌▇▌▋▌▄▄
Reverted my last change about the sleeping bag error
Check if the player sending the RPC has streamer mode enabled and edit any player name if yes
Fixed player names being leaked by the Blocked by player {0} errors when in streamer mode
Phrase tweak:
from: You cannot assign {0} a bag, they have reached their bag limit!
to: You cannot assign a bag to this player, they have reached their bag limit!
So we don't leak player name to clients in streamer mode (this error is server side, can't know if the client use streamer mode before sending)
Let server send game tip on top of any screens to clients, added back the overlay parameter to the showtip command
Server can send construction errors debug logs to client, will show up both in chat and logs if errortoasts_debug is true
Moved the error handling logic out from BasePlayer to GameTip
Fixed upgrade blocked errors not detecting sleeping players client-side, the server will send the toast to the player now
Fixed server side errors not being translated by the client when received
GameTIp error refactoring
Pulled the overlay parameter out of the command and added GameTip.SetAsOverlay instead
Removed ShowErrorToast, we now use ShowToast(GameTip.Styles.Error, ...)
Updated all occurences
Added an error when trying to upgrade a recently damage block: "Recently damaged, upgradable in {0} seconds"
Reverted skin list before merging to main
Line of sight checks again, TraceAll instead of a single Raycast
Better line of sight checks, fixes various building blocks blocking wallpaper placement, pickup and reskin
Also added a line of sight blocked toast
Fixed industrial lamp and simple light wires clipping with wallpaper
Added TextMeshPro to the clientsideOnlyTypes list in PrefabPreProcess, so it is stripped before its MeshFilter
Updated description
Added to T2 tech tree
Added a button to mute the alarms ring sound
When adding a new alarm, set its time to the current time + 5mn
Make sure we take damage from decay too
Added an admin convar to draw wallpaper health on screen 'buildingblock.debugwallpaperhealth'
Fixed explosive and fire damages not damaging wallpaper
Reduced melee and fire damage protection
Fixed DoPlace rpc error when deploying something while not looking at any entity
Wallpaper item description
Tweaked craft time
Folders cleanup
Codegen, manifest
Updated wallpaper skin ids (was colliding with new skins released recently)
Fixed server deployable mismatch check
Added the entity netID to GetDeployable so the server WallpaperPlanner can get the corresponding wallpaper deployable
Fixed pickup and reskin possible through walls, make sure the player is aiming at the soft-side of the building block
Fixed deploy mesh mismatch when looking around
Added a deploy offset to wallpaper construction prefabs, fixing the false positives and negatives line of sight checks
Increased the max place distance
Tweaked some electrical component positions to avoid clipping with wallpaper
Wallpaper now has health and protection (still need to tweak the values)
Only damage wallpaper when hitting the soft-side of the building block
Refactoring, better deployment checks