Base fixes: climb over the railing, hay on the deck, no yard logs, console back, logo T

- Climbing up from the meadow rises straight up the side until the feet clear the
  railing, goes over it and drops onto the deck, instead of an arc through the fence.
- Props stand their lowest point on the floor (the hay bale was half under the deck).
- The timber bay lines on the unloading yard are gone.
- SM_Terminal: the chalkboard's back stands proud of the frame bars, no more
  flickering where their back faces shared a plane.
- Logo: the scythe standing in for the first T of CUTTERS is now a plain T
  (Tools/ui/logo_t.py copies the second T); menu logo, Steam capsules and the
  demo's capsules rebuilt from it.
- -demofix: close shots of those spots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
NiemandKG
2026-12-01 18:08:13 +06:00
parent b08fa7a57e
commit 88c1ee9202
34 changed files with 5886 additions and 6078 deletions

BIN
ArtSource/Blender/SM_Terminal.blend (Stored with Git LFS)

Binary file not shown.

View File

@ -572,7 +572,8 @@ def terminal():
P.append(grain(prism("tab", tab, "XZ", -0.552, -0.54, m), (0, 0, 1)))
# the chalkboard, tilted back 15 degrees. Its Screen below is the old quad, so the frame and lettering sit around the same corners
H = M4((-15, 0, 0), (0, -0.02, 1.4))
Hd = [bx(-0.4, 0.4, -0.08, -0.03, -0.27, 0.27, TIM, bev=0.008, name="backboard")]
# its back stands 6 mm proud of the frame bars so the two back faces never share a plane (they flickered from behind)
Hd = [bx(-0.4, 0.4, -0.08, -0.024, -0.27, 0.27, TIM, bev=0.008, name="backboard")]
for sz in (-1, 1):
Hd.append(grain(bx(-0.4, 0.4, -0.115, -0.03, min(sz * 0.2, sz * 0.27), max(sz * 0.2, sz * 0.27), RED, bev=0.012, name="cframe"), (1, 0, 0)))
for sx in (-1, 1):

BIN
ArtSource/Previews/SM_Terminal.png (Stored with Git LFS)

Binary file not shown.

BIN
Assets/Art/Models/SM_Terminal.fbx (Stored with Git LFS)

Binary file not shown.

BIN
Assets/Art/UI/logo_grasscutter.png (Stored with Git LFS)

Binary file not shown.

View File

@ -209,7 +209,7 @@ namespace GrassCutter.EditorTools
gb.center = new Vector3(0f, 0f, 3.2f); gb.halfSize = new Vector2(1.7f, 3.4f);
}
// the unloading yard: packed earth at the foot of the ramp where machines tip what they've cut, bays marked with logs
// the unloading yard: packed earth at the foot of the ramp where machines tip what they've cut
var pad = new GameObject("UnloadYard");
pad.transform.SetParent(rig, false);
pad.transform.position = new Vector3(0f, GameDefs.WaterY, -20f);
@ -222,18 +222,6 @@ namespace GrassCutter.EditorTools
slab.transform.localScale = new Vector3(18f, 0.1f, 16f);
slab.GetComponent<Renderer>().sharedMaterial = Mat("M_Yard");
slab.isStatic = true;
for (int i = -2; i <= 2; i++)
{
if (i == 0) continue;
var line = GameObject.CreatePrimitive(PrimitiveType.Cube);
line.name = "BayLine";
Object.DestroyImmediate(line.GetComponent<Collider>());
line.transform.SetParent(pad.transform, false);
line.transform.localPosition = new Vector3(i * 2.6f, 0.05f, -1.0f);
line.transform.localScale = new Vector3(0.22f, 0.14f, 8f);
line.GetComponent<Renderer>().sharedMaterial = Mat("M_Timber");
line.isStatic = true;
}
// no shed at the base: bought and called machines park on the yard by the dock (garages players build keep theirs)
@ -365,6 +353,15 @@ namespace GrassCutter.EditorTools
var go = Place(model, pos, yaw, rig);
if (!go) return;
go.transform.localScale *= scale;
// pack props are not all pivoted at their base (the hay bale sits at its middle): stand the lowest point on the floor
var rs = go.GetComponentsInChildren<Renderer>();
if (rs.Length > 0)
{
var b = rs[0].bounds;
foreach (var r in rs) b.Encapsulate(r.bounds);
float sink = pos.y - b.min.y;
if (sink > 0.01f) go.transform.position += Vector3.up * sink;
}
SolidAt("Solid", new Vector3(0f, height * 0.5f, 0f), new Vector3(size, height, size), go.transform);
Blocker(go, Vector3.zero, new Vector2(size + 0.4f, size + 0.4f));
if (!lamp) return;

View File

@ -1,5 +1,58 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &409071045743709538
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5456911402751827933}
- component: {fileID: 3202088512133634808}
m_Layer: 13
m_Name: Post
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &5456911402751827933
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 409071045743709538}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -1.3506, y: 0.85920006, z: 1.7890002}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 6080256564837846337}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!65 &3202088512133634808
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 409071045743709538}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 0.8292, y: 1.7184001, z: 0.25}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &574139940314412545
GameObject:
m_ObjectHideFlags: 0
@ -148,9 +201,9 @@ Transform:
- {fileID: 1108610811231582257}
- {fileID: 9079409668988869866}
- {fileID: 53782875249114572}
- {fileID: 1039634465674125738}
- {fileID: 1702508444487230337}
- {fileID: 8448626435206622961}
- {fileID: 7079769537369895109}
- {fileID: 6857051631880245469}
- {fileID: 5456911402751827933}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &6163206358755032998
@ -333,59 +386,6 @@ BoxCollider:
serializedVersion: 3
m_Size: {x: 8.3328, y: 1.98, z: 0.25}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &3289296381907541055
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8448626435206622961}
- component: {fileID: 7258992790696564151}
m_Layer: 13
m_Name: Post
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &8448626435206622961
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3289296381907541055}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -1.3506, y: 0.85920006, z: 1.7890002}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 6080256564837846337}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!65 &7258992790696564151
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3289296381907541055}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 0.8292, y: 1.7184001, z: 0.25}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &3412420988562324392
GameObject:
m_ObjectHideFlags: 0
@ -439,7 +439,7 @@ BoxCollider:
serializedVersion: 3
m_Size: {x: 0.5279998, y: 1.7184001, z: 0.25}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &3741207847753897633
--- !u!1 &4019366694137688275
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
@ -447,8 +447,8 @@ GameObject:
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1039634465674125738}
- component: {fileID: 2793601819114825514}
- component: {fileID: 6857051631880245469}
- component: {fileID: 1059624524526610825}
m_Layer: 13
m_Name: Post
m_TagString: Untagged
@ -456,28 +456,28 @@ GameObject:
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1039634465674125738
--- !u!4 &6857051631880245469
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3741207847753897633}
m_GameObject: {fileID: 4019366694137688275}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -3.9024, y: 0.85920006, z: 1.7890002}
m_LocalPosition: {x: 1.3506, y: 0.85920006, z: 1.7890002}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 6080256564837846337}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!65 &2793601819114825514
--- !u!65 &1059624524526610825
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3741207847753897633}
m_GameObject: {fileID: 4019366694137688275}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
@ -490,7 +490,7 @@ BoxCollider:
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 0.5279998, y: 1.7184001, z: 0.25}
m_Size: {x: 0.8292, y: 1.7184001, z: 0.25}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &4756717939176039937
GameObject:
@ -545,7 +545,7 @@ BoxCollider:
serializedVersion: 3
m_Size: {x: 8.3328, y: 0.2615999, z: 0.25}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &5334199204192716337
--- !u!1 &7708810605813070895
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
@ -553,8 +553,8 @@ GameObject:
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1702508444487230337}
- component: {fileID: 664005254284947419}
- component: {fileID: 7079769537369895109}
- component: {fileID: 9064368887260361192}
m_Layer: 13
m_Name: Post
m_TagString: Untagged
@ -562,28 +562,28 @@ GameObject:
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1702508444487230337
--- !u!4 &7079769537369895109
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5334199204192716337}
m_GameObject: {fileID: 7708810605813070895}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 1.3506, y: 0.85920006, z: 1.7890002}
m_LocalPosition: {x: -3.9024, y: 0.85920006, z: 1.7890002}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 6080256564837846337}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!65 &664005254284947419
--- !u!65 &9064368887260361192
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5334199204192716337}
m_GameObject: {fileID: 7708810605813070895}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
@ -596,7 +596,7 @@ BoxCollider:
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 0.8292, y: 1.7184001, z: 0.25}
m_Size: {x: 0.5279998, y: 1.7184001, z: 0.25}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1001 &889884445882827272
PrefabInstance:

View File

@ -143,7 +143,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 7bf64db802ef6514b9f51564dfd066a2, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::GrassCutter.RobotDock
ShowTopMostFoldoutHeaderGroup: 0
ShowTopMostFoldoutHeaderGroup: 1
bot: {fileID: 3485286928380051316}
--- !u!1001 &884586802284885087
PrefabInstance:

View File

@ -35,9 +35,9 @@ Transform:
- {fileID: 4246924006967416419}
- {fileID: 4846672235693918781}
- {fileID: 5795024438146558760}
- {fileID: 7317380495254252875}
- {fileID: 98854460548414821}
- {fileID: 7617557710178588696}
- {fileID: 5997051366575794423}
- {fileID: 1515585914810031869}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &9073465022817526665
@ -96,9 +96,13 @@ MonoBehaviour:
ShowTopMostFoldoutHeaderGroup: 1
loco: {fileID: 5795024438146558760}
wagons:
- {fileID: 7317380495254252875}
- {fileID: 98854460548414821}
- {fileID: 7617557710178588696}
- {fileID: 5997051366575794423}
- {fileID: 1515585914810031869}
Bins:
UpdateTraits:
MinSecondsBetweenUpdates: 0
MaxSecondsBetweenUpdates: 0
--- !u!1 &5790013854673530677
GameObject:
m_ObjectHideFlags: 0
@ -254,6 +258,108 @@ Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
m_PrefabInstance: {fileID: 492452458267548302}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &1333848485600639254
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 1336629304857867531}
m_Modifications:
- target: {fileID: -9134265257723912743, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -8824457299424515866, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.w
value: -0.000000030908616
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.x
value: -0.00000003090862
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.y
value: 0.7071067
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.z
value: -0.7071068
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -7228395619467320998, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -5007853481358164758, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -1695386897620489773, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 612376956930680360, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Name
value: SM_TrainWagon
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 6294438985688766379, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 8300547364818210869, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 8624019241307441798, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
--- !u!4 &1515585914810031869 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
m_PrefabInstance: {fileID: 1333848485600639254}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &4430033088543879560
PrefabInstance:
m_ObjectHideFlags: 0
@ -320,6 +426,108 @@ Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 1e46a0e73c799e044adc05ec72b8e0cb, type: 3}
m_PrefabInstance: {fileID: 4430033088543879560}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &6103352816833138460
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 1336629304857867531}
m_Modifications:
- target: {fileID: -9134265257723912743, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -8824457299424515866, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.w
value: -0.000000030908616
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.x
value: -0.00000003090862
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.y
value: 0.7071067
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.z
value: -0.7071068
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -7228395619467320998, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -5007853481358164758, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -1695386897620489773, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 612376956930680360, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Name
value: SM_TrainWagon
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 6294438985688766379, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 8300547364818210869, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 8624019241307441798, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
--- !u!4 &5997051366575794423 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
m_PrefabInstance: {fileID: 6103352816833138460}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &6333936261267688643
PrefabInstance:
m_ObjectHideFlags: 0
@ -426,207 +634,3 @@ Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
m_PrefabInstance: {fileID: 6333936261267688643}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &7063394328667556512
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 1336629304857867531}
m_Modifications:
- target: {fileID: -9134265257723912743, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -8824457299424515866, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.w
value: -0.000000030908616
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.x
value: -0.00000003090862
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.y
value: 0.7071067
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.z
value: -0.7071068
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -7228395619467320998, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -5007853481358164758, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -1695386897620489773, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 612376956930680360, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Name
value: SM_TrainWagon
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 6294438985688766379, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 8300547364818210869, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 8624019241307441798, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
--- !u!4 &7317380495254252875 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
m_PrefabInstance: {fileID: 7063394328667556512}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &7943708855270572019
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 1336629304857867531}
m_Modifications:
- target: {fileID: -9134265257723912743, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -8824457299424515866, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.w
value: -0.000000030908616
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.x
value: -0.00000003090862
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.y
value: 0.7071067
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.z
value: -0.7071068
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -7228395619467320998, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -5007853481358164758, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -1695386897620489773, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 612376956930680360, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Name
value: SM_TrainWagon
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 6294438985688766379, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 8300547364818210869, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 8624019241307441798, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
--- !u!4 &7617557710178588696 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
m_PrefabInstance: {fileID: 7943708855270572019}
m_PrefabAsset: {fileID: 0}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,47 @@
using System.Collections;
using UnityEngine;
namespace GrassCutter
{
public partial class DemoBot
{
/// <summary>
/// -demofix: close looks at the base furniture people asked about: a deck ladder where it meets the railing, the hay
/// bale on the deck, the foot of the loading ramp and the back of the upgrade console.
/// </summary>
IEnumerator FixLook()
{
BotCapture.From = null;
yield return new WaitForSeconds(2f);
TeamState.DeleteSave();
NetSession.Instance.HostLocal();
while (!Me || !Ts) yield return null;
yield return new WaitForSeconds(4f);
Me.SetFlying(true);
var spots = new (string name, Vector3 eye, Vector3 at)[]
{
("fix_ladder_a", new Vector3(-1.5f + 0.0f, 1.2f, 0f), new Vector3(-1.5f, 0.2f, 9f)),
("fix_ladder_b", new Vector3(-0.5f, 0.6f, 12f), new Vector3(-1.5f, 0.3f, 9f)),
("fix_ladder_c", new Vector3(-3.5f, 1.8f, 11.5f), new Vector3(-1.5f, 0f, 9f)),
("fix_ladder_d", new Vector3(-1.5f, -0.6f, 10.5f), new Vector3(-1.5f, 0.9f, 9f)),
("fix_hay", new Vector3(5.5f, 1.4f, -5.2f), new Vector3(7.8f, 0.2f, -7.6f)),
("fix_hay_side", new Vector3(10.5f, 0.3f, -7.6f), new Vector3(7.8f, 0.1f, -7.6f)),
("fix_yard", new Vector3(0f, 2.2f, -9f), new Vector3(0f, -1.2f, -20f)),
("fix_yard_low", new Vector3(-6f, 0f, -14f), new Vector3(0f, -1.2f, -20f)),
("fix_console_back", new Vector3(8.0f, 1.6f, -1.5f), new Vector3(6.2f, 1.4f, -1.5f)),
("fix_console_back2", new Vector3(7.8f, 1.9f, -0.2f), new Vector3(6.2f, 1.5f, -1.5f)),
("fix_console_front", new Vector3(4.4f, 1.6f, -1.5f), new Vector3(6.2f, 1.3f, -1.5f)),
};
foreach (var s in spots)
{
Me.Teleport(s.eye - Vector3.up * 1.6f);
yield return new WaitForSeconds(0.6f);
Me.LookAt(s.at);
yield return new WaitForSeconds(0.6f);
yield return Shot(s.name);
}
Log("demofix done");
Application.Quit();
}
}
}

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 42903a8b933eb834d9a862a4316236e6

View File

@ -3091,6 +3091,11 @@ namespace GrassCutter
yield return EndingDemo();
yield break;
}
if (CommandLine.Has("-demofix"))
{
yield return FixLook();
yield break;
}
if (CommandLine.Has("-demoend"))
{
yield return DemoEndDemo();

View File

@ -118,6 +118,9 @@ namespace GrassCutter
bool _swimming;
float _climbT = -1f;
Vector3 _climbFrom, _climbTo;
/// <summary>Climbing up onto the deck goes over its railing (1.05 m), not through it.</summary>
bool _climbOver;
const float RailClear = 1.2f;
float _jumpTapAt = -9f, _dashAt = -9f;
Vehicle _vehicle;
/// <summary>The train whose cab this player rides in, and the lever as last sent.</summary>
@ -538,8 +541,9 @@ namespace GrassCutter
if (!Physics.Raycast(from, -up, out var hit, 2.4f, (1 << Layers.Default) | (1 << Layers.Build) | (1 << Layers.Vehicle), QueryTriggerInteraction.Ignore)
|| Vector3.Dot(hit.normal, up) < 0.6f || Vector3.Dot(hit.point - transform.position, up) < 0.55f) return false;
_climbFrom = transform.position;
_climbTo = hit.point + up * 0.05f + fwd * 0.25f;
_climbTo = hit.point + up * 0.05f + fwd * 0.45f;
_climbT = 0f;
_climbOver = true;
Body.enabled = false;
Sfx.Play("splash_small", 0.5f, 1.3f);
Sfx.Play("jump", 0.5f, 0.85f);
@ -562,6 +566,7 @@ namespace GrassCutter
_climbFrom = transform.position;
_climbTo = to + up * 0.05f;
_climbT = 0f;
_climbOver = false;
Body.enabled = false;
Sfx.Play("jump", 0.55f, 1f);
Avatar?.Squash(0.15f);
@ -570,12 +575,26 @@ namespace GrassCutter
void Climb()
{
_climbT += Time.deltaTime / 0.55f;
_climbT += Time.deltaTime / (_climbOver ? 0.7f : 0.55f);
float k = Mathf.Clamp01(_climbT);
if (_climbOver)
{
// up from the meadow: straight up the side until the feet clear the railing, over it, then down onto the deck
var up = transform.up;
float rise = Vector3.Dot(_climbTo - _climbFrom, up) + RailClear;
var top = _climbFrom + up * rise;
var over = _climbTo + up * RailClear;
if (k < 0.45f) transform.position = Vector3.Lerp(_climbFrom, top, Easing.Apply(Ease.OutQuad, k / 0.45f));
else if (k < 0.8f) transform.position = Vector3.Lerp(top, over, Easing.Apply(Ease.InOutQuad, (k - 0.45f) / 0.35f));
else transform.position = Vector3.Lerp(over, _climbTo, Easing.Apply(Ease.InQuad, (k - 0.8f) / 0.2f));
}
else
{
var mid = Vector3.Lerp(_climbFrom, _climbTo, 0.5f) + transform.up * 1.4f;
var a = Vector3.Lerp(_climbFrom, mid, k);
var b = Vector3.Lerp(mid, _climbTo, k);
transform.position = Vector3.Lerp(a, b, k);
}
if (k >= 1f)
{
_climbT = -1f;

View File

@ -1,64 +1,6 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-4564436904202363824
MonoBehaviour:
m_ObjectHideFlags: 3
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 97c23e3b12dc18c42a140437e53d3951, type: 3}
m_Name: Tonemapping
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Runtime::UnityEngine.Rendering.Universal.Tonemapping
active: 1
mode:
m_OverrideState: 1
m_Value: 1
neutralHDRRangeReductionMode:
m_OverrideState: 1
m_Value: 2
acesPreset:
m_OverrideState: 1
m_Value: 3
hueShiftAmount:
m_OverrideState: 1
m_Value: 0
detectPaperWhite:
m_OverrideState: 1
m_Value: 0
paperWhite:
m_OverrideState: 1
m_Value: 300
detectBrightnessLimits:
m_OverrideState: 1
m_Value: 1
minNits:
m_OverrideState: 1
m_Value: 0.005
maxNits:
m_OverrideState: 1
m_Value: 1000
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d7fd9488000d3734a9e00ee676215985, type: 3}
m_Name: MeadowPost
m_EditorClassIdentifier: Unity.RenderPipelines.Core.Runtime::UnityEngine.Rendering.VolumeProfile
components:
- {fileID: 6960448582397001119}
- {fileID: -4564436904202363824}
- {fileID: 6288530785358815799}
- {fileID: 4060017533126946622}
- {fileID: 8636235862445111563}
--- !u!114 &4060017533126946622
--- !u!114 &-7807794487406278988
MonoBehaviour:
m_ObjectHideFlags: 3
m_CorrespondingSourceObject: {fileID: 0}
@ -86,35 +28,25 @@ MonoBehaviour:
rounded:
m_OverrideState: 1
m_Value: 0
--- !u!114 &6288530785358815799
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 3
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 66f335fb1ffd8684294ad653bf1c7564, type: 3}
m_Name: ColorAdjustments
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Runtime::UnityEngine.Rendering.Universal.ColorAdjustments
active: 1
postExposure:
m_OverrideState: 1
m_Value: 0.15
contrast:
m_OverrideState: 1
m_Value: 16
colorFilter:
m_OverrideState: 1
m_Value: {r: 1, g: 1, b: 1, a: 1}
hueShift:
m_OverrideState: 1
m_Value: 0
saturation:
m_OverrideState: 1
m_Value: 12
--- !u!114 &6960448582397001119
m_Script: {fileID: 11500000, guid: d7fd9488000d3734a9e00ee676215985, type: 3}
m_Name: MeadowPost
m_EditorClassIdentifier: Unity.RenderPipelines.Core.Runtime::UnityEngine.Rendering.VolumeProfile
components:
- {fileID: 573892585795089527}
- {fileID: 8566174107737367540}
- {fileID: 8785192645970852607}
- {fileID: -7807794487406278988}
- {fileID: 1448850160265645311}
--- !u!114 &573892585795089527
MonoBehaviour:
m_ObjectHideFlags: 3
m_CorrespondingSourceObject: {fileID: 0}
@ -164,7 +96,7 @@ MonoBehaviour:
dirtIntensity:
m_OverrideState: 1
m_Value: 0
--- !u!114 &8636235862445111563
--- !u!114 &1448850160265645311
MonoBehaviour:
m_ObjectHideFlags: 3
m_CorrespondingSourceObject: {fileID: 0}
@ -183,3 +115,71 @@ MonoBehaviour:
tint:
m_OverrideState: 1
m_Value: 0
--- !u!114 &8566174107737367540
MonoBehaviour:
m_ObjectHideFlags: 3
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 97c23e3b12dc18c42a140437e53d3951, type: 3}
m_Name: Tonemapping
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Runtime::UnityEngine.Rendering.Universal.Tonemapping
active: 1
mode:
m_OverrideState: 1
m_Value: 1
neutralHDRRangeReductionMode:
m_OverrideState: 1
m_Value: 2
acesPreset:
m_OverrideState: 1
m_Value: 3
hueShiftAmount:
m_OverrideState: 1
m_Value: 0
detectPaperWhite:
m_OverrideState: 1
m_Value: 0
paperWhite:
m_OverrideState: 1
m_Value: 300
detectBrightnessLimits:
m_OverrideState: 1
m_Value: 1
minNits:
m_OverrideState: 1
m_Value: 0.005
maxNits:
m_OverrideState: 1
m_Value: 1000
--- !u!114 &8785192645970852607
MonoBehaviour:
m_ObjectHideFlags: 3
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 66f335fb1ffd8684294ad653bf1c7564, type: 3}
m_Name: ColorAdjustments
m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Runtime::UnityEngine.Rendering.Universal.ColorAdjustments
active: 1
postExposure:
m_OverrideState: 1
m_Value: 0.15
contrast:
m_OverrideState: 1
m_Value: 16
colorFilter:
m_OverrideState: 1
m_Value: {r: 1, g: 1, b: 1, a: 1}
hueShift:
m_OverrideState: 1
m_Value: 0
saturation:
m_OverrideState: 1
m_Value: 12

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Docs/Steam/capsules/library_logo_1280w.png (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Docs/Steam/source/logo_clean.png (Stored with Git LFS)

Binary file not shown.

97
Tools/ui/logo_t.py Normal file
View File

@ -0,0 +1,97 @@
"""Replace the scythe standing in for the first T of CUTTERS with a copy of the second T.
py -I Tools/ui/logo_t.py in.png out.png [preview.png]
The second T (white letter) is copied left by the letter pitch of the word, given a dark outline as thick as the
rest of the logo's, and the scythe pixels (orange handle, grey head, pale blade) are cleared or blacked in.
"""
import sys
import numpy as np
from PIL import Image
from scipy import ndimage as nd
src, dst = sys.argv[1], sys.argv[2]
im = np.array(Image.open(src).convert("RGBA")).astype(np.int32)
H, W = im.shape[:2]
r, g, b, a = im[..., 0], im[..., 1], im[..., 2], im[..., 3]
mx, mn = np.maximum(np.maximum(r, g), b), np.minimum(np.minimum(r, g), b)
solid = a > 128
white = solid & (mn > 200) & (mx - mn < 30)
dark = solid & (mx < 90)
orange = solid & (r > 150) & (r - b > 80) & (g < 200)
grey = solid & (mx - mn < 35) & (mn > 100) & (mn <= 215)
# letters: big white components. The middle row (CUTTERS) is the band holding the orange handle.
lab, n = nd.label(white)
objs = nd.find_objects(lab)
sizes = nd.sum(white, lab, range(1, n + 1))
ys, xs = np.nonzero(orange)
hx0, hx1, hy0, hy1 = xs.min(), xs.max(), ys.min(), ys.max()
row_mid = (hy0 + hy1) / 2
letters = []
for i, sl in enumerate(objs):
if sizes[i] < 0.002 * H * W:
continue
y0, y1, x0, x1 = sl[0].start, sl[0].stop, sl[1].start, sl[1].stop
if y0 < row_mid < y1:
letters.append((x0, i + 1, x1, y0, y1))
letters.sort()
print("row letters (x0..x1):", [(l[0], l[2]) for l in letters])
# the first letter right of the handle is the second T, the one after it is E; the one left of it is U
right = [l for l in letters if l[0] > hx0]
left = [l for l in letters if l[2] < hx0 + 5]
t2, e = right[0], right[1]
u = left[-1]
# T1 goes halfway between U and T2 so both gaps match
gap_te = e[0] - t2[2]
w_t = t2[2] - t2[0]
x_new = int(round((u[2] + t2[0] - w_t) / 2))
dx = x_new - t2[0]
print(f"U ends {u[2]}, T2 {t2[0]}..{t2[2]}, E starts {e[0]}; new T at {x_new} (dx {dx})")
t2mask = lab == t2[1]
newT = np.zeros_like(t2mask)
if dx < 0:
newT[:, :W + dx] = t2mask[:, -dx:]
# outline thickness: distance from the T2 white to the transparent outside, measured across its stem's left side
dist_out = nd.distance_transform_edt(~solid)
outline = int(np.percentile(nd.distance_transform_edt(~t2mask)[(solid) & (~white) & (nd.binary_dilation(t2mask, iterations=40)) & (~nd.binary_dilation(t2mask, iterations=3))], 95))
outline = max(8, min(outline, 60))
print("outline px", outline)
# the scythe: everything light or coloured between U and T2, from the top of the handle to its foot, that is not one of the letters
box = np.zeros_like(solid)
box[max(0, hy0 - 15):hy1 + 15, u[2] - 10:t2[0] + 30] = True
scythe = box & solid & ~dark & ~np.isin(lab, [u[1], t2[1]])
scythe = nd.binary_dilation(scythe, iterations=3) & solid & box & ~np.isin(lab, [u[1], t2[1]])
big = np.isin(lab, [l[1] for l in letters])
out = im.copy()
# what the outline of everything else covers stays dark, the rest of the scythe goes transparent
keep_dark = nd.distance_transform_edt(~(white & ~scythe)) <= outline + 1
ring = nd.distance_transform_edt(~newT) <= outline
dark_col = np.median(im[dark & ~scythe][:, :3], axis=0).astype(np.int32)
clear = scythe & ~keep_dark & ~ring
out[clear] = 0
# gaps the handle left inside the word (between it and T2) are closed up: transparent pockets in the box that the filled silhouette surrounds
pocket = box & (a < 250) & nd.binary_fill_holes(solid | ring)
# inside the box every solid pixel off the letters (and their soft edges) becomes plain outline: no ghost of the handle's edge
letters_soft = nd.binary_dilation(np.isin(lab, [u[1], t2[1]]), iterations=1) | nd.binary_dilation(newT, iterations=2)
fill = (scythe & (keep_dark | ring)) | (ring & ~solid) | pocket | (box & (solid | ring) & ~letters_soft & (keep_dark | ring))
out[fill, :3] = dark_col
out[fill, 3] = 255
# the letter itself: the T2 pixels copied across with their shading
for c in range(4):
plane = out[..., c]
shifted = np.zeros_like(plane)
shifted[:, :W + dx] = im[:, -dx:, c]
soft = nd.binary_dilation(newT, iterations=2)
plane[soft] = shifted[soft]
# soften the outer edge of the new outline a touch
edge = ring & ~nd.binary_erosion(ring, iterations=1) & ~solid
out[edge, 3] = 200
Image.fromarray(out.clip(0, 255).astype(np.uint8)).save(dst)
if len(sys.argv) > 3:
prev = Image.new("RGBA", (W, H), (40, 60, 80, 255))
prev.alpha_composite(Image.fromarray(out.clip(0, 255).astype(np.uint8)))
prev.convert("RGB").save(sys.argv[3])
print("saved", dst)