Train and autopilot tried in the game: prefab, wagons upright, no circling

The train piece is in the scene's prefab list, its icon is made, and the
wagons keep the axis turn their FBX root brings. The autopilot gives up on a
point it has circled for seven seconds without getting closer, and takes sharp
turns close by slowly. -demoauto: on the easy planet the tractor unloads and
goes back to mowing, and the train lays 826 m of track to Timothy, closes 532
sectors and earns about 13.7k by the time its reach is mown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
NiemandKG
2026-11-10 12:17:41 +06:00
parent df55b5e417
commit 29485df9e1
19 changed files with 6111 additions and 4879 deletions

View File

@ -0,0 +1,116 @@
fileFormatVersion: 2
guid: 902fa50fb1d87274c8688c3d1df26fa9
ModelImporter:
serializedVersion: 24600
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 2
materialName: 1
materialSearch: 2
materialLocation: 1
searchTexturesGlobally: 0
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 0
motionNodeName:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
preBakeConvexCollisionMesh: 0
preBakeTriangleCollisionMesh: 0
importPhysicalCameras: 1
importVisibility: 0
importBlendShapes: 1
importCameras: 0
importLights: 0
nodeNameCollisionStrategy: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 1
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
optimizeBones: 1
generateMeshLods: 0
meshLodGenerationFlags: 0
maximumMeshLod: -1
importUVs: -1
importVertexColors: 1
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
strictVertexDataChecks: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
calculateBlendshapeNormalsDeltaFromImportedNormals: 0
referencedClips: []
importAnimation: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 0
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
importBlendShapeDeformPercent: 1
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,116 @@
fileFormatVersion: 2
guid: 1e46a0e73c799e044adc05ec72b8e0cb
ModelImporter:
serializedVersion: 24600
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 2
materialName: 1
materialSearch: 2
materialLocation: 1
searchTexturesGlobally: 0
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 0
motionNodeName:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
preBakeConvexCollisionMesh: 0
preBakeTriangleCollisionMesh: 0
importPhysicalCameras: 1
importVisibility: 0
importBlendShapes: 1
importCameras: 0
importLights: 0
nodeNameCollisionStrategy: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 1
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
optimizeBones: 1
generateMeshLods: 0
meshLodGenerationFlags: 0
maximumMeshLod: -1
importUVs: -1
importVertexColors: 1
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
strictVertexDataChecks: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
calculateBlendshapeNormalsDeltaFromImportedNormals: 0
referencedClips: []
importAnimation: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 0
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
importBlendShapeDeformPercent: 1
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,116 @@
fileFormatVersion: 2
guid: 2f62f48f443d0554db64b003366fd8d8
ModelImporter:
serializedVersion: 24600
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 2
materialName: 1
materialSearch: 2
materialLocation: 1
searchTexturesGlobally: 0
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 0
motionNodeName:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
preBakeConvexCollisionMesh: 0
preBakeTriangleCollisionMesh: 0
importPhysicalCameras: 1
importVisibility: 0
importBlendShapes: 1
importCameras: 0
importLights: 0
nodeNameCollisionStrategy: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 1
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
optimizeBones: 1
generateMeshLods: 0
meshLodGenerationFlags: 0
maximumMeshLod: -1
importUVs: -1
importVertexColors: 1
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
strictVertexDataChecks: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
calculateBlendshapeNormalsDeltaFromImportedNormals: 0
referencedClips: []
importAnimation: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 0
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
importBlendShapeDeformPercent: 1
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Art/UI/icon_piece_train.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,119 @@
fileFormatVersion: 2
guid: ca877d838ad57ca429f17383a9d577bf
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationMethod: 0
spriteTessellationDetail: -1
spriteGeometrySubdivision: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 2
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -289,3 +289,8 @@ MonoBehaviour:
SourcePrefabToOverride: {fileID: 0}
SourceHashToOverride: 0
OverridingTargetPrefab: {fileID: 0}
- Override: 0
Prefab: {fileID: 1941329713167816953, guid: 6d6f2a9a4d05cf5478f7f73bfb557b7e, type: 3}
SourcePrefabToOverride: {fileID: 0}
SourceHashToOverride: 0
OverridingTargetPrefab: {fileID: 0}

View File

@ -274,3 +274,8 @@ MonoBehaviour:
SourcePrefabToOverride: {fileID: 0}
SourceHashToOverride: 0
OverridingTargetPrefab: {fileID: 0}
- Override: 0
Prefab: {fileID: 1941329713167816953, guid: 6d6f2a9a4d05cf5478f7f73bfb557b7e, type: 3}
SourcePrefabToOverride: {fileID: 0}
SourceHashToOverride: 0
OverridingTargetPrefab: {fileID: 0}

View File

@ -0,0 +1,632 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1941329713167816953
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1336629304857867531}
- component: {fileID: 9073465022817526665}
- component: {fileID: 1858062030592709069}
- component: {fileID: 3328596731732969331}
m_Layer: 13
m_Name: Piece_Train
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1336629304857867531
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1941329713167816953}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 4246924006967416419}
- {fileID: 4846672235693918781}
- {fileID: 5795024438146558760}
- {fileID: 7317380495254252875}
- {fileID: 98854460548414821}
- {fileID: 7617557710178588696}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &9073465022817526665
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1941329713167816953}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d5a57f767e5e46a458fc5d3c628d0cbb, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.Netcode.Runtime::Unity.Netcode.NetworkObject
GlobalObjectIdHash: 0
InScenePlacedSourceGlobalObjectIdHash: 0
m_InScenePlacedDisabledByDefault: 0
DeferredDespawnTick: 0
Ownership: 1
AlwaysReplicateAsRoot: 0
SynchronizeTransform: 1
m_InScenePlaced: 0
ActiveSceneSynchronization: 0
SceneMigrationSynchronization: 1
SpawnWithObservers: 1
DontDestroyWithOwner: 1
AutoObjectParentSync: 1
SyncOwnerTransformWhenParented: 1
AllowOwnerToParent: 0
--- !u!114 &1858062030592709069
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1941329713167816953}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b8baa8ad05bf317418f3c510defc8b7e, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::GrassCutter.BuildPiece
ShowTopMostFoldoutHeaderGroup: 1
piece: 40
--- !u!114 &3328596731732969331
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1941329713167816953}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b769e94835e00e2489dd6274ee0ecb85, type: 3}
m_Name:
m_EditorClassIdentifier: Assembly-CSharp::GrassCutter.Train
ShowTopMostFoldoutHeaderGroup: 1
loco: {fileID: 5795024438146558760}
wagons:
- {fileID: 7317380495254252875}
- {fileID: 98854460548414821}
- {fileID: 7617557710178588696}
--- !u!1 &5790013854673530677
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4846672235693918781}
- component: {fileID: 3821202143170985160}
m_Layer: 13
m_Name: Solid
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4846672235693918781
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5790013854673530677}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -0.14499998, y: 1.6299999, z: -0.06250048}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1336629304857867531}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!65 &3821202143170985160
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5790013854673530677}
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: 4.1500006, y: 3.2600007, z: 7.965}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1001 &492452458267548302
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 &98854460548414821 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
m_PrefabInstance: {fileID: 492452458267548302}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &4430033088543879560
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 1336629304857867531}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: 1e46a0e73c799e044adc05ec72b8e0cb, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 1e46a0e73c799e044adc05ec72b8e0cb, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 1e46a0e73c799e044adc05ec72b8e0cb, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 1e46a0e73c799e044adc05ec72b8e0cb, type: 3}
propertyPath: m_LocalRotation.w
value: -0.000000030908616
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 1e46a0e73c799e044adc05ec72b8e0cb, type: 3}
propertyPath: m_LocalRotation.x
value: -0.00000003090862
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 1e46a0e73c799e044adc05ec72b8e0cb, type: 3}
propertyPath: m_LocalRotation.y
value: 0.7071067
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 1e46a0e73c799e044adc05ec72b8e0cb, type: 3}
propertyPath: m_LocalRotation.z
value: -0.7071068
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 1e46a0e73c799e044adc05ec72b8e0cb, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 1e46a0e73c799e044adc05ec72b8e0cb, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 1e46a0e73c799e044adc05ec72b8e0cb, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 1e46a0e73c799e044adc05ec72b8e0cb, type: 3}
propertyPath: m_Name
value: SM_TrainStation
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 1e46a0e73c799e044adc05ec72b8e0cb, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 1e46a0e73c799e044adc05ec72b8e0cb, type: 3}
--- !u!4 &4246924006967416419 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 1e46a0e73c799e044adc05ec72b8e0cb, type: 3}
m_PrefabInstance: {fileID: 4430033088543879560}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &6333936261267688643
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 1336629304857867531}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
propertyPath: m_LocalRotation.w
value: -0.00000004371139
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
propertyPath: m_LocalRotation.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8542976072246744153, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -7664359673780815936, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -6489654526442927661, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -6384508761493847505, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -801130018801512405, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 635547659545568360, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
propertyPath: m_Name
value: SM_TrainLoco
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 4544976401657630711, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 4666820938459051904, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 6750527625833912771, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 7450307759437484948, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
--- !u!4 &5795024438146558760 stripped
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}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 6d6f2a9a4d05cf5478f7f73bfb557b7e
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -379,6 +379,7 @@ MonoBehaviour:
- {fileID: 2800000, guid: 1cb2684a0a4bc4f4ebba61e2dac0a455, type: 3}
- {fileID: 2800000, guid: fe17ef0b1bc0a434bb867b81345623fa, type: 3}
- {fileID: 2800000, guid: 3c654cd39c0bdd2449bd15bdbd2671f2, type: 3}
- {fileID: 2800000, guid: ca877d838ad57ca429f17383a9d577bf, type: 3}
- {fileID: 2800000, guid: 7a5b37260610a964bb7520159c8b89ea, type: 3}
- {fileID: 2800000, guid: b77f8d4cfcd652e44a20e3e5154d5063, type: 3}
- {fileID: 2800000, guid: 2f7fcf502cba17c4e91c29213211cc6f, type: 3}
@ -769,6 +770,9 @@ MonoBehaviour:
- {fileID: 919132149155446097, guid: 63791d9a2a898ac43bdd00dcb0945a3c, type: 3}
- {fileID: 919132149155446097, guid: 60d8a23e398f87e4eae9fa6813611952, type: 3}
- {fileID: 919132149155446097, guid: 8f8842fc3c81fbd4fbdaa35ad6dc9f13, type: 3}
- {fileID: 919132149155446097, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
- {fileID: 919132149155446097, guid: 1e46a0e73c799e044adc05ec72b8e0cb, type: 3}
- {fileID: 919132149155446097, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
- {fileID: 919132149155446097, guid: ceb577f4eef43674f8156fd1a6a3a584, type: 3}
- {fileID: 919132149155446097, guid: 9f9dab16ce43c024d846aef44340e3bd, type: 3}
- {fileID: 919132149155446097, guid: cba8ce26cd97bb940a6920692d3bab5f, type: 3}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,77 @@
using System.Collections;
using UnityEngine;
namespace GrassCutter
{
public partial class DemoBot
{
/// <summary>
/// -demoauto [-difficulty 2]: a fresh planet; a mowing tractor on autopilot with its hopper nearly full (it should go
/// and unload, then come back to mow), and a grass train laying its track to the next station and starting to run.
/// Time goes six times as fast. Logs both every ten seconds and takes pictures of them.
/// </summary>
IEnumerator AutoDemo()
{
TeamState.DeleteSave();
yield return new WaitForSeconds(2f);
NetSession.Instance.HostLocal();
while (!Me || !Ts) yield return null;
yield return new WaitForSeconds(3f);
Clock(11f);
Log($"{Difficulties.Name(Difficulties.Current)} gen {Difficulties.Gen}: radius {Planet.Radius:0} m, sector {GameDefs.SectorArea:0.0} m², planet {GameDefs.PlanetArea / 1e6:0.00} km², wire {Ts.Size.Value}");
Log($"perks {Ts.Perks.Count} of {(int)PerkId.Count}, installs {TeamState.TotalInstalls}");
Ts.ServerSetMoney(200000d);
double before = Ts.Money.Value;
Ts.BuyPerkRpc((int)PerkId.BotReach);
yield return new WaitForSeconds(0.5f);
Log($"Long Leash bought: {before - Ts.Money.Value:0} paid, level {Ts.Level(PerkId.BotReach)}");
Quaternion Face(Vector3 p, Vector3 way) => Quaternion.LookRotation(Vector3.ProjectOnPlane(way, Planet.Up(p)), Planet.Up(p));
var tAt = Soil17(70f, 60f);
var tractor = Spawner.Instance.SpawnVehicle(VehicleKind.Tractor, Me.SaveId, tAt + Planet.Up(tAt) * 1.2f, Face(tAt, Vector3.right));
yield return new WaitForSeconds(1f);
if (!tractor) { Log("tractor NOT spawned"); yield break; }
before = Ts.Money.Value;
Ts.TuneVehicleRpc(tractor.NetworkObjectId, (byte)TuneId.Autopilot);
yield return new WaitForSeconds(0.5f);
Log($"autopilot bought for {before - Ts.Money.Value:0}: CanAuto {tractor.CanAuto}");
tractor.Tank.Value = tractor.Capacity - 25f;
tractor.ServerStartAuto(tractor.transform.position, tractor.transform.forward);
var sAt = Soil17(-40f, -70f);
var piece = Spawner.Instance.SpawnPiece(PieceId.Train, sAt, Face(sAt, Vector3.ProjectOnPlane(sAt - Planet.FromBase(0f, 0f) * Planet.Radius, Planet.Up(sAt))), sAt, true);
yield return new WaitForSeconds(1f);
var train = piece ? piece.GetComponent<Train>() : null;
Log($"train built: {(train ? "ok" : "MISSING")}");
Time.timeScale = 6f;
var start = tractor.transform.position;
double money = Ts.Money.Value;
for (int k = 1; k <= 18; k++)
{
yield return new WaitForSecondsRealtime(10f);
Log($"t+{k * 60} game s: earned {Ts.Money.Value - money:0}, closed {Ts.Closed.Value}");
Log($" tractor: {tractor.Job}, {GameDefs.Kilos(tractor.Tank.Value)} of {GameDefs.Kilos(tractor.Capacity)}, {Vector3.Distance(start, tractor.transform.position):0} m from start, speed {tractor.Body.linearVelocity.magnitude:0.0}, tilt {Vector3.Angle(tractor.transform.up, Planet.Up(tractor.transform.position)):0} deg");
if (train) Log($" train: {train.Prompt}");
if (k == 3 || k == 12)
{
Time.timeScale = 1f;
var tp = tractor.transform.position;
var up = Planet.Up(tp);
yield return Look($"auto{k:00}_tractor", tp + up * 9f + Vector3.ProjectOnPlane(Vector3.forward, up).normalized * -14f, tp, 0.3f);
if (train && train.loco)
{
var lp = train.loco.position;
var lu = Planet.Up(lp);
yield return Look($"auto{k:00}_train", lp + lu * 6f + Vector3.ProjectOnPlane(Vector3.right, lu).normalized * 12f, lp, 0.3f);
}
if (piece) yield return Look($"auto{k:00}_station", sAt + Planet.Up(sAt) * 10f - piece.transform.forward * 14f, sAt + piece.transform.forward * 10f, 0.3f);
Time.timeScale = 6f;
}
}
Time.timeScale = 1f;
Log("auto done");
Application.Quit();
}
}
}

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 4327551bd94af824da28a066f9d9012a

View File

@ -3013,6 +3013,11 @@ namespace GrassCutter
yield return Perf(int.Parse(perfSlot));
yield break;
}
if (CommandLine.Has("-demoauto"))
{
yield return AutoDemo();
yield break;
}
if (CommandLine.Has("-demobots"))
{
yield return Bots();

View File

@ -273,14 +273,18 @@ namespace GrassCutter
}
}
/// <summary>How each model stands in its own frame (an FBX with one root object brings its axis turn on that root).</summary>
readonly Dictionary<Transform, Quaternion> _rest = new Dictionary<Transform, Quaternion>();
void Place(Transform t, float d, bool onRails)
{
if (!t) return;
if (!_rest.TryGetValue(t, out var rest)) _rest[t] = rest = t.localRotation;
var p = Pos(d);
var up = Planet.Up(p);
var f = Vector3.ProjectOnPlane(Ahead(d), up);
if (f.sqrMagnitude < 1e-6f) f = Vector3.ProjectOnPlane(transform.forward, up);
t.SetPositionAndRotation(p + up * (onRails ? 0.22f : 0f), Quaternion.LookRotation(f.normalized, up));
t.SetPositionAndRotation(p + up * (onRails ? 0.22f : 0f), Quaternion.LookRotation(f.normalized, up) * rest);
}
// ───────────────────────── the track ─────────────────────────

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: b769e94835e00e2489dd6274ee0ecb85

View File

@ -31,6 +31,9 @@ namespace GrassCutter
int _next, _field;
float _stuck, _back, _backSteer, _lastSteer;
int _stuckTimes;
/// <summary>The closest it has come to where it's going, and when: circling round a point inside its turn, it gives up on it.</summary>
float _bestDist, _bestAt;
int _goalKey = -1;
Vector3 _unloadAt;
static readonly List<Vector2Int> s_fields = new List<Vector2Int>();
@ -242,12 +245,23 @@ namespace GrassCutter
var to = Vector3.ProjectOnPlane(goal - p, up);
float dist = to.magnitude;
if (job == AutoJob.Mowing && dist < 1.6f)
if (job == AutoJob.Mowing && dist < 2.2f)
{
_next++;
_stuckTimes = 0;
return new Vector2(_lastSteer, 0.4f);
}
int key = (int)job * 100000 + (job == AutoJob.Mowing ? _next : 0);
if (key != _goalKey) { _goalKey = key; _bestDist = dist; _bestAt = Time.time; }
else if (dist < _bestDist - 1f) { _bestDist = dist; _bestAt = Time.time; }
else if (Time.time - _bestAt > 7f)
{
// round and round a point it can't turn into: on to the next one (or the next stroke)
_goalKey = -1;
if (job == AutoJob.Mowing) _next++;
else if (++_stuckTimes >= 5) Auto.Value = (byte)AutoJob.Done;
return new Vector2(_lastSteer, 0.4f);
}
var fwd = Vector3.ProjectOnPlane(transform.forward, up).normalized;
float ang = Vector3.SignedAngle(fwd, to, up);
@ -265,6 +279,8 @@ namespace GrassCutter
float cap = job == AutoJob.Mowing ? 0.7f : dist > 20f ? 1f : 0.6f;
float thr = cap * Mathf.Lerp(1f, 0.4f, Mathf.Clamp01(Mathf.Abs(ang) / 90f));
if (dist < 6f) thr = Mathf.Min(thr, 0.3f + dist * 0.08f);
// a sharp turn close by is taken slowly: the slower it goes, the tighter it turns
if (Mathf.Abs(ang) > 50f && dist < 10f) thr = Mathf.Min(thr, 0.22f);
_lastSteer = steer;
if (speed < 0.5f && thr > 0.2f)

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: f48ca0b3d49f54140ba770685b721579

View File

@ -19,7 +19,7 @@ TagManager:
- ViewModel
- LocalPlayer
- Build
-
- Riding
-
-
-