Compare commits
18 Commits
80271aea72
...
key-hints-
| Author | SHA1 | Date | |
|---|---|---|---|
| c7ca594b53 | |||
| 755faf3c62 | |||
| ae558b8e77 | |||
| ad2154b38c | |||
| d97f2e844d | |||
| 77f533e390 | |||
| ae2bc83c24 | |||
| d61167e22b | |||
| 86c8403c2a | |||
| e186a7e883 | |||
| 0db89bf7cb | |||
| 6b2a9931b9 | |||
| 172c3b978d | |||
| 29485df9e1 | |||
| df55b5e417 | |||
| 5b14fd6635 | |||
| bbf73a6b96 | |||
| 57d0f4d31a |
BIN
ArtSource/Blender/SM_TrainLoco.blend
(Stored with Git LFS)
Normal file
BIN
ArtSource/Blender/SM_TrainLoco.blend
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
ArtSource/Blender/SM_TrainStation.blend
(Stored with Git LFS)
Normal file
BIN
ArtSource/Blender/SM_TrainStation.blend
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
ArtSource/Blender/SM_TrainWagon.blend
(Stored with Git LFS)
Normal file
BIN
ArtSource/Blender/SM_TrainWagon.blend
(Stored with Git LFS)
Normal file
Binary file not shown.
184
ArtSource/Blender/scripts/gc_train.py
Normal file
184
ArtSource/Blender/scripts/gc_train.py
Normal file
@ -0,0 +1,184 @@
|
|||||||
|
"""GRASS CUTTER - the grass train.
|
||||||
|
|
||||||
|
SM_TrainLoco a stubby green shunting locomotive with a red cab and a wide yellow cutter reel on its nose,
|
||||||
|
4.6 m long (nose at -Y), 2.1 m wide, 2.7 m to the cab roof. Body, plus Wheel0..Wheel5 (origin at the axle,
|
||||||
|
axis Blender X), Reel (origin on its axle, axis X) and Lamp (the headlamp, M_LightAmber)
|
||||||
|
SM_TrainWagon an open timber hopper wagon heaped with cut grass, 4.4 m long, 2.0 m wide, 2.1 m tall. Body, plus
|
||||||
|
Wheel0..Wheel7 and Grass (the heap)
|
||||||
|
SM_TrainStation the platform the train lives at, 4 x 8 m: two raised platforms either side of a gravel track bed down
|
||||||
|
the middle (the train's own rails are laid over it by the game), a canopy on posts over the left one,
|
||||||
|
a red buffer stop at the back (+Y), lamps and a sign board. Body
|
||||||
|
|
||||||
|
Origin bottom centre at z = 0 (the wheels stand on z = 0, the top of the rails), front = -Y (Unity +Z), Unity +X = Blender -X.
|
||||||
|
|
||||||
|
Run (absolute paths):
|
||||||
|
blender -b --factory-startup --python D:/PROJECTS/GIT/grass-cutters/ArtSource/Blender/scripts/gc_train.py -- [names]
|
||||||
|
"""
|
||||||
|
import sys, os, math
|
||||||
|
|
||||||
|
HERE = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
sys.path.insert(0, HERE)
|
||||||
|
import common as C
|
||||||
|
from mathutils import Vector
|
||||||
|
|
||||||
|
GREEN, DGREEN, RED, CREAM, YELLOW = "M_PaintGreen", "M_PaintDarkGreen", "M_PaintRed", "M_PaintCream", "M_PaintYellow"
|
||||||
|
STEEL, SOOT, RUBBER, GLASS, TIMB = "M_Steel", "M_Soot", "M_Rubber", "M_WindowGlass", "M_Timber"
|
||||||
|
LAMP, GRASS, CONC, CONCL, HAZ = "M_LightAmber", "M_Clippings", "M_Sand", "M_Brick", "M_Hazard"
|
||||||
|
ROOF, BRASS, DECK = "M_Roof", "M_Brass", "M_Deck"
|
||||||
|
|
||||||
|
|
||||||
|
def wheel(name, x, y, r=0.38, w=0.16, hub=RED):
|
||||||
|
"""A flanged rail wheel on its own, origin on the axle so the game can turn it."""
|
||||||
|
rim = C.cyl(name + "_r", r, w, (x, y, r), axis="X", verts=28, bevel=0.02, m=STEEL)
|
||||||
|
flange = C.cyl(name + "_f", r + 0.05, 0.04, (x - math.copysign(w * 0.5 - 0.02, x), y, r), axis="X", verts=28, m=STEEL)
|
||||||
|
disc = C.cyl(name + "_h", r * 0.62, w + 0.03, (x, y, r), axis="X", verts=20, bevel=0.015, m=hub)
|
||||||
|
cap = C.cyl(name + "_c", r * 0.2, w + 0.08, (x, y, r), axis="X", verts=12, m=BRASS)
|
||||||
|
o = C.join([rim, flange, disc, cap], name)
|
||||||
|
C.uv_box(o, 1.5)
|
||||||
|
C.set_origin(o, (x, y, r))
|
||||||
|
C.smooth(o, 35)
|
||||||
|
return o
|
||||||
|
|
||||||
|
|
||||||
|
def loco():
|
||||||
|
parts = []
|
||||||
|
# running gear: frame, buffers, coupling
|
||||||
|
parts.append(C.rbox("frame", (1.9, 4.3, 0.28), (0, 0, 0.62), bevel=0.04, m=SOOT))
|
||||||
|
parts.append(C.rbox("skirt", (2.05, 3.9, 0.2), (0, 0.1, 0.86), bevel=0.05, m=DGREEN))
|
||||||
|
for y in (-2.12, 2.12):
|
||||||
|
for x in (-0.62, 0.62):
|
||||||
|
parts.append(C.cyl("buf", 0.11, 0.24, (x, y + math.copysign(0.08, y), 0.66), axis="Y", verts=16, bevel=0.02, m=STEEL))
|
||||||
|
parts.append(C.cyl("bufp", 0.17, 0.05, (x, y + math.copysign(0.21, y), 0.66), axis="Y", verts=20, m=SOOT))
|
||||||
|
parts.append(C.rbox("beam", (1.95, 0.12, 0.3), (0, y, 0.66), bevel=0.03, m=RED))
|
||||||
|
# the long hood (engine) ahead of the cab, rounded and fat
|
||||||
|
parts.append(C.rbox("hood", (1.5, 2.35, 1.05), (0, -0.85, 1.48), bevel=0.32, segs=5, m=GREEN))
|
||||||
|
parts.append(C.rbox("hoodband", (1.54, 2.38, 0.12), (0, -0.85, 1.12), bevel=0.05, m=CREAM))
|
||||||
|
for i in range(5):
|
||||||
|
parts.append(C.rbox("louvre", (1.56, 0.06, 0.42), (0, -1.6 + i * 0.3, 1.5), bevel=0.02, m=DGREEN))
|
||||||
|
parts.append(C.cyl("stack", 0.15, 0.55, (0, -1.45, 2.2), verts=16, bevel=0.02, m=SOOT, r2=0.19))
|
||||||
|
parts.append(C.cyl("stacklip", 0.22, 0.07, (0, -1.45, 2.48), verts=16, m=SOOT))
|
||||||
|
parts.append(C.cyl("dome", 0.24, 0.22, (0, -0.55, 2.04), verts=20, bevel=0.06, m=BRASS))
|
||||||
|
# the cab
|
||||||
|
parts.append(C.rbox("cab", (2.0, 1.55, 1.55), (0, 1.15, 1.72), bevel=0.12, segs=4, m=RED))
|
||||||
|
parts.append(C.rbox("roof", (2.25, 1.85, 0.16), (0, 1.15, 2.58), bevel=0.07, m=CREAM))
|
||||||
|
parts.append(C.rbox("roofcap", (1.7, 1.4, 0.12), (0, 1.15, 2.68), bevel=0.05, m=CREAM))
|
||||||
|
for x in (-1.0, 1.0):
|
||||||
|
parts.append(C.rbox("win", (0.04, 0.85, 0.6), (x, 1.1, 2.05), bevel=0.04, m=GLASS))
|
||||||
|
parts.append(C.rbox("front_win_l", (0.62, 0.04, 0.55), (-0.5, 0.36, 2.08), bevel=0.04, m=GLASS))
|
||||||
|
parts.append(C.rbox("front_win_r", (0.62, 0.04, 0.55), (0.5, 0.36, 2.08), bevel=0.04, m=GLASS))
|
||||||
|
parts.append(C.rbox("back_win", (1.2, 0.04, 0.5), (0, 1.94, 2.08), bevel=0.04, m=GLASS))
|
||||||
|
parts.append(C.rbox("handrail", (0.05, 2.2, 0.05), (0.82, -0.85, 1.95), bevel=0.02, m=BRASS))
|
||||||
|
parts.append(C.rbox("handrail2", (0.05, 2.2, 0.05), (-0.82, -0.85, 1.95), bevel=0.02, m=BRASS))
|
||||||
|
# the cutter on the nose: a hood over a wide reel
|
||||||
|
parts.append(C.rbox("cutarm_l", (0.12, 0.55, 0.12), (-1.0, -2.35, 0.7), bevel=0.03, m=SOOT))
|
||||||
|
parts.append(C.rbox("cutarm_r", (0.12, 0.55, 0.12), (1.0, -2.35, 0.7), bevel=0.03, m=SOOT))
|
||||||
|
parts.append(C.rbox("cuthood", (3.3, 0.6, 0.22), (0, -2.62, 0.72), bevel=0.08, m=YELLOW))
|
||||||
|
parts.append(C.rbox("cutlip", (3.3, 0.08, 0.3), (0, -2.9, 0.55), bevel=0.03, m=HAZ))
|
||||||
|
for x in (-1.62, 1.62):
|
||||||
|
parts.append(C.rbox("cutend", (0.08, 0.6, 0.5), (x, -2.62, 0.5), bevel=0.03, m=YELLOW))
|
||||||
|
body = C.join(parts, "Body")
|
||||||
|
C.uv_box(body, 1.0)
|
||||||
|
C.smooth(body, 40)
|
||||||
|
# the reel turns: its own object, origin on the axle
|
||||||
|
blades = [C.cyl("reelcore", 0.09, 3.1, (0, -2.62, 0.38), axis="X", verts=12, m=STEEL)]
|
||||||
|
for k in range(6):
|
||||||
|
a = k * math.pi / 3
|
||||||
|
y, z = -2.62 + math.cos(a) * 0.2, 0.38 + math.sin(a) * 0.2
|
||||||
|
blades.append(C.rbox("blade", (3.05, 0.05, 0.05), (0, y, z), bevel=0.015, m=STEEL))
|
||||||
|
reel = C.join(blades, "Reel")
|
||||||
|
C.uv_box(reel, 1.0)
|
||||||
|
C.set_origin(reel, (0, -2.62, 0.38))
|
||||||
|
lamp = C.sphere("Lamp", 0.16, (0, -2.05, 1.82), seg=16, rings=8, m=LAMP)
|
||||||
|
lamp_ring = C.cyl("lampring", 0.2, 0.08, (0, -1.98, 1.82), axis="Y", verts=16, m=BRASS)
|
||||||
|
C.join([lamp_ring], "LampRing")
|
||||||
|
wheels = []
|
||||||
|
for i, y in enumerate((-1.35, 0.0, 1.35)):
|
||||||
|
for j, x in enumerate((-0.82, 0.82)):
|
||||||
|
wheels.append(wheel(f"Wheel{i * 2 + j}", x, y, r=0.42))
|
||||||
|
for o in wheels + [reel, lamp]:
|
||||||
|
o.parent = body
|
||||||
|
return dict(elev=18, azim=-40)
|
||||||
|
|
||||||
|
|
||||||
|
def wagon():
|
||||||
|
parts = []
|
||||||
|
parts.append(C.rbox("frame", (1.85, 4.2, 0.24), (0, 0, 0.6), bevel=0.04, m=SOOT))
|
||||||
|
for y in (-2.05, 2.05):
|
||||||
|
for x in (-0.6, 0.6):
|
||||||
|
parts.append(C.cyl("buf", 0.1, 0.22, (x, y + math.copysign(0.08, y), 0.62), axis="Y", verts=14, bevel=0.02, m=STEEL))
|
||||||
|
parts.append(C.cyl("bufp", 0.15, 0.05, (x, y + math.copysign(0.2, y), 0.62), axis="Y", verts=18, m=SOOT))
|
||||||
|
parts.append(C.rbox("beam", (1.9, 0.12, 0.26), (0, y, 0.62), bevel=0.03, m=RED))
|
||||||
|
for y in (-1.3, 1.3):
|
||||||
|
parts.append(C.rbox("bogie", (1.75, 1.25, 0.3), (0, y, 0.42), bevel=0.06, m=SOOT))
|
||||||
|
# the tub: timber planks on a green frame, a little wider at the top
|
||||||
|
parts.append(C.rbox("floor", (1.95, 3.9, 0.12), (0, 0, 0.8), bevel=0.03, m=TIMB))
|
||||||
|
for side in (-1, 1):
|
||||||
|
for k in range(4):
|
||||||
|
parts.append(C.rbox("plank", (0.08, 3.9, 0.24), (side * 0.98, 0, 0.98 + k * 0.26), bevel=0.03, m=TIMB))
|
||||||
|
for end in (-1, 1):
|
||||||
|
for k in range(4):
|
||||||
|
parts.append(C.rbox("plankE", (1.95, 0.08, 0.24), (0, end * 1.93, 0.98 + k * 0.26), bevel=0.03, m=TIMB))
|
||||||
|
for y in (-1.93, -0.65, 0.65, 1.93):
|
||||||
|
for side in (-1, 1):
|
||||||
|
parts.append(C.rbox("post", (0.12, 0.12, 1.12), (side * 1.0, y, 1.36), bevel=0.03, m=GREEN))
|
||||||
|
parts.append(C.rbox("rim_l", (0.14, 4.02, 0.1), (-1.0, 0, 1.95), bevel=0.03, m=GREEN))
|
||||||
|
parts.append(C.rbox("rim_r", (0.14, 4.02, 0.1), (1.0, 0, 1.95), bevel=0.03, m=GREEN))
|
||||||
|
parts.append(C.rbox("rim_f", (2.1, 0.14, 0.1), (0, -1.98, 1.95), bevel=0.03, m=GREEN))
|
||||||
|
parts.append(C.rbox("rim_b", (2.1, 0.14, 0.1), (0, 1.98, 1.95), bevel=0.03, m=GREEN))
|
||||||
|
body = C.join(parts, "Body")
|
||||||
|
C.uv_box(body, 1.0)
|
||||||
|
C.smooth(body, 40)
|
||||||
|
# the heap: a soft mound of clippings over the top of the tub
|
||||||
|
heap = C.sphere("Grass", 1.0, (0, 0, 1.78), seg=24, rings=12, m=GRASS, scale=(0.92, 1.85, 0.36))
|
||||||
|
C.uv_box(heap, 0.8)
|
||||||
|
C.smooth(heap, 60)
|
||||||
|
wheels = []
|
||||||
|
for i, y in enumerate((-1.75, -0.85, 0.85, 1.75)):
|
||||||
|
for j, x in enumerate((-0.8, 0.8)):
|
||||||
|
wheels.append(wheel(f"Wheel{i * 2 + j}", x, y, r=0.32, hub=DGREEN))
|
||||||
|
for o in wheels + [heap]:
|
||||||
|
o.parent = body
|
||||||
|
return dict(elev=20, azim=-40)
|
||||||
|
|
||||||
|
|
||||||
|
def station():
|
||||||
|
parts = []
|
||||||
|
# gravel bed down the middle, raised platforms either side
|
||||||
|
parts.append(C.rbox("bed", (2.0, 8.0, 0.08), (0, 0, 0.04), bevel=0.02, m=CONC))
|
||||||
|
for side in (-1, 1):
|
||||||
|
x = side * 1.5
|
||||||
|
parts.append(C.rbox("plat", (1.0, 8.0, 0.55), (x, 0, 0.275), bevel=0.05, m=CONCL))
|
||||||
|
parts.append(C.rbox("edge", (0.12, 8.0, 0.04), (side * 1.06, 0, 0.57), bevel=0.01, m=YELLOW))
|
||||||
|
parts.append(C.rbox("deck", (0.86, 7.9, 0.04), (x + side * 0.06, 0, 0.57), bevel=0.01, m=DECK))
|
||||||
|
# canopy over the left platform (Blender +X is the viewer's left from the front)
|
||||||
|
for y in (-3.2, 0.0, 3.2):
|
||||||
|
parts.append(C.cyl("post", 0.07, 2.6, (1.8, y, 1.85), verts=12, m=DGREEN))
|
||||||
|
parts.append(C.rbox("brace", (0.6, 0.08, 0.08), (1.55, y, 3.05), bevel=0.02, m=DGREEN))
|
||||||
|
parts.append(C.rbox("canopy", (1.5, 7.6, 0.12), (1.55, 0, 3.2), bevel=0.04, m=ROOF))
|
||||||
|
parts.append(C.rbox("canopyfront", (0.06, 7.6, 0.28), (0.82, 0, 3.12), bevel=0.02, m=CREAM))
|
||||||
|
parts.append(C.rbox("bench", (0.4, 1.4, 0.08), (1.75, 1.6, 1.0), bevel=0.02, m=TIMB))
|
||||||
|
for y in (1.05, 2.15):
|
||||||
|
parts.append(C.rbox("benchleg", (0.36, 0.06, 0.42), (1.75, y, 0.76), bevel=0.01, m=SOOT))
|
||||||
|
# sign board on two legs at the right platform's front
|
||||||
|
parts.append(C.rbox("signboard", (0.08, 1.4, 0.55), (-1.75, -2.6, 2.05), bevel=0.03, m=GREEN))
|
||||||
|
parts.append(C.rbox("signface", (0.1, 1.24, 0.4), (-1.75, -2.6, 2.05), bevel=0.02, m=CREAM))
|
||||||
|
for y in (-3.15, -2.05):
|
||||||
|
parts.append(C.cyl("signleg", 0.05, 1.5, (-1.75, y, 1.3), verts=10, m=SOOT))
|
||||||
|
# lamps
|
||||||
|
for y in (-3.6, 3.6):
|
||||||
|
parts.append(C.cyl("lamppost", 0.06, 2.4, (-1.85, y, 1.75), verts=10, m=SOOT))
|
||||||
|
parts.append(C.sphere("lampglobe", 0.16, (-1.85, y, 3.0), seg=12, rings=6, m=LAMP))
|
||||||
|
# buffer stop at the back of the bed
|
||||||
|
parts.append(C.rbox("stopbeam", (1.8, 0.25, 0.32), (0, 3.75, 0.72), bevel=0.05, m=RED))
|
||||||
|
parts.append(C.rbox("stopstripe", (1.82, 0.27, 0.08), (0, 3.75, 0.72), bevel=0.02, m=CREAM))
|
||||||
|
for x in (-0.6, 0.6):
|
||||||
|
parts.append(C.rbox("stopleg", (0.14, 0.55, 0.62), (x, 3.85, 0.33), bevel=0.03, m=SOOT))
|
||||||
|
parts.append(C.cyl("stopbuf", 0.15, 0.2, (x, 3.55, 0.72), axis="Y", verts=14, m=STEEL))
|
||||||
|
body = C.join(parts, "Body")
|
||||||
|
C.uv_box(body, 1.0)
|
||||||
|
C.smooth(body, 40)
|
||||||
|
return dict(elev=35, azim=-35)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
C.run({"SM_TrainLoco": loco, "SM_TrainWagon": wagon, "SM_TrainStation": station})
|
||||||
BIN
ArtSource/Previews/SM_TrainLoco.png
(Stored with Git LFS)
Normal file
BIN
ArtSource/Previews/SM_TrainLoco.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
ArtSource/Previews/SM_TrainStation.png
(Stored with Git LFS)
Normal file
BIN
ArtSource/Previews/SM_TrainStation.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
ArtSource/Previews/SM_TrainWagon.png
(Stored with Git LFS)
Normal file
BIN
ArtSource/Previews/SM_TrainWagon.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Assets/Art/Models/SM_TrainLoco.fbx
(Stored with Git LFS)
Normal file
BIN
Assets/Art/Models/SM_TrainLoco.fbx
(Stored with Git LFS)
Normal file
Binary file not shown.
116
Assets/Art/Models/SM_TrainLoco.fbx.meta
Normal file
116
Assets/Art/Models/SM_TrainLoco.fbx.meta
Normal 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:
|
||||||
BIN
Assets/Art/Models/SM_TrainStation.fbx
(Stored with Git LFS)
Normal file
BIN
Assets/Art/Models/SM_TrainStation.fbx
(Stored with Git LFS)
Normal file
Binary file not shown.
116
Assets/Art/Models/SM_TrainStation.fbx.meta
Normal file
116
Assets/Art/Models/SM_TrainStation.fbx.meta
Normal 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:
|
||||||
BIN
Assets/Art/Models/SM_TrainWagon.fbx
(Stored with Git LFS)
Normal file
BIN
Assets/Art/Models/SM_TrainWagon.fbx
(Stored with Git LFS)
Normal file
Binary file not shown.
116
Assets/Art/Models/SM_TrainWagon.fbx.meta
Normal file
116
Assets/Art/Models/SM_TrainWagon.fbx.meta
Normal 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
BIN
Assets/Art/UI/icon_piece_train.png
(Stored with Git LFS)
Normal file
Binary file not shown.
119
Assets/Art/UI/icon_piece_train.png.meta
Normal file
119
Assets/Art/UI/icon_piece_train.png.meta
Normal 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:
|
||||||
@ -289,3 +289,8 @@ MonoBehaviour:
|
|||||||
SourcePrefabToOverride: {fileID: 0}
|
SourcePrefabToOverride: {fileID: 0}
|
||||||
SourceHashToOverride: 0
|
SourceHashToOverride: 0
|
||||||
OverridingTargetPrefab: {fileID: 0}
|
OverridingTargetPrefab: {fileID: 0}
|
||||||
|
- Override: 0
|
||||||
|
Prefab: {fileID: 1941329713167816953, guid: 6d6f2a9a4d05cf5478f7f73bfb557b7e, type: 3}
|
||||||
|
SourcePrefabToOverride: {fileID: 0}
|
||||||
|
SourceHashToOverride: 0
|
||||||
|
OverridingTargetPrefab: {fileID: 0}
|
||||||
|
|||||||
@ -120,6 +120,7 @@ namespace GrassCutter.EditorTools
|
|||||||
["icon_piece_hexfoundation"] = new[] { P("SM_Foundation_Hex", 0, 0, 1, 0, 30, 0, tint: new Color(0.8f, 0.8f, 0.7f)) },
|
["icon_piece_hexfoundation"] = new[] { P("SM_Foundation_Hex", 0, 0, 1, 0, 30, 0, tint: new Color(0.8f, 0.8f, 0.7f)) },
|
||||||
["icon_piece_sorter"] = new[] { P("SM_BeltSorter", 0, 0, 1, 0, -30, 0) },
|
["icon_piece_sorter"] = new[] { P("SM_BeltSorter", 0, 0, 1, 0, -30, 0) },
|
||||||
["icon_piece_dronepad"] = new[] { P("SM_Drone", 0, 0.05f, 1, 18, -30, 0) },
|
["icon_piece_dronepad"] = new[] { P("SM_Drone", 0, 0.05f, 1, 18, -30, 0) },
|
||||||
|
["icon_piece_train"] = new[] { P("SM_TrainLoco", 0, 0, 1, 15, -35, 0) },
|
||||||
["icon_piece_skymower"] = new[] { P("SM_DronePad", 0, -0.2f, 0.85f, 20, -30, 0), P("SM_Drone", 0.05f, 0.22f, 0.8f, 14, -30, 0) },
|
["icon_piece_skymower"] = new[] { P("SM_DronePad", 0, -0.2f, 0.85f, 20, -30, 0), P("SM_Drone", 0.05f, 0.22f, 0.8f, 14, -30, 0) },
|
||||||
["icon_piece_launcher"] = new[] { P("SM_Launcher", 0, 0, 1, 0, -30, 0) },
|
["icon_piece_launcher"] = new[] { P("SM_Launcher", 0, 0, 1, 0, -30, 0) },
|
||||||
["icon_piece_launchpad"] = new[] { P("SM_LaunchPad", 0, -0.2f, 1, 25, -30, 0), P("SM_Rocket", 0.05f, 0.25f, 0.8f, 0, -30, 0) },
|
["icon_piece_launchpad"] = new[] { P("SM_LaunchPad", 0, -0.2f, 1, 25, -30, 0), P("SM_Rocket", 0.05f, 0.25f, 0.8f, 0, -30, 0) },
|
||||||
|
|||||||
@ -298,6 +298,19 @@ namespace GrassCutter.EditorTools
|
|||||||
if (d.id == PieceId.RobotII) bot.localScale *= GameDefs.Robot(d.id).width / GameDefs.Robot(PieceId.RobotI).width;
|
if (d.id == PieceId.RobotII) bot.localScale *= GameDefs.Robot(d.id).width / GameDefs.Robot(PieceId.RobotI).width;
|
||||||
go.AddComponent<RobotDock>().bot = bot;
|
go.AddComponent<RobotDock>().bot = bot;
|
||||||
break;
|
break;
|
||||||
|
case PieceId.Train:
|
||||||
|
{
|
||||||
|
// the platform is solid; the locomotive and its wagons ride the track the train lays, so they carry no colliders
|
||||||
|
Solid(go.transform, model);
|
||||||
|
var train = go.AddComponent<Train>();
|
||||||
|
train.loco = Child(go.transform, "SM_TrainLoco", Vector3.zero, Quaternion.identity, PrimitiveType.Cube, new Vector3(2.2f, 2.4f, 4.6f), new Vector3(0f, 1.2f, 0f));
|
||||||
|
train.wagons = new Transform[3];
|
||||||
|
for (int i = 0; i < train.wagons.Length; i++)
|
||||||
|
train.wagons[i] = Child(go.transform, "SM_TrainWagon", Vector3.zero, Quaternion.identity, PrimitiveType.Cube, new Vector3(2.1f, 1.6f, 4.4f), new Vector3(0f, 0.9f, 0f));
|
||||||
|
foreach (var t in new[] { train.loco }.Concat(train.wagons))
|
||||||
|
foreach (var c in t.GetComponentsInChildren<Collider>()) UnityEngine.Object.DestroyImmediate(c);
|
||||||
|
break;
|
||||||
|
}
|
||||||
case PieceId.SkyMower:
|
case PieceId.SkyMower:
|
||||||
{
|
{
|
||||||
// the drone pad, and one drone two and a half times the size of the fetching ones
|
// the drone pad, and one drone two and a half times the size of the fetching ones
|
||||||
|
|||||||
@ -61,18 +61,29 @@ namespace GrassCutter.EditorTools
|
|||||||
PlayerSettings.SetUseDefaultGraphicsAPIs(BuildTarget.StandaloneWindows64, false);
|
PlayerSettings.SetUseDefaultGraphicsAPIs(BuildTarget.StandaloneWindows64, false);
|
||||||
PlayerSettings.SetGraphicsAPIs(BuildTarget.StandaloneWindows64, new[] { UnityEngine.Rendering.GraphicsDeviceType.Direct3D11 });
|
PlayerSettings.SetGraphicsAPIs(BuildTarget.StandaloneWindows64, new[] { UnityEngine.Rendering.GraphicsDeviceType.Direct3D11 });
|
||||||
// GC_BUILD_DIR builds somewhere else, so a copy of the game that is running doesn't lock the build
|
// GC_BUILD_DIR builds somewhere else, so a copy of the game that is running doesn't lock the build
|
||||||
var dir = Environment.GetEnvironmentVariable("GC_BUILD_DIR") is string d && d.Length > 0 ? d : "Builds/GrassCutter";
|
// a development build also reports GPU and render-thread frame times (FrameTimingManager), for -demoperf
|
||||||
|
PlayerSettings.enableFrameTimingStats = CommandLineHas("-devbuild");
|
||||||
|
// GC_DEMO=1 builds the demo: its own app, name (so its own saves and settings) and folder
|
||||||
|
bool demo = Environment.GetEnvironmentVariable("GC_DEMO") == "1" || CommandLineHas("-demo");
|
||||||
|
var dir = Environment.GetEnvironmentVariable("GC_BUILD_DIR") is string d && d.Length > 0 ? d : demo ? "Builds/GrassCutterDemo" : "Builds/GrassCutter";
|
||||||
var opts = new BuildPlayerOptions
|
var opts = new BuildPlayerOptions
|
||||||
{
|
{
|
||||||
scenes = new[] { ScenePath },
|
scenes = new[] { ScenePath },
|
||||||
locationPathName = dir + "/GrassCutter.exe",
|
locationPathName = dir + "/" + (demo ? "GrassCutterDemo.exe" : "GrassCutter.exe"),
|
||||||
target = BuildTarget.StandaloneWindows64,
|
target = BuildTarget.StandaloneWindows64,
|
||||||
options = CommandLineHas("-devbuild") ? BuildOptions.Development : BuildOptions.None,
|
options = CommandLineHas("-devbuild") ? BuildOptions.Development : BuildOptions.None,
|
||||||
|
extraScriptingDefines = demo ? new[] { "GC_DEMO" } : null,
|
||||||
};
|
};
|
||||||
var report = BuildPipeline.BuildPlayer(opts);
|
string name = PlayerSettings.productName;
|
||||||
|
if (demo) PlayerSettings.productName = "Grass Cutters Together Demo";
|
||||||
|
UnityEditor.Build.Reporting.BuildReport report;
|
||||||
|
try { report = BuildPipeline.BuildPlayer(opts); }
|
||||||
|
finally { PlayerSettings.productName = name; }
|
||||||
if (report.summary.result != UnityEditor.Build.Reporting.BuildResult.Succeeded)
|
if (report.summary.result != UnityEditor.Build.Reporting.BuildResult.Succeeded)
|
||||||
throw new Exception("Build failed: " + report.summary.result);
|
throw new Exception("Build failed: " + report.summary.result);
|
||||||
File.Copy("steam_appid.txt", dir + "/steam_appid.txt", true);
|
// only for our own runs: never upload it to Steam (with it the game skips the Steam ownership check)
|
||||||
|
if (demo) File.WriteAllText(dir + "/steam_appid.txt", "5668050");
|
||||||
|
else File.Copy("steam_appid.txt", dir + "/steam_appid.txt", true);
|
||||||
Debug.Log($"[Builder] Player built: {report.summary.totalSize / (1024 * 1024)} MB");
|
Debug.Log($"[Builder] Player built: {report.summary.totalSize / (1024 * 1024)} MB");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -91,7 +102,7 @@ namespace GrassCutter.EditorTools
|
|||||||
var tm = new SerializedObject(AssetDatabase.LoadAllAssetsAtPath("ProjectSettings/TagManager.asset")[0]);
|
var tm = new SerializedObject(AssetDatabase.LoadAllAssetsAtPath("ProjectSettings/TagManager.asset")[0]);
|
||||||
var layers = tm.FindProperty("layers");
|
var layers = tm.FindProperty("layers");
|
||||||
void L(int i, string n) { layers.GetArrayElementAtIndex(i).stringValue = n; }
|
void L(int i, string n) { layers.GetArrayElementAtIndex(i).stringValue = n; }
|
||||||
L(6, "Player"); L(7, "Cargo"); L(8, "Prop"); L(9, "Vehicle"); L(10, "Held"); L(11, "ViewModel"); L(12, "LocalPlayer"); L(13, "Build");
|
L(6, "Player"); L(7, "Cargo"); L(8, "Prop"); L(9, "Vehicle"); L(10, "Held"); L(11, "ViewModel"); L(12, "LocalPlayer"); L(13, "Build"); L(14, "Riding");
|
||||||
tm.ApplyModifiedPropertiesWithoutUndo();
|
tm.ApplyModifiedPropertiesWithoutUndo();
|
||||||
|
|
||||||
PlayerSettings.companyName = "GreenHaul";
|
PlayerSettings.companyName = "GreenHaul";
|
||||||
|
|||||||
@ -274,3 +274,8 @@ MonoBehaviour:
|
|||||||
SourcePrefabToOverride: {fileID: 0}
|
SourcePrefabToOverride: {fileID: 0}
|
||||||
SourceHashToOverride: 0
|
SourceHashToOverride: 0
|
||||||
OverridingTargetPrefab: {fileID: 0}
|
OverridingTargetPrefab: {fileID: 0}
|
||||||
|
- Override: 0
|
||||||
|
Prefab: {fileID: 1941329713167816953, guid: 6d6f2a9a4d05cf5478f7f73bfb557b7e, type: 3}
|
||||||
|
SourcePrefabToOverride: {fileID: 0}
|
||||||
|
SourceHashToOverride: 0
|
||||||
|
OverridingTargetPrefab: {fileID: 0}
|
||||||
|
|||||||
632
Assets/Prefabs/Piece_Train.prefab
Normal file
632
Assets/Prefabs/Piece_Train.prefab
Normal 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}
|
||||||
7
Assets/Prefabs/Piece_Train.prefab.meta
Normal file
7
Assets/Prefabs/Piece_Train.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6d6f2a9a4d05cf5478f7f73bfb557b7e
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@ -379,6 +379,7 @@ MonoBehaviour:
|
|||||||
- {fileID: 2800000, guid: 1cb2684a0a4bc4f4ebba61e2dac0a455, type: 3}
|
- {fileID: 2800000, guid: 1cb2684a0a4bc4f4ebba61e2dac0a455, type: 3}
|
||||||
- {fileID: 2800000, guid: fe17ef0b1bc0a434bb867b81345623fa, type: 3}
|
- {fileID: 2800000, guid: fe17ef0b1bc0a434bb867b81345623fa, type: 3}
|
||||||
- {fileID: 2800000, guid: 3c654cd39c0bdd2449bd15bdbd2671f2, type: 3}
|
- {fileID: 2800000, guid: 3c654cd39c0bdd2449bd15bdbd2671f2, type: 3}
|
||||||
|
- {fileID: 2800000, guid: ca877d838ad57ca429f17383a9d577bf, type: 3}
|
||||||
- {fileID: 2800000, guid: 7a5b37260610a964bb7520159c8b89ea, type: 3}
|
- {fileID: 2800000, guid: 7a5b37260610a964bb7520159c8b89ea, type: 3}
|
||||||
- {fileID: 2800000, guid: b77f8d4cfcd652e44a20e3e5154d5063, type: 3}
|
- {fileID: 2800000, guid: b77f8d4cfcd652e44a20e3e5154d5063, type: 3}
|
||||||
- {fileID: 2800000, guid: 2f7fcf502cba17c4e91c29213211cc6f, type: 3}
|
- {fileID: 2800000, guid: 2f7fcf502cba17c4e91c29213211cc6f, type: 3}
|
||||||
@ -769,6 +770,9 @@ MonoBehaviour:
|
|||||||
- {fileID: 919132149155446097, guid: 63791d9a2a898ac43bdd00dcb0945a3c, type: 3}
|
- {fileID: 919132149155446097, guid: 63791d9a2a898ac43bdd00dcb0945a3c, type: 3}
|
||||||
- {fileID: 919132149155446097, guid: 60d8a23e398f87e4eae9fa6813611952, type: 3}
|
- {fileID: 919132149155446097, guid: 60d8a23e398f87e4eae9fa6813611952, type: 3}
|
||||||
- {fileID: 919132149155446097, guid: 8f8842fc3c81fbd4fbdaa35ad6dc9f13, 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: ceb577f4eef43674f8156fd1a6a3a584, type: 3}
|
||||||
- {fileID: 919132149155446097, guid: 9f9dab16ce43c024d846aef44340e3bd, type: 3}
|
- {fileID: 919132149155446097, guid: 9f9dab16ce43c024d846aef44340e3bd, type: 3}
|
||||||
- {fileID: 919132149155446097, guid: cba8ce26cd97bb940a6920692d3bab5f, type: 3}
|
- {fileID: 919132149155446097, guid: cba8ce26cd97bb940a6920692d3bab5f, type: 3}
|
||||||
|
|||||||
@ -139,7 +139,7 @@ Company property Firmeneigentum
|
|||||||
Connecting to {0}… Verbinde mit {0}…
|
Connecting to {0}… Verbinde mit {0}…
|
||||||
Connecting… Verbinde…
|
Connecting… Verbinde…
|
||||||
Container {0:0.##} kg Behälter {0:0.##} kg
|
Container {0:0.##} kg Behälter {0:0.##} kg
|
||||||
Container full! Press E at the DEPOT to hand it all in, or Q to tie a 1 kg bundle you can carry and throw. Behälter voll! Drück E am DEPOT, um alles abzugeben, oder Q, um ein 1-kg-Bündel zu binden, das du tragen und werfen kannst.
|
Container full! Press {0} at the DEPOT to hand it all in, or {1} to tie a 1 kg bundle you can carry and throw. Behälter voll! Drück {0} am DEPOT, um alles abzugeben, oder {1}, um ein 1-kg-Bündel zu binden, das du tragen und werfen kannst.
|
||||||
Container full! Q ties a bundle, E at the DEPOT hands it all in Behälter voll! Q bindet ein Bündel, E am DEPOT gibt alles ab
|
Container full! Q ties a bundle, E at the DEPOT hands it all in Behälter voll! Q bindet ein Bündel, E am DEPOT gibt alles ab
|
||||||
Container x{0:0} Behälter x{0:0}
|
Container x{0:0} Behälter x{0:0}
|
||||||
CONTAINERS BEHÄLTER
|
CONTAINERS BEHÄLTER
|
||||||
@ -194,8 +194,8 @@ ECONOMY WIRTSCHAFT
|
|||||||
Effects Effekte
|
Effects Effekte
|
||||||
Eleven more stations stand around the planet. Walk up to one and it opens for the crew: a depot, a supply wall, a console and a travel terminal. Elf weitere Stationen stehen rund um den Planeten. Geh zu einer hin, und sie öffnet sich für die Crew: ein Depot, eine Werkzeugwand, eine Konsole und ein Reiseterminal.
|
Eleven more stations stand around the planet. Walk up to one and it opens for the crew: a depot, a supply wall, a console and a travel terminal. Elf weitere Stationen stehen rund um den Planeten. Geh zu einer hin, und sie öffnet sich für die Crew: ein Depot, eine Werkzeugwand, eine Konsole und ein Reiseterminal.
|
||||||
Empty Leer
|
Empty Leer
|
||||||
Empty bed · E with a bundle in your arms loads it Leere Ladefläche · E mit einem Bündel im Arm lädt es auf
|
Empty bed · {0} with a bundle in your arms loads it Leere Ladefläche · {0} mit einem Bündel im Arm lädt es auf
|
||||||
Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors (E). Leere Hände! Geh zur WERKZEUGWAND auf der Westseite des Decks und nimm die Nagelschere (E).
|
Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors ({0}). Leere Hände! Geh zur WERKZEUGWAND auf der Westseite des Decks und nimm die Nagelschere ({0}).
|
||||||
Every blade counts. Apparently. Jeder Halm zählt. Angeblich.
|
Every blade counts. Apparently. Jeder Halm zählt. Angeblich.
|
||||||
Every kilo is shot into a Bundle Catcher, anywhere on the planet. A Catcher holds 100 kg and puts it on a belt. With no Catcher free the Reaper stops when its hopper is full. Jedes Kilo wird in einen Bündelfänger geschossen, egal wo auf dem Planeten. Ein Fänger fasst 100 kg und legt sie aufs Band. Ist kein Fänger frei, stoppt der Schnitter, wenn sein Tank voll ist.
|
Every kilo is shot into a Bundle Catcher, anywhere on the planet. A Catcher holds 100 kg and puts it on a belt. With no Catcher free the Reaper stops when its hopper is full. Jedes Kilo wird in einen Bündelfänger geschossen, egal wo auf dem Planeten. Ein Fänger fasst 100 kg und legt sie aufs Band. Ist kein Fänger frei, stoppt der Schnitter, wenn sein Tank voll ist.
|
||||||
Every Last Stake Bis zum letzten Pflock
|
Every Last Stake Bis zum letzten Pflock
|
||||||
@ -223,7 +223,6 @@ FIND GAMES SPIELE FINDEN
|
|||||||
First day Erster Tag
|
First day Erster Tag
|
||||||
First Delivery Erste Lieferung
|
First Delivery Erste Lieferung
|
||||||
Five kilos of grass become five of hay in 12 seconds. Hay pays three times as much. Fünf Kilo Gras werden in 12 Sekunden zu fünf Kilo Heu. Heu bringt dreimal so viel.
|
Five kilos of grass become five of hay in 12 seconds. Hay pays three times as much. Fünf Kilo Gras werden in 12 Sekunden zu fünf Kilo Heu. Heu bringt dreimal so viel.
|
||||||
FLEET FUHRPARK
|
|
||||||
Floodlights Flutlicht
|
Floodlights Flutlicht
|
||||||
Found so far: {0} stakes, {1} points. Bisher gefunden: {0} Pflöcke, {1} Punkte.
|
Found so far: {0} stakes, {1} points. Bisher gefunden: {0} Pflöcke, {1} Punkte.
|
||||||
Foundations Fundamente
|
Foundations Fundamente
|
||||||
@ -288,9 +287,9 @@ Hi. I'm the Director's assistant. Hallo. Ich bin die Assistenz des Direktors.
|
|||||||
Hold: Read the survey point ({0}) Halten: Vermessungspunkt ablesen ({0})
|
Hold: Read the survey point ({0}) Halten: Vermessungspunkt ablesen ({0})
|
||||||
Hold: Untangle the stake ({0}) Halten: Pflock entwirren ({0})
|
Hold: Untangle the stake ({0}) Halten: Pflock entwirren ({0})
|
||||||
Holds 100 kg of what Reapers shoot and puts it on the belt. Fasst 100 kg von dem, was Schnitter schießen, und legt es aufs Band.
|
Holds 100 kg of what Reapers shoot and puts it on the belt. Fasst 100 kg von dem, was Schnitter schießen, und legt es aufs Band.
|
||||||
Hop down to the meadow (SPACE at the railing) and HOLD LEFT CLICK: sweep the blade over the grass. Earth needs every blade of it. Spring runter auf die Wiese (SPACE am Geländer) und HALTE LINKSKLICK: Fahr mit der Klinge übers Gras. Die Erde braucht jeden Halm davon.
|
Hop down to the meadow ({0} at the railing) and HOLD {1}: sweep the blade over the grass. Earth needs every blade of it. Spring runter auf die Wiese ({0} am Geländer) und HALTE {1}: Fahr mit der Klinge übers Gras. Die Erde braucht jeden Halm davon.
|
||||||
Hop down to the meadow, space at the railing. Spring runter auf die Wiese, SPACE am Geländer.
|
Hop down to the meadow, space at the railing. Spring runter auf die Wiese, SPACE am Geländer.
|
||||||
Hop off [R] View Aussteigen [R] Ansicht
|
Hop off [{0}] View Aussteigen [{0}] Ansicht
|
||||||
Hop over the railing with SPACE, hold LEFT CLICK and sweep the blade over the grass. It goes straight into the tool's container. Spring mit SPACE übers Geländer, halte LINKSKLICK und fahr mit der Klinge übers Gras. Es landet direkt im Behälter des Werkzeugs.
|
Hop over the railing with SPACE, hold LEFT CLICK and sweep the blade over the grass. It goes straight into the tool's container. Spring mit SPACE übers Geländer, halte LINKSKLICK und fahr mit der Klinge übers Gras. Es landet direkt im Behälter des Werkzeugs.
|
||||||
hopper full, needs a catcher with room Tank voll, braucht einen Fänger mit Platz
|
hopper full, needs a catcher with room Tank voll, braucht einen Fänger mit Platz
|
||||||
Hopper full: drive to an UNLOAD marker Tank voll: fahr zu einer ABLADEN-Markierung
|
Hopper full: drive to an UNLOAD marker Tank voll: fahr zu einer ABLADEN-Markierung
|
||||||
@ -332,8 +331,8 @@ Let the Robot Do It Lass den Roboter ran
|
|||||||
Linking... Verbinde...
|
Linking... Verbinde...
|
||||||
Listen up, you incompetent idiots! Hört zu, ihr unfähigen Idioten!
|
Listen up, you incompetent idiots! Hört zu, ihr unfähigen Idioten!
|
||||||
Listening for LAN games… Suche LAN-Spiele…
|
Listening for LAN games… Suche LAN-Spiele…
|
||||||
LMB where the belt starts · height {0:0.0} m LMB am Bandanfang · Höhe {0:0.0} m
|
{1} where the belt starts · height {0:0.0} m {1} am Bandanfang · Höhe {0:0.0} m
|
||||||
LMB: go on from this end LMB: an diesem Ende weiterbauen
|
{0}: go on from this end {0}: an diesem Ende weiterbauen
|
||||||
LOGISTICS LOGISTIK
|
LOGISTICS LOGISTIK
|
||||||
Long Handles Lange Griffe
|
Long Handles Lange Griffe
|
||||||
Long Scythe Lange Sense
|
Long Scythe Lange Sense
|
||||||
@ -357,7 +356,7 @@ Mode Modus
|
|||||||
More cash for every sector mown clean. Mehr Geld für jeden sauber gemähten Sektor.
|
More cash for every sector mown clean. Mehr Geld für jeden sauber gemähten Sektor.
|
||||||
Mouse sensitivity Mausempfindlichkeit
|
Mouse sensitivity Mausempfindlichkeit
|
||||||
Move faster. Lauf schneller.
|
Move faster. Lauf schneller.
|
||||||
Moving {0}: LMB put down · R rotate · RMB cancel {0} versetzen: LMB absetzen · R drehen · RMB abbrechen
|
Moving {0}: {1} put down · {2} rotate · {3} cancel {0} versetzen: {1} absetzen · {2} drehen · {3} abbrechen
|
||||||
Mow a path for the belt first Mäh erst einen Weg für das Band
|
Mow a path for the belt first Mäh erst einen Weg für das Band
|
||||||
Mow Base Mähbasis
|
Mow Base Mähbasis
|
||||||
Mow the grass here first Mäh hier erst das Gras
|
Mow the grass here first Mäh hier erst das Gras
|
||||||
@ -382,7 +381,6 @@ Nail Scissors Basket Nagelschere-Korb
|
|||||||
NE NO
|
NE NO
|
||||||
Never once lost a scythe. Hat noch nie eine Sense verloren.
|
Never once lost a scythe. Hat noch nie eine Sense verloren.
|
||||||
NEW GAME NEUES SPIEL
|
NEW GAME NEUES SPIEL
|
||||||
NEXT {0} NÄCHSTE {0}
|
|
||||||
Night Vision Nachtsicht
|
Night Vision Nachtsicht
|
||||||
Night vision on Nachtsicht an
|
Night vision on Nachtsicht an
|
||||||
Night Vision: {0}. N goes from the headlamp to night vision to nothing. Nachtsicht: {0}. N schaltet von Stirnlampe zu Nachtsicht zu gar nichts.
|
Night Vision: {0}. N goes from the headlamp to night vision to nothing. Nachtsicht: {0}. N schaltet von Stirnlampe zu Nachtsicht zu gar nichts.
|
||||||
@ -401,7 +399,6 @@ nothing to run, {0:0.#} kW free nichts zu versorgen, {0:0.#} kW frei
|
|||||||
nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh nichts zu versorgen, {0:0.#} kW frei, Batterien {1:0.0} von {2:0} kWh
|
nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh nichts zu versorgen, {0:0.#} kW frei, Batterien {1:0.0} von {2:0} kWh
|
||||||
Nothing to set on this one. Hier gibt es nichts einzustellen.
|
Nothing to set on this one. Hier gibt es nichts einzustellen.
|
||||||
Nothing to tie: cut some grass first Nichts zu binden: erst etwas Gras schneiden
|
Nothing to tie: cut some grass first Nichts zu binden: erst etwas Gras schneiden
|
||||||
NOW {0} JETZT {0}
|
|
||||||
NOW {0} of {1} slots JETZT {0} von {1} Plätzen
|
NOW {0} of {1} slots JETZT {0} von {1} Plätzen
|
||||||
NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! JETZT MACHT DIE ANDEREN NEUNUNDNEUNZIG KOMMA NEUN NEUN NEUN!
|
NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! JETZT MACHT DIE ANDEREN NEUNUNDNEUNZIG KOMMA NEUN NEUN NEUN!
|
||||||
NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! UND JETZT RAUS MIT EUCH UND MÄHT DIESEN VERDAMMTEN PLANETEN!
|
NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! UND JETZT RAUS MIT EUCH UND MÄHT DIESEN VERDAMMTEN PLANETEN!
|
||||||
@ -486,7 +483,7 @@ Reset progress? Fortschritt zurücksetzen?
|
|||||||
resting ruht
|
resting ruht
|
||||||
RESUME WEITER
|
RESUME WEITER
|
||||||
Ride the {0} ({1} / {2}) {0} fahren ({1} / {2})
|
Ride the {0} ({1} / {2}) {0} fahren ({1} / {2})
|
||||||
Ride the {0} ({1} of {2} bundles, E with a bundle loads it) {0} fahren ({1} von {2} Bündeln, E mit einem Bündel lädt es auf)
|
Ride the {0} ({1} of {2} bundles, {3} with a bundle loads it) {0} fahren ({1} von {2} Bündeln, {3} mit einem Bündel lädt es auf)
|
||||||
RIGHT CLICK takes a piece down and gives all the money back. T carries it somewhere else, the middle button copies it. RECHTSKLICK baut ein Bauteil ab und gibt das ganze Geld zurück. T trägt es woandershin, die mittlere Maustaste kopiert es.
|
RIGHT CLICK takes a piece down and gives all the money back. T carries it somewhere else, the middle button copies it. RECHTSKLICK baut ein Bauteil ab und gibt das ganze Geld zurück. T trägt es woandershin, die mittlere Maustaste kopiert es.
|
||||||
Robot Roboter
|
Robot Roboter
|
||||||
Robot Crew Roboter-Crew
|
Robot Crew Roboter-Crew
|
||||||
@ -585,7 +582,7 @@ Supply wall — tools & gear Werkzeugwand — Werkzeuge & Ausrüstung
|
|||||||
Survey point: already read Vermessungspunkt: schon abgelesen
|
Survey point: already read Vermessungspunkt: schon abgelesen
|
||||||
Surveyor Landvermesser
|
Surveyor Landvermesser
|
||||||
SW SW
|
SW SW
|
||||||
T move · MMB copy · RMB remove T versetzen · MMB kopieren · RMB entfernen
|
{0} move · {1} copy · {2} remove {0} versetzen · {1} kopieren · {2} entfernen
|
||||||
TAKE IN HAND IN DIE HAND
|
TAKE IN HAND IN DIE HAND
|
||||||
TAKE IT NEHMEN
|
TAKE IT NEHMEN
|
||||||
Take the nail scissors from the SUPPLY WALL on the west side of the deck. Nimm die Nagelschere von der WERKZEUGWAND auf der Westseite des Decks.
|
Take the nail scissors from the SUPPLY WALL on the west side of the deck. Nimm die Nagelschere von der WERKZEUGWAND auf der Westseite des Decks.
|
||||||
@ -635,10 +632,10 @@ They fill with whatever sun the machines don't use, and when the panels fall sho
|
|||||||
Thirty harvests and still early. Dreißig Ernten und immer noch überpünktlich.
|
Thirty harvests and still early. Dreißig Ernten und immer noch überpünktlich.
|
||||||
This is G.R.A.S.S.A. We take grass very seriously. Hier ist G.R.A.S.S.A. Wir nehmen Gras sehr ernst.
|
This is G.R.A.S.S.A. We take grass very seriously. Hier ist G.R.A.S.S.A. Wir nehmen Gras sehr ernst.
|
||||||
This is what peak civilization looks like. So sieht der Gipfel der Zivilisation aus.
|
This is what peak civilization looks like. So sieht der Gipfel der Zivilisation aus.
|
||||||
Throw [E] Drop [R] Turn Werfen [E] Ablegen [R] Drehen
|
Throw [{0}] Drop [{1}] Turn Werfen [{0}] Ablegen [{1}] Drehen
|
||||||
Throw +{0}% Wurf +{0} %
|
Throw +{0}% Wurf +{0} %
|
||||||
Throw bundles further. Wirf Bündel weiter.
|
Throw bundles further. Wirf Bündel weiter.
|
||||||
Throw it in the DEPOT or onto a belt [E] Drop [R] Turn Wirf es ins DEPOT oder auf ein Band [E] Ablegen [R] Drehen
|
Throw it in the DEPOT or onto a belt [{0}] Drop [{1}] Turn Wirf es ins DEPOT oder auf ein Band [{0}] Ablegen [{1}] Drehen
|
||||||
Throwing Arm Wurfarm
|
Throwing Arm Wurfarm
|
||||||
Thunderstorm! Dark skies, weak sun, twisters about. Gewitter! Dunkler Himmel, schwache Sonne, Windhosen unterwegs.
|
Thunderstorm! Dark skies, weak sun, twisters about. Gewitter! Dunkler Himmel, schwache Sonne, Windhosen unterwegs.
|
||||||
Thunderstorm. Dark skies, weak sun, and twisters about. Gewitter. Dunkler Himmel, schwache Sonne, und Windhosen sind unterwegs.
|
Thunderstorm. Dark skies, weak sun, and twisters about. Gewitter. Dunkler Himmel, schwache Sonne, und Windhosen sind unterwegs.
|
||||||
@ -682,7 +679,6 @@ Upgrades are for the whole crew and come out of the shared wallet. Upgrades gelt
|
|||||||
V-Sync V-Sync
|
V-Sync V-Sync
|
||||||
Version mismatch Versionskonflikt
|
Version mismatch Versionskonflikt
|
||||||
Voices Stimmen
|
Voices Stimmen
|
||||||
v{0} · early build v{0} · frühe Version
|
|
||||||
W W
|
W W
|
||||||
W A S D to drive. Shift to boost. W A S D zum Fahren. Shift für Boost.
|
W A S D to drive. Shift to boost. W A S D zum Fahren. Shift für Boost.
|
||||||
Wait. Is that... progress? Moment. Ist das etwa... Fortschritt?
|
Wait. Is that... progress? Moment. Ist das etwa... Fortschritt?
|
||||||
@ -696,7 +692,7 @@ Weight Gewicht
|
|||||||
WELCOME TO HERBARIA-7 WILLKOMMEN AUF HERBARIA-7
|
WELCOME TO HERBARIA-7 WILLKOMMEN AUF HERBARIA-7
|
||||||
Well Travelled Weit gereist
|
Well Travelled Weit gereist
|
||||||
Wheat Weizen
|
Wheat Weizen
|
||||||
WHEEL piece · LMB place · R rotate · T move · MMB copy · RMB remove · CTRL+WHEEL height · F free WHEEL Bauteil · LMB platzieren · R drehen · T versetzen · MMB kopieren · RMB entfernen · CTRL+WHEEL Höhe · F frei
|
WHEEL piece · {0} place · {1} rotate · {2} move · {3} copy · {4} remove · CTRL+WHEEL height · {5} free WHEEL Bauteil · {0} platzieren · {1} drehen · {2} versetzen · {3} kopieren · {4} entfernen · CTRL+WHEEL Höhe · {5} frei
|
||||||
Whetstone Steel Wetzstahl
|
Whetstone Steel Wetzstahl
|
||||||
Which address? Welche Adresse?
|
Which address? Welche Adresse?
|
||||||
Whoa! The twister threw you. Hui! Die Windhose hat dich weggeschleudert.
|
Whoa! The twister threw you. Hui! Die Windhose hat dich weggeschleudert.
|
||||||
@ -728,8 +724,8 @@ Zero point zero zero one percent. Null Komma null null eins Prozent.
|
|||||||
{0:0.##} m · {1:0} kg {0:0.##} m · {1:0} kg
|
{0:0.##} m · {1:0} kg {0:0.##} m · {1:0} kg
|
||||||
{0:0.##}% of Herbaria-7 {0:0.##} % von Herbaria-7
|
{0:0.##}% of Herbaria-7 {0:0.##} % von Herbaria-7
|
||||||
{0:0.#} cm · {1:0.##} kg {0:0.#} cm · {1:0.##} kg
|
{0:0.#} cm · {1:0.##} kg {0:0.#} cm · {1:0.##} kg
|
||||||
{0:0.#} m of belt · MMB copy · RMB remove {0:0.#} m Band · MMB kopieren · RMB entfernen
|
{0:0.#} m of belt · {1} copy · {2} remove {0:0.#} m Band · {1} kopieren · {2} entfernen
|
||||||
{0:0.#} m, {1} · height {2:0.0} m · RMB stops {0:0.#} m, {1} · Höhe {2:0.0} m · RMB beendet
|
{0:0.#} m, {1} · height {2:0.0} m · {3} stops {0:0.#} m, {1} · Höhe {2:0.0} m · {3} beendet
|
||||||
{0:0.#}% mown {0:0.#} % gemäht
|
{0:0.#}% mown {0:0.#} % gemäht
|
||||||
{0:0.0000}% {0:0.0000} %
|
{0:0.0000}% {0:0.0000} %
|
||||||
{0:0.00} / {1:0.##} KG {0:0.00} / {1:0.##} KG
|
{0:0.00} / {1:0.##} KG {0:0.00} / {1:0.##} KG
|
||||||
@ -741,7 +737,7 @@ Zero point zero zero one percent. Null Komma null null eins Prozent.
|
|||||||
{0:N0} Sectors {0:N0} Sektoren
|
{0:N0} Sectors {0:N0} Sektoren
|
||||||
{0:N0} sectors clean · {1} / {2} stakes · {3} / {4} survey points {0:N0} Sektoren sauber · {1} / {2} Pflöcke · {3} / {4} Vermessungspunkte
|
{0:N0} sectors clean · {1} / {2} stakes · {3} / {4} survey points {0:N0} Sektoren sauber · {1} / {2} Pflöcke · {3} / {4} Vermessungspunkte
|
||||||
{0:N0} started · {1:N0} mown · {2:0.0000}% of the planet {0:N0} angefangen · {1:N0} gemäht · {2:0.0000} % des Planeten
|
{0:N0} started · {1:N0} mown · {2:0.0000}% of the planet {0:N0} angefangen · {1:N0} gemäht · {2:0.0000} % des Planeten
|
||||||
{0} [T] Upgrades & settings {0} [T] Upgrades & Optionen
|
{0} [{1}] Upgrades & settings {0} [{1}] Upgrades & Optionen
|
||||||
{0} (you) {0} (du)
|
{0} (you) {0} (du)
|
||||||
{0} / kg {0} / kg
|
{0} / kg {0} / kg
|
||||||
{0} / {1} slots {0} / {1} Plätze
|
{0} / {1} slots {0} / {1} Plätze
|
||||||
@ -797,9 +793,9 @@ HOW MUCH LAWN? WIE VIEL RASEN?
|
|||||||
EASY LEICHT
|
EASY LEICHT
|
||||||
NORMAL NORMAL
|
NORMAL NORMAL
|
||||||
EXTRA HARD EXTREM SCHWER
|
EXTRA HARD EXTREM SCHWER
|
||||||
A planet a third the size, with sectors to match. Earth can wait a little. Ein Planet, ein Drittel so groß, mit passenden Sektoren. Die Erde kann ein bisschen warten.
|
A sixth of the big planet, sectors to match. Earth can wait a little. Ein Sechstel des großen Planeten, die Sektoren passend dazu. Die Erde kann ein bisschen warten.
|
||||||
Half the planet, half-size sectors. Still a lot of lawn. Der halbe Planet, halb so große Sektoren. Immer noch jede Menge Rasen.
|
A third of the big planet, smaller sectors. Still a lot of lawn. Ein Drittel des großen Planeten, kleinere Sektoren. Immer noch jede Menge Rasen.
|
||||||
The whole of Herbaria-7, full-size sectors, every blade of it. Ganz Herbaria-7, Sektoren in voller Größe, jeder einzelne Halm.
|
The big planet: the whole of Herbaria-7, every blade of it. Der große Planet: ganz Herbaria-7, jeder einzelne Halm.
|
||||||
DECOR DEKO
|
DECOR DEKO
|
||||||
Wall Wand
|
Wall Wand
|
||||||
A 3 m timber wall. It goes on the edge of a foundation or a floor; R turns it round. Eine 3 m lange Holzwand. Sie kommt an den Rand eines Fundaments oder Bodens; R dreht sie.
|
A 3 m timber wall. It goes on the edge of a foundation or a floor; R turns it round. Eine 3 m lange Holzwand. Sie kommt an den Rand eines Fundaments oder Bodens; R dreht sie.
|
||||||
@ -962,3 +958,52 @@ A big mowing drone. It flies over rocks and hills, works 91 sectors around its p
|
|||||||
ME ICH
|
ME ICH
|
||||||
GLOBE GLOBUS
|
GLOBE GLOBUS
|
||||||
DRAG move · WHEEL zoom · SPACE back to you · M close DRAG bewegen · WHEEL zoomen · SPACE zurück zu dir · M schließen
|
DRAG move · WHEEL zoom · SPACE back to you · M close DRAG bewegen · WHEEL zoomen · SPACE zurück zu dir · M schließen
|
||||||
|
AUTOMATION AUTOMATIK
|
||||||
|
Long Leash Lange Leine
|
||||||
|
Robots start further out and mow further from home. Roboter fangen weiter draußen an und mähen weiter weg von zu Hause.
|
||||||
|
+{0}% robot reach +{0} % Roboter-Reichweite
|
||||||
|
Overdrive Motors Overdrive-Motoren
|
||||||
|
Robots and Sky Mowers drive and mow faster. Roboter und Himmelsmäher fahren und mähen schneller.
|
||||||
|
+{0}% robot speed +{0} % Roboter-Tempo
|
||||||
|
Bigger Hoppers Größere Tanks
|
||||||
|
Robots carry more grass before they head home. Roboter tragen mehr Gras, bevor sie heimfahren.
|
||||||
|
+{0}% robot hopper +{0} % Roboter-Tank
|
||||||
|
Long-Range Drones Langstreckendrohnen
|
||||||
|
Drone pads fetch bundles from further away. Drohnenplätze holen Bündel von weiter weg.
|
||||||
|
+{0} m drone reach +{0} m Drohnen-Reichweite
|
||||||
|
Hive Mind Schwarmgeist
|
||||||
|
Every robot, Sky Mower and drone works 20% faster. Jeder Roboter, Himmelsmäher und jede Drohne arbeitet 20 % schneller.
|
||||||
|
Autopilot Autopilot
|
||||||
|
C hands it over: it mows and unloads on its own C übergibt: Er mäht und lädt selbst ab
|
||||||
|
autopilot: off to unload Autopilot: fährt zum Abladen
|
||||||
|
autopilot: nothing left to mow round here Autopilot: hier ist nichts mehr zu mähen
|
||||||
|
autopilot: mowing Autopilot: mäht
|
||||||
|
Take over the {0} ({1}, {2} / {3}) {0} übernehmen ({1}, {2} / {3})
|
||||||
|
Autopilot on: the {0} mows round here and unloads itself. Hop back in to take over. Autopilot an: Der {0} mäht hier und lädt selbst ab. Steig wieder ein, um zu übernehmen.
|
||||||
|
WASD to drive · SHIFT boost · R chase view · E to hop off · C autopilot WASD fahren · SHIFT Boost · R Verfolgerkamera · E aussteigen · C Autopilot
|
||||||
|
Grass Train Grasbahn
|
||||||
|
Lays its own track to a station next door, mowing all the way there. Then it runs back and forth, its side cutters reaching further out on every run, and what it cuts is paid for at either end. Build it on open ground facing the way it should go. Legt sich selbst Gleise zu einer Nachbarstation und mäht dabei den ganzen Weg. Dann pendelt sie hin und her, ihre Seitenmähwerke greifen mit jeder Fahrt weiter aus, und was sie schneidet, wird an beiden Enden bezahlt. Bau sie auf freiem Boden, in die Richtung, in die sie fahren soll.
|
||||||
|
{0}: laying track to {1}, {2} of {3} m {0}: legt Gleis nach {1}, {2} von {3} m
|
||||||
|
E: another station E: andere Station
|
||||||
|
{0}: running to {1} and back, cutting {2} m out either side, {3} on board {0}: pendelt nach {1}, mäht {2} m zu beiden Seiten, {3} an Bord
|
||||||
|
x{0:0.#} speed and reach, {1} wagons x{0:0.#} Tempo und Reichweite, {1} Waggons
|
||||||
|
Train yard: {0} Zugladeplatz: {0}
|
||||||
|
The Grass Train lays track on to {0} Der Graszug legt Gleise weiter nach {0}
|
||||||
|
{0}: carrying grass home from the stations on its line, {1} on board, {2} waiting {0}: bringt Gras von den Stationen der Strecke heim, {1} an Bord, {2} wartet
|
||||||
|
E: ride in the cab E: in den Führerstand
|
||||||
|
In the cab: W forward · S back · E to get off Im Führerstand: W vor · S zurück · E aussteigen
|
||||||
|
Head bob Kopfwippen
|
||||||
|
The view rocks a little with each step. Off keeps it still. Die Sicht wippt bei jedem Schritt leicht mit. Aus hält sie ruhig.
|
||||||
|
STEAM PAGE STEAM-SEITE
|
||||||
|
FEEDBACK FEEDBACK
|
||||||
|
Grass Cutters Together needs Steam. Start Steam, sign in to the account that owns the game, and launch it from your library. Grass Cutters Together braucht Steam. Starte Steam, melde dich mit dem Konto an, dem das Spiel gehört, und starte es aus deiner Bibliothek.
|
||||||
|
That's the end of the demo: the full game has the rest of the planet. Hier endet die Demo: Den Rest des Planeten gibt es im vollen Spiel.
|
||||||
|
DEMO DEMO
|
||||||
|
WISHLIST THE FULL GAME VOLLES SPIEL AUF DIE WUNSCHLISTE
|
||||||
|
DEMO COMPLETE · thanks for playing! DEMO GESCHAFFT · danke fürs Spielen!
|
||||||
|
DEMO · goal: ship {0} of {1} kg of grass DEMO · Ziel: {0} von {1} kg Gras abliefern
|
||||||
|
THANKS FOR PLAYING THE DEMO! DANKE FÜRS SPIELEN DER DEMO!
|
||||||
|
Your crew shipped {0} kg of grass and reached the end of the demo. In the full game the whole planet is yours: machines, belts, robots, far stations and up to 16 players. Deine Crew hat {0} kg Gras abgeliefert und das Ende der Demo erreicht. Im vollen Spiel gehört dir der ganze Planet: Maschinen, Förderbänder, Roboter, ferne Stationen und bis zu 16 Spieler.
|
||||||
|
You can keep mowing here, but nothing more is for sale in the demo. Du kannst hier weitermähen, aber in der Demo gibt es nichts mehr zu kaufen.
|
||||||
|
LEAVE FEEDBACK FEEDBACK GEBEN
|
||||||
|
KEEP MOWING WEITERMÄHEN
|
||||||
|
|||||||
@ -138,7 +138,7 @@ Company property Propiedad de la empresa
|
|||||||
Connecting to {0}… Conectando con {0}…
|
Connecting to {0}… Conectando con {0}…
|
||||||
Connecting… Conectando…
|
Connecting… Conectando…
|
||||||
Container {0:0.##} kg Contenedor {0:0.##} kg
|
Container {0:0.##} kg Contenedor {0:0.##} kg
|
||||||
Container full! Press E at the DEPOT to hand it all in, or Q to tie a 1 kg bundle you can carry and throw. ¡Contenedor lleno! Pulsa E en el DEPÓSITO para entregarlo todo, o Q para atar un fardo de 1 kg que puedes llevar y lanzar.
|
Container full! Press {0} at the DEPOT to hand it all in, or {1} to tie a 1 kg bundle you can carry and throw. ¡Contenedor lleno! Pulsa {0} en el DEPÓSITO para entregarlo todo, o {1} para atar un fardo de 1 kg que puedes llevar y lanzar.
|
||||||
Container full! Q ties a bundle, E at the DEPOT hands it all in ¡Contenedor lleno! Q ata un fardo, E en el DEPÓSITO lo entrega todo
|
Container full! Q ties a bundle, E at the DEPOT hands it all in ¡Contenedor lleno! Q ata un fardo, E en el DEPÓSITO lo entrega todo
|
||||||
Container x{0:0} Contenedor x{0:0}
|
Container x{0:0} Contenedor x{0:0}
|
||||||
CONTAINERS CONTENEDORES
|
CONTAINERS CONTENEDORES
|
||||||
@ -192,9 +192,9 @@ ECONOMY ECONOMÍA
|
|||||||
Effects Efectos
|
Effects Efectos
|
||||||
Eleven more stations stand around the planet. Walk up to one and it opens for the crew: a depot, a supply wall, a console and a travel terminal. Hay once estaciones más repartidas por el planeta. Acércate a una y se abre para la cuadrilla: un depósito, una pared de suministros, una consola y una terminal de viaje.
|
Eleven more stations stand around the planet. Walk up to one and it opens for the crew: a depot, a supply wall, a console and a travel terminal. Hay once estaciones más repartidas por el planeta. Acércate a una y se abre para la cuadrilla: un depósito, una pared de suministros, una consola y una terminal de viaje.
|
||||||
Empty Vacía
|
Empty Vacía
|
||||||
Empty bed · E with a bundle in your arms loads it Caja vacía · E con un fardo en brazos lo carga
|
Empty bed · {0} with a bundle in your arms loads it Caja vacía · {0} con un fardo en brazos lo carga
|
||||||
EARTH IS OUT OF GRASS! NO GRASS! ¡LA TIERRA SE HA QUEDADO SIN HIERBA! ¡NI UNA!
|
EARTH IS OUT OF GRASS! NO GRASS! ¡LA TIERRA SE HA QUEDADO SIN HIERBA! ¡NI UNA!
|
||||||
Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors (E). ¡Manos vacías! Ve a la PARED DE SUMINISTROS, en el lado oeste de la cubierta, y coge las tijeras de uñas (E).
|
Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors ({0}). ¡Manos vacías! Ve a la PARED DE SUMINISTROS, en el lado oeste de la cubierta, y coge las tijeras de uñas ({0}).
|
||||||
Every blade counts. Apparently. Cada brizna cuenta. Por lo visto.
|
Every blade counts. Apparently. Cada brizna cuenta. Por lo visto.
|
||||||
Every kilo is shot into a Bundle Catcher, anywhere on the planet. A Catcher holds 100 kg and puts it on a belt. With no Catcher free the Reaper stops when its hopper is full. Cada kilo sale disparado hacia un Atrapafardos, esté donde esté en el planeta. Un Atrapafardos guarda 100 kg y los pone en una cinta. Si no hay ninguno libre, el Segador se para cuando se le llena la tolva.
|
Every kilo is shot into a Bundle Catcher, anywhere on the planet. A Catcher holds 100 kg and puts it on a belt. With no Catcher free the Reaper stops when its hopper is full. Cada kilo sale disparado hacia un Atrapafardos, esté donde esté en el planeta. Un Atrapafardos guarda 100 kg y los pone en una cinta. Si no hay ninguno libre, el Segador se para cuando se le llena la tolva.
|
||||||
Every Last Stake Hasta la última estaca
|
Every Last Stake Hasta la última estaca
|
||||||
@ -222,7 +222,6 @@ FIND GAMES BUSCAR PARTIDAS
|
|||||||
First day Primer día
|
First day Primer día
|
||||||
First Delivery Primera entrega
|
First Delivery Primera entrega
|
||||||
Five kilos of grass become five of hay in 12 seconds. Hay pays three times as much. Cinco kilos de hierba se convierten en cinco de heno en 12 segundos. El heno se paga tres veces más.
|
Five kilos of grass become five of hay in 12 seconds. Hay pays three times as much. Cinco kilos de hierba se convierten en cinco de heno en 12 segundos. El heno se paga tres veces más.
|
||||||
FLEET FLOTA
|
|
||||||
Floodlights Focos
|
Floodlights Focos
|
||||||
Found so far: {0} stakes, {1} points. Hasta ahora: {0} estacas y {1} puntos.
|
Found so far: {0} stakes, {1} points. Hasta ahora: {0} estacas y {1} puntos.
|
||||||
Foundations Losas
|
Foundations Losas
|
||||||
@ -287,9 +286,9 @@ Hi. I'm the Director's assistant. Hola. Soy la asistente del Director.
|
|||||||
Hold: Read the survey point ({0}) Mantén: leer el punto geodésico ({0})
|
Hold: Read the survey point ({0}) Mantén: leer el punto geodésico ({0})
|
||||||
Hold: Untangle the stake ({0}) Mantén: desenredar la estaca ({0})
|
Hold: Untangle the stake ({0}) Mantén: desenredar la estaca ({0})
|
||||||
Holds 100 kg of what Reapers shoot and puts it on the belt. Guarda 100 kg de lo que disparan los Segadores y lo pone en la cinta.
|
Holds 100 kg of what Reapers shoot and puts it on the belt. Guarda 100 kg de lo que disparan los Segadores y lo pone en la cinta.
|
||||||
Hop down to the meadow (SPACE at the railing) and HOLD LEFT CLICK: sweep the blade over the grass. Earth needs every blade of it. Baja al prado (SPACE en la barandilla) y MANTÉN EL CLIC IZQUIERDO: pasa la hoja por la hierba. La Tierra necesita hasta la última brizna.
|
Hop down to the meadow ({0} at the railing) and HOLD {1}: sweep the blade over the grass. Earth needs every blade of it. Baja al prado ({0} en la barandilla) y MANTÉN {1}: pasa la hoja por la hierba. La Tierra necesita hasta la última brizna.
|
||||||
Hop down to the meadow, space at the railing. Baja al prado: espacio en la barandilla.
|
Hop down to the meadow, space at the railing. Baja al prado: espacio en la barandilla.
|
||||||
Hop off [R] View Bajar [R] Vista
|
Hop off [{0}] View Bajar [{0}] Vista
|
||||||
Hop over the railing with SPACE, hold LEFT CLICK and sweep the blade over the grass. It goes straight into the tool's container. Salta la barandilla con SPACE, mantén el CLIC IZQUIERDO y pasa la hoja por la hierba. Va directa al contenedor de la herramienta.
|
Hop over the railing with SPACE, hold LEFT CLICK and sweep the blade over the grass. It goes straight into the tool's container. Salta la barandilla con SPACE, mantén el CLIC IZQUIERDO y pasa la hoja por la hierba. Va directa al contenedor de la herramienta.
|
||||||
hopper full, needs a catcher with room tolva llena, necesita un atrapafardos con sitio
|
hopper full, needs a catcher with room tolva llena, necesita un atrapafardos con sitio
|
||||||
Hopper full: drive to an UNLOAD marker Tolva llena: ve a un marcador de DESCARGA
|
Hopper full: drive to an UNLOAD marker Tolva llena: ve a un marcador de DESCARGA
|
||||||
@ -331,8 +330,8 @@ Let the Robot Do It Que lo haga el robot
|
|||||||
Linking... Enlazando...
|
Linking... Enlazando...
|
||||||
Listen up, you incompetent idiots! ¡Escuchadme, panda de inútiles!
|
Listen up, you incompetent idiots! ¡Escuchadme, panda de inútiles!
|
||||||
Listening for LAN games… Buscando partidas LAN…
|
Listening for LAN games… Buscando partidas LAN…
|
||||||
LMB where the belt starts · height {0:0.0} m LMB donde empieza la cinta · altura {0:0.0} m
|
{1} where the belt starts · height {0:0.0} m {1} donde empieza la cinta · altura {0:0.0} m
|
||||||
LMB: go on from this end LMB: seguir desde este extremo
|
{0}: go on from this end {0}: seguir desde este extremo
|
||||||
LOGISTICS LOGÍSTICA
|
LOGISTICS LOGÍSTICA
|
||||||
Long Handles Mangos largos
|
Long Handles Mangos largos
|
||||||
Long Scythe Guadaña larga
|
Long Scythe Guadaña larga
|
||||||
@ -356,7 +355,7 @@ Mode Modo
|
|||||||
More cash for every sector mown clean. Más pasta por cada sector segado del todo.
|
More cash for every sector mown clean. Más pasta por cada sector segado del todo.
|
||||||
Mouse sensitivity Sensibilidad del ratón
|
Mouse sensitivity Sensibilidad del ratón
|
||||||
Move faster. Muévete más rápido.
|
Move faster. Muévete más rápido.
|
||||||
Moving {0}: LMB put down · R rotate · RMB cancel Moviendo {0}: LMB soltar · R girar · RMB cancelar
|
Moving {0}: {1} put down · {2} rotate · {3} cancel Moviendo {0}: {1} soltar · {2} girar · {3} cancelar
|
||||||
Mow a path for the belt first Primero siega un camino para la cinta
|
Mow a path for the belt first Primero siega un camino para la cinta
|
||||||
Mow Base Base de siega
|
Mow Base Base de siega
|
||||||
Mow the grass here first Primero siega la hierba de aquí
|
Mow the grass here first Primero siega la hierba de aquí
|
||||||
@ -381,7 +380,6 @@ Nail Scissors Basket Cesta de Tijeras de uñas
|
|||||||
NE NE
|
NE NE
|
||||||
Never once lost a scythe. Nunca ha perdido una guadaña.
|
Never once lost a scythe. Nunca ha perdido una guadaña.
|
||||||
NEW GAME NUEVA PARTIDA
|
NEW GAME NUEVA PARTIDA
|
||||||
NEXT {0} SIGUIENTE {0}
|
|
||||||
Night Vision Visión nocturna
|
Night Vision Visión nocturna
|
||||||
Night vision on Visión nocturna activada
|
Night vision on Visión nocturna activada
|
||||||
Night Vision: {0}. N goes from the headlamp to night vision to nothing. Visión nocturna: {0}. N pasa de la linterna a la visión nocturna y luego a nada.
|
Night Vision: {0}. N goes from the headlamp to night vision to nothing. Visión nocturna: {0}. N pasa de la linterna a la visión nocturna y luego a nada.
|
||||||
@ -400,7 +398,6 @@ nothing to run, {0:0.#} kW free nada que alimentar, {0:0.#} kW libres
|
|||||||
nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh nada que alimentar, {0:0.#} kW libres, baterías {1:0.0} de {2:0} kWh
|
nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh nada que alimentar, {0:0.#} kW libres, baterías {1:0.0} de {2:0} kWh
|
||||||
Nothing to set on this one. Aquí no hay nada que ajustar.
|
Nothing to set on this one. Aquí no hay nada que ajustar.
|
||||||
Nothing to tie: cut some grass first Nada que atar: primero corta algo de hierba
|
Nothing to tie: cut some grass first Nada que atar: primero corta algo de hierba
|
||||||
NOW {0} AHORA {0}
|
|
||||||
NOW {0} of {1} slots AHORA {0} de {1} huecos
|
NOW {0} of {1} slots AHORA {0} de {1} huecos
|
||||||
NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! ¡AHORA HACED EL OTRO NOVENTA Y NUEVE COMA NUEVE NUEVE NUEVE!
|
NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! ¡AHORA HACED EL OTRO NOVENTA Y NUEVE COMA NUEVE NUEVE NUEVE!
|
||||||
NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! ¡AHORA SALID AHÍ FUERA Y SEGAD ESE MALDITO PLANETA!
|
NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! ¡AHORA SALID AHÍ FUERA Y SEGAD ESE MALDITO PLANETA!
|
||||||
@ -485,7 +482,7 @@ Reset progress? ¿Reiniciar el progreso?
|
|||||||
resting en reposo
|
resting en reposo
|
||||||
RESUME REANUDAR
|
RESUME REANUDAR
|
||||||
Ride the {0} ({1} / {2}) Conducir: {0} ({1} / {2})
|
Ride the {0} ({1} / {2}) Conducir: {0} ({1} / {2})
|
||||||
Ride the {0} ({1} of {2} bundles, E with a bundle loads it) Conducir: {0} ({1} de {2} fardos, E con un fardo lo carga)
|
Ride the {0} ({1} of {2} bundles, {3} with a bundle loads it) Conducir: {0} ({1} de {2} fardos, {3} con un fardo lo carga)
|
||||||
RIGHT CLICK takes a piece down and gives all the money back. T carries it somewhere else, the middle button copies it. CLIC DERECHO desmonta una pieza y te devuelve todo el dinero. T la lleva a otro sitio y el botón central la copia.
|
RIGHT CLICK takes a piece down and gives all the money back. T carries it somewhere else, the middle button copies it. CLIC DERECHO desmonta una pieza y te devuelve todo el dinero. T la lleva a otro sitio y el botón central la copia.
|
||||||
Robot Robot
|
Robot Robot
|
||||||
Robot Crew Cuadrilla robot
|
Robot Crew Cuadrilla robot
|
||||||
@ -584,7 +581,7 @@ Supply wall — tools & gear Pared de suministros — herramientas y equipo
|
|||||||
Survey point: already read Punto geodésico: ya leído
|
Survey point: already read Punto geodésico: ya leído
|
||||||
Surveyor Topógrafo
|
Surveyor Topógrafo
|
||||||
SW SO
|
SW SO
|
||||||
T move · MMB copy · RMB remove T mover · MMB copiar · RMB quitar
|
{0} move · {1} copy · {2} remove {0} mover · {1} copiar · {2} quitar
|
||||||
TAKE IN HAND EMPUÑAR
|
TAKE IN HAND EMPUÑAR
|
||||||
TAKE IT COGER
|
TAKE IT COGER
|
||||||
Take the nail scissors from the SUPPLY WALL on the west side of the deck. Coge las tijeras de uñas de la PARED DE SUMINISTROS, en el lado oeste de la cubierta.
|
Take the nail scissors from the SUPPLY WALL on the west side of the deck. Coge las tijeras de uñas de la PARED DE SUMINISTROS, en el lado oeste de la cubierta.
|
||||||
@ -634,10 +631,10 @@ They fill with whatever sun the machines don't use, and when the panels fall sho
|
|||||||
Thirty harvests and still early. Treinta cosechas y aún es pronto.
|
Thirty harvests and still early. Treinta cosechas y aún es pronto.
|
||||||
This is G.R.A.S.S.A. We take grass very seriously. Esto es G.R.A.S.S.A. Nos tomamos la hierba muy en serio.
|
This is G.R.A.S.S.A. We take grass very seriously. Esto es G.R.A.S.S.A. Nos tomamos la hierba muy en serio.
|
||||||
This is what peak civilization looks like. Así es la cumbre de la civilización.
|
This is what peak civilization looks like. Así es la cumbre de la civilización.
|
||||||
Throw [E] Drop [R] Turn Lanzar [E] Soltar [R] Girar
|
Throw [{0}] Drop [{1}] Turn Lanzar [{0}] Soltar [{1}] Girar
|
||||||
Throw +{0}% Lanzamiento +{0} %
|
Throw +{0}% Lanzamiento +{0} %
|
||||||
Throw bundles further. Lanza los fardos más lejos.
|
Throw bundles further. Lanza los fardos más lejos.
|
||||||
Throw it in the DEPOT or onto a belt [E] Drop [R] Turn Lánzalo al DEPÓSITO o a una cinta [E] Soltar [R] Girar
|
Throw it in the DEPOT or onto a belt [{0}] Drop [{1}] Turn Lánzalo al DEPÓSITO o a una cinta [{0}] Soltar [{1}] Girar
|
||||||
Throwing Arm Brazo lanzador
|
Throwing Arm Brazo lanzador
|
||||||
Thunderstorm! Dark skies, weak sun, twisters about. ¡Tormenta! Cielo oscuro, sol débil y tornados sueltos.
|
Thunderstorm! Dark skies, weak sun, twisters about. ¡Tormenta! Cielo oscuro, sol débil y tornados sueltos.
|
||||||
Thunderstorm. Dark skies, weak sun, and twisters about. Tormenta. Cielo oscuro, sol débil y tornados sueltos.
|
Thunderstorm. Dark skies, weak sun, and twisters about. Tormenta. Cielo oscuro, sol débil y tornados sueltos.
|
||||||
@ -681,7 +678,6 @@ Upgrades are for the whole crew and come out of the shared wallet. Las mejoras s
|
|||||||
V-Sync V-Sync
|
V-Sync V-Sync
|
||||||
Version mismatch Versiones distintas
|
Version mismatch Versiones distintas
|
||||||
Voices Voces
|
Voices Voces
|
||||||
v{0} · early build v{0} · versión preliminar
|
|
||||||
W O
|
W O
|
||||||
W A S D to drive. Shift to boost. W A S D para conducir. Shift para el turbo.
|
W A S D to drive. Shift to boost. W A S D para conducir. Shift para el turbo.
|
||||||
Wait. Is that... progress? Un momento. ¿Eso es... progreso?
|
Wait. Is that... progress? Un momento. ¿Eso es... progreso?
|
||||||
@ -695,7 +691,7 @@ Weight Peso
|
|||||||
WELCOME TO HERBARIA-7 BIENVENIDO A HERBARIA-7
|
WELCOME TO HERBARIA-7 BIENVENIDO A HERBARIA-7
|
||||||
Well Travelled Trotamundos
|
Well Travelled Trotamundos
|
||||||
Wheat Trigo
|
Wheat Trigo
|
||||||
WHEEL piece · LMB place · R rotate · T move · MMB copy · RMB remove · CTRL+WHEEL height · F free WHEEL pieza · LMB colocar · R girar · T mover · MMB copiar · RMB quitar · CTRL+WHEEL altura · F libre
|
WHEEL piece · {0} place · {1} rotate · {2} move · {3} copy · {4} remove · CTRL+WHEEL height · {5} free WHEEL pieza · {0} colocar · {1} girar · {2} mover · {3} copiar · {4} quitar · CTRL+WHEEL altura · {5} libre
|
||||||
Whetstone Steel Acero afilado
|
Whetstone Steel Acero afilado
|
||||||
Which address? ¿Qué dirección?
|
Which address? ¿Qué dirección?
|
||||||
Whoa! The twister threw you. ¡Uf! El tornado te ha mandado por los aires.
|
Whoa! The twister threw you. ¡Uf! El tornado te ha mandado por los aires.
|
||||||
@ -727,8 +723,8 @@ Zero point zero zero one percent. Cero coma cero cero uno por ciento.
|
|||||||
{0:0.##} m · {1:0} kg {0:0.##} m · {1:0} kg
|
{0:0.##} m · {1:0} kg {0:0.##} m · {1:0} kg
|
||||||
{0:0.##}% of Herbaria-7 {0:0.##} % de Herbaria-7
|
{0:0.##}% of Herbaria-7 {0:0.##} % de Herbaria-7
|
||||||
{0:0.#} cm · {1:0.##} kg {0:0.#} cm · {1:0.##} kg
|
{0:0.#} cm · {1:0.##} kg {0:0.#} cm · {1:0.##} kg
|
||||||
{0:0.#} m of belt · MMB copy · RMB remove {0:0.#} m de cinta · MMB copiar · RMB quitar
|
{0:0.#} m of belt · {1} copy · {2} remove {0:0.#} m de cinta · {1} copiar · {2} quitar
|
||||||
{0:0.#} m, {1} · height {2:0.0} m · RMB stops {0:0.#} m, {1} · altura {2:0.0} m · RMB termina
|
{0:0.#} m, {1} · height {2:0.0} m · {3} stops {0:0.#} m, {1} · altura {2:0.0} m · {3} termina
|
||||||
{0:0.#}% mown {0:0.#} % segado
|
{0:0.#}% mown {0:0.#} % segado
|
||||||
{0:0.0000}% {0:0.0000} %
|
{0:0.0000}% {0:0.0000} %
|
||||||
{0:0.00} / {1:0.##} KG {0:0.00} / {1:0.##} KG
|
{0:0.00} / {1:0.##} KG {0:0.00} / {1:0.##} KG
|
||||||
@ -740,7 +736,7 @@ Zero point zero zero one percent. Cero coma cero cero uno por ciento.
|
|||||||
{0:N0} Sectors {0:N0} sectores
|
{0:N0} Sectors {0:N0} sectores
|
||||||
{0:N0} sectors clean · {1} / {2} stakes · {3} / {4} survey points {0:N0} sectores limpios · {1} / {2} estacas · {3} / {4} puntos geodésicos
|
{0:N0} sectors clean · {1} / {2} stakes · {3} / {4} survey points {0:N0} sectores limpios · {1} / {2} estacas · {3} / {4} puntos geodésicos
|
||||||
{0:N0} started · {1:N0} mown · {2:0.0000}% of the planet {0:N0} empezados · {1:N0} segados · {2:0.0000} % del planeta
|
{0:N0} started · {1:N0} mown · {2:0.0000}% of the planet {0:N0} empezados · {1:N0} segados · {2:0.0000} % del planeta
|
||||||
{0} [T] Upgrades & settings {0} [T] Mejoras y ajustes
|
{0} [{1}] Upgrades & settings {0} [{1}] Mejoras y ajustes
|
||||||
{0} (you) {0} (tú)
|
{0} (you) {0} (tú)
|
||||||
{0} / kg {0} / kg
|
{0} / kg {0} / kg
|
||||||
{0} / {1} slots {0} / {1} huecos
|
{0} / {1} slots {0} / {1} huecos
|
||||||
@ -797,9 +793,9 @@ HOW MUCH LAWN? ¿CUÁNTO CÉSPED?
|
|||||||
EASY FÁCIL
|
EASY FÁCIL
|
||||||
NORMAL NORMAL
|
NORMAL NORMAL
|
||||||
EXTRA HARD MUY DIFÍCIL
|
EXTRA HARD MUY DIFÍCIL
|
||||||
A planet a third the size, with sectors to match. Earth can wait a little. Un planeta de un tercio del tamaño, con sectores a juego. La Tierra puede esperar un poco.
|
A sixth of the big planet, sectors to match. Earth can wait a little. Un sexto del planeta grande, con sectores a juego. La Tierra puede esperar un poco.
|
||||||
Half the planet, half-size sectors. Still a lot of lawn. Medio planeta, sectores de la mitad de tamaño. Sigue siendo mucho césped.
|
A third of the big planet, smaller sectors. Still a lot of lawn. Un tercio del planeta grande, sectores más pequeños. Sigue siendo mucho césped.
|
||||||
The whole of Herbaria-7, full-size sectors, every blade of it. Herbaria-7 entera, sectores de tamaño completo, hasta la última brizna.
|
The big planet: the whole of Herbaria-7, every blade of it. El planeta grande: Herbaria-7 entera, hasta la última brizna.
|
||||||
DECOR DECORACIÓN
|
DECOR DECORACIÓN
|
||||||
Wall Pared
|
Wall Pared
|
||||||
A 3 m timber wall. It goes on the edge of a foundation or a floor; R turns it round. Una pared de madera de 3 m. Va en el borde de una losa o de un piso; R la gira.
|
A 3 m timber wall. It goes on the edge of a foundation or a floor; R turns it round. Una pared de madera de 3 m. Va en el borde de una losa o de un piso; R la gira.
|
||||||
@ -962,3 +958,52 @@ A big mowing drone. It flies over rocks and hills, works 91 sectors around its p
|
|||||||
ME YO
|
ME YO
|
||||||
GLOBE GLOBO
|
GLOBE GLOBO
|
||||||
DRAG move · WHEEL zoom · SPACE back to you · M close DRAG mover · WHEEL zoom · SPACE volver a ti · M cerrar
|
DRAG move · WHEEL zoom · SPACE back to you · M close DRAG mover · WHEEL zoom · SPACE volver a ti · M cerrar
|
||||||
|
AUTOMATION AUTOMATIZACIÓN
|
||||||
|
Long Leash Correa larga
|
||||||
|
Robots start further out and mow further from home. Los robots empiezan más lejos y siegan más lejos de casa.
|
||||||
|
+{0}% robot reach +{0} % de alcance de robots
|
||||||
|
Overdrive Motors Motores Overdrive
|
||||||
|
Robots and Sky Mowers drive and mow faster. Los robots y las segadoras aéreas van y siegan más rápido.
|
||||||
|
+{0}% robot speed +{0} % de velocidad de robots
|
||||||
|
Bigger Hoppers Tolvas más grandes
|
||||||
|
Robots carry more grass before they head home. Los robots cargan más hierba antes de volver a casa.
|
||||||
|
+{0}% robot hopper +{0} % de tolva de robots
|
||||||
|
Long-Range Drones Drones de largo alcance
|
||||||
|
Drone pads fetch bundles from further away. Las plataformas de drones recogen fardos desde más lejos.
|
||||||
|
+{0} m drone reach +{0} m de alcance de drones
|
||||||
|
Hive Mind Mente colmena
|
||||||
|
Every robot, Sky Mower and drone works 20% faster. Cada robot, segadora aérea y dron trabaja un 20 % más rápido.
|
||||||
|
Autopilot Piloto automático
|
||||||
|
C hands it over: it mows and unloads on its own C lo cede: siega y descarga por su cuenta
|
||||||
|
autopilot: off to unload piloto automático: va a descargar
|
||||||
|
autopilot: nothing left to mow round here piloto automático: aquí ya no queda nada que segar
|
||||||
|
autopilot: mowing piloto automático: segando
|
||||||
|
Take over the {0} ({1}, {2} / {3}) Tomar el control: {0} ({1}, {2} / {3})
|
||||||
|
Autopilot on: the {0} mows round here and unloads itself. Hop back in to take over. Piloto automático activado: {0} siega por aquí y descarga solo. Súbete de nuevo para tomar el control.
|
||||||
|
WASD to drive · SHIFT boost · R chase view · E to hop off · C autopilot WASD conducir · SHIFT turbo · R vista exterior · E bajarse · C piloto automático
|
||||||
|
Grass Train Tren de hierba
|
||||||
|
Lays its own track to a station next door, mowing all the way there. Then it runs back and forth, its side cutters reaching further out on every run, and what it cuts is paid for at either end. Build it on open ground facing the way it should go. Se tiende sus propias vías hasta una estación vecina y siega todo el camino. Luego va y viene, sus segadoras laterales llegan más lejos en cada viaje y lo que corta se paga en ambos extremos. Constrúyelo en terreno despejado, mirando hacia donde debe ir.
|
||||||
|
{0}: laying track to {1}, {2} of {3} m {0}: tendiendo vía hasta {1}, {2} de {3} m
|
||||||
|
E: another station E: otra estación
|
||||||
|
{0}: running to {1} and back, cutting {2} m out either side, {3} on board {0}: va a {1} y vuelve, siega {2} m a cada lado, {3} a bordo
|
||||||
|
x{0:0.#} speed and reach, {1} wagons x{0:0.#} velocidad y alcance, {1} vagones
|
||||||
|
Train yard: {0} Patio del tren: {0}
|
||||||
|
The Grass Train lays track on to {0} El Tren de Hierba tiende vía hasta {0}
|
||||||
|
{0}: carrying grass home from the stations on its line, {1} on board, {2} waiting {0}: lleva a casa la hierba de las estaciones de su línea, {1} a bordo, {2} esperando
|
||||||
|
E: ride in the cab E: subir a la cabina
|
||||||
|
In the cab: W forward · S back · E to get off En la cabina: W adelante · S atrás · E bajar
|
||||||
|
Head bob Balanceo de cámara
|
||||||
|
The view rocks a little with each step. Off keeps it still. La vista se mece un poco con cada paso. Desactivado la mantiene quieta.
|
||||||
|
STEAM PAGE PÁGINA DE STEAM
|
||||||
|
FEEDBACK OPINIONES
|
||||||
|
Grass Cutters Together needs Steam. Start Steam, sign in to the account that owns the game, and launch it from your library. Grass Cutters Together necesita Steam. Abre Steam, inicia sesión con la cuenta que tiene el juego y ejecútalo desde tu biblioteca.
|
||||||
|
That's the end of the demo: the full game has the rest of the planet. Aquí termina la demo: el resto del planeta te espera en el juego completo.
|
||||||
|
DEMO DEMO
|
||||||
|
WISHLIST THE FULL GAME AÑADIR EL JUEGO A LA LISTA DE DESEADOS
|
||||||
|
DEMO COMPLETE · thanks for playing! DEMO COMPLETADA · ¡gracias por jugar!
|
||||||
|
DEMO · goal: ship {0} of {1} kg of grass DEMO · objetivo: entregar {0} de {1} kg de hierba
|
||||||
|
THANKS FOR PLAYING THE DEMO! ¡GRACIAS POR JUGAR LA DEMO!
|
||||||
|
Your crew shipped {0} kg of grass and reached the end of the demo. In the full game the whole planet is yours: machines, belts, robots, far stations and up to 16 players. Tu equipo ha entregado {0} kg de hierba y ha llegado al final de la demo. En el juego completo todo el planeta es tuyo: máquinas, cintas, robots, estaciones lejanas y hasta 16 jugadores.
|
||||||
|
You can keep mowing here, but nothing more is for sale in the demo. Puedes seguir segando aquí, pero en la demo ya no hay nada más a la venta.
|
||||||
|
LEAVE FEEDBACK DAR MI OPINIÓN
|
||||||
|
KEEP MOWING SEGUIR SEGANDO
|
||||||
|
|||||||
@ -139,7 +139,7 @@ Company property Propriété de l'entreprise
|
|||||||
Connecting to {0}… Connexion à {0}…
|
Connecting to {0}… Connexion à {0}…
|
||||||
Connecting… Connexion…
|
Connecting… Connexion…
|
||||||
Container {0:0.##} kg Bac {0:0.##} kg
|
Container {0:0.##} kg Bac {0:0.##} kg
|
||||||
Container full! Press E at the DEPOT to hand it all in, or Q to tie a 1 kg bundle you can carry and throw. Bac plein ! Appuie sur E au DÉPÔT pour tout livrer, ou sur Q pour lier une botte de 1 kg à porter et à lancer.
|
Container full! Press {0} at the DEPOT to hand it all in, or {1} to tie a 1 kg bundle you can carry and throw. Bac plein ! Appuie sur {0} au DÉPÔT pour tout livrer, ou sur {1} pour lier une botte de 1 kg à porter et à lancer.
|
||||||
Container full! Q ties a bundle, E at the DEPOT hands it all in Bac plein ! Q lie une botte, E au DÉPÔT livre tout
|
Container full! Q ties a bundle, E at the DEPOT hands it all in Bac plein ! Q lie une botte, E au DÉPÔT livre tout
|
||||||
Container x{0:0} Bac x{0:0}
|
Container x{0:0} Bac x{0:0}
|
||||||
CONTAINERS BACS
|
CONTAINERS BACS
|
||||||
@ -194,8 +194,8 @@ ECONOMY ÉCONOMIE
|
|||||||
Effects Effets
|
Effects Effets
|
||||||
Eleven more stations stand around the planet. Walk up to one and it opens for the crew: a depot, a supply wall, a console and a travel terminal. Onze autres stations sont réparties sur la planète. Approche-toi de l'une d'elles et elle s'ouvre à l'équipe : un dépôt, un mur d'outils, une console et un terminal de voyage.
|
Eleven more stations stand around the planet. Walk up to one and it opens for the crew: a depot, a supply wall, a console and a travel terminal. Onze autres stations sont réparties sur la planète. Approche-toi de l'une d'elles et elle s'ouvre à l'équipe : un dépôt, un mur d'outils, une console et un terminal de voyage.
|
||||||
Empty Vide
|
Empty Vide
|
||||||
Empty bed · E with a bundle in your arms loads it Benne vide · E avec une botte dans les bras pour la charger
|
Empty bed · {0} with a bundle in your arms loads it Benne vide · {0} avec une botte dans les bras pour la charger
|
||||||
Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors (E). Mains vides ! Va au MUR D'OUTILS, côté ouest de la plateforme, et prends les ciseaux à ongles (E).
|
Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors ({0}). Mains vides ! Va au MUR D'OUTILS, côté ouest de la plateforme, et prends les ciseaux à ongles ({0}).
|
||||||
Every blade counts. Apparently. Chaque brin compte. Paraît-il.
|
Every blade counts. Apparently. Chaque brin compte. Paraît-il.
|
||||||
Every kilo is shot into a Bundle Catcher, anywhere on the planet. A Catcher holds 100 kg and puts it on a belt. With no Catcher free the Reaper stops when its hopper is full. Chaque kilo est tiré dans un Attrape-bottes, n'importe où sur la planète. Un Attrape-bottes contient 100 kg et les met sur un tapis. Sans Attrape-bottes libre, la Faucheuse s'arrête quand sa trémie est pleine.
|
Every kilo is shot into a Bundle Catcher, anywhere on the planet. A Catcher holds 100 kg and puts it on a belt. With no Catcher free the Reaper stops when its hopper is full. Chaque kilo est tiré dans un Attrape-bottes, n'importe où sur la planète. Un Attrape-bottes contient 100 kg et les met sur un tapis. Sans Attrape-bottes libre, la Faucheuse s'arrête quand sa trémie est pleine.
|
||||||
Every Last Stake Jusqu'au dernier piquet
|
Every Last Stake Jusqu'au dernier piquet
|
||||||
@ -223,7 +223,6 @@ FIND GAMES TROUVER DES PARTIES
|
|||||||
First day Premier jour
|
First day Premier jour
|
||||||
First Delivery Première livraison
|
First Delivery Première livraison
|
||||||
Five kilos of grass become five of hay in 12 seconds. Hay pays three times as much. Cinq kilos d'herbe donnent cinq kilos de foin en 12 secondes. Le foin rapporte trois fois plus.
|
Five kilos of grass become five of hay in 12 seconds. Hay pays three times as much. Cinq kilos d'herbe donnent cinq kilos de foin en 12 secondes. Le foin rapporte trois fois plus.
|
||||||
FLEET FLOTTE
|
|
||||||
Floodlights Projecteurs
|
Floodlights Projecteurs
|
||||||
Found so far: {0} stakes, {1} points. Trouvés jusqu'ici : {0} piquets, {1} points.
|
Found so far: {0} stakes, {1} points. Trouvés jusqu'ici : {0} piquets, {1} points.
|
||||||
Foundations Fondations
|
Foundations Fondations
|
||||||
@ -288,9 +287,9 @@ Hi. I'm the Director's assistant. Salut. Je suis l'assistante du Directeur.
|
|||||||
Hold: Read the survey point ({0}) Maintenir : lire le point de relevé ({0})
|
Hold: Read the survey point ({0}) Maintenir : lire le point de relevé ({0})
|
||||||
Hold: Untangle the stake ({0}) Maintenir : démêler le piquet ({0})
|
Hold: Untangle the stake ({0}) Maintenir : démêler le piquet ({0})
|
||||||
Holds 100 kg of what Reapers shoot and puts it on the belt. Reçoit 100 kg de ce que tirent les Faucheuses et les met sur le tapis.
|
Holds 100 kg of what Reapers shoot and puts it on the belt. Reçoit 100 kg de ce que tirent les Faucheuses et les met sur le tapis.
|
||||||
Hop down to the meadow (SPACE at the railing) and HOLD LEFT CLICK: sweep the blade over the grass. Earth needs every blade of it. Descends dans la prairie (SPACE à la rambarde) et MAINTIENS CLIC GAUCHE : passe la lame sur l'herbe. La Terre a besoin de chaque brin.
|
Hop down to the meadow ({0} at the railing) and HOLD {1}: sweep the blade over the grass. Earth needs every blade of it. Descends dans la prairie ({0} à la rambarde) et MAINTIENS {1} : passe la lame sur l'herbe. La Terre a besoin de chaque brin.
|
||||||
Hop down to the meadow, space at the railing. Descends dans la prairie : espace à la rambarde.
|
Hop down to the meadow, space at the railing. Descends dans la prairie : espace à la rambarde.
|
||||||
Hop off [R] View Descendre [R] Vue
|
Hop off [{0}] View Descendre [{0}] Vue
|
||||||
Hop over the railing with SPACE, hold LEFT CLICK and sweep the blade over the grass. It goes straight into the tool's container. Saute la rambarde avec SPACE, maintiens CLIC GAUCHE et passe la lame sur l'herbe. Elle va directement dans le bac de l'outil.
|
Hop over the railing with SPACE, hold LEFT CLICK and sweep the blade over the grass. It goes straight into the tool's container. Saute la rambarde avec SPACE, maintiens CLIC GAUCHE et passe la lame sur l'herbe. Elle va directement dans le bac de l'outil.
|
||||||
hopper full, needs a catcher with room trémie pleine, il faut un attrape-bottes libre
|
hopper full, needs a catcher with room trémie pleine, il faut un attrape-bottes libre
|
||||||
Hopper full: drive to an UNLOAD marker Trémie pleine : va à un marqueur DÉCHARGER
|
Hopper full: drive to an UNLOAD marker Trémie pleine : va à un marqueur DÉCHARGER
|
||||||
@ -332,8 +331,8 @@ Let the Robot Do It Laisse faire le robot
|
|||||||
Linking... Liaison...
|
Linking... Liaison...
|
||||||
Listen up, you incompetent idiots! Écoutez-moi bien, bande d'incapables !
|
Listen up, you incompetent idiots! Écoutez-moi bien, bande d'incapables !
|
||||||
Listening for LAN games… Recherche de parties LAN…
|
Listening for LAN games… Recherche de parties LAN…
|
||||||
LMB where the belt starts · height {0:0.0} m LMB au départ du tapis · hauteur {0:0.0} m
|
{1} where the belt starts · height {0:0.0} m {1} au départ du tapis · hauteur {0:0.0} m
|
||||||
LMB: go on from this end LMB : continuer depuis ce bout
|
{0}: go on from this end {0} : continuer depuis ce bout
|
||||||
LOGISTICS LOGISTIQUE
|
LOGISTICS LOGISTIQUE
|
||||||
Long Handles Manches longs
|
Long Handles Manches longs
|
||||||
Long Scythe Faux longue
|
Long Scythe Faux longue
|
||||||
@ -357,7 +356,7 @@ Mode Mode
|
|||||||
More cash for every sector mown clean. Plus d'argent pour chaque secteur tondu à ras.
|
More cash for every sector mown clean. Plus d'argent pour chaque secteur tondu à ras.
|
||||||
Mouse sensitivity Sensibilité de la souris
|
Mouse sensitivity Sensibilité de la souris
|
||||||
Move faster. Bouge plus vite.
|
Move faster. Bouge plus vite.
|
||||||
Moving {0}: LMB put down · R rotate · RMB cancel Déplacer {0} : LMB poser · R pivoter · RMB annuler
|
Moving {0}: {1} put down · {2} rotate · {3} cancel Déplacer {0} : {1} poser · {2} pivoter · {3} annuler
|
||||||
Mow a path for the belt first Tonds d'abord un chemin pour le tapis
|
Mow a path for the belt first Tonds d'abord un chemin pour le tapis
|
||||||
Mow Base Base de tonte
|
Mow Base Base de tonte
|
||||||
Mow the grass here first Tonds d'abord l'herbe ici
|
Mow the grass here first Tonds d'abord l'herbe ici
|
||||||
@ -382,7 +381,6 @@ Nail Scissors Basket Panier de Ciseaux à ongles
|
|||||||
NE NE
|
NE NE
|
||||||
Never once lost a scythe. N'a jamais perdu une seule faux.
|
Never once lost a scythe. N'a jamais perdu une seule faux.
|
||||||
NEW GAME NOUVELLE PARTIE
|
NEW GAME NOUVELLE PARTIE
|
||||||
NEXT {0} SUIVANT {0}
|
|
||||||
Night Vision Vision nocturne
|
Night Vision Vision nocturne
|
||||||
Night vision on Vision nocturne activée
|
Night vision on Vision nocturne activée
|
||||||
Night Vision: {0}. N goes from the headlamp to night vision to nothing. Vision nocturne : {0}. N passe de la lampe frontale à la vision nocturne, puis à rien.
|
Night Vision: {0}. N goes from the headlamp to night vision to nothing. Vision nocturne : {0}. N passe de la lampe frontale à la vision nocturne, puis à rien.
|
||||||
@ -401,7 +399,6 @@ nothing to run, {0:0.#} kW free rien à alimenter, {0:0.#} kW libres
|
|||||||
nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh rien à alimenter, {0:0.#} kW libres, batteries {1:0.0} sur {2:0} kWh
|
nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh rien à alimenter, {0:0.#} kW libres, batteries {1:0.0} sur {2:0} kWh
|
||||||
Nothing to set on this one. Rien à régler ici.
|
Nothing to set on this one. Rien à régler ici.
|
||||||
Nothing to tie: cut some grass first Rien à lier : coupe d'abord de l'herbe
|
Nothing to tie: cut some grass first Rien à lier : coupe d'abord de l'herbe
|
||||||
NOW {0} ACTUEL {0}
|
|
||||||
NOW {0} of {1} slots ACTUEL {0} étuis sur {1}
|
NOW {0} of {1} slots ACTUEL {0} étuis sur {1}
|
||||||
NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! MAINTENANT, FAITES LES QUATRE-VINGT-DIX-NEUF VIRGULE NEUF NEUF NEUF RESTANTS !
|
NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! MAINTENANT, FAITES LES QUATRE-VINGT-DIX-NEUF VIRGULE NEUF NEUF NEUF RESTANTS !
|
||||||
NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! MAINTENANT, SORTEZ ET TONDEZ-MOI CETTE FOUTUE PLANÈTE !
|
NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! MAINTENANT, SORTEZ ET TONDEZ-MOI CETTE FOUTUE PLANÈTE !
|
||||||
@ -489,7 +486,7 @@ Reset progress? Réinitialiser la progression ?
|
|||||||
resting au repos
|
resting au repos
|
||||||
RESUME REPRENDRE
|
RESUME REPRENDRE
|
||||||
Ride the {0} ({1} / {2}) Monter : {0} ({1} / {2})
|
Ride the {0} ({1} / {2}) Monter : {0} ({1} / {2})
|
||||||
Ride the {0} ({1} of {2} bundles, E with a bundle loads it) Monter : {0} ({1} bottes sur {2}, E avec une botte pour la charger)
|
Ride the {0} ({1} of {2} bundles, {3} with a bundle loads it) Monter : {0} ({1} bottes sur {2}, {3} avec une botte pour la charger)
|
||||||
RIGHT CLICK takes a piece down and gives all the money back. T carries it somewhere else, the middle button copies it. CLIC DROIT démonte un élément et te rembourse tout. T le déplace ailleurs, le bouton du milieu le copie.
|
RIGHT CLICK takes a piece down and gives all the money back. T carries it somewhere else, the middle button copies it. CLIC DROIT démonte un élément et te rembourse tout. T le déplace ailleurs, le bouton du milieu le copie.
|
||||||
Robot Robot
|
Robot Robot
|
||||||
Robot Crew Équipe de robots
|
Robot Crew Équipe de robots
|
||||||
@ -588,7 +585,7 @@ Supply wall — tools & gear Mur d'outils — outils et équipement
|
|||||||
Survey point: already read Point de relevé : déjà lu
|
Survey point: already read Point de relevé : déjà lu
|
||||||
Surveyor Géomètre
|
Surveyor Géomètre
|
||||||
SW SO
|
SW SO
|
||||||
T move · MMB copy · RMB remove T déplacer · MMB copier · RMB retirer
|
{0} move · {1} copy · {2} remove {0} déplacer · {1} copier · {2} retirer
|
||||||
TAKE IN HAND PRENDRE EN MAIN
|
TAKE IN HAND PRENDRE EN MAIN
|
||||||
TAKE IT PRENDRE
|
TAKE IT PRENDRE
|
||||||
Take the nail scissors from the SUPPLY WALL on the west side of the deck. Prends les ciseaux à ongles au MUR D'OUTILS, côté ouest de la plateforme.
|
Take the nail scissors from the SUPPLY WALL on the west side of the deck. Prends les ciseaux à ongles au MUR D'OUTILS, côté ouest de la plateforme.
|
||||||
@ -638,10 +635,10 @@ They fill with whatever sun the machines don't use, and when the panels fall sho
|
|||||||
Thirty harvests and still early. Trente moissons et toujours en avance.
|
Thirty harvests and still early. Trente moissons et toujours en avance.
|
||||||
This is G.R.A.S.S.A. We take grass very seriously. Ici G.R.A.S.S.A. Nous prenons l'herbe très au sérieux.
|
This is G.R.A.S.S.A. We take grass very seriously. Ici G.R.A.S.S.A. Nous prenons l'herbe très au sérieux.
|
||||||
This is what peak civilization looks like. Voilà à quoi ressemble le sommet de la civilisation.
|
This is what peak civilization looks like. Voilà à quoi ressemble le sommet de la civilisation.
|
||||||
Throw [E] Drop [R] Turn Lancer [E] Poser [R] Tourner
|
Throw [{0}] Drop [{1}] Turn Lancer [{0}] Poser [{1}] Tourner
|
||||||
Throw +{0}% Lancer +{0} %
|
Throw +{0}% Lancer +{0} %
|
||||||
Throw bundles further. Lance les bottes plus loin.
|
Throw bundles further. Lance les bottes plus loin.
|
||||||
Throw it in the DEPOT or onto a belt [E] Drop [R] Turn Lance-la dans le DÉPÔT ou sur un tapis [E] Poser [R] Tourner
|
Throw it in the DEPOT or onto a belt [{0}] Drop [{1}] Turn Lance-la dans le DÉPÔT ou sur un tapis [{0}] Poser [{1}] Tourner
|
||||||
Throwing Arm Bras de lanceur
|
Throwing Arm Bras de lanceur
|
||||||
Thunderstorm! Dark skies, weak sun, twisters about. Orage ! Ciel sombre, soleil faible, tornades en vue.
|
Thunderstorm! Dark skies, weak sun, twisters about. Orage ! Ciel sombre, soleil faible, tornades en vue.
|
||||||
Thunderstorm. Dark skies, weak sun, and twisters about. Orage. Ciel sombre, soleil faible, et des tornades dans le coin.
|
Thunderstorm. Dark skies, weak sun, and twisters about. Orage. Ciel sombre, soleil faible, et des tornades dans le coin.
|
||||||
@ -685,7 +682,6 @@ Upgrades are for the whole crew and come out of the shared wallet. Les améliora
|
|||||||
V-Sync V-Sync
|
V-Sync V-Sync
|
||||||
Version mismatch Versions incompatibles
|
Version mismatch Versions incompatibles
|
||||||
Voices Voix
|
Voices Voix
|
||||||
v{0} · early build v{0} · version préliminaire
|
|
||||||
W O
|
W O
|
||||||
W A S D to drive. Shift to boost. W A S D pour conduire. Shift pour le boost.
|
W A S D to drive. Shift to boost. W A S D pour conduire. Shift pour le boost.
|
||||||
Wait. Is that... progress? Attendez. C'est... un progrès ?
|
Wait. Is that... progress? Attendez. C'est... un progrès ?
|
||||||
@ -699,7 +695,7 @@ Weight Poids
|
|||||||
WELCOME TO HERBARIA-7 BIENVENUE SUR HERBARIA-7
|
WELCOME TO HERBARIA-7 BIENVENUE SUR HERBARIA-7
|
||||||
Well Travelled Grand voyageur
|
Well Travelled Grand voyageur
|
||||||
Wheat Blé
|
Wheat Blé
|
||||||
WHEEL piece · LMB place · R rotate · T move · MMB copy · RMB remove · CTRL+WHEEL height · F free WHEEL élément · LMB placer · R pivoter · T déplacer · MMB copier · RMB retirer · CTRL+WHEEL hauteur · F libre
|
WHEEL piece · {0} place · {1} rotate · {2} move · {3} copy · {4} remove · CTRL+WHEEL height · {5} free WHEEL élément · {0} placer · {1} pivoter · {2} déplacer · {3} copier · {4} retirer · CTRL+WHEEL hauteur · {5} libre
|
||||||
Whetstone Steel Acier affûté
|
Whetstone Steel Acier affûté
|
||||||
Which address? Quelle adresse ?
|
Which address? Quelle adresse ?
|
||||||
Whoa! The twister threw you. Waouh ! La tornade t'a fait valser.
|
Whoa! The twister threw you. Waouh ! La tornade t'a fait valser.
|
||||||
@ -731,8 +727,8 @@ Zero point zero zero one percent. Zéro virgule zéro zéro un pour cent.
|
|||||||
{0:0.##} m · {1:0} kg {0:0.##} m · {1:0} kg
|
{0:0.##} m · {1:0} kg {0:0.##} m · {1:0} kg
|
||||||
{0:0.##}% of Herbaria-7 {0:0.##} % d'Herbaria-7
|
{0:0.##}% of Herbaria-7 {0:0.##} % d'Herbaria-7
|
||||||
{0:0.#} cm · {1:0.##} kg {0:0.#} cm · {1:0.##} kg
|
{0:0.#} cm · {1:0.##} kg {0:0.#} cm · {1:0.##} kg
|
||||||
{0:0.#} m of belt · MMB copy · RMB remove {0:0.#} m de tapis · MMB copier · RMB retirer
|
{0:0.#} m of belt · {1} copy · {2} remove {0:0.#} m de tapis · {1} copier · {2} retirer
|
||||||
{0:0.#} m, {1} · height {2:0.0} m · RMB stops {0:0.#} m, {1} · hauteur {2:0.0} m · RMB arrête
|
{0:0.#} m, {1} · height {2:0.0} m · {3} stops {0:0.#} m, {1} · hauteur {2:0.0} m · {3} arrête
|
||||||
{0:0.#}% mown {0:0.#} % tondu
|
{0:0.#}% mown {0:0.#} % tondu
|
||||||
{0:0.0000}% {0:0.0000} %
|
{0:0.0000}% {0:0.0000} %
|
||||||
{0:0.00} / {1:0.##} KG {0:0.00} / {1:0.##} KG
|
{0:0.00} / {1:0.##} KG {0:0.00} / {1:0.##} KG
|
||||||
@ -744,7 +740,7 @@ Zero point zero zero one percent. Zéro virgule zéro zéro un pour cent.
|
|||||||
{0:N0} Sectors {0:N0} secteurs
|
{0:N0} Sectors {0:N0} secteurs
|
||||||
{0:N0} sectors clean · {1} / {2} stakes · {3} / {4} survey points {0:N0} secteurs à ras · {1} / {2} piquets · {3} / {4} points de relevé
|
{0:N0} sectors clean · {1} / {2} stakes · {3} / {4} survey points {0:N0} secteurs à ras · {1} / {2} piquets · {3} / {4} points de relevé
|
||||||
{0:N0} started · {1:N0} mown · {2:0.0000}% of the planet {0:N0} entamés · {1:N0} tondus · {2:0.0000} % de la planète
|
{0:N0} started · {1:N0} mown · {2:0.0000}% of the planet {0:N0} entamés · {1:N0} tondus · {2:0.0000} % de la planète
|
||||||
{0} [T] Upgrades & settings {0} [T] Améliorations et réglages
|
{0} [{1}] Upgrades & settings {0} [{1}] Améliorations et réglages
|
||||||
{0} (you) {0} (toi)
|
{0} (you) {0} (toi)
|
||||||
{0} / kg {0} / kg
|
{0} / kg {0} / kg
|
||||||
{0} / {1} slots {0} / {1} étuis
|
{0} / {1} slots {0} / {1} étuis
|
||||||
@ -797,9 +793,9 @@ HOW MUCH LAWN? COMBIEN DE PELOUSE ?
|
|||||||
EASY FACILE
|
EASY FACILE
|
||||||
NORMAL NORMAL
|
NORMAL NORMAL
|
||||||
EXTRA HARD TRÈS DIFFICILE
|
EXTRA HARD TRÈS DIFFICILE
|
||||||
A planet a third the size, with sectors to match. Earth can wait a little. Une planète trois fois plus petite, avec des secteurs à l'avenant. La Terre peut attendre un peu.
|
A sixth of the big planet, sectors to match. Earth can wait a little. Un sixième de la grande planète, des secteurs à l'avenant. La Terre peut attendre un peu.
|
||||||
Half the planet, half-size sectors. Still a lot of lawn. La moitié de la planète, des secteurs deux fois plus petits. Ça fait encore beaucoup de pelouse.
|
A third of the big planet, smaller sectors. Still a lot of lawn. Un tiers de la grande planète, des secteurs plus petits. Ça fait encore beaucoup de pelouse.
|
||||||
The whole of Herbaria-7, full-size sectors, every blade of it. Herbaria-7 tout entière, des secteurs grandeur nature, jusqu'au dernier brin.
|
The big planet: the whole of Herbaria-7, every blade of it. La grande planète : Herbaria-7 tout entière, jusqu'au dernier brin.
|
||||||
DECOR DÉCO
|
DECOR DÉCO
|
||||||
Wall Mur
|
Wall Mur
|
||||||
A 3 m timber wall. It goes on the edge of a foundation or a floor; R turns it round. Un mur en bois de 3 m. Il se pose au bord d'une fondation ou d'un plancher ; R le fait pivoter.
|
A 3 m timber wall. It goes on the edge of a foundation or a floor; R turns it round. Un mur en bois de 3 m. Il se pose au bord d'une fondation ou d'un plancher ; R le fait pivoter.
|
||||||
@ -962,3 +958,52 @@ A big mowing drone. It flies over rocks and hills, works 91 sectors around its p
|
|||||||
ME MOI
|
ME MOI
|
||||||
GLOBE GLOBE
|
GLOBE GLOBE
|
||||||
DRAG move · WHEEL zoom · SPACE back to you · M close DRAG déplacer · WHEEL zoom · SPACE revenir à vous · M fermer
|
DRAG move · WHEEL zoom · SPACE back to you · M close DRAG déplacer · WHEEL zoom · SPACE revenir à vous · M fermer
|
||||||
|
AUTOMATION AUTOMATISATION
|
||||||
|
Long Leash Longue laisse
|
||||||
|
Robots start further out and mow further from home. Les robots commencent plus loin et tondent plus loin de chez eux.
|
||||||
|
+{0}% robot reach +{0} % de portée des robots
|
||||||
|
Overdrive Motors Moteurs Overdrive
|
||||||
|
Robots and Sky Mowers drive and mow faster. Les robots et les tondeuses volantes roulent et tondent plus vite.
|
||||||
|
+{0}% robot speed +{0} % de vitesse des robots
|
||||||
|
Bigger Hoppers Trémies géantes
|
||||||
|
Robots carry more grass before they head home. Les robots emportent plus d'herbe avant de rentrer.
|
||||||
|
+{0}% robot hopper +{0} % de trémie des robots
|
||||||
|
Long-Range Drones Drones longue portée
|
||||||
|
Drone pads fetch bundles from further away. Les pistes à drones vont chercher les bottes plus loin.
|
||||||
|
+{0} m drone reach +{0} m de portée des drones
|
||||||
|
Hive Mind Esprit de ruche
|
||||||
|
Every robot, Sky Mower and drone works 20% faster. Chaque robot, tondeuse volante et drone travaille 20 % plus vite.
|
||||||
|
Autopilot Pilote auto
|
||||||
|
C hands it over: it mows and unloads on its own C lui laisse la main : il tond et décharge tout seul
|
||||||
|
autopilot: off to unload pilote auto : part décharger
|
||||||
|
autopilot: nothing left to mow round here pilote auto : plus rien à tondre par ici
|
||||||
|
autopilot: mowing pilote auto : tond
|
||||||
|
Take over the {0} ({1}, {2} / {3}) Reprendre {0} ({1}, {2} / {3})
|
||||||
|
Autopilot on: the {0} mows round here and unloads itself. Hop back in to take over. Pilote auto activé : {0} tond le coin et décharge tout seul. Remonte dedans pour reprendre la main.
|
||||||
|
WASD to drive · SHIFT boost · R chase view · E to hop off · C autopilot WASD conduire · SHIFT boost · R vue poursuite · E descendre · C pilote auto
|
||||||
|
Grass Train Train à herbe
|
||||||
|
Lays its own track to a station next door, mowing all the way there. Then it runs back and forth, its side cutters reaching further out on every run, and what it cuts is paid for at either end. Build it on open ground facing the way it should go. Pose ses propres rails jusqu'à une station voisine en tondant tout le trajet. Ensuite il fait la navette, ses faucheuses latérales allant plus loin à chaque trajet, et ce qu'il coupe est payé aux deux bouts. Construis-le sur un terrain dégagé, tourné vers où il doit aller.
|
||||||
|
{0}: laying track to {1}, {2} of {3} m {0} : pose la voie vers {1}, {2} sur {3} m
|
||||||
|
E: another station E : une autre station
|
||||||
|
{0}: running to {1} and back, cutting {2} m out either side, {3} on board {0} : fait la navette vers {1}, tond {2} m de chaque côté, {3} à bord
|
||||||
|
x{0:0.#} speed and reach, {1} wagons x{0:0.#} vitesse et portée, {1} wagons
|
||||||
|
Train yard: {0} Cour du train : {0}
|
||||||
|
The Grass Train lays track on to {0} Le Train à herbe pose la voie jusqu'à {0}
|
||||||
|
{0}: carrying grass home from the stations on its line, {1} on board, {2} waiting {0} : rapporte l'herbe des gares de sa ligne, {1} à bord, {2} en attente
|
||||||
|
E: ride in the cab E : monter dans la cabine
|
||||||
|
In the cab: W forward · S back · E to get off En cabine : W avancer · S reculer · E descendre
|
||||||
|
Head bob Balancement de la vue
|
||||||
|
The view rocks a little with each step. Off keeps it still. La vue oscille un peu à chaque pas. Désactivé, elle reste immobile.
|
||||||
|
STEAM PAGE PAGE STEAM
|
||||||
|
FEEDBACK VOS AVIS
|
||||||
|
Grass Cutters Together needs Steam. Start Steam, sign in to the account that owns the game, and launch it from your library. Grass Cutters Together a besoin de Steam. Lancez Steam, connectez-vous au compte qui possède le jeu et lancez-le depuis votre bibliothèque.
|
||||||
|
That's the end of the demo: the full game has the rest of the planet. La démo s'arrête ici : le reste de la planète vous attend dans le jeu complet.
|
||||||
|
DEMO DÉMO
|
||||||
|
WISHLIST THE FULL GAME AJOUTER LE JEU À MA LISTE DE SOUHAITS
|
||||||
|
DEMO COMPLETE · thanks for playing! DÉMO TERMINÉE · merci d'avoir joué !
|
||||||
|
DEMO · goal: ship {0} of {1} kg of grass DÉMO · objectif : livrer {0} kg d'herbe sur {1}
|
||||||
|
THANKS FOR PLAYING THE DEMO! MERCI D'AVOIR JOUÉ À LA DÉMO !
|
||||||
|
Your crew shipped {0} kg of grass and reached the end of the demo. In the full game the whole planet is yours: machines, belts, robots, far stations and up to 16 players. Votre équipe a livré {0} kg d'herbe et atteint la fin de la démo. Dans le jeu complet, toute la planète est à vous : machines, convoyeurs, robots, stations lointaines et jusqu'à 16 joueurs.
|
||||||
|
You can keep mowing here, but nothing more is for sale in the demo. Vous pouvez continuer à tondre ici, mais plus rien n'est en vente dans la démo.
|
||||||
|
LEAVE FEEDBACK DONNER MON AVIS
|
||||||
|
KEEP MOWING CONTINUER À TONDRE
|
||||||
|
|||||||
@ -139,7 +139,7 @@ Company property Proprietà aziendale
|
|||||||
Connecting to {0}… Connessione a {0}…
|
Connecting to {0}… Connessione a {0}…
|
||||||
Connecting… Connessione…
|
Connecting… Connessione…
|
||||||
Container {0:0.##} kg Contenitore {0:0.##} kg
|
Container {0:0.##} kg Contenitore {0:0.##} kg
|
||||||
Container full! Press E at the DEPOT to hand it all in, or Q to tie a 1 kg bundle you can carry and throw. Contenitore pieno! Premi E al DEPOSITO per consegnare tutto, o Q per legare un fascio da 1 kg da portare e lanciare.
|
Container full! Press {0} at the DEPOT to hand it all in, or {1} to tie a 1 kg bundle you can carry and throw. Contenitore pieno! Premi {0} al DEPOSITO per consegnare tutto, o {1} per legare un fascio da 1 kg da portare e lanciare.
|
||||||
Container full! Q ties a bundle, E at the DEPOT hands it all in Contenitore pieno! Q lega un fascio, E al DEPOSITO consegna tutto
|
Container full! Q ties a bundle, E at the DEPOT hands it all in Contenitore pieno! Q lega un fascio, E al DEPOSITO consegna tutto
|
||||||
Container x{0:0} Contenitore x{0:0}
|
Container x{0:0} Contenitore x{0:0}
|
||||||
CONTAINERS CONTENITORI
|
CONTAINERS CONTENITORI
|
||||||
@ -194,8 +194,8 @@ ECONOMY ECONOMIA
|
|||||||
Effects Effetti
|
Effects Effetti
|
||||||
Eleven more stations stand around the planet. Walk up to one and it opens for the crew: a depot, a supply wall, a console and a travel terminal. Altre undici stazioni sono sparse per il pianeta. Avvicinati a una e si apre per la squadra: un deposito, una parete forniture, una console e un terminale di viaggio.
|
Eleven more stations stand around the planet. Walk up to one and it opens for the crew: a depot, a supply wall, a console and a travel terminal. Altre undici stazioni sono sparse per il pianeta. Avvicinati a una e si apre per la squadra: un deposito, una parete forniture, una console e un terminale di viaggio.
|
||||||
Empty Vuoto
|
Empty Vuoto
|
||||||
Empty bed · E with a bundle in your arms loads it Cassone vuoto · E con un fascio in braccio lo carica
|
Empty bed · {0} with a bundle in your arms loads it Cassone vuoto · {0} con un fascio in braccio lo carica
|
||||||
Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors (E). Mani vuote! Vai alla PARETE FORNITURE sul lato ovest del ponte e prendi le forbicine (E).
|
Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors ({0}). Mani vuote! Vai alla PARETE FORNITURE sul lato ovest del ponte e prendi le forbicine ({0}).
|
||||||
Every blade counts. Apparently. Ogni filo conta. A quanto pare.
|
Every blade counts. Apparently. Ogni filo conta. A quanto pare.
|
||||||
Every kilo is shot into a Bundle Catcher, anywhere on the planet. A Catcher holds 100 kg and puts it on a belt. With no Catcher free the Reaper stops when its hopper is full. Ogni chilo viene sparato in un Acchiappafasci, ovunque sul pianeta. Un Acchiappafasci contiene 100 kg e li mette su un nastro. Senza un Acchiappafasci libero, il Mietitore si ferma quando la tramoggia è piena.
|
Every kilo is shot into a Bundle Catcher, anywhere on the planet. A Catcher holds 100 kg and puts it on a belt. With no Catcher free the Reaper stops when its hopper is full. Ogni chilo viene sparato in un Acchiappafasci, ovunque sul pianeta. Un Acchiappafasci contiene 100 kg e li mette su un nastro. Senza un Acchiappafasci libero, il Mietitore si ferma quando la tramoggia è piena.
|
||||||
Every Last Stake Fino all'ultimo picchetto
|
Every Last Stake Fino all'ultimo picchetto
|
||||||
@ -223,7 +223,6 @@ FIND GAMES TROVA PARTITE
|
|||||||
First day Primo giorno
|
First day Primo giorno
|
||||||
First Delivery Prima consegna
|
First Delivery Prima consegna
|
||||||
Five kilos of grass become five of hay in 12 seconds. Hay pays three times as much. Cinque chili d'erba diventano cinque di fieno in 12 secondi. Il fieno rende il triplo.
|
Five kilos of grass become five of hay in 12 seconds. Hay pays three times as much. Cinque chili d'erba diventano cinque di fieno in 12 secondi. Il fieno rende il triplo.
|
||||||
FLEET FLOTTA
|
|
||||||
Floodlights Fari da lavoro
|
Floodlights Fari da lavoro
|
||||||
Found so far: {0} stakes, {1} points. Trovati finora: {0} picchetti, {1} punti.
|
Found so far: {0} stakes, {1} points. Trovati finora: {0} picchetti, {1} punti.
|
||||||
Foundations Fondazioni
|
Foundations Fondazioni
|
||||||
@ -288,9 +287,9 @@ Hi. I'm the Director's assistant. Ciao. Sono l'assistente del Direttore.
|
|||||||
Hold: Read the survey point ({0}) Tieni premuto: leggi il punto geodetico ({0})
|
Hold: Read the survey point ({0}) Tieni premuto: leggi il punto geodetico ({0})
|
||||||
Hold: Untangle the stake ({0}) Tieni premuto: sbroglia il picchetto ({0})
|
Hold: Untangle the stake ({0}) Tieni premuto: sbroglia il picchetto ({0})
|
||||||
Holds 100 kg of what Reapers shoot and puts it on the belt. Contiene 100 kg di ciò che sparano i Mietitori e lo mette sul nastro.
|
Holds 100 kg of what Reapers shoot and puts it on the belt. Contiene 100 kg di ciò che sparano i Mietitori e lo mette sul nastro.
|
||||||
Hop down to the meadow (SPACE at the railing) and HOLD LEFT CLICK: sweep the blade over the grass. Earth needs every blade of it. Salta giù nel prato (SPACE alla ringhiera) e TIENI PREMUTO IL CLIC SINISTRO: passa la lama sull'erba. Alla Terra serve ogni singolo filo.
|
Hop down to the meadow ({0} at the railing) and HOLD {1}: sweep the blade over the grass. Earth needs every blade of it. Salta giù nel prato ({0} alla ringhiera) e TIENI PREMUTO {1}: passa la lama sull'erba. Alla Terra serve ogni singolo filo.
|
||||||
Hop down to the meadow, space at the railing. Salta giù nel prato, spazio alla ringhiera.
|
Hop down to the meadow, space at the railing. Salta giù nel prato, spazio alla ringhiera.
|
||||||
Hop off [R] View Scendi [R] Visuale
|
Hop off [{0}] View Scendi [{0}] Visuale
|
||||||
Hop over the railing with SPACE, hold LEFT CLICK and sweep the blade over the grass. It goes straight into the tool's container. Scavalca la ringhiera con SPACE, tieni premuto il CLIC SINISTRO e passa la lama sull'erba. Finisce dritta nel contenitore dell'attrezzo.
|
Hop over the railing with SPACE, hold LEFT CLICK and sweep the blade over the grass. It goes straight into the tool's container. Scavalca la ringhiera con SPACE, tieni premuto il CLIC SINISTRO e passa la lama sull'erba. Finisce dritta nel contenitore dell'attrezzo.
|
||||||
hopper full, needs a catcher with room tramoggia piena, serve un acchiappafasci con spazio
|
hopper full, needs a catcher with room tramoggia piena, serve un acchiappafasci con spazio
|
||||||
Hopper full: drive to an UNLOAD marker Tramoggia piena: vai a un segnalino SCARICO
|
Hopper full: drive to an UNLOAD marker Tramoggia piena: vai a un segnalino SCARICO
|
||||||
@ -332,8 +331,8 @@ Let the Robot Do It Lascia fare al robot
|
|||||||
Linking... Collegamento...
|
Linking... Collegamento...
|
||||||
Listen up, you incompetent idiots! Statemi a sentire, branco di idioti incompetenti!
|
Listen up, you incompetent idiots! Statemi a sentire, branco di idioti incompetenti!
|
||||||
Listening for LAN games… In ascolto di partite LAN…
|
Listening for LAN games… In ascolto di partite LAN…
|
||||||
LMB where the belt starts · height {0:0.0} m LMB dove inizia il nastro · altezza {0:0.0} m
|
{1} where the belt starts · height {0:0.0} m {1} dove inizia il nastro · altezza {0:0.0} m
|
||||||
LMB: go on from this end LMB: prosegui da questa estremità
|
{0}: go on from this end {0}: prosegui da questa estremità
|
||||||
LOGISTICS LOGISTICA
|
LOGISTICS LOGISTICA
|
||||||
Long Handles Manici lunghi
|
Long Handles Manici lunghi
|
||||||
Long Scythe Falce lunga
|
Long Scythe Falce lunga
|
||||||
@ -357,7 +356,7 @@ Mode Modalità
|
|||||||
More cash for every sector mown clean. Più soldi per ogni settore falciato a zero.
|
More cash for every sector mown clean. Più soldi per ogni settore falciato a zero.
|
||||||
Mouse sensitivity Sensibilità mouse
|
Mouse sensitivity Sensibilità mouse
|
||||||
Move faster. Muoviti più in fretta.
|
Move faster. Muoviti più in fretta.
|
||||||
Moving {0}: LMB put down · R rotate · RMB cancel Sposti {0}: LMB posa · R ruota · RMB annulla
|
Moving {0}: {1} put down · {2} rotate · {3} cancel Sposti {0}: {1} posa · {2} ruota · {3} annulla
|
||||||
Mow a path for the belt first Prima falcia un passaggio per il nastro
|
Mow a path for the belt first Prima falcia un passaggio per il nastro
|
||||||
Mow Base Base Falciatura
|
Mow Base Base Falciatura
|
||||||
Mow the grass here first Prima falcia l'erba qui
|
Mow the grass here first Prima falcia l'erba qui
|
||||||
@ -382,7 +381,6 @@ Nail Scissors Basket Cestino Forbicine
|
|||||||
NE NE
|
NE NE
|
||||||
Never once lost a scythe. Mai persa una falce.
|
Never once lost a scythe. Mai persa una falce.
|
||||||
NEW GAME NUOVA PARTITA
|
NEW GAME NUOVA PARTITA
|
||||||
NEXT {0} DOPO {0}
|
|
||||||
Night Vision Visore notturno
|
Night Vision Visore notturno
|
||||||
Night vision on Visore notturno acceso
|
Night vision on Visore notturno acceso
|
||||||
Night Vision: {0}. N goes from the headlamp to night vision to nothing. Visore notturno: {0}. N passa dalla lampada frontale al visore notturno a niente.
|
Night Vision: {0}. N goes from the headlamp to night vision to nothing. Visore notturno: {0}. N passa dalla lampada frontale al visore notturno a niente.
|
||||||
@ -401,7 +399,6 @@ nothing to run, {0:0.#} kW free niente da alimentare, {0:0.#} kW liberi
|
|||||||
nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh niente da alimentare, {0:0.#} kW liberi, batterie {1:0.0} di {2:0} kWh
|
nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh niente da alimentare, {0:0.#} kW liberi, batterie {1:0.0} di {2:0} kWh
|
||||||
Nothing to set on this one. Niente da regolare qui.
|
Nothing to set on this one. Niente da regolare qui.
|
||||||
Nothing to tie: cut some grass first Niente da legare: prima taglia un po' d'erba
|
Nothing to tie: cut some grass first Niente da legare: prima taglia un po' d'erba
|
||||||
NOW {0} ORA {0}
|
|
||||||
NOW {0} of {1} slots ORA {0} posti su {1}
|
NOW {0} of {1} slots ORA {0} posti su {1}
|
||||||
NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! ORA FATE IL RESTANTE NOVANTANOVE VIRGOLA NOVE NOVE NOVE!
|
NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! ORA FATE IL RESTANTE NOVANTANOVE VIRGOLA NOVE NOVE NOVE!
|
||||||
NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! ORA FUORI DI QUI A FALCIARE QUEL DANNATO PIANETA!
|
NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! ORA FUORI DI QUI A FALCIARE QUEL DANNATO PIANETA!
|
||||||
@ -489,7 +486,7 @@ Reset progress? Azzerare i progressi?
|
|||||||
resting a riposo
|
resting a riposo
|
||||||
RESUME RIPRENDI
|
RESUME RIPRENDI
|
||||||
Ride the {0} ({1} / {2}) Guida {0} ({1} / {2})
|
Ride the {0} ({1} / {2}) Guida {0} ({1} / {2})
|
||||||
Ride the {0} ({1} of {2} bundles, E with a bundle loads it) Guida {0} ({1} di {2} fasci, E con un fascio lo carica)
|
Ride the {0} ({1} of {2} bundles, {3} with a bundle loads it) Guida {0} ({1} di {2} fasci, {3} con un fascio lo carica)
|
||||||
RIGHT CLICK takes a piece down and gives all the money back. T carries it somewhere else, the middle button copies it. CLIC DESTRO smonta un pezzo e restituisce tutti i soldi. T lo porta altrove, il tasto centrale lo copia.
|
RIGHT CLICK takes a piece down and gives all the money back. T carries it somewhere else, the middle button copies it. CLIC DESTRO smonta un pezzo e restituisce tutti i soldi. T lo porta altrove, il tasto centrale lo copia.
|
||||||
Robot Robot
|
Robot Robot
|
||||||
Robot Crew Squadra di robot
|
Robot Crew Squadra di robot
|
||||||
@ -588,7 +585,7 @@ Supply wall — tools & gear Parete forniture — attrezzi ed equipaggiamento
|
|||||||
Survey point: already read Punto geodetico: già letto
|
Survey point: already read Punto geodetico: già letto
|
||||||
Surveyor Geometra
|
Surveyor Geometra
|
||||||
SW SO
|
SW SO
|
||||||
T move · MMB copy · RMB remove T sposta · MMB copia · RMB rimuovi
|
{0} move · {1} copy · {2} remove {0} sposta · {1} copia · {2} rimuovi
|
||||||
TAKE IN HAND PRENDI IN MANO
|
TAKE IN HAND PRENDI IN MANO
|
||||||
TAKE IT PRENDILO
|
TAKE IT PRENDILO
|
||||||
Take the nail scissors from the SUPPLY WALL on the west side of the deck. Prendi le forbicine dalla PARETE FORNITURE sul lato ovest del ponte.
|
Take the nail scissors from the SUPPLY WALL on the west side of the deck. Prendi le forbicine dalla PARETE FORNITURE sul lato ovest del ponte.
|
||||||
@ -638,10 +635,10 @@ They fill with whatever sun the machines don't use, and when the panels fall sho
|
|||||||
Thirty harvests and still early. Trenta raccolti e sempre in anticipo.
|
Thirty harvests and still early. Trenta raccolti e sempre in anticipo.
|
||||||
This is G.R.A.S.S.A. We take grass very seriously. Qui è G.R.A.S.S.A. Prendiamo l'erba molto sul serio.
|
This is G.R.A.S.S.A. We take grass very seriously. Qui è G.R.A.S.S.A. Prendiamo l'erba molto sul serio.
|
||||||
This is what peak civilization looks like. Ecco a voi l'apice della civiltà.
|
This is what peak civilization looks like. Ecco a voi l'apice della civiltà.
|
||||||
Throw [E] Drop [R] Turn Lancia [E] Posa [R] Ruota
|
Throw [{0}] Drop [{1}] Turn Lancia [{0}] Posa [{1}] Ruota
|
||||||
Throw +{0}% Lancio +{0}%
|
Throw +{0}% Lancio +{0}%
|
||||||
Throw bundles further. Lancia i fasci più lontano.
|
Throw bundles further. Lancia i fasci più lontano.
|
||||||
Throw it in the DEPOT or onto a belt [E] Drop [R] Turn Lancialo nel DEPOSITO o su un nastro [E] Posa [R] Ruota
|
Throw it in the DEPOT or onto a belt [{0}] Drop [{1}] Turn Lancialo nel DEPOSITO o su un nastro [{0}] Posa [{1}] Ruota
|
||||||
Throwing Arm Braccio da lancio
|
Throwing Arm Braccio da lancio
|
||||||
Thunderstorm! Dark skies, weak sun, twisters about. Temporale! Cielo scuro, sole debole, trombe d'aria in giro.
|
Thunderstorm! Dark skies, weak sun, twisters about. Temporale! Cielo scuro, sole debole, trombe d'aria in giro.
|
||||||
Thunderstorm. Dark skies, weak sun, and twisters about. Temporale. Cielo scuro, sole debole e trombe d'aria in giro.
|
Thunderstorm. Dark skies, weak sun, and twisters about. Temporale. Cielo scuro, sole debole e trombe d'aria in giro.
|
||||||
@ -685,7 +682,6 @@ Upgrades are for the whole crew and come out of the shared wallet. I potenziamen
|
|||||||
V-Sync V-Sync
|
V-Sync V-Sync
|
||||||
Version mismatch Versione non compatibile
|
Version mismatch Versione non compatibile
|
||||||
Voices Voci
|
Voices Voci
|
||||||
v{0} · early build v{0} · versione preliminare
|
|
||||||
W O
|
W O
|
||||||
W A S D to drive. Shift to boost. W A S D per guidare. Shift per il boost.
|
W A S D to drive. Shift to boost. W A S D per guidare. Shift per il boost.
|
||||||
Wait. Is that... progress? Aspettate. Quello è... un progresso?
|
Wait. Is that... progress? Aspettate. Quello è... un progresso?
|
||||||
@ -699,7 +695,7 @@ Weight Peso
|
|||||||
WELCOME TO HERBARIA-7 BENVENUTO SU HERBARIA-7
|
WELCOME TO HERBARIA-7 BENVENUTO SU HERBARIA-7
|
||||||
Well Travelled Giramondo
|
Well Travelled Giramondo
|
||||||
Wheat Grano
|
Wheat Grano
|
||||||
WHEEL piece · LMB place · R rotate · T move · MMB copy · RMB remove · CTRL+WHEEL height · F free WHEEL pezzo · LMB piazza · R ruota · T sposta · MMB copia · RMB rimuovi · CTRL+WHEEL altezza · F libero
|
WHEEL piece · {0} place · {1} rotate · {2} move · {3} copy · {4} remove · CTRL+WHEEL height · {5} free WHEEL pezzo · {0} piazza · {1} ruota · {2} sposta · {3} copia · {4} rimuovi · CTRL+WHEEL altezza · {5} libero
|
||||||
Whetstone Steel Acciaio affilato
|
Whetstone Steel Acciaio affilato
|
||||||
Which address? Quale indirizzo?
|
Which address? Quale indirizzo?
|
||||||
Whoa! The twister threw you. Wow! La tromba d'aria ti ha scaraventato via.
|
Whoa! The twister threw you. Wow! La tromba d'aria ti ha scaraventato via.
|
||||||
@ -731,8 +727,8 @@ Zero point zero zero one percent. Zero virgola zero zero uno per cento.
|
|||||||
{0:0.##} m · {1:0} kg {0:0.##} m · {1:0} kg
|
{0:0.##} m · {1:0} kg {0:0.##} m · {1:0} kg
|
||||||
{0:0.##}% of Herbaria-7 {0:0.##}% di Herbaria-7
|
{0:0.##}% of Herbaria-7 {0:0.##}% di Herbaria-7
|
||||||
{0:0.#} cm · {1:0.##} kg {0:0.#} cm · {1:0.##} kg
|
{0:0.#} cm · {1:0.##} kg {0:0.#} cm · {1:0.##} kg
|
||||||
{0:0.#} m of belt · MMB copy · RMB remove {0:0.#} m di nastro · MMB copia · RMB rimuovi
|
{0:0.#} m of belt · {1} copy · {2} remove {0:0.#} m di nastro · {1} copia · {2} rimuovi
|
||||||
{0:0.#} m, {1} · height {2:0.0} m · RMB stops {0:0.#} m, {1} · altezza {2:0.0} m · RMB termina
|
{0:0.#} m, {1} · height {2:0.0} m · {3} stops {0:0.#} m, {1} · altezza {2:0.0} m · {3} termina
|
||||||
{0:0.#}% mown {0:0.#}% falciato
|
{0:0.#}% mown {0:0.#}% falciato
|
||||||
{0:0.0000}% {0:0.0000}%
|
{0:0.0000}% {0:0.0000}%
|
||||||
{0:0.00} / {1:0.##} KG {0:0.00} / {1:0.##} KG
|
{0:0.00} / {1:0.##} KG {0:0.00} / {1:0.##} KG
|
||||||
@ -744,7 +740,7 @@ Zero point zero zero one percent. Zero virgola zero zero uno per cento.
|
|||||||
{0:N0} Sectors {0:N0} settori
|
{0:N0} Sectors {0:N0} settori
|
||||||
{0:N0} sectors clean · {1} / {2} stakes · {3} / {4} survey points {0:N0} settori a zero · {1} / {2} picchetti · {3} / {4} punti geodetici
|
{0:N0} sectors clean · {1} / {2} stakes · {3} / {4} survey points {0:N0} settori a zero · {1} / {2} picchetti · {3} / {4} punti geodetici
|
||||||
{0:N0} started · {1:N0} mown · {2:0.0000}% of the planet {0:N0} iniziati · {1:N0} falciati · {2:0.0000}% del pianeta
|
{0:N0} started · {1:N0} mown · {2:0.0000}% of the planet {0:N0} iniziati · {1:N0} falciati · {2:0.0000}% del pianeta
|
||||||
{0} [T] Upgrades & settings {0} [T] Potenziamenti e impostazioni
|
{0} [{1}] Upgrades & settings {0} [{1}] Potenziamenti e impostazioni
|
||||||
{0} (you) {0} (tu)
|
{0} (you) {0} (tu)
|
||||||
{0} / kg {0} / kg
|
{0} / kg {0} / kg
|
||||||
{0} / {1} slots {0} / {1} posti
|
{0} / {1} slots {0} / {1} posti
|
||||||
@ -797,9 +793,9 @@ HOW MUCH LAWN? QUANTO PRATO?
|
|||||||
EASY FACILE
|
EASY FACILE
|
||||||
NORMAL NORMALE
|
NORMAL NORMALE
|
||||||
EXTRA HARD DIFFICILISSIMO
|
EXTRA HARD DIFFICILISSIMO
|
||||||
A planet a third the size, with sectors to match. Earth can wait a little. Un pianeta grande un terzo, con settori in proporzione. La Terra può aspettare un po'.
|
A sixth of the big planet, sectors to match. Earth can wait a little. Un sesto del pianeta grande, settori in proporzione. La Terra può aspettare un po'.
|
||||||
Half the planet, half-size sectors. Still a lot of lawn. Metà pianeta, settori grandi la metà. Comunque un sacco di prato.
|
A third of the big planet, smaller sectors. Still a lot of lawn. Un terzo del pianeta grande, settori più piccoli. Comunque un sacco di prato.
|
||||||
The whole of Herbaria-7, full-size sectors, every blade of it. Tutta Herbaria-7, settori a grandezza piena, fino all'ultimo filo d'erba.
|
The big planet: the whole of Herbaria-7, every blade of it. Il pianeta grande: tutta Herbaria-7, fino all'ultimo filo d'erba.
|
||||||
DECOR DECORO
|
DECOR DECORO
|
||||||
Wall Muro
|
Wall Muro
|
||||||
A 3 m timber wall. It goes on the edge of a foundation or a floor; R turns it round. Un muro di legno da 3 m. Va sul bordo di una fondazione o di un solaio; R lo ruota.
|
A 3 m timber wall. It goes on the edge of a foundation or a floor; R turns it round. Un muro di legno da 3 m. Va sul bordo di una fondazione o di un solaio; R lo ruota.
|
||||||
@ -962,3 +958,52 @@ A big mowing drone. It flies over rocks and hills, works 91 sectors around its p
|
|||||||
ME IO
|
ME IO
|
||||||
GLOBE GLOBO
|
GLOBE GLOBO
|
||||||
DRAG move · WHEEL zoom · SPACE back to you · M close DRAG sposta · WHEEL zoom · SPACE torna a te · M chiudi
|
DRAG move · WHEEL zoom · SPACE back to you · M close DRAG sposta · WHEEL zoom · SPACE torna a te · M chiudi
|
||||||
|
AUTOMATION AUTOMAZIONE
|
||||||
|
Long Leash Guinzaglio lungo
|
||||||
|
Robots start further out and mow further from home. I robot partono più lontano e falciano più lontano da casa.
|
||||||
|
+{0}% robot reach +{0}% raggio dei robot
|
||||||
|
Overdrive Motors Motori Overdrive
|
||||||
|
Robots and Sky Mowers drive and mow faster. Robot e falciatrici volanti viaggiano e falciano più veloci.
|
||||||
|
+{0}% robot speed +{0}% velocità dei robot
|
||||||
|
Bigger Hoppers Tramogge più grandi
|
||||||
|
Robots carry more grass before they head home. I robot portano più erba prima di tornare a casa.
|
||||||
|
+{0}% robot hopper +{0}% tramoggia dei robot
|
||||||
|
Long-Range Drones Droni a lungo raggio
|
||||||
|
Drone pads fetch bundles from further away. Le piste droni recuperano le balle da più lontano.
|
||||||
|
+{0} m drone reach +{0} m raggio dei droni
|
||||||
|
Hive Mind Mente alveare
|
||||||
|
Every robot, Sky Mower and drone works 20% faster. Ogni robot, falciatrice volante e drone lavora il 20% più veloce.
|
||||||
|
Autopilot Pilota automatico
|
||||||
|
C hands it over: it mows and unloads on its own C gli passa il comando: falcia e scarica da solo
|
||||||
|
autopilot: off to unload pilota automatico: va a scaricare
|
||||||
|
autopilot: nothing left to mow round here pilota automatico: qui non c'è più niente da falciare
|
||||||
|
autopilot: mowing pilota automatico: falcia
|
||||||
|
Take over the {0} ({1}, {2} / {3}) Riprendi {0} ({1}, {2} / {3})
|
||||||
|
Autopilot on: the {0} mows round here and unloads itself. Hop back in to take over. Pilota automatico attivo: {0} falcia qui intorno e scarica da solo. Risali per riprendere il comando.
|
||||||
|
WASD to drive · SHIFT boost · R chase view · E to hop off · C autopilot WASD guida · SHIFT boost · R visuale esterna · E scendi · C pilota automatico
|
||||||
|
Grass Train Treno dell'erba
|
||||||
|
Lays its own track to a station next door, mowing all the way there. Then it runs back and forth, its side cutters reaching further out on every run, and what it cuts is paid for at either end. Build it on open ground facing the way it should go. Si posa da solo i binari fino a una stazione vicina, falciando tutto il percorso. Poi fa la spola, le falciatrici laterali arrivano più lontano a ogni corsa e ciò che taglia viene pagato a entrambi i capolinea. Costruiscilo su terreno libero, rivolto dove deve andare.
|
||||||
|
{0}: laying track to {1}, {2} of {3} m {0}: posa binari verso {1}, {2} di {3} m
|
||||||
|
E: another station E: un'altra stazione
|
||||||
|
{0}: running to {1} and back, cutting {2} m out either side, {3} on board {0}: fa la spola con {1}, falcia {2} m per lato, {3} a bordo
|
||||||
|
x{0:0.#} speed and reach, {1} wagons x{0:0.#} velocità e portata, {1} vagoni
|
||||||
|
Train yard: {0} Scalo del treno: {0}
|
||||||
|
The Grass Train lays track on to {0} Il Treno dell'erba posa binari fino a {0}
|
||||||
|
{0}: carrying grass home from the stations on its line, {1} on board, {2} waiting {0}: porta a casa l'erba dalle stazioni della linea, {1} a bordo, {2} in attesa
|
||||||
|
E: ride in the cab E: sali in cabina
|
||||||
|
In the cab: W forward · S back · E to get off In cabina: W avanti · S indietro · E scendi
|
||||||
|
Head bob Oscillazione della visuale
|
||||||
|
The view rocks a little with each step. Off keeps it still. La visuale oscilla un po' a ogni passo. Disattivata resta ferma.
|
||||||
|
STEAM PAGE PAGINA STEAM
|
||||||
|
FEEDBACK FEEDBACK
|
||||||
|
Grass Cutters Together needs Steam. Start Steam, sign in to the account that owns the game, and launch it from your library. Grass Cutters Together richiede Steam. Avvia Steam, accedi con l'account che possiede il gioco e avvialo dalla tua libreria.
|
||||||
|
That's the end of the demo: the full game has the rest of the planet. La demo finisce qui: il resto del pianeta è nel gioco completo.
|
||||||
|
DEMO DEMO
|
||||||
|
WISHLIST THE FULL GAME AGGIUNGI IL GIOCO ALLA LISTA DEI DESIDERI
|
||||||
|
DEMO COMPLETE · thanks for playing! DEMO COMPLETATA · grazie per aver giocato!
|
||||||
|
DEMO · goal: ship {0} of {1} kg of grass DEMO · obiettivo: consegna {0} di {1} kg d'erba
|
||||||
|
THANKS FOR PLAYING THE DEMO! GRAZIE PER AVER GIOCATO LA DEMO!
|
||||||
|
Your crew shipped {0} kg of grass and reached the end of the demo. In the full game the whole planet is yours: machines, belts, robots, far stations and up to 16 players. La tua squadra ha consegnato {0} kg d'erba e ha raggiunto la fine della demo. Nel gioco completo tutto il pianeta è tuo: macchine, nastri, robot, stazioni lontane e fino a 16 giocatori.
|
||||||
|
You can keep mowing here, but nothing more is for sale in the demo. Puoi continuare a falciare qui, ma nella demo non c'è più niente in vendita.
|
||||||
|
LEAVE FEEDBACK LASCIA UN FEEDBACK
|
||||||
|
KEEP MOWING CONTINUA A FALCIARE
|
||||||
|
|||||||
@ -139,7 +139,7 @@ Company property 会社の備品
|
|||||||
Connecting to {0}… {0}に接続中…
|
Connecting to {0}… {0}に接続中…
|
||||||
Connecting… 接続中…
|
Connecting… 接続中…
|
||||||
Container {0:0.##} kg カゴ容量 {0:0.##} kg
|
Container {0:0.##} kg カゴ容量 {0:0.##} kg
|
||||||
Container full! Press E at the DEPOT to hand it all in, or Q to tie a 1 kg bundle you can carry and throw. カゴが満杯! 集荷所でEを押して全部納品するか、Qで1 kgの草束を作って運んで投げよう。
|
Container full! Press {0} at the DEPOT to hand it all in, or {1} to tie a 1 kg bundle you can carry and throw. カゴが満杯! 集荷所で{0}を押して全部納品するか、{1}で1 kgの草束を作って運んで投げよう。
|
||||||
Container full! Q ties a bundle, E at the DEPOT hands it all in カゴが満杯! Qで束ねる、集荷所でEを押すと全部納品
|
Container full! Q ties a bundle, E at the DEPOT hands it all in カゴが満杯! Qで束ねる、集荷所でEを押すと全部納品
|
||||||
Container x{0:0} カゴ x{0:0}
|
Container x{0:0} カゴ x{0:0}
|
||||||
CONTAINERS カゴ
|
CONTAINERS カゴ
|
||||||
@ -194,8 +194,8 @@ ECONOMY 経済
|
|||||||
Effects 効果音
|
Effects 効果音
|
||||||
Eleven more stations stand around the planet. Walk up to one and it opens for the crew: a depot, a supply wall, a console and a travel terminal. 惑星には他に11のステーションがある。近づくとクルーに開放され、集荷所、備品棚、コンソール、移動ターミナルが使える。
|
Eleven more stations stand around the planet. Walk up to one and it opens for the crew: a depot, a supply wall, a console and a travel terminal. 惑星には他に11のステーションがある。近づくとクルーに開放され、集荷所、備品棚、コンソール、移動ターミナルが使える。
|
||||||
Empty 空き
|
Empty 空き
|
||||||
Empty bed · E with a bundle in your arms loads it 荷台は空 · 草束を抱えてEで積む
|
Empty bed · {0} with a bundle in your arms loads it 荷台は空 · 草束を抱えて{0}で積む
|
||||||
Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors (E). 手ぶら! デッキ西側の備品棚へ行き、爪切りばさみを取ろう(E)。
|
Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors ({0}). 手ぶら! デッキ西側の備品棚へ行き、爪切りばさみを取ろう({0})。
|
||||||
Every blade counts. Apparently. 草一本が大事、だそうです。
|
Every blade counts. Apparently. 草一本が大事、だそうです。
|
||||||
Every kilo is shot into a Bundle Catcher, anywhere on the planet. A Catcher holds 100 kg and puts it on a belt. With no Catcher free the Reaper stops when its hopper is full. 刈った草は1 kg残らず、惑星のどこにある草束キャッチャーへも撃ち込まれる。キャッチャーは100 kgまで受け止めてベルトに載せる。空きのあるキャッチャーがないと、リーパーはホッパーが満杯になった時点で止まる。
|
Every kilo is shot into a Bundle Catcher, anywhere on the planet. A Catcher holds 100 kg and puts it on a belt. With no Catcher free the Reaper stops when its hopper is full. 刈った草は1 kg残らず、惑星のどこにある草束キャッチャーへも撃ち込まれる。キャッチャーは100 kgまで受け止めてベルトに載せる。空きのあるキャッチャーがないと、リーパーはホッパーが満杯になった時点で止まる。
|
||||||
Every Last Stake 最後の一本まで
|
Every Last Stake 最後の一本まで
|
||||||
@ -223,7 +223,6 @@ FIND GAMES ゲームを探す
|
|||||||
First day 初日
|
First day 初日
|
||||||
First Delivery 初出荷
|
First Delivery 初出荷
|
||||||
Five kilos of grass become five of hay in 12 seconds. Hay pays three times as much. 草5 kgが12秒で干し草5 kgになる。干し草の買取価格は草の3倍。
|
Five kilos of grass become five of hay in 12 seconds. Hay pays three times as much. 草5 kgが12秒で干し草5 kgになる。干し草の買取価格は草の3倍。
|
||||||
FLEET 車両
|
|
||||||
Floodlights 投光器
|
Floodlights 投光器
|
||||||
Found so far: {0} stakes, {1} points. これまでに発見:杭{0}本、測量点{1}か所。
|
Found so far: {0} stakes, {1} points. これまでに発見:杭{0}本、測量点{1}か所。
|
||||||
Foundations 土台
|
Foundations 土台
|
||||||
@ -288,9 +287,9 @@ Hi. I'm the Director's assistant. こんにちは。本部長のアシスタン
|
|||||||
Hold: Read the survey point ({0}) 長押し:測量点を読み取る({0})
|
Hold: Read the survey point ({0}) 長押し:測量点を読み取る({0})
|
||||||
Hold: Untangle the stake ({0}) 長押し:杭をほどく({0})
|
Hold: Untangle the stake ({0}) 長押し:杭をほどく({0})
|
||||||
Holds 100 kg of what Reapers shoot and puts it on the belt. リーパーが撃ち込んだ草を100 kgまで受け止め、ベルトに載せる。
|
Holds 100 kg of what Reapers shoot and puts it on the belt. リーパーが撃ち込んだ草を100 kgまで受け止め、ベルトに載せる。
|
||||||
Hop down to the meadow (SPACE at the railing) and HOLD LEFT CLICK: sweep the blade over the grass. Earth needs every blade of it. 草原へ飛び降りて(手すりでSPACE)、左クリック長押しで刃を草の上で振ろう。地球には草が一本残らず必要だ。
|
Hop down to the meadow ({0} at the railing) and HOLD {1}: sweep the blade over the grass. Earth needs every blade of it. 草原へ飛び降りて(手すりで{0})、{1}長押しで刃を草の上で振ろう。地球には草が一本残らず必要だ。
|
||||||
Hop down to the meadow, space at the railing. 草原へ降りてください。手すりのところでスペースです。
|
Hop down to the meadow, space at the railing. 草原へ降りてください。手すりのところでスペースです。
|
||||||
Hop off [R] View 降りる [R] 視点
|
Hop off [{0}] View 降りる [{0}] 視点
|
||||||
Hop over the railing with SPACE, hold LEFT CLICK and sweep the blade over the grass. It goes straight into the tool's container. SPACEで手すりを越え、左クリック長押しで刃を草の上で振る。刈った草はそのまま道具のカゴに入る。
|
Hop over the railing with SPACE, hold LEFT CLICK and sweep the blade over the grass. It goes straight into the tool's container. SPACEで手すりを越え、左クリック長押しで刃を草の上で振る。刈った草はそのまま道具のカゴに入る。
|
||||||
hopper full, needs a catcher with room ホッパー満杯、空きのあるキャッチャーが必要
|
hopper full, needs a catcher with room ホッパー満杯、空きのあるキャッチャーが必要
|
||||||
Hopper full: drive to an UNLOAD marker ホッパー満杯:荷降ろしマーカーへ
|
Hopper full: drive to an UNLOAD marker ホッパー満杯:荷降ろしマーカーへ
|
||||||
@ -332,8 +331,8 @@ Let the Robot Do It ロボットにお任せ
|
|||||||
Linking... リンク中…
|
Linking... リンク中…
|
||||||
Listen up, you incompetent idiots! よく聞け、この役立たずどもが!
|
Listen up, you incompetent idiots! よく聞け、この役立たずどもが!
|
||||||
Listening for LAN games… LANゲームを探しています…
|
Listening for LAN games… LANゲームを探しています…
|
||||||
LMB where the belt starts · height {0:0.0} m LMB ベルトの始点 · 高さ {0:0.0} m
|
{1} where the belt starts · height {0:0.0} m {1} ベルトの始点 · 高さ {0:0.0} m
|
||||||
LMB: go on from this end LMB:この端から続ける
|
{0}: go on from this end {0}:この端から続ける
|
||||||
LOGISTICS 物流
|
LOGISTICS 物流
|
||||||
Long Handles 長い柄
|
Long Handles 長い柄
|
||||||
Long Scythe 長柄大鎌
|
Long Scythe 長柄大鎌
|
||||||
@ -357,7 +356,7 @@ Mode モード
|
|||||||
More cash for every sector mown clean. 刈り尽くしたセクターごとの報酬が増える。
|
More cash for every sector mown clean. 刈り尽くしたセクターごとの報酬が増える。
|
||||||
Mouse sensitivity マウス感度
|
Mouse sensitivity マウス感度
|
||||||
Move faster. 移動が速くなる。
|
Move faster. 移動が速くなる。
|
||||||
Moving {0}: LMB put down · R rotate · RMB cancel {0}を移動中:LMB 設置 · R 回転 · RMB キャンセル
|
Moving {0}: {1} put down · {2} rotate · {3} cancel {0}を移動中:{1} 設置 · {2} 回転 · {3} キャンセル
|
||||||
Mow a path for the belt first 先にベルトの通り道を刈ろう
|
Mow a path for the belt first 先にベルトの通り道を刈ろう
|
||||||
Mow Base 草刈り基地
|
Mow Base 草刈り基地
|
||||||
Mow the grass here first 先にここの草を刈ろう
|
Mow the grass here first 先にここの草を刈ろう
|
||||||
@ -382,7 +381,6 @@ Nail Scissors Basket 爪切りばさみのカゴ
|
|||||||
NE 北東
|
NE 北東
|
||||||
Never once lost a scythe. 大鎌をなくしたことは一度もない。
|
Never once lost a scythe. 大鎌をなくしたことは一度もない。
|
||||||
NEW GAME ニューゲーム
|
NEW GAME ニューゲーム
|
||||||
NEXT {0} 次 {0}
|
|
||||||
Night Vision 暗視装置
|
Night Vision 暗視装置
|
||||||
Night vision on 暗視 オン
|
Night vision on 暗視 オン
|
||||||
Night Vision: {0}. N goes from the headlamp to night vision to nothing. 暗視装置:{0}。Nでヘッドランプ → 暗視 → オフと切り替わる。
|
Night Vision: {0}. N goes from the headlamp to night vision to nothing. 暗視装置:{0}。Nでヘッドランプ → 暗視 → オフと切り替わる。
|
||||||
@ -401,7 +399,6 @@ nothing to run, {0:0.#} kW free 稼働する機械なし、{0:0.#} kW余り
|
|||||||
nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh 稼働する機械なし、{0:0.#} kW余り、バッテリー {1:0.0}/{2:0} kWh
|
nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh 稼働する機械なし、{0:0.#} kW余り、バッテリー {1:0.0}/{2:0} kWh
|
||||||
Nothing to set on this one. 設定項目はありません。
|
Nothing to set on this one. 設定項目はありません。
|
||||||
Nothing to tie: cut some grass first 束ねる草がない:先に草を刈ろう
|
Nothing to tie: cut some grass first 束ねる草がない:先に草を刈ろう
|
||||||
NOW {0} 現在 {0}
|
|
||||||
NOW {0} of {1} slots 現在 {0}/{1}枠
|
NOW {0} of {1} slots 現在 {0}/{1}枠
|
||||||
NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! 残りの99.999パーセントもさっさとやれ!
|
NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! 残りの99.999パーセントもさっさとやれ!
|
||||||
NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! とっとと行って、あのいまいましい惑星を刈ってこい!
|
NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! とっとと行って、あのいまいましい惑星を刈ってこい!
|
||||||
@ -489,7 +486,7 @@ Reset progress? 進行状況をリセットしますか?
|
|||||||
resting 待機中
|
resting 待機中
|
||||||
RESUME 再開
|
RESUME 再開
|
||||||
Ride the {0} ({1} / {2}) {0}に乗る ({1} / {2})
|
Ride the {0} ({1} / {2}) {0}に乗る ({1} / {2})
|
||||||
Ride the {0} ({1} of {2} bundles, E with a bundle loads it) {0}に乗る (草束 {1}/{2}、草束を抱えてEで積む)
|
Ride the {0} ({1} of {2} bundles, {3} with a bundle loads it) {0}に乗る (草束 {1}/{2}、草束を抱えて{3}で積む)
|
||||||
RIGHT CLICK takes a piece down and gives all the money back. T carries it somewhere else, the middle button copies it. 右クリックでパーツを撤去し、全額返金。Tで別の場所へ運び、中ボタンでコピー。
|
RIGHT CLICK takes a piece down and gives all the money back. T carries it somewhere else, the middle button copies it. 右クリックでパーツを撤去し、全額返金。Tで別の場所へ運び、中ボタンでコピー。
|
||||||
Robot ロボット
|
Robot ロボット
|
||||||
Robot Crew ロボット部隊
|
Robot Crew ロボット部隊
|
||||||
@ -588,7 +585,7 @@ Supply wall — tools & gear 備品棚 — 道具と装備
|
|||||||
Survey point: already read 測量点:読み取り済み
|
Survey point: already read 測量点:読み取り済み
|
||||||
Surveyor 測量士
|
Surveyor 測量士
|
||||||
SW 南西
|
SW 南西
|
||||||
T move · MMB copy · RMB remove T 移動 · MMB コピー · RMB 撤去
|
{0} move · {1} copy · {2} remove {0} 移動 · {1} コピー · {2} 撤去
|
||||||
TAKE IN HAND 手に持つ
|
TAKE IN HAND 手に持つ
|
||||||
TAKE IT もらう
|
TAKE IT もらう
|
||||||
Take the nail scissors from the SUPPLY WALL on the west side of the deck. デッキ西側の備品棚から爪切りばさみを取る。
|
Take the nail scissors from the SUPPLY WALL on the west side of the deck. デッキ西側の備品棚から爪切りばさみを取る。
|
||||||
@ -638,10 +635,10 @@ They fill with whatever sun the machines don't use, and when the panels fall sho
|
|||||||
Thirty harvests and still early. 収穫30回、まだまだこれから。
|
Thirty harvests and still early. 収穫30回、まだまだこれから。
|
||||||
This is G.R.A.S.S.A. We take grass very seriously. こちらG.R.A.S.S.A.。我々は草に本気だ。
|
This is G.R.A.S.S.A. We take grass very seriously. こちらG.R.A.S.S.A.。我々は草に本気だ。
|
||||||
This is what peak civilization looks like. これぞ文明の極みだ!
|
This is what peak civilization looks like. これぞ文明の極みだ!
|
||||||
Throw [E] Drop [R] Turn 投げる [E] 置く [R] 回す
|
Throw [{0}] Drop [{1}] Turn 投げる [{0}] 置く [{1}] 回す
|
||||||
Throw +{0}% 投げ距離+{0}%
|
Throw +{0}% 投げ距離+{0}%
|
||||||
Throw bundles further. 草束をもっと遠くへ投げられる。
|
Throw bundles further. 草束をもっと遠くへ投げられる。
|
||||||
Throw it in the DEPOT or onto a belt [E] Drop [R] Turn 集荷所かベルトへ投げる [E] 置く [R] 回す
|
Throw it in the DEPOT or onto a belt [{0}] Drop [{1}] Turn 集荷所かベルトへ投げる [{0}] 置く [{1}] 回す
|
||||||
Throwing Arm 強肩
|
Throwing Arm 強肩
|
||||||
Thunderstorm! Dark skies, weak sun, twisters about. 雷雨! 空は暗く、日差しは弱く、竜巻も発生。
|
Thunderstorm! Dark skies, weak sun, twisters about. 雷雨! 空は暗く、日差しは弱く、竜巻も発生。
|
||||||
Thunderstorm. Dark skies, weak sun, and twisters about. 雷雨です。空は暗く、日差しは弱く、竜巻も出ています。
|
Thunderstorm. Dark skies, weak sun, and twisters about. 雷雨です。空は暗く、日差しは弱く、竜巻も出ています。
|
||||||
@ -685,7 +682,6 @@ Upgrades are for the whole crew and come out of the shared wallet. アップグ
|
|||||||
V-Sync 垂直同期
|
V-Sync 垂直同期
|
||||||
Version mismatch バージョンが一致しません
|
Version mismatch バージョンが一致しません
|
||||||
Voices ボイス
|
Voices ボイス
|
||||||
v{0} · early build v{0} · 開発版
|
|
||||||
W 西
|
W 西
|
||||||
W A S D to drive. Shift to boost. W A S Dで運転、Shiftでブーストです。
|
W A S D to drive. Shift to boost. W A S Dで運転、Shiftでブーストです。
|
||||||
Wait. Is that... progress? 待て。これは……進歩か?
|
Wait. Is that... progress? 待て。これは……進歩か?
|
||||||
@ -699,7 +695,7 @@ Weight 重量
|
|||||||
WELCOME TO HERBARIA-7 HERBARIA-7へようこそ
|
WELCOME TO HERBARIA-7 HERBARIA-7へようこそ
|
||||||
Well Travelled 旅慣れた者
|
Well Travelled 旅慣れた者
|
||||||
Wheat 小麦
|
Wheat 小麦
|
||||||
WHEEL piece · LMB place · R rotate · T move · MMB copy · RMB remove · CTRL+WHEEL height · F free WHEEL パーツ · LMB 設置 · R 回転 · T 移動 · MMB コピー · RMB 撤去 · CTRL+WHEEL 高さ · F 自由配置
|
WHEEL piece · {0} place · {1} rotate · {2} move · {3} copy · {4} remove · CTRL+WHEEL height · {5} free WHEEL パーツ · {0} 設置 · {1} 回転 · {2} 移動 · {3} コピー · {4} 撤去 · CTRL+WHEEL 高さ · {5} 自由配置
|
||||||
Whetstone Steel 砥石鋼
|
Whetstone Steel 砥石鋼
|
||||||
Which address? アドレスは?
|
Which address? アドレスは?
|
||||||
Whoa! The twister threw you. うわっ! 竜巻に飛ばされた。
|
Whoa! The twister threw you. うわっ! 竜巻に飛ばされた。
|
||||||
@ -731,8 +727,8 @@ Zero point zero zero one percent. 0.001パーセント。
|
|||||||
{0:0.##} m · {1:0} kg {0:0.##} m · {1:0} kg
|
{0:0.##} m · {1:0} kg {0:0.##} m · {1:0} kg
|
||||||
{0:0.##}% of Herbaria-7 Herbaria-7の{0:0.##}%
|
{0:0.##}% of Herbaria-7 Herbaria-7の{0:0.##}%
|
||||||
{0:0.#} cm · {1:0.##} kg {0:0.#} cm · {1:0.##} kg
|
{0:0.#} cm · {1:0.##} kg {0:0.#} cm · {1:0.##} kg
|
||||||
{0:0.#} m of belt · MMB copy · RMB remove ベルト {0:0.#} m · MMB コピー · RMB 撤去
|
{0:0.#} m of belt · {1} copy · {2} remove ベルト {0:0.#} m · {1} コピー · {2} 撤去
|
||||||
{0:0.#} m, {1} · height {2:0.0} m · RMB stops {0:0.#} m、{1} · 高さ {2:0.0} m · RMB 終了
|
{0:0.#} m, {1} · height {2:0.0} m · {3} stops {0:0.#} m、{1} · 高さ {2:0.0} m · {3} 終了
|
||||||
{0:0.#}% mown {0:0.#}% 刈り済み
|
{0:0.#}% mown {0:0.#}% 刈り済み
|
||||||
{0:0.0000}% {0:0.0000}%
|
{0:0.0000}% {0:0.0000}%
|
||||||
{0:0.00} / {1:0.##} KG {0:0.00} / {1:0.##} KG
|
{0:0.00} / {1:0.##} KG {0:0.00} / {1:0.##} KG
|
||||||
@ -744,7 +740,7 @@ Zero point zero zero one percent. 0.001パーセント。
|
|||||||
{0:N0} Sectors {0:N0}セクター
|
{0:N0} Sectors {0:N0}セクター
|
||||||
{0:N0} sectors clean · {1} / {2} stakes · {3} / {4} survey points 刈り尽くし {0:N0}セクター · 杭 {1} / {2} · 測量点 {3} / {4}
|
{0:N0} sectors clean · {1} / {2} stakes · {3} / {4} survey points 刈り尽くし {0:N0}セクター · 杭 {1} / {2} · 測量点 {3} / {4}
|
||||||
{0:N0} started · {1:N0} mown · {2:0.0000}% of the planet 刈りかけ {0:N0} · 刈り済み {1:N0} · 惑星の{2:0.0000}%
|
{0:N0} started · {1:N0} mown · {2:0.0000}% of the planet 刈りかけ {0:N0} · 刈り済み {1:N0} · 惑星の{2:0.0000}%
|
||||||
{0} [T] Upgrades & settings {0} [T] 強化と設定
|
{0} [{1}] Upgrades & settings {0} [{1}] 強化と設定
|
||||||
{0} (you) {0} (あなた)
|
{0} (you) {0} (あなた)
|
||||||
{0} / kg {0} / kg
|
{0} / kg {0} / kg
|
||||||
{0} / {1} slots {0} / {1}枠
|
{0} / {1} slots {0} / {1}枠
|
||||||
@ -797,9 +793,9 @@ HOW MUCH LAWN? どれだけ芝を刈る?
|
|||||||
EASY かんたん
|
EASY かんたん
|
||||||
NORMAL ふつう
|
NORMAL ふつう
|
||||||
EXTRA HARD 超むずかしい
|
EXTRA HARD 超むずかしい
|
||||||
A planet a third the size, with sectors to match. Earth can wait a little. 3分の1サイズの惑星で、セクターもそれに合わせた大きさ。地球は少し待ってくれる。
|
A sixth of the big planet, sectors to match. Earth can wait a little. 大きな惑星の6分の1、セクターもそれに合わせた大きさ。地球は少し待ってくれる。
|
||||||
Half the planet, half-size sectors. Still a lot of lawn. 惑星の半分、セクターも半分のサイズ。それでも芝はたっぷり。
|
A third of the big planet, smaller sectors. Still a lot of lawn. 大きな惑星の3分の1、セクターも小さめ。それでも芝はたっぷり。
|
||||||
The whole of Herbaria-7, full-size sectors, every blade of it. Herbaria-7まるごと、フルサイズのセクター、芝の一本一本まで。
|
The big planet: the whole of Herbaria-7, every blade of it. 大きな惑星:Herbaria-7まるごと、芝の一本一本まで。
|
||||||
DECOR 装飾
|
DECOR 装飾
|
||||||
Wall 壁
|
Wall 壁
|
||||||
A 3 m timber wall. It goes on the edge of a foundation or a floor; R turns it round. 3 mの木の壁。土台か床の縁に置く。Rで回転。
|
A 3 m timber wall. It goes on the edge of a foundation or a floor; R turns it round. 3 mの木の壁。土台か床の縁に置く。Rで回転。
|
||||||
@ -962,3 +958,52 @@ A big mowing drone. It flies over rocks and hills, works 91 sectors around its p
|
|||||||
ME 自分
|
ME 自分
|
||||||
GLOBE 地球儀
|
GLOBE 地球儀
|
||||||
DRAG move · WHEEL zoom · SPACE back to you · M close DRAG 移動 · WHEEL ズーム · SPACE 自分へ戻る · M 閉じる
|
DRAG move · WHEEL zoom · SPACE back to you · M close DRAG 移動 · WHEEL ズーム · SPACE 自分へ戻る · M 閉じる
|
||||||
|
AUTOMATION 自動化
|
||||||
|
Long Leash ロングリード
|
||||||
|
Robots start further out and mow further from home. ロボットがより遠くから刈り始め、家からもっと遠くまで刈る。
|
||||||
|
+{0}% robot reach ロボットの範囲+{0}%
|
||||||
|
Overdrive Motors オーバードライブモーター
|
||||||
|
Robots and Sky Mowers drive and mow faster. ロボットとスカイモアの移動と刈り取りが速くなる。
|
||||||
|
+{0}% robot speed ロボットの速度+{0}%
|
||||||
|
Bigger Hoppers 大型ホッパー
|
||||||
|
Robots carry more grass before they head home. ロボットが帰る前により多くの草を運べる。
|
||||||
|
+{0}% robot hopper ロボットのホッパー+{0}%
|
||||||
|
Long-Range Drones 長距離ドローン
|
||||||
|
Drone pads fetch bundles from further away. ドローンパッドがもっと遠くの束を回収する。
|
||||||
|
+{0} m drone reach ドローンの範囲+{0} m
|
||||||
|
Hive Mind ハイブマインド
|
||||||
|
Every robot, Sky Mower and drone works 20% faster. すべてのロボット、スカイモア、ドローンが20%速く働く。
|
||||||
|
Autopilot オートパイロット
|
||||||
|
C hands it over: it mows and unloads on its own Cで任せる:自分で刈って荷下ろしする
|
||||||
|
autopilot: off to unload オートパイロット:荷下ろしへ移動中
|
||||||
|
autopilot: nothing left to mow round here オートパイロット:この辺りに刈る草はもうない
|
||||||
|
autopilot: mowing オートパイロット:刈り取り中
|
||||||
|
Take over the {0} ({1}, {2} / {3}) {0}を操縦する ({1}、{2} / {3})
|
||||||
|
Autopilot on: the {0} mows round here and unloads itself. Hop back in to take over. オートパイロット起動:{0}がこの辺りを刈って自分で荷下ろしする。乗り込めば操縦に戻れる。
|
||||||
|
WASD to drive · SHIFT boost · R chase view · E to hop off · C autopilot WASD 運転 · SHIFT ブースト · R 追従視点 · E 降りる・C オートパイロット
|
||||||
|
Grass Train グラストレイン
|
||||||
|
Lays its own track to a station next door, mowing all the way there. Then it runs back and forth, its side cutters reaching further out on every run, and what it cuts is paid for at either end. Build it on open ground facing the way it should go. 隣のステーションまで自分で線路を敷き、道中ずっと草を刈る。線路がつながると往復運転を始め、走るたびに側面のカッターがより遠くまで届き、刈った草は両端で支払われる。開けた地面に、進ませたい方向へ向けて建てよう。
|
||||||
|
{0}: laying track to {1}, {2} of {3} m {0}:{1}へ線路を敷設中、{2} / {3} m
|
||||||
|
E: another station E:別のステーション
|
||||||
|
{0}: running to {1} and back, cutting {2} m out either side, {3} on board {0}:{1}との間を往復中、両側{2} mまで刈り取り、積載{3}
|
||||||
|
x{0:0.#} speed and reach, {1} wagons 速度と届く範囲 x{0:0.#}、車両 {1} 両
|
||||||
|
Train yard: {0} 列車の荷置き場:{0}
|
||||||
|
The Grass Train lays track on to {0} 草刈り列車が{0}まで線路を延ばします
|
||||||
|
{0}: carrying grass home from the stations on its line, {1} on board, {2} waiting {0}:路線の駅から草を基地へ運搬中、積載{1}、待機{2}
|
||||||
|
E: ride in the cab E:運転台に乗る
|
||||||
|
In the cab: W forward · S back · E to get off 運転台:W 前進 · S 後退 · E 降りる
|
||||||
|
Head bob 視点の揺れ
|
||||||
|
The view rocks a little with each step. Off keeps it still. 歩くたびに視点が少し揺れます。オフにすると揺れません。
|
||||||
|
STEAM PAGE STEAMページ
|
||||||
|
FEEDBACK フィードバック
|
||||||
|
Grass Cutters Together needs Steam. Start Steam, sign in to the account that owns the game, and launch it from your library. Grass Cutters Together には Steam が必要です。Steam を起動し、ゲームを所有するアカウントでサインインして、ライブラリから起動してください。
|
||||||
|
That's the end of the demo: the full game has the rest of the planet. 体験版はここまで:惑星の残りは製品版で待っています。
|
||||||
|
DEMO 体験版
|
||||||
|
WISHLIST THE FULL GAME 製品版をウィッシュリストに追加
|
||||||
|
DEMO COMPLETE · thanks for playing! 体験版クリア · プレイありがとう!
|
||||||
|
DEMO · goal: ship {0} of {1} kg of grass 体験版 · 目標:草を {1} kg 中 {0} kg 納品
|
||||||
|
THANKS FOR PLAYING THE DEMO! 体験版をプレイしてくれてありがとう!
|
||||||
|
Your crew shipped {0} kg of grass and reached the end of the demo. In the full game the whole planet is yours: machines, belts, robots, far stations and up to 16 players. クルーは草を {0} kg 納品し、体験版の最後に到達しました。製品版では惑星全体があなたのもの:マシン、ベルト、ロボット、遠方のステーション、最大16人のプレイヤー。
|
||||||
|
You can keep mowing here, but nothing more is for sale in the demo. ここで草刈りを続けられますが、体験版ではこれ以上何も買えません。
|
||||||
|
LEAVE FEEDBACK フィードバックを送る
|
||||||
|
KEEP MOWING 草刈りを続ける
|
||||||
|
|||||||
@ -139,7 +139,7 @@ Company property 회사 자산
|
|||||||
Connecting to {0}… {0}에 연결 중…
|
Connecting to {0}… {0}에 연결 중…
|
||||||
Connecting… 연결 중…
|
Connecting… 연결 중…
|
||||||
Container {0:0.##} kg 수거통 {0:0.##} kg
|
Container {0:0.##} kg 수거통 {0:0.##} kg
|
||||||
Container full! Press E at the DEPOT to hand it all in, or Q to tie a 1 kg bundle you can carry and throw. 수거통이 가득 찼어요! 집하장에서 E를 눌러 전부 넘기거나, Q로 들고 던질 수 있는 1 kg 다발을 묶으세요.
|
Container full! Press {0} at the DEPOT to hand it all in, or {1} to tie a 1 kg bundle you can carry and throw. 수거통이 가득 찼어요! 집하장에서 {0}를 눌러 전부 넘기거나, {1}로 들고 던질 수 있는 1 kg 다발을 묶으세요.
|
||||||
Container full! Q ties a bundle, E at the DEPOT hands it all in 수거통 가득! Q로 다발 묶기, 집하장에서 E로 전부 넘기기
|
Container full! Q ties a bundle, E at the DEPOT hands it all in 수거통 가득! Q로 다발 묶기, 집하장에서 E로 전부 넘기기
|
||||||
Container x{0:0} 수거통 x{0:0}
|
Container x{0:0} 수거통 x{0:0}
|
||||||
CONTAINERS 수거통
|
CONTAINERS 수거통
|
||||||
@ -194,8 +194,8 @@ ECONOMY 경제
|
|||||||
Effects 효과음
|
Effects 효과음
|
||||||
Eleven more stations stand around the planet. Walk up to one and it opens for the crew: a depot, a supply wall, a console and a travel terminal. 행성 곳곳에 스테이션이 열한 곳 더 있어요. 가까이 가면 크루에게 열려요. 집하장, 보급 벽, 콘솔, 이동 터미널이 있어요.
|
Eleven more stations stand around the planet. Walk up to one and it opens for the crew: a depot, a supply wall, a console and a travel terminal. 행성 곳곳에 스테이션이 열한 곳 더 있어요. 가까이 가면 크루에게 열려요. 집하장, 보급 벽, 콘솔, 이동 터미널이 있어요.
|
||||||
Empty 비어 있음
|
Empty 비어 있음
|
||||||
Empty bed · E with a bundle in your arms loads it 빈 짐칸 · 다발을 들고 E로 싣기
|
Empty bed · {0} with a bundle in your arms loads it 빈 짐칸 · 다발을 들고 {0}로 싣기
|
||||||
Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors (E). 빈손이에요! 데크 서쪽의 보급 벽으로 가서 손톱가위를 집으세요 (E).
|
Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors ({0}). 빈손이에요! 데크 서쪽의 보급 벽으로 가서 손톱가위를 집으세요 ({0}).
|
||||||
Every blade counts. Apparently. 풀 한 포기도 소중하대요. 그렇다네요.
|
Every blade counts. Apparently. 풀 한 포기도 소중하대요. 그렇다네요.
|
||||||
Every kilo is shot into a Bundle Catcher, anywhere on the planet. A Catcher holds 100 kg and puts it on a belt. With no Catcher free the Reaper stops when its hopper is full. 벤 풀은 1 kg도 빠짐없이 행성 어디에 있든 다발 수집기로 쏘아 보내요. 수집기는 100 kg을 담아 벨트에 올려요. 빈 수집기가 없으면 리퍼는 호퍼가 가득 차는 대로 멈춰요.
|
Every kilo is shot into a Bundle Catcher, anywhere on the planet. A Catcher holds 100 kg and puts it on a belt. With no Catcher free the Reaper stops when its hopper is full. 벤 풀은 1 kg도 빠짐없이 행성 어디에 있든 다발 수집기로 쏘아 보내요. 수집기는 100 kg을 담아 벨트에 올려요. 빈 수집기가 없으면 리퍼는 호퍼가 가득 차는 대로 멈춰요.
|
||||||
Every Last Stake 마지막 말뚝까지
|
Every Last Stake 마지막 말뚝까지
|
||||||
@ -223,7 +223,6 @@ FIND GAMES 게임 찾기
|
|||||||
First day 첫날
|
First day 첫날
|
||||||
First Delivery 첫 납품
|
First Delivery 첫 납품
|
||||||
Five kilos of grass become five of hay in 12 seconds. Hay pays three times as much. 풀 5 kg이 12초 만에 건초 5 kg이 돼요. 건초는 세 배 값을 받아요.
|
Five kilos of grass become five of hay in 12 seconds. Hay pays three times as much. 풀 5 kg이 12초 만에 건초 5 kg이 돼요. 건초는 세 배 값을 받아요.
|
||||||
FLEET 차량
|
|
||||||
Floodlights 투광등
|
Floodlights 투광등
|
||||||
Found so far: {0} stakes, {1} points. 지금까지 찾은 것: 말뚝 {0}개, 측량점 {1}개.
|
Found so far: {0} stakes, {1} points. 지금까지 찾은 것: 말뚝 {0}개, 측량점 {1}개.
|
||||||
Foundations 토대
|
Foundations 토대
|
||||||
@ -288,9 +287,9 @@ Hi. I'm the Director's assistant. 안녕하세요. 본부장님 비서예요.
|
|||||||
Hold: Read the survey point ({0}) 길게 누르기: 측량점 판독 ({0})
|
Hold: Read the survey point ({0}) 길게 누르기: 측량점 판독 ({0})
|
||||||
Hold: Untangle the stake ({0}) 길게 누르기: 말뚝 정리 ({0})
|
Hold: Untangle the stake ({0}) 길게 누르기: 말뚝 정리 ({0})
|
||||||
Holds 100 kg of what Reapers shoot and puts it on the belt. 리퍼가 쏘아 보낸 것을 100 kg까지 담아 벨트에 올려요.
|
Holds 100 kg of what Reapers shoot and puts it on the belt. 리퍼가 쏘아 보낸 것을 100 kg까지 담아 벨트에 올려요.
|
||||||
Hop down to the meadow (SPACE at the railing) and HOLD LEFT CLICK: sweep the blade over the grass. Earth needs every blade of it. 초원으로 뛰어내리고 (난간에서 SPACE) 좌클릭을 누른 채 날을 풀 위로 휘두르세요. 지구엔 풀 한 포기까지 다 필요해요.
|
Hop down to the meadow ({0} at the railing) and HOLD {1}: sweep the blade over the grass. Earth needs every blade of it. 초원으로 뛰어내리고 (난간에서 {0}) {1}을 누른 채 날을 풀 위로 휘두르세요. 지구엔 풀 한 포기까지 다 필요해요.
|
||||||
Hop down to the meadow, space at the railing. 초원으로 뛰어내리세요. 난간에서 스페이스예요.
|
Hop down to the meadow, space at the railing. 초원으로 뛰어내리세요. 난간에서 스페이스예요.
|
||||||
Hop off [R] View 내리기 [R] 시점
|
Hop off [{0}] View 내리기 [{0}] 시점
|
||||||
Hop over the railing with SPACE, hold LEFT CLICK and sweep the blade over the grass. It goes straight into the tool's container. SPACE로 난간을 넘고, 좌클릭을 누른 채 날을 풀 위로 휘두르세요. 벤 풀은 바로 도구의 수거통으로 들어가요.
|
Hop over the railing with SPACE, hold LEFT CLICK and sweep the blade over the grass. It goes straight into the tool's container. SPACE로 난간을 넘고, 좌클릭을 누른 채 날을 풀 위로 휘두르세요. 벤 풀은 바로 도구의 수거통으로 들어가요.
|
||||||
hopper full, needs a catcher with room 호퍼 가득, 빈 수집기 필요
|
hopper full, needs a catcher with room 호퍼 가득, 빈 수집기 필요
|
||||||
Hopper full: drive to an UNLOAD marker 호퍼 가득: 하역 표시로 이동하세요
|
Hopper full: drive to an UNLOAD marker 호퍼 가득: 하역 표시로 이동하세요
|
||||||
@ -332,8 +331,8 @@ Let the Robot Do It 로봇한테 맡겨
|
|||||||
Linking... 연결 중...
|
Linking... 연결 중...
|
||||||
Listen up, you incompetent idiots! 잘 들어, 이 무능한 멍청이들아!
|
Listen up, you incompetent idiots! 잘 들어, 이 무능한 멍청이들아!
|
||||||
Listening for LAN games… LAN 게임 찾는 중…
|
Listening for LAN games… LAN 게임 찾는 중…
|
||||||
LMB where the belt starts · height {0:0.0} m LMB 벨트 시작점 · 높이 {0:0.0} m
|
{1} where the belt starts · height {0:0.0} m {1} 벨트 시작점 · 높이 {0:0.0} m
|
||||||
LMB: go on from this end LMB: 이 끝에서 이어 가기
|
{0}: go on from this end {0}: 이 끝에서 이어 가기
|
||||||
LOGISTICS 물류
|
LOGISTICS 물류
|
||||||
Long Handles 긴 손잡이
|
Long Handles 긴 손잡이
|
||||||
Long Scythe 긴 큰낫
|
Long Scythe 긴 큰낫
|
||||||
@ -357,7 +356,7 @@ Mode 모드
|
|||||||
More cash for every sector mown clean. 깨끗이 깎은 섹터마다 돈을 더 받아요.
|
More cash for every sector mown clean. 깨끗이 깎은 섹터마다 돈을 더 받아요.
|
||||||
Mouse sensitivity 마우스 감도
|
Mouse sensitivity 마우스 감도
|
||||||
Move faster. 더 빨리 움직여요.
|
Move faster. 더 빨리 움직여요.
|
||||||
Moving {0}: LMB put down · R rotate · RMB cancel {0} 옮기는 중: LMB 내려놓기 · R 회전 · RMB 취소
|
Moving {0}: {1} put down · {2} rotate · {3} cancel {0} 옮기는 중: {1} 내려놓기 · {2} 회전 · {3} 취소
|
||||||
Mow a path for the belt first 먼저 벨트 길을 깎으세요
|
Mow a path for the belt first 먼저 벨트 길을 깎으세요
|
||||||
Mow Base 풀베기 기지
|
Mow Base 풀베기 기지
|
||||||
Mow the grass here first 먼저 여기 풀을 깎으세요
|
Mow the grass here first 먼저 여기 풀을 깎으세요
|
||||||
@ -382,7 +381,6 @@ Nail Scissors Basket 손톱가위 바구니
|
|||||||
NE 북동
|
NE 북동
|
||||||
Never once lost a scythe. 큰낫을 잃어버린 적이 한 번도 없다.
|
Never once lost a scythe. 큰낫을 잃어버린 적이 한 번도 없다.
|
||||||
NEW GAME 새 게임
|
NEW GAME 새 게임
|
||||||
NEXT {0} 다음 {0}
|
|
||||||
Night Vision 야간 투시경
|
Night Vision 야간 투시경
|
||||||
Night vision on 야간 투시경 켬
|
Night vision on 야간 투시경 켬
|
||||||
Night Vision: {0}. N goes from the headlamp to night vision to nothing. 야간 투시경: {0}. N을 누를 때마다 헤드램프 → 야간 투시경 → 끔 순서로 바뀌어요.
|
Night Vision: {0}. N goes from the headlamp to night vision to nothing. 야간 투시경: {0}. N을 누를 때마다 헤드램프 → 야간 투시경 → 끔 순서로 바뀌어요.
|
||||||
@ -401,7 +399,6 @@ nothing to run, {0:0.#} kW free 가동할 것 없음, {0:0.#} kW 여유
|
|||||||
nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh 가동할 것 없음, {0:0.#} kW 여유, 배터리 {1:0.0} / {2:0} kWh
|
nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh 가동할 것 없음, {0:0.#} kW 여유, 배터리 {1:0.0} / {2:0} kWh
|
||||||
Nothing to set on this one. 설정할 게 없어요.
|
Nothing to set on this one. 설정할 게 없어요.
|
||||||
Nothing to tie: cut some grass first 묶을 게 없어요: 먼저 풀을 깎으세요
|
Nothing to tie: cut some grass first 묶을 게 없어요: 먼저 풀을 깎으세요
|
||||||
NOW {0} 현재 {0}
|
|
||||||
NOW {0} of {1} slots 현재 {0} / {1}칸
|
NOW {0} of {1} slots 현재 {0} / {1}칸
|
||||||
NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! 이제 나머지 구십구 점 구구구 퍼센트도 해치워!
|
NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! 이제 나머지 구십구 점 구구구 퍼센트도 해치워!
|
||||||
NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! 당장 나가서 그 빌어먹을 행성을 깎아!
|
NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! 당장 나가서 그 빌어먹을 행성을 깎아!
|
||||||
@ -489,7 +486,7 @@ Reset progress? 진행을 초기화할까요?
|
|||||||
resting 대기
|
resting 대기
|
||||||
RESUME 계속하기
|
RESUME 계속하기
|
||||||
Ride the {0} ({1} / {2}) {0} 탑승 ({1} / {2})
|
Ride the {0} ({1} / {2}) {0} 탑승 ({1} / {2})
|
||||||
Ride the {0} ({1} of {2} bundles, E with a bundle loads it) {0} 탑승 (다발 {1} / {2}, 다발을 들고 E로 싣기)
|
Ride the {0} ({1} of {2} bundles, {3} with a bundle loads it) {0} 탑승 (다발 {1} / {2}, 다발을 들고 {3}로 싣기)
|
||||||
RIGHT CLICK takes a piece down and gives all the money back. T carries it somewhere else, the middle button copies it. 우클릭으로 부품을 철거하면 돈을 전부 돌려받아요. T로 다른 곳에 옮기고, 휠 클릭으로 복사해요.
|
RIGHT CLICK takes a piece down and gives all the money back. T carries it somewhere else, the middle button copies it. 우클릭으로 부품을 철거하면 돈을 전부 돌려받아요. T로 다른 곳에 옮기고, 휠 클릭으로 복사해요.
|
||||||
Robot 로봇
|
Robot 로봇
|
||||||
Robot Crew 로봇 크루
|
Robot Crew 로봇 크루
|
||||||
@ -588,7 +585,7 @@ Supply wall — tools & gear 보급 벽 — 도구와 장비
|
|||||||
Survey point: already read 측량점: 판독 완료
|
Survey point: already read 측량점: 판독 완료
|
||||||
Surveyor 측량사
|
Surveyor 측량사
|
||||||
SW 남서
|
SW 남서
|
||||||
T move · MMB copy · RMB remove T 이동 · MMB 복사 · RMB 철거
|
{0} move · {1} copy · {2} remove {0} 이동 · {1} 복사 · {2} 철거
|
||||||
TAKE IN HAND 손에 들기
|
TAKE IN HAND 손에 들기
|
||||||
TAKE IT 가져가기
|
TAKE IT 가져가기
|
||||||
Take the nail scissors from the SUPPLY WALL on the west side of the deck. 데크 서쪽의 보급 벽에서 손톱가위를 가져가세요.
|
Take the nail scissors from the SUPPLY WALL on the west side of the deck. 데크 서쪽의 보급 벽에서 손톱가위를 가져가세요.
|
||||||
@ -638,10 +635,10 @@ They fill with whatever sun the machines don't use, and when the panels fall sho
|
|||||||
Thirty harvests and still early. 수확만 서른 번, 아직 갈 길이 멀다.
|
Thirty harvests and still early. 수확만 서른 번, 아직 갈 길이 멀다.
|
||||||
This is G.R.A.S.S.A. We take grass very seriously. 여기는 G.R.A.S.S.A.다. 우리는 풀에 아주 진지하지.
|
This is G.R.A.S.S.A. We take grass very seriously. 여기는 G.R.A.S.S.A.다. 우리는 풀에 아주 진지하지.
|
||||||
This is what peak civilization looks like. 이게 바로 문명의 정점이란 거다.
|
This is what peak civilization looks like. 이게 바로 문명의 정점이란 거다.
|
||||||
Throw [E] Drop [R] Turn 던지기 [E] 내려놓기 [R] 돌리기
|
Throw [{0}] Drop [{1}] Turn 던지기 [{0}] 내려놓기 [{1}] 돌리기
|
||||||
Throw +{0}% 투척 +{0}%
|
Throw +{0}% 투척 +{0}%
|
||||||
Throw bundles further. 다발을 더 멀리 던져요.
|
Throw bundles further. 다발을 더 멀리 던져요.
|
||||||
Throw it in the DEPOT or onto a belt [E] Drop [R] Turn 집하장이나 벨트로 던지기 [E] 내려놓기 [R] 돌리기
|
Throw it in the DEPOT or onto a belt [{0}] Drop [{1}] Turn 집하장이나 벨트로 던지기 [{0}] 내려놓기 [{1}] 돌리기
|
||||||
Throwing Arm 강견
|
Throwing Arm 강견
|
||||||
Thunderstorm! Dark skies, weak sun, twisters about. 뇌우예요! 하늘은 어둡고, 햇빛은 약하고, 회오리가 돌아다녀요.
|
Thunderstorm! Dark skies, weak sun, twisters about. 뇌우예요! 하늘은 어둡고, 햇빛은 약하고, 회오리가 돌아다녀요.
|
||||||
Thunderstorm. Dark skies, weak sun, and twisters about. 뇌우예요. 하늘은 어둡고, 햇빛은 약하고, 회오리까지 돌아다녀요.
|
Thunderstorm. Dark skies, weak sun, and twisters about. 뇌우예요. 하늘은 어둡고, 햇빛은 약하고, 회오리까지 돌아다녀요.
|
||||||
@ -685,7 +682,6 @@ Upgrades are for the whole crew and come out of the shared wallet. 업그레이
|
|||||||
V-Sync 수직 동기화
|
V-Sync 수직 동기화
|
||||||
Version mismatch 버전 불일치
|
Version mismatch 버전 불일치
|
||||||
Voices 음성
|
Voices 음성
|
||||||
v{0} · early build v{0} · 얼리 빌드
|
|
||||||
W 서
|
W 서
|
||||||
W A S D to drive. Shift to boost. W A S D로 운전하고, Shift로 부스트해요.
|
W A S D to drive. Shift to boost. W A S D로 운전하고, Shift로 부스트해요.
|
||||||
Wait. Is that... progress? 잠깐. 이거... 진척인가?
|
Wait. Is that... progress? 잠깐. 이거... 진척인가?
|
||||||
@ -699,7 +695,7 @@ Weight 무게
|
|||||||
WELCOME TO HERBARIA-7 HERBARIA-7에 오신 걸 환영해요
|
WELCOME TO HERBARIA-7 HERBARIA-7에 오신 걸 환영해요
|
||||||
Well Travelled 여행의 달인
|
Well Travelled 여행의 달인
|
||||||
Wheat 밀
|
Wheat 밀
|
||||||
WHEEL piece · LMB place · R rotate · T move · MMB copy · RMB remove · CTRL+WHEEL height · F free WHEEL 부품 · LMB 설치 · R 회전 · T 이동 · MMB 복사 · RMB 철거 · CTRL+WHEEL 높이 · F 자유 배치
|
WHEEL piece · {0} place · {1} rotate · {2} move · {3} copy · {4} remove · CTRL+WHEEL height · {5} free WHEEL 부품 · {0} 설치 · {1} 회전 · {2} 이동 · {3} 복사 · {4} 철거 · CTRL+WHEEL 높이 · {5} 자유 배치
|
||||||
Whetstone Steel 숫돌 강철
|
Whetstone Steel 숫돌 강철
|
||||||
Which address? 어느 주소인가요?
|
Which address? 어느 주소인가요?
|
||||||
Whoa! The twister threw you. 으악! 회오리에 날아갔어요.
|
Whoa! The twister threw you. 으악! 회오리에 날아갔어요.
|
||||||
@ -731,8 +727,8 @@ Zero point zero zero one percent. 영 점 영영일 퍼센트.
|
|||||||
{0:0.##} m · {1:0} kg {0:0.##} m · {1:0} kg
|
{0:0.##} m · {1:0} kg {0:0.##} m · {1:0} kg
|
||||||
{0:0.##}% of Herbaria-7 Herbaria-7의 {0:0.##}%
|
{0:0.##}% of Herbaria-7 Herbaria-7의 {0:0.##}%
|
||||||
{0:0.#} cm · {1:0.##} kg {0:0.#} cm · {1:0.##} kg
|
{0:0.#} cm · {1:0.##} kg {0:0.#} cm · {1:0.##} kg
|
||||||
{0:0.#} m of belt · MMB copy · RMB remove 벨트 {0:0.#} m · MMB 복사 · RMB 철거
|
{0:0.#} m of belt · {1} copy · {2} remove 벨트 {0:0.#} m · {1} 복사 · {2} 철거
|
||||||
{0:0.#} m, {1} · height {2:0.0} m · RMB stops {0:0.#} m, {1} · 높이 {2:0.0} m · RMB 중단
|
{0:0.#} m, {1} · height {2:0.0} m · {3} stops {0:0.#} m, {1} · 높이 {2:0.0} m · {3} 중단
|
||||||
{0:0.#}% mown {0:0.#}% 깎음
|
{0:0.#}% mown {0:0.#}% 깎음
|
||||||
{0:0.0000}% {0:0.0000}%
|
{0:0.0000}% {0:0.0000}%
|
||||||
{0:0.00} / {1:0.##} KG {0:0.00} / {1:0.##} KG
|
{0:0.00} / {1:0.##} KG {0:0.00} / {1:0.##} KG
|
||||||
@ -744,7 +740,7 @@ Zero point zero zero one percent. 영 점 영영일 퍼센트.
|
|||||||
{0:N0} Sectors 섹터 {0:N0}개
|
{0:N0} Sectors 섹터 {0:N0}개
|
||||||
{0:N0} sectors clean · {1} / {2} stakes · {3} / {4} survey points 정리한 섹터 {0:N0}개 · 말뚝 {1} / {2} · 측량점 {3} / {4}
|
{0:N0} sectors clean · {1} / {2} stakes · {3} / {4} survey points 정리한 섹터 {0:N0}개 · 말뚝 {1} / {2} · 측량점 {3} / {4}
|
||||||
{0:N0} started · {1:N0} mown · {2:0.0000}% of the planet 진행 중 {0:N0} · 다 깎음 {1:N0} · 행성의 {2:0.0000}%
|
{0:N0} started · {1:N0} mown · {2:0.0000}% of the planet 진행 중 {0:N0} · 다 깎음 {1:N0} · 행성의 {2:0.0000}%
|
||||||
{0} [T] Upgrades & settings {0} [T] 업그레이드 및 설정
|
{0} [{1}] Upgrades & settings {0} [{1}] 업그레이드 및 설정
|
||||||
{0} (you) {0} (나)
|
{0} (you) {0} (나)
|
||||||
{0} / kg {0} / kg
|
{0} / kg {0} / kg
|
||||||
{0} / {1} slots {0} / {1}칸
|
{0} / {1} slots {0} / {1}칸
|
||||||
@ -797,9 +793,9 @@ HOW MUCH LAWN? 잔디가 얼마나?
|
|||||||
EASY 쉬움
|
EASY 쉬움
|
||||||
NORMAL 보통
|
NORMAL 보통
|
||||||
EXTRA HARD 매우 어려움
|
EXTRA HARD 매우 어려움
|
||||||
A planet a third the size, with sectors to match. Earth can wait a little. 3분의 1 크기의 행성, 섹터도 그에 맞게. 지구는 조금 기다려 줄 수 있어요.
|
A sixth of the big planet, sectors to match. Earth can wait a little. 큰 행성의 6분의 1, 섹터도 그에 맞게. 지구는 조금 기다려 줄 수 있어요.
|
||||||
Half the planet, half-size sectors. Still a lot of lawn. 행성의 절반, 절반 크기의 섹터. 그래도 잔디가 한가득.
|
A third of the big planet, smaller sectors. Still a lot of lawn. 큰 행성의 3분의 1, 더 작은 섹터. 그래도 잔디가 한가득.
|
||||||
The whole of Herbaria-7, full-size sectors, every blade of it. Herbaria-7 전체, 실물 크기 섹터, 풀잎 하나하나까지.
|
The big planet: the whole of Herbaria-7, every blade of it. 큰 행성: Herbaria-7 전체, 풀잎 하나하나까지.
|
||||||
DECOR 장식
|
DECOR 장식
|
||||||
Wall 벽
|
Wall 벽
|
||||||
A 3 m timber wall. It goes on the edge of a foundation or a floor; R turns it round. 3m 나무 벽. 토대나 바닥의 가장자리에 놓습니다. R로 회전.
|
A 3 m timber wall. It goes on the edge of a foundation or a floor; R turns it round. 3m 나무 벽. 토대나 바닥의 가장자리에 놓습니다. R로 회전.
|
||||||
@ -962,3 +958,52 @@ A big mowing drone. It flies over rocks and hills, works 91 sectors around its p
|
|||||||
ME 나
|
ME 나
|
||||||
GLOBE 지구본
|
GLOBE 지구본
|
||||||
DRAG move · WHEEL zoom · SPACE back to you · M close DRAG 이동 · WHEEL 확대 · SPACE 내 위치로 · M 닫기
|
DRAG move · WHEEL zoom · SPACE back to you · M close DRAG 이동 · WHEEL 확대 · SPACE 내 위치로 · M 닫기
|
||||||
|
AUTOMATION 자동화
|
||||||
|
Long Leash 긴 목줄
|
||||||
|
Robots start further out and mow further from home. 로봇이 더 먼 곳에서 시작해 집에서 더 멀리까지 깎아요.
|
||||||
|
+{0}% robot reach 로봇 범위 +{0}%
|
||||||
|
Overdrive Motors 오버드라이브 모터
|
||||||
|
Robots and Sky Mowers drive and mow faster. 로봇과 스카이 모어가 더 빨리 달리고 깎아요.
|
||||||
|
+{0}% robot speed 로봇 속도 +{0}%
|
||||||
|
Bigger Hoppers 대형 호퍼
|
||||||
|
Robots carry more grass before they head home. 로봇이 집에 돌아가기 전에 풀을 더 많이 실어요.
|
||||||
|
+{0}% robot hopper 로봇 호퍼 +{0}%
|
||||||
|
Long-Range Drones 장거리 드론
|
||||||
|
Drone pads fetch bundles from further away. 드론 패드가 더 먼 곳의 묶음도 가져와요.
|
||||||
|
+{0} m drone reach 드론 범위 +{0} m
|
||||||
|
Hive Mind 하이브 마인드
|
||||||
|
Every robot, Sky Mower and drone works 20% faster. 모든 로봇, 스카이 모어, 드론이 20% 더 빨리 일해요.
|
||||||
|
Autopilot 자동 조종
|
||||||
|
C hands it over: it mows and unloads on its own C로 맡기기: 알아서 깎고 내려놔요
|
||||||
|
autopilot: off to unload 자동 조종: 하역하러 가는 중
|
||||||
|
autopilot: nothing left to mow round here 자동 조종: 이 근처엔 깎을 게 없어요
|
||||||
|
autopilot: mowing 자동 조종: 깎는 중
|
||||||
|
Take over the {0} ({1}, {2} / {3}) {0} 직접 몰기 ({1}, {2} / {3})
|
||||||
|
Autopilot on: the {0} mows round here and unloads itself. Hop back in to take over. 자동 조종 켜짐: {0}이(가) 이 근처를 깎고 알아서 하역해요. 다시 타면 직접 몰 수 있어요.
|
||||||
|
WASD to drive · SHIFT boost · R chase view · E to hop off · C autopilot WASD 운전 · SHIFT 부스트 · R 추적 시점 · E 내리기 · C 자동 조종
|
||||||
|
Grass Train 잔디 기차
|
||||||
|
Lays its own track to a station next door, mowing all the way there. Then it runs back and forth, its side cutters reaching further out on every run, and what it cuts is paid for at either end. Build it on open ground facing the way it should go. 이웃 정거장까지 스스로 선로를 깔면서 가는 길을 전부 깎아요. 선로가 이어지면 왕복 운행을 하는데, 운행할 때마다 옆 커터가 더 멀리 닿고, 깎은 풀은 양 끝에서 정산돼요. 탁 트인 땅에, 가야 할 방향을 보게 지으세요.
|
||||||
|
{0}: laying track to {1}, {2} of {3} m {0}: {1}까지 선로 까는 중, {2} / {3} m
|
||||||
|
E: another station E: 다른 정거장
|
||||||
|
{0}: running to {1} and back, cutting {2} m out either side, {3} on board {0}: {1} 왕복 중, 양옆 {2} m까지 깎는 중, {3} 적재
|
||||||
|
x{0:0.#} speed and reach, {1} wagons 속도와 범위 x{0:0.#}, 화차 {1}량
|
||||||
|
Train yard: {0} 열차 하역장: {0}
|
||||||
|
The Grass Train lays track on to {0} 잔디 열차가 {0}까지 선로를 깝니다
|
||||||
|
{0}: carrying grass home from the stations on its line, {1} on board, {2} waiting {0}: 노선의 역에서 풀을 기지로 운반 중, 적재 {1}, 대기 {2}
|
||||||
|
E: ride in the cab E: 기관실에 타기
|
||||||
|
In the cab: W forward · S back · E to get off 기관실: W 전진 · S 후진 · E 내리기
|
||||||
|
Head bob 화면 흔들림(걸음)
|
||||||
|
The view rocks a little with each step. Off keeps it still. 걸을 때마다 시야가 살짝 흔들립니다. 끄면 고정됩니다.
|
||||||
|
STEAM PAGE STEAM 페이지
|
||||||
|
FEEDBACK 피드백
|
||||||
|
Grass Cutters Together needs Steam. Start Steam, sign in to the account that owns the game, and launch it from your library. Grass Cutters Together는 Steam이 필요합니다. Steam을 실행하고 게임을 보유한 계정으로 로그인한 뒤 라이브러리에서 실행하세요.
|
||||||
|
That's the end of the demo: the full game has the rest of the planet. 데모는 여기까지입니다: 행성의 나머지는 정식 버전에서 기다립니다.
|
||||||
|
DEMO 데모
|
||||||
|
WISHLIST THE FULL GAME 정식 버전을 찜 목록에 추가
|
||||||
|
DEMO COMPLETE · thanks for playing! 데모 완료 · 플레이해 주셔서 감사합니다!
|
||||||
|
DEMO · goal: ship {0} of {1} kg of grass 데모 · 목표: 풀 {1} kg 중 {0} kg 납품
|
||||||
|
THANKS FOR PLAYING THE DEMO! 데모를 플레이해 주셔서 감사합니다!
|
||||||
|
Your crew shipped {0} kg of grass and reached the end of the demo. In the full game the whole planet is yours: machines, belts, robots, far stations and up to 16 players. 크루가 풀 {0} kg을 납품하고 데모의 끝에 도달했습니다. 정식 버전에서는 행성 전체가 여러분의 것입니다: 기계, 컨베이어, 로봇, 먼 정거장, 최대 16명의 플레이어.
|
||||||
|
You can keep mowing here, but nothing more is for sale in the demo. 여기서 계속 풀을 벨 수 있지만, 데모에서는 더 이상 살 수 있는 것이 없습니다.
|
||||||
|
LEAVE FEEDBACK 피드백 남기기
|
||||||
|
KEEP MOWING 계속 풀 베기
|
||||||
|
|||||||
@ -139,7 +139,7 @@ Company property Własność firmy
|
|||||||
Connecting to {0}… Łączenie z: {0}…
|
Connecting to {0}… Łączenie z: {0}…
|
||||||
Connecting… Łączenie…
|
Connecting… Łączenie…
|
||||||
Container {0:0.##} kg Pojemnik {0:0.##} kg
|
Container {0:0.##} kg Pojemnik {0:0.##} kg
|
||||||
Container full! Press E at the DEPOT to hand it all in, or Q to tie a 1 kg bundle you can carry and throw. Pojemnik pełny! Naciśnij E przy SKUPIE, żeby wszystko oddać, albo Q, żeby związać 1-kilogramowy snopek, który możesz nosić i rzucać.
|
Container full! Press {0} at the DEPOT to hand it all in, or {1} to tie a 1 kg bundle you can carry and throw. Pojemnik pełny! Naciśnij {0} przy SKUPIE, żeby wszystko oddać, albo {1}, żeby związać 1-kilogramowy snopek, który możesz nosić i rzucać.
|
||||||
Container full! Q ties a bundle, E at the DEPOT hands it all in Pojemnik pełny! Q wiąże snopek, E przy SKUPIE oddaje wszystko
|
Container full! Q ties a bundle, E at the DEPOT hands it all in Pojemnik pełny! Q wiąże snopek, E przy SKUPIE oddaje wszystko
|
||||||
Container x{0:0} Pojemność x{0:0}
|
Container x{0:0} Pojemność x{0:0}
|
||||||
CONTAINERS POJEMNIKI
|
CONTAINERS POJEMNIKI
|
||||||
@ -194,8 +194,8 @@ ECONOMY EKONOMIA
|
|||||||
Effects Efekty
|
Effects Efekty
|
||||||
Eleven more stations stand around the planet. Walk up to one and it opens for the crew: a depot, a supply wall, a console and a travel terminal. Na planecie stoi jeszcze jedenaście stacji. Podejdź do którejś, a otworzy się dla ekipy: skup, ściana sprzętu, konsola i terminal podróży.
|
Eleven more stations stand around the planet. Walk up to one and it opens for the crew: a depot, a supply wall, a console and a travel terminal. Na planecie stoi jeszcze jedenaście stacji. Podejdź do którejś, a otworzy się dla ekipy: skup, ściana sprzętu, konsola i terminal podróży.
|
||||||
Empty Pusty
|
Empty Pusty
|
||||||
Empty bed · E with a bundle in your arms loads it Pusta skrzynia · E ze snopkiem w rękach go ładuje
|
Empty bed · {0} with a bundle in your arms loads it Pusta skrzynia · {0} ze snopkiem w rękach go ładuje
|
||||||
Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors (E). Puste ręce! Podejdź do ŚCIANY SPRZĘTU po zachodniej stronie pomostu i weź nożyczki do paznokci (E).
|
Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors ({0}). Puste ręce! Podejdź do ŚCIANY SPRZĘTU po zachodniej stronie pomostu i weź nożyczki do paznokci ({0}).
|
||||||
Every blade counts. Apparently. Każde źdźbło się liczy. Podobno.
|
Every blade counts. Apparently. Każde źdźbło się liczy. Podobno.
|
||||||
Every kilo is shot into a Bundle Catcher, anywhere on the planet. A Catcher holds 100 kg and puts it on a belt. With no Catcher free the Reaper stops when its hopper is full. Każde kilo leci prosto do Łapacza snopków, gdziekolwiek na planecie. Łapacz mieści 100 kg i wydaje je na taśmę. Gdy żaden Łapacz nie ma miejsca, Żniwiarz staje z pełnym zbiornikiem.
|
Every kilo is shot into a Bundle Catcher, anywhere on the planet. A Catcher holds 100 kg and puts it on a belt. With no Catcher free the Reaper stops when its hopper is full. Każde kilo leci prosto do Łapacza snopków, gdziekolwiek na planecie. Łapacz mieści 100 kg i wydaje je na taśmę. Gdy żaden Łapacz nie ma miejsca, Żniwiarz staje z pełnym zbiornikiem.
|
||||||
Every Last Stake Co do palika
|
Every Last Stake Co do palika
|
||||||
@ -223,7 +223,6 @@ FIND GAMES ZNAJDŹ GRY
|
|||||||
First day Pierwszy dzień
|
First day Pierwszy dzień
|
||||||
First Delivery Pierwsza dostawa
|
First Delivery Pierwsza dostawa
|
||||||
Five kilos of grass become five of hay in 12 seconds. Hay pays three times as much. Pięć kilo trawy w 12 sekund zamienia się w pięć kilo siana. Siano jest warte trzy razy więcej.
|
Five kilos of grass become five of hay in 12 seconds. Hay pays three times as much. Pięć kilo trawy w 12 sekund zamienia się w pięć kilo siana. Siano jest warte trzy razy więcej.
|
||||||
FLEET FLOTA
|
|
||||||
Floodlights Reflektory
|
Floodlights Reflektory
|
||||||
Found so far: {0} stakes, {1} points. Znalezione do tej pory – paliki: {0}, punkty: {1}.
|
Found so far: {0} stakes, {1} points. Znalezione do tej pory – paliki: {0}, punkty: {1}.
|
||||||
Foundations Fundamenty
|
Foundations Fundamenty
|
||||||
@ -288,9 +287,9 @@ Hi. I'm the Director's assistant. Cześć. Jestem asystentką Dyrektora.
|
|||||||
Hold: Read the survey point ({0}) Przytrzymaj: odczytaj punkt pomiarowy ({0})
|
Hold: Read the survey point ({0}) Przytrzymaj: odczytaj punkt pomiarowy ({0})
|
||||||
Hold: Untangle the stake ({0}) Przytrzymaj: rozplącz palik ({0})
|
Hold: Untangle the stake ({0}) Przytrzymaj: rozplącz palik ({0})
|
||||||
Holds 100 kg of what Reapers shoot and puts it on the belt. Mieści 100 kg tego, co wystrzeliwują Żniwiarze, i wydaje to na taśmę.
|
Holds 100 kg of what Reapers shoot and puts it on the belt. Mieści 100 kg tego, co wystrzeliwują Żniwiarze, i wydaje to na taśmę.
|
||||||
Hop down to the meadow (SPACE at the railing) and HOLD LEFT CLICK: sweep the blade over the grass. Earth needs every blade of it. Zeskocz na łąkę (SPACE przy barierce) i PRZYTRZYMAJ LEWY PRZYCISK MYSZY: przeciągaj ostrzem po trawie. Ziemia potrzebuje każdego źdźbła.
|
Hop down to the meadow ({0} at the railing) and HOLD {1}: sweep the blade over the grass. Earth needs every blade of it. Zeskocz na łąkę ({0} przy barierce) i PRZYTRZYMAJ {1}: przeciągaj ostrzem po trawie. Ziemia potrzebuje każdego źdźbła.
|
||||||
Hop down to the meadow, space at the railing. Zeskocz na łąkę, spacja przy barierce.
|
Hop down to the meadow, space at the railing. Zeskocz na łąkę, spacja przy barierce.
|
||||||
Hop off [R] View Wysiądź [R] Widok
|
Hop off [{0}] View Wysiądź [{0}] Widok
|
||||||
Hop over the railing with SPACE, hold LEFT CLICK and sweep the blade over the grass. It goes straight into the tool's container. Przeskocz przez barierkę klawiszem SPACE, przytrzymaj LEWY PRZYCISK MYSZY i przeciągaj ostrzem po trawie. Trawa trafia prosto do pojemnika narzędzia.
|
Hop over the railing with SPACE, hold LEFT CLICK and sweep the blade over the grass. It goes straight into the tool's container. Przeskocz przez barierkę klawiszem SPACE, przytrzymaj LEWY PRZYCISK MYSZY i przeciągaj ostrzem po trawie. Trawa trafia prosto do pojemnika narzędzia.
|
||||||
hopper full, needs a catcher with room zbiornik pełny, potrzebny łapacz z wolnym miejscem
|
hopper full, needs a catcher with room zbiornik pełny, potrzebny łapacz z wolnym miejscem
|
||||||
Hopper full: drive to an UNLOAD marker Zbiornik pełny: jedź do znacznika ROZŁADUNEK
|
Hopper full: drive to an UNLOAD marker Zbiornik pełny: jedź do znacznika ROZŁADUNEK
|
||||||
@ -332,8 +331,8 @@ Let the Robot Do It Niech robot to zrobi
|
|||||||
Linking... Łączenie...
|
Linking... Łączenie...
|
||||||
Listen up, you incompetent idiots! Słuchajcie, wy nieudolne matoły!
|
Listen up, you incompetent idiots! Słuchajcie, wy nieudolne matoły!
|
||||||
Listening for LAN games… Nasłuchiwanie gier LAN…
|
Listening for LAN games… Nasłuchiwanie gier LAN…
|
||||||
LMB where the belt starts · height {0:0.0} m LMB tam, gdzie zaczyna się taśma · wysokość {0:0.0} m
|
{1} where the belt starts · height {0:0.0} m {1} tam, gdzie zaczyna się taśma · wysokość {0:0.0} m
|
||||||
LMB: go on from this end LMB: ciągnij dalej od tego końca
|
{0}: go on from this end {0}: ciągnij dalej od tego końca
|
||||||
LOGISTICS LOGISTYKA
|
LOGISTICS LOGISTYKA
|
||||||
Long Handles Długie trzonki
|
Long Handles Długie trzonki
|
||||||
Long Scythe Długa kosa
|
Long Scythe Długa kosa
|
||||||
@ -357,7 +356,7 @@ Mode Tryb
|
|||||||
More cash for every sector mown clean. Więcej kasy za każdy sektor wykoszony do czysta.
|
More cash for every sector mown clean. Więcej kasy za każdy sektor wykoszony do czysta.
|
||||||
Mouse sensitivity Czułość myszy
|
Mouse sensitivity Czułość myszy
|
||||||
Move faster. Ruszaj się szybciej.
|
Move faster. Ruszaj się szybciej.
|
||||||
Moving {0}: LMB put down · R rotate · RMB cancel {0} – przenoszenie: LMB odłóż · R obróć · RMB anuluj
|
Moving {0}: {1} put down · {2} rotate · {3} cancel {0} – przenoszenie: {1} odłóż · {2} obróć · {3} anuluj
|
||||||
Mow a path for the belt first Najpierw wykoś ścieżkę pod taśmę
|
Mow a path for the belt first Najpierw wykoś ścieżkę pod taśmę
|
||||||
Mow Base Baza koszenia
|
Mow Base Baza koszenia
|
||||||
Mow the grass here first Najpierw skoś tu trawę
|
Mow the grass here first Najpierw skoś tu trawę
|
||||||
@ -382,7 +381,6 @@ Nail Scissors Basket Kosz: Nożyczki do paznokci
|
|||||||
NE NE
|
NE NE
|
||||||
Never once lost a scythe. Ani razu nie zgubił kosy.
|
Never once lost a scythe. Ani razu nie zgubił kosy.
|
||||||
NEW GAME NOWA GRA
|
NEW GAME NOWA GRA
|
||||||
NEXT {0} NASTĘPNY {0}
|
|
||||||
Night Vision Noktowizor
|
Night Vision Noktowizor
|
||||||
Night vision on Noktowizor włączony
|
Night vision on Noktowizor włączony
|
||||||
Night Vision: {0}. N goes from the headlamp to night vision to nothing. Noktowizor: {0}. N przełącza: czołówka, noktowizor, nic.
|
Night Vision: {0}. N goes from the headlamp to night vision to nothing. Noktowizor: {0}. N przełącza: czołówka, noktowizor, nic.
|
||||||
@ -401,7 +399,6 @@ nothing to run, {0:0.#} kW free nic nie pracuje, wolne {0:0.#} kW
|
|||||||
nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh nic nie pracuje, wolne {0:0.#} kW, baterie {1:0.0} z {2:0} kWh
|
nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh nic nie pracuje, wolne {0:0.#} kW, baterie {1:0.0} z {2:0} kWh
|
||||||
Nothing to set on this one. Tu nie ma nic do ustawienia.
|
Nothing to set on this one. Tu nie ma nic do ustawienia.
|
||||||
Nothing to tie: cut some grass first Nie ma czego wiązać: najpierw skoś trochę trawy
|
Nothing to tie: cut some grass first Nie ma czego wiązać: najpierw skoś trochę trawy
|
||||||
NOW {0} TERAZ {0}
|
|
||||||
NOW {0} of {1} slots TERAZ miejsca: {0} z {1}
|
NOW {0} of {1} slots TERAZ miejsca: {0} z {1}
|
||||||
NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! A TERAZ ZRÓBCIE POZOSTAŁE DZIEWIĘĆDZIESIĄT DZIEWIĘĆ PRZECINEK DZIEWIĘĆ DZIEWIĘĆ DZIEWIĘĆ!
|
NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! A TERAZ ZRÓBCIE POZOSTAŁE DZIEWIĘĆDZIESIĄT DZIEWIĘĆ PRZECINEK DZIEWIĘĆ DZIEWIĘĆ DZIEWIĘĆ!
|
||||||
NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! A TERAZ WYNOCHA I KOŚCIE TĘ PRZEKLĘTĄ PLANETĘ!
|
NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! A TERAZ WYNOCHA I KOŚCIE TĘ PRZEKLĘTĄ PLANETĘ!
|
||||||
@ -489,7 +486,7 @@ Reset progress? Zresetować postęp?
|
|||||||
resting w spoczynku
|
resting w spoczynku
|
||||||
RESUME WZNÓW
|
RESUME WZNÓW
|
||||||
Ride the {0} ({1} / {2}) Wsiądź: {0} ({1} / {2})
|
Ride the {0} ({1} / {2}) Wsiądź: {0} ({1} / {2})
|
||||||
Ride the {0} ({1} of {2} bundles, E with a bundle loads it) Wsiądź: {0} (snopki: {1} z {2}, E ze snopkiem ładuje)
|
Ride the {0} ({1} of {2} bundles, {3} with a bundle loads it) Wsiądź: {0} (snopki: {1} z {2}, {3} ze snopkiem ładuje)
|
||||||
RIGHT CLICK takes a piece down and gives all the money back. T carries it somewhere else, the middle button copies it. PRAWY PRZYCISK rozbiera element i zwraca całą kasę. T przenosi go gdzie indziej, środkowy przycisk go kopiuje.
|
RIGHT CLICK takes a piece down and gives all the money back. T carries it somewhere else, the middle button copies it. PRAWY PRZYCISK rozbiera element i zwraca całą kasę. T przenosi go gdzie indziej, środkowy przycisk go kopiuje.
|
||||||
Robot Robot
|
Robot Robot
|
||||||
Robot Crew Robotyczna ekipa
|
Robot Crew Robotyczna ekipa
|
||||||
@ -588,7 +585,7 @@ Supply wall — tools & gear Ściana sprzętu — narzędzia i wyposażenie
|
|||||||
Survey point: already read Punkt pomiarowy: już odczytany
|
Survey point: already read Punkt pomiarowy: już odczytany
|
||||||
Surveyor Geodeta
|
Surveyor Geodeta
|
||||||
SW SW
|
SW SW
|
||||||
T move · MMB copy · RMB remove T przenieś · MMB kopiuj · RMB usuń
|
{0} move · {1} copy · {2} remove {0} przenieś · {1} kopiuj · {2} usuń
|
||||||
TAKE IN HAND WEŹ DO RĘKI
|
TAKE IN HAND WEŹ DO RĘKI
|
||||||
TAKE IT BIERZ
|
TAKE IT BIERZ
|
||||||
Take the nail scissors from the SUPPLY WALL on the west side of the deck. Weź nożyczki do paznokci ze ŚCIANY SPRZĘTU po zachodniej stronie pomostu.
|
Take the nail scissors from the SUPPLY WALL on the west side of the deck. Weź nożyczki do paznokci ze ŚCIANY SPRZĘTU po zachodniej stronie pomostu.
|
||||||
@ -638,10 +635,10 @@ They fill with whatever sun the machines don't use, and when the panels fall sho
|
|||||||
Thirty harvests and still early. Trzydzieści żniw, a wciąż ranny ptaszek.
|
Thirty harvests and still early. Trzydzieści żniw, a wciąż ranny ptaszek.
|
||||||
This is G.R.A.S.S.A. We take grass very seriously. Tu G.R.A.S.S.A. Trawę traktujemy bardzo poważnie.
|
This is G.R.A.S.S.A. We take grass very seriously. Tu G.R.A.S.S.A. Trawę traktujemy bardzo poważnie.
|
||||||
This is what peak civilization looks like. Tak wygląda szczyt cywilizacji.
|
This is what peak civilization looks like. Tak wygląda szczyt cywilizacji.
|
||||||
Throw [E] Drop [R] Turn Rzuć [E] Upuść [R] Obróć
|
Throw [{0}] Drop [{1}] Turn Rzuć [{0}] Upuść [{1}] Obróć
|
||||||
Throw +{0}% Rzut +{0}%
|
Throw +{0}% Rzut +{0}%
|
||||||
Throw bundles further. Rzucaj snopkami dalej.
|
Throw bundles further. Rzucaj snopkami dalej.
|
||||||
Throw it in the DEPOT or onto a belt [E] Drop [R] Turn Wrzuć do SKUPU albo na taśmę [E] Upuść [R] Obróć
|
Throw it in the DEPOT or onto a belt [{0}] Drop [{1}] Turn Wrzuć do SKUPU albo na taśmę [{0}] Upuść [{1}] Obróć
|
||||||
Throwing Arm Ramię miotacza
|
Throwing Arm Ramię miotacza
|
||||||
Thunderstorm! Dark skies, weak sun, twisters about. Burza! Ciemne niebo, słabe słońce, wokół trąby powietrzne.
|
Thunderstorm! Dark skies, weak sun, twisters about. Burza! Ciemne niebo, słabe słońce, wokół trąby powietrzne.
|
||||||
Thunderstorm. Dark skies, weak sun, and twisters about. Burza. Ciemne niebo, słabe słońce i trąby powietrzne w okolicy.
|
Thunderstorm. Dark skies, weak sun, and twisters about. Burza. Ciemne niebo, słabe słońce i trąby powietrzne w okolicy.
|
||||||
@ -685,7 +682,6 @@ Upgrades are for the whole crew and come out of the shared wallet. Ulepszenia s
|
|||||||
V-Sync V-Sync
|
V-Sync V-Sync
|
||||||
Version mismatch Niezgodne wersje
|
Version mismatch Niezgodne wersje
|
||||||
Voices Głosy
|
Voices Głosy
|
||||||
v{0} · early build v{0} · wczesna wersja
|
|
||||||
W W
|
W W
|
||||||
W A S D to drive. Shift to boost. W A S D, żeby jechać. Shift, żeby przyspieszyć.
|
W A S D to drive. Shift to boost. W A S D, żeby jechać. Shift, żeby przyspieszyć.
|
||||||
Wait. Is that... progress? Chwila. Czy to... postęp?
|
Wait. Is that... progress? Chwila. Czy to... postęp?
|
||||||
@ -699,7 +695,7 @@ Weight Waga
|
|||||||
WELCOME TO HERBARIA-7 WITAJ NA HERBARII-7
|
WELCOME TO HERBARIA-7 WITAJ NA HERBARII-7
|
||||||
Well Travelled Obieżyświat
|
Well Travelled Obieżyświat
|
||||||
Wheat Pszenica
|
Wheat Pszenica
|
||||||
WHEEL piece · LMB place · R rotate · T move · MMB copy · RMB remove · CTRL+WHEEL height · F free WHEEL element · LMB postaw · R obróć · T przenieś · MMB kopiuj · RMB usuń · CTRL+WHEEL wysokość · F swobodnie
|
WHEEL piece · {0} place · {1} rotate · {2} move · {3} copy · {4} remove · CTRL+WHEEL height · {5} free WHEEL element · {0} postaw · {1} obróć · {2} przenieś · {3} kopiuj · {4} usuń · CTRL+WHEEL wysokość · {5} swobodnie
|
||||||
Whetstone Steel Stal z osełki
|
Whetstone Steel Stal z osełki
|
||||||
Which address? Jaki adres?
|
Which address? Jaki adres?
|
||||||
Whoa! The twister threw you. Ojej! Trąba powietrzna cię porwała.
|
Whoa! The twister threw you. Ojej! Trąba powietrzna cię porwała.
|
||||||
@ -731,8 +727,8 @@ Zero point zero zero one percent. Zero przecinek zero zero jeden procent.
|
|||||||
{0:0.##} m · {1:0} kg {0:0.##} m · {1:0} kg
|
{0:0.##} m · {1:0} kg {0:0.##} m · {1:0} kg
|
||||||
{0:0.##}% of Herbaria-7 {0:0.##}% Herbarii-7
|
{0:0.##}% of Herbaria-7 {0:0.##}% Herbarii-7
|
||||||
{0:0.#} cm · {1:0.##} kg {0:0.#} cm · {1:0.##} kg
|
{0:0.#} cm · {1:0.##} kg {0:0.#} cm · {1:0.##} kg
|
||||||
{0:0.#} m of belt · MMB copy · RMB remove Taśma {0:0.#} m · MMB kopiuj · RMB usuń
|
{0:0.#} m of belt · {1} copy · {2} remove Taśma {0:0.#} m · {1} kopiuj · {2} usuń
|
||||||
{0:0.#} m, {1} · height {2:0.0} m · RMB stops {0:0.#} m, {1} · wysokość {2:0.0} m · RMB kończy
|
{0:0.#} m, {1} · height {2:0.0} m · {3} stops {0:0.#} m, {1} · wysokość {2:0.0} m · {3} kończy
|
||||||
{0:0.#}% mown skoszono {0:0.#}%
|
{0:0.#}% mown skoszono {0:0.#}%
|
||||||
{0:0.0000}% {0:0.0000}%
|
{0:0.0000}% {0:0.0000}%
|
||||||
{0:0.00} / {1:0.##} KG {0:0.00} / {1:0.##} KG
|
{0:0.00} / {1:0.##} KG {0:0.00} / {1:0.##} KG
|
||||||
@ -744,7 +740,7 @@ Zero point zero zero one percent. Zero przecinek zero zero jeden procent.
|
|||||||
{0:N0} Sectors Sektory: {0:N0}
|
{0:N0} Sectors Sektory: {0:N0}
|
||||||
{0:N0} sectors clean · {1} / {2} stakes · {3} / {4} survey points Czyste sektory: {0:N0} · paliki: {1} / {2} · punkty pomiarowe: {3} / {4}
|
{0:N0} sectors clean · {1} / {2} stakes · {3} / {4} survey points Czyste sektory: {0:N0} · paliki: {1} / {2} · punkty pomiarowe: {3} / {4}
|
||||||
{0:N0} started · {1:N0} mown · {2:0.0000}% of the planet Rozpoczęte: {0:N0} · skoszone: {1:N0} · {2:0.0000}% planety
|
{0:N0} started · {1:N0} mown · {2:0.0000}% of the planet Rozpoczęte: {0:N0} · skoszone: {1:N0} · {2:0.0000}% planety
|
||||||
{0} [T] Upgrades & settings {0} [T] Ulepszenia i ustawienia
|
{0} [{1}] Upgrades & settings {0} [{1}] Ulepszenia i ustawienia
|
||||||
{0} (you) {0} (ty)
|
{0} (you) {0} (ty)
|
||||||
{0} / kg {0} / kg
|
{0} / kg {0} / kg
|
||||||
{0} / {1} slots Miejsca: {0} / {1}
|
{0} / {1} slots Miejsca: {0} / {1}
|
||||||
@ -797,9 +793,9 @@ HOW MUCH LAWN? ILE TRAWNIKA?
|
|||||||
EASY ŁATWY
|
EASY ŁATWY
|
||||||
NORMAL NORMALNY
|
NORMAL NORMALNY
|
||||||
EXTRA HARD BARDZO TRUDNY
|
EXTRA HARD BARDZO TRUDNY
|
||||||
A planet a third the size, with sectors to match. Earth can wait a little. Planeta trzy razy mniejsza, a sektory do kompletu. Ziemia może chwilę poczekać.
|
A sixth of the big planet, sectors to match. Earth can wait a little. Jedna szósta dużej planety, sektory do kompletu. Ziemia może chwilę poczekać.
|
||||||
Half the planet, half-size sectors. Still a lot of lawn. Pół planety, sektory o połowę mniejsze. Wciąż mnóstwo trawnika.
|
A third of the big planet, smaller sectors. Still a lot of lawn. Jedna trzecia dużej planety, mniejsze sektory. Wciąż mnóstwo trawnika.
|
||||||
The whole of Herbaria-7, full-size sectors, every blade of it. Cała Herbaria-7, sektory w pełnym rozmiarze, każde źdźbło.
|
The big planet: the whole of Herbaria-7, every blade of it. Duża planeta: cała Herbaria-7, co do źdźbła.
|
||||||
DECOR DEKORACJE
|
DECOR DEKORACJE
|
||||||
Wall Ściana
|
Wall Ściana
|
||||||
A 3 m timber wall. It goes on the edge of a foundation or a floor; R turns it round. Drewniana ściana 3 m. Stawia się ją na krawędzi fundamentu lub stropu; R ją obraca.
|
A 3 m timber wall. It goes on the edge of a foundation or a floor; R turns it round. Drewniana ściana 3 m. Stawia się ją na krawędzi fundamentu lub stropu; R ją obraca.
|
||||||
@ -962,3 +958,52 @@ A big mowing drone. It flies over rocks and hills, works 91 sectors around its p
|
|||||||
ME JA
|
ME JA
|
||||||
GLOBE GLOBUS
|
GLOBE GLOBUS
|
||||||
DRAG move · WHEEL zoom · SPACE back to you · M close DRAG przesuń · WHEEL przybliżenie · SPACE wróć do siebie · M zamknij
|
DRAG move · WHEEL zoom · SPACE back to you · M close DRAG przesuń · WHEEL przybliżenie · SPACE wróć do siebie · M zamknij
|
||||||
|
AUTOMATION AUTOMATYKA
|
||||||
|
Long Leash Długa smycz
|
||||||
|
Robots start further out and mow further from home. Roboty zaczynają dalej i koszą dalej od domu.
|
||||||
|
+{0}% robot reach +{0}% zasięgu robotów
|
||||||
|
Overdrive Motors Silniki Overdrive
|
||||||
|
Robots and Sky Mowers drive and mow faster. Roboty i kosiarki powietrzne jeżdżą i koszą szybciej.
|
||||||
|
+{0}% robot speed +{0}% prędkości robotów
|
||||||
|
Bigger Hoppers Większe zbiorniki
|
||||||
|
Robots carry more grass before they head home. Roboty zabierają więcej trawy, zanim wrócą do domu.
|
||||||
|
+{0}% robot hopper +{0}% zbiornika robotów
|
||||||
|
Long-Range Drones Drony dalekiego zasięgu
|
||||||
|
Drone pads fetch bundles from further away. Lądowiska dronów zbierają snopki z dalszej odległości.
|
||||||
|
+{0} m drone reach +{0} m zasięgu dronów
|
||||||
|
Hive Mind Umysł roju
|
||||||
|
Every robot, Sky Mower and drone works 20% faster. Każdy robot, kosiarka powietrzna i dron pracuje o 20% szybciej.
|
||||||
|
Autopilot Autopilot
|
||||||
|
C hands it over: it mows and unloads on its own C oddaje stery: sam kosi i sam rozładowuje
|
||||||
|
autopilot: off to unload autopilot: jedzie rozładować
|
||||||
|
autopilot: nothing left to mow round here autopilot: tu nie ma już nic do koszenia
|
||||||
|
autopilot: mowing autopilot: kosi
|
||||||
|
Take over the {0} ({1}, {2} / {3}) Przejmij: {0} ({1}, {2} / {3})
|
||||||
|
Autopilot on: the {0} mows round here and unloads itself. Hop back in to take over. Autopilot włączony: {0} kosi w okolicy i sam się rozładowuje. Wsiądź, żeby przejąć stery.
|
||||||
|
WASD to drive · SHIFT boost · R chase view · E to hop off · C autopilot WASD jazda · SHIFT dopalacz · R widok z tyłu · E wysiadka · C autopilot
|
||||||
|
Grass Train Trawiasta kolejka
|
||||||
|
Lays its own track to a station next door, mowing all the way there. Then it runs back and forth, its side cutters reaching further out on every run, and what it cuts is paid for at either end. Build it on open ground facing the way it should go. Sama układa sobie tory do sąsiedniej stacji, kosząc całą drogę. Potem kursuje tam i z powrotem, a jej boczne kosiarki sięgają dalej z każdym kursem; to, co skosi, jest opłacane na obu końcach. Postaw ją na wolnym terenie, przodem tam, dokąd ma jechać.
|
||||||
|
{0}: laying track to {1}, {2} of {3} m {0}: układa tor do {1}, {2} z {3} m
|
||||||
|
E: another station E: inna stacja
|
||||||
|
{0}: running to {1} and back, cutting {2} m out either side, {3} on board {0}: kursuje do {1} i z powrotem, kosi {2} m po bokach, {3} na pokładzie
|
||||||
|
x{0:0.#} speed and reach, {1} wagons x{0:0.#} prędkości i zasięgu, wagonów: {1}
|
||||||
|
Train yard: {0} Plac pociągu: {0}
|
||||||
|
The Grass Train lays track on to {0} Pociąg trawiasty kładzie tory dalej, do {0}
|
||||||
|
{0}: carrying grass home from the stations on its line, {1} on board, {2} waiting {0}: wozi trawę ze stacji na linii do bazy, {1} na pokładzie, czeka {2}
|
||||||
|
E: ride in the cab E: wsiądź do kabiny
|
||||||
|
In the cab: W forward · S back · E to get off W kabinie: W naprzód · S wstecz · E wysiądź
|
||||||
|
Head bob Kołysanie widoku
|
||||||
|
The view rocks a little with each step. Off keeps it still. Widok lekko się kołysze przy każdym kroku. Wyłączone trzyma go nieruchomo.
|
||||||
|
STEAM PAGE STRONA STEAM
|
||||||
|
FEEDBACK OPINIE
|
||||||
|
Grass Cutters Together needs Steam. Start Steam, sign in to the account that owns the game, and launch it from your library. Grass Cutters Together wymaga Steam. Uruchom Steam, zaloguj się na konto, które ma grę, i uruchom ją z biblioteki.
|
||||||
|
That's the end of the demo: the full game has the rest of the planet. Tu demo się kończy: reszta planety czeka w pełnej grze.
|
||||||
|
DEMO DEMO
|
||||||
|
WISHLIST THE FULL GAME DODAJ GRĘ DO LISTY ŻYCZEŃ
|
||||||
|
DEMO COMPLETE · thanks for playing! DEMO UKOŃCZONE · dzięki za grę!
|
||||||
|
DEMO · goal: ship {0} of {1} kg of grass DEMO · cel: dostarcz {0} z {1} kg trawy
|
||||||
|
THANKS FOR PLAYING THE DEMO! DZIĘKUJEMY ZA ZAGRANIE W DEMO!
|
||||||
|
Your crew shipped {0} kg of grass and reached the end of the demo. In the full game the whole planet is yours: machines, belts, robots, far stations and up to 16 players. Twoja ekipa dostarczyła {0} kg trawy i dotarła do końca demo. W pełnej grze cała planeta jest twoja: maszyny, taśmociągi, roboty, dalekie stacje i do 16 graczy.
|
||||||
|
You can keep mowing here, but nothing more is for sale in the demo. Możesz dalej kosić, ale w demo nic więcej nie jest na sprzedaż.
|
||||||
|
LEAVE FEEDBACK WYŚLIJ OPINIĘ
|
||||||
|
KEEP MOWING KOŚ DALEJ
|
||||||
|
|||||||
@ -139,7 +139,7 @@ Company property Propriedade da empresa
|
|||||||
Connecting to {0}… Conectando a {0}…
|
Connecting to {0}… Conectando a {0}…
|
||||||
Connecting… Conectando…
|
Connecting… Conectando…
|
||||||
Container {0:0.##} kg Recipiente {0:0.##} kg
|
Container {0:0.##} kg Recipiente {0:0.##} kg
|
||||||
Container full! Press E at the DEPOT to hand it all in, or Q to tie a 1 kg bundle you can carry and throw. Recipiente cheio! Aperte E no DEPÓSITO para entregar tudo, ou Q para amarrar um fardo de 1 kg que você pode carregar e jogar.
|
Container full! Press {0} at the DEPOT to hand it all in, or {1} to tie a 1 kg bundle you can carry and throw. Recipiente cheio! Aperte {0} no DEPÓSITO para entregar tudo, ou {1} para amarrar um fardo de 1 kg que você pode carregar e jogar.
|
||||||
Container full! Q ties a bundle, E at the DEPOT hands it all in Recipiente cheio! Q amarra um fardo, E no DEPÓSITO entrega tudo
|
Container full! Q ties a bundle, E at the DEPOT hands it all in Recipiente cheio! Q amarra um fardo, E no DEPÓSITO entrega tudo
|
||||||
Container x{0:0} Recipiente x{0:0}
|
Container x{0:0} Recipiente x{0:0}
|
||||||
CONTAINERS RECIPIENTES
|
CONTAINERS RECIPIENTES
|
||||||
@ -194,8 +194,8 @@ ECONOMY ECONOMIA
|
|||||||
Effects Efeitos
|
Effects Efeitos
|
||||||
Eleven more stations stand around the planet. Walk up to one and it opens for the crew: a depot, a supply wall, a console and a travel terminal. Mais onze estações estão espalhadas pelo planeta. Chegue perto de uma e ela se abre para a equipe: um depósito, um almoxarifado, um console e um terminal de viagem.
|
Eleven more stations stand around the planet. Walk up to one and it opens for the crew: a depot, a supply wall, a console and a travel terminal. Mais onze estações estão espalhadas pelo planeta. Chegue perto de uma e ela se abre para a equipe: um depósito, um almoxarifado, um console e um terminal de viagem.
|
||||||
Empty Vazio
|
Empty Vazio
|
||||||
Empty bed · E with a bundle in your arms loads it Carroceria vazia · E com um fardo nos braços carrega
|
Empty bed · {0} with a bundle in your arms loads it Carroceria vazia · {0} com um fardo nos braços carrega
|
||||||
Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors (E). Mãos vazias! Vá até o ALMOXARIFADO no lado oeste do deque e pegue a tesoura de unha (E).
|
Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors ({0}). Mãos vazias! Vá até o ALMOXARIFADO no lado oeste do deque e pegue a tesoura de unha ({0}).
|
||||||
Every blade counts. Apparently. Cada folhinha conta. Pelo visto.
|
Every blade counts. Apparently. Cada folhinha conta. Pelo visto.
|
||||||
Every kilo is shot into a Bundle Catcher, anywhere on the planet. A Catcher holds 100 kg and puts it on a belt. With no Catcher free the Reaper stops when its hopper is full. Cada quilo é disparado para um Coletor de Fardos, em qualquer lugar do planeta. Um Coletor guarda 100 kg e põe tudo numa esteira. Sem Coletor livre, o Ceifador para quando a caçamba enche.
|
Every kilo is shot into a Bundle Catcher, anywhere on the planet. A Catcher holds 100 kg and puts it on a belt. With no Catcher free the Reaper stops when its hopper is full. Cada quilo é disparado para um Coletor de Fardos, em qualquer lugar do planeta. Um Coletor guarda 100 kg e põe tudo numa esteira. Sem Coletor livre, o Ceifador para quando a caçamba enche.
|
||||||
Every Last Stake Até a Última Estaca
|
Every Last Stake Até a Última Estaca
|
||||||
@ -223,7 +223,6 @@ FIND GAMES BUSCAR JOGOS
|
|||||||
First day Primeiro dia
|
First day Primeiro dia
|
||||||
First Delivery Primeira Entrega
|
First Delivery Primeira Entrega
|
||||||
Five kilos of grass become five of hay in 12 seconds. Hay pays three times as much. Cinco quilos de grama viram cinco de feno em 12 segundos. Feno paga três vezes mais.
|
Five kilos of grass become five of hay in 12 seconds. Hay pays three times as much. Cinco quilos de grama viram cinco de feno em 12 segundos. Feno paga três vezes mais.
|
||||||
FLEET FROTA
|
|
||||||
Floodlights Holofotes
|
Floodlights Holofotes
|
||||||
Found so far: {0} stakes, {1} points. Encontrados até agora: {0} estacas, {1} pontos.
|
Found so far: {0} stakes, {1} points. Encontrados até agora: {0} estacas, {1} pontos.
|
||||||
Foundations Fundações
|
Foundations Fundações
|
||||||
@ -288,9 +287,9 @@ Hi. I'm the Director's assistant. Oi. Sou a assistente do Diretor.
|
|||||||
Hold: Read the survey point ({0}) Segure: ler o ponto topográfico ({0})
|
Hold: Read the survey point ({0}) Segure: ler o ponto topográfico ({0})
|
||||||
Hold: Untangle the stake ({0}) Segure: desembaraçar a estaca ({0})
|
Hold: Untangle the stake ({0}) Segure: desembaraçar a estaca ({0})
|
||||||
Holds 100 kg of what Reapers shoot and puts it on the belt. Guarda 100 kg do que os Ceifadores disparam e põe tudo na esteira.
|
Holds 100 kg of what Reapers shoot and puts it on the belt. Guarda 100 kg do que os Ceifadores disparam e põe tudo na esteira.
|
||||||
Hop down to the meadow (SPACE at the railing) and HOLD LEFT CLICK: sweep the blade over the grass. Earth needs every blade of it. Pule para o campo (SPACE no parapeito) e SEGURE O CLIQUE ESQUERDO: passe a lâmina pela grama. A Terra precisa de cada folhinha.
|
Hop down to the meadow ({0} at the railing) and HOLD {1}: sweep the blade over the grass. Earth needs every blade of it. Pule para o campo ({0} no parapeito) e SEGURE {1}: passe a lâmina pela grama. A Terra precisa de cada folhinha.
|
||||||
Hop down to the meadow, space at the railing. Pule para o campo, espaço no parapeito.
|
Hop down to the meadow, space at the railing. Pule para o campo, espaço no parapeito.
|
||||||
Hop off [R] View Descer [R] Câmera
|
Hop off [{0}] View Descer [{0}] Câmera
|
||||||
Hop over the railing with SPACE, hold LEFT CLICK and sweep the blade over the grass. It goes straight into the tool's container. Pule o parapeito com SPACE, segure o CLIQUE ESQUERDO e passe a lâmina pela grama. Ela vai direto para o recipiente da ferramenta.
|
Hop over the railing with SPACE, hold LEFT CLICK and sweep the blade over the grass. It goes straight into the tool's container. Pule o parapeito com SPACE, segure o CLIQUE ESQUERDO e passe a lâmina pela grama. Ela vai direto para o recipiente da ferramenta.
|
||||||
hopper full, needs a catcher with room caçamba cheia, precisa de um coletor com espaço
|
hopper full, needs a catcher with room caçamba cheia, precisa de um coletor com espaço
|
||||||
Hopper full: drive to an UNLOAD marker Caçamba cheia: vá até um marcador de DESCARGA
|
Hopper full: drive to an UNLOAD marker Caçamba cheia: vá até um marcador de DESCARGA
|
||||||
@ -332,8 +331,8 @@ Let the Robot Do It Deixa que o Robô Faz
|
|||||||
Linking... Conectando...
|
Linking... Conectando...
|
||||||
Listen up, you incompetent idiots! Escutem aqui, seus idiotas incompetentes!
|
Listen up, you incompetent idiots! Escutem aqui, seus idiotas incompetentes!
|
||||||
Listening for LAN games… Procurando jogos na LAN…
|
Listening for LAN games… Procurando jogos na LAN…
|
||||||
LMB where the belt starts · height {0:0.0} m LMB onde a esteira começa · altura {0:0.0} m
|
{1} where the belt starts · height {0:0.0} m {1} onde a esteira começa · altura {0:0.0} m
|
||||||
LMB: go on from this end LMB: continuar desta ponta
|
{0}: go on from this end {0}: continuar desta ponta
|
||||||
LOGISTICS LOGÍSTICA
|
LOGISTICS LOGÍSTICA
|
||||||
Long Handles Cabos Longos
|
Long Handles Cabos Longos
|
||||||
Long Scythe Foice Longa
|
Long Scythe Foice Longa
|
||||||
@ -357,7 +356,7 @@ Mode Modo
|
|||||||
More cash for every sector mown clean. Mais grana por cada setor limpo.
|
More cash for every sector mown clean. Mais grana por cada setor limpo.
|
||||||
Mouse sensitivity Sensibilidade do mouse
|
Mouse sensitivity Sensibilidade do mouse
|
||||||
Move faster. Ande mais rápido.
|
Move faster. Ande mais rápido.
|
||||||
Moving {0}: LMB put down · R rotate · RMB cancel Movendo {0}: LMB soltar · R girar · RMB cancelar
|
Moving {0}: {1} put down · {2} rotate · {3} cancel Movendo {0}: {1} soltar · {2} girar · {3} cancelar
|
||||||
Mow a path for the belt first Corte um caminho para a esteira primeiro
|
Mow a path for the belt first Corte um caminho para a esteira primeiro
|
||||||
Mow Base Base de Corte
|
Mow Base Base de Corte
|
||||||
Mow the grass here first Corte a grama aqui primeiro
|
Mow the grass here first Corte a grama aqui primeiro
|
||||||
@ -382,7 +381,6 @@ Nail Scissors Basket Cesto da Tesoura de Unha
|
|||||||
NE NE
|
NE NE
|
||||||
Never once lost a scythe. Nunca perdeu uma foice.
|
Never once lost a scythe. Nunca perdeu uma foice.
|
||||||
NEW GAME NOVO JOGO
|
NEW GAME NOVO JOGO
|
||||||
NEXT {0} PRÓXIMO {0}
|
|
||||||
Night Vision Visão Noturna
|
Night Vision Visão Noturna
|
||||||
Night vision on Visão noturna ligada
|
Night vision on Visão noturna ligada
|
||||||
Night Vision: {0}. N goes from the headlamp to night vision to nothing. Visão Noturna: {0}. N alterna entre lanterna, visão noturna e nada.
|
Night Vision: {0}. N goes from the headlamp to night vision to nothing. Visão Noturna: {0}. N alterna entre lanterna, visão noturna e nada.
|
||||||
@ -401,7 +399,6 @@ nothing to run, {0:0.#} kW free nada para alimentar, {0:0.#} kW livres
|
|||||||
nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh nada para alimentar, {0:0.#} kW livres, baterias {1:0.0} de {2:0} kWh
|
nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh nada para alimentar, {0:0.#} kW livres, baterias {1:0.0} de {2:0} kWh
|
||||||
Nothing to set on this one. Nada para ajustar aqui.
|
Nothing to set on this one. Nada para ajustar aqui.
|
||||||
Nothing to tie: cut some grass first Nada para amarrar: corte um pouco de grama primeiro
|
Nothing to tie: cut some grass first Nada para amarrar: corte um pouco de grama primeiro
|
||||||
NOW {0} AGORA {0}
|
|
||||||
NOW {0} of {1} slots AGORA {0} de {1} espaços
|
NOW {0} of {1} slots AGORA {0} de {1} espaços
|
||||||
NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! AGORA FAÇAM OS OUTROS NOVENTA E NOVE VÍRGULA NOVE NOVE NOVE!
|
NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! AGORA FAÇAM OS OUTROS NOVENTA E NOVE VÍRGULA NOVE NOVE NOVE!
|
||||||
NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! AGORA VÃO LÁ FORA E CORTEM ESSE MALDITO PLANETA!
|
NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! AGORA VÃO LÁ FORA E CORTEM ESSE MALDITO PLANETA!
|
||||||
@ -489,7 +486,7 @@ Reset progress? Apagar o progresso?
|
|||||||
resting em repouso
|
resting em repouso
|
||||||
RESUME CONTINUAR
|
RESUME CONTINUAR
|
||||||
Ride the {0} ({1} / {2}) Dirigir {0} ({1} / {2})
|
Ride the {0} ({1} / {2}) Dirigir {0} ({1} / {2})
|
||||||
Ride the {0} ({1} of {2} bundles, E with a bundle loads it) Dirigir {0} ({1} de {2} fardos, E com um fardo carrega)
|
Ride the {0} ({1} of {2} bundles, {3} with a bundle loads it) Dirigir {0} ({1} de {2} fardos, {3} com um fardo carrega)
|
||||||
RIGHT CLICK takes a piece down and gives all the money back. T carries it somewhere else, the middle button copies it. CLIQUE DIREITO desmonta uma peça e devolve todo o dinheiro. T a leva para outro lugar, o botão do meio a copia.
|
RIGHT CLICK takes a piece down and gives all the money back. T carries it somewhere else, the middle button copies it. CLIQUE DIREITO desmonta uma peça e devolve todo o dinheiro. T a leva para outro lugar, o botão do meio a copia.
|
||||||
Robot Robô
|
Robot Robô
|
||||||
Robot Crew Equipe Robô
|
Robot Crew Equipe Robô
|
||||||
@ -588,7 +585,7 @@ Supply wall — tools & gear Almoxarifado — ferramentas e equipamento
|
|||||||
Survey point: already read Ponto topográfico: já lido
|
Survey point: already read Ponto topográfico: já lido
|
||||||
Surveyor Agrimensor
|
Surveyor Agrimensor
|
||||||
SW SO
|
SW SO
|
||||||
T move · MMB copy · RMB remove T mover · MMB copiar · RMB remover
|
{0} move · {1} copy · {2} remove {0} mover · {1} copiar · {2} remover
|
||||||
TAKE IN HAND PEGAR NA MÃO
|
TAKE IN HAND PEGAR NA MÃO
|
||||||
TAKE IT PEGAR
|
TAKE IT PEGAR
|
||||||
Take the nail scissors from the SUPPLY WALL on the west side of the deck. Pegue a tesoura de unha no ALMOXARIFADO, no lado oeste do deque.
|
Take the nail scissors from the SUPPLY WALL on the west side of the deck. Pegue a tesoura de unha no ALMOXARIFADO, no lado oeste do deque.
|
||||||
@ -638,10 +635,10 @@ They fill with whatever sun the machines don't use, and when the panels fall sho
|
|||||||
Thirty harvests and still early. Trinta colheitas e ainda chega cedo.
|
Thirty harvests and still early. Trinta colheitas e ainda chega cedo.
|
||||||
This is G.R.A.S.S.A. We take grass very seriously. Aqui é a G.R.A.S.S.A. Levamos grama muito a sério.
|
This is G.R.A.S.S.A. We take grass very seriously. Aqui é a G.R.A.S.S.A. Levamos grama muito a sério.
|
||||||
This is what peak civilization looks like. É assim que se parece o auge da civilização.
|
This is what peak civilization looks like. É assim que se parece o auge da civilização.
|
||||||
Throw [E] Drop [R] Turn Jogar [E] Largar [R] Girar
|
Throw [{0}] Drop [{1}] Turn Jogar [{0}] Largar [{1}] Girar
|
||||||
Throw +{0}% Arremesso +{0}%
|
Throw +{0}% Arremesso +{0}%
|
||||||
Throw bundles further. Jogue fardos mais longe.
|
Throw bundles further. Jogue fardos mais longe.
|
||||||
Throw it in the DEPOT or onto a belt [E] Drop [R] Turn Jogue no DEPÓSITO ou numa esteira [E] Largar [R] Girar
|
Throw it in the DEPOT or onto a belt [{0}] Drop [{1}] Turn Jogue no DEPÓSITO ou numa esteira [{0}] Largar [{1}] Girar
|
||||||
Throwing Arm Braço de Arremesso
|
Throwing Arm Braço de Arremesso
|
||||||
Thunderstorm! Dark skies, weak sun, twisters about. Tempestade! Céu escuro, sol fraco, tornados à solta.
|
Thunderstorm! Dark skies, weak sun, twisters about. Tempestade! Céu escuro, sol fraco, tornados à solta.
|
||||||
Thunderstorm. Dark skies, weak sun, and twisters about. Tempestade. Céu escuro, sol fraco e tornados à solta.
|
Thunderstorm. Dark skies, weak sun, and twisters about. Tempestade. Céu escuro, sol fraco e tornados à solta.
|
||||||
@ -685,7 +682,6 @@ Upgrades are for the whole crew and come out of the shared wallet. As melhorias
|
|||||||
V-Sync V-Sync
|
V-Sync V-Sync
|
||||||
Version mismatch Versões diferentes
|
Version mismatch Versões diferentes
|
||||||
Voices Vozes
|
Voices Vozes
|
||||||
v{0} · early build v{0} · versão inicial
|
|
||||||
W O
|
W O
|
||||||
W A S D to drive. Shift to boost. W A S D para dirigir. Shift para o turbo.
|
W A S D to drive. Shift to boost. W A S D para dirigir. Shift para o turbo.
|
||||||
Wait. Is that... progress? Peraí. Isso é... progresso?
|
Wait. Is that... progress? Peraí. Isso é... progresso?
|
||||||
@ -699,7 +695,7 @@ Weight Peso
|
|||||||
WELCOME TO HERBARIA-7 BOAS-VINDAS A HERBARIA-7
|
WELCOME TO HERBARIA-7 BOAS-VINDAS A HERBARIA-7
|
||||||
Well Travelled Bem Rodado
|
Well Travelled Bem Rodado
|
||||||
Wheat Trigo
|
Wheat Trigo
|
||||||
WHEEL piece · LMB place · R rotate · T move · MMB copy · RMB remove · CTRL+WHEEL height · F free WHEEL peça · LMB colocar · R girar · T mover · MMB copiar · RMB remover · CTRL+WHEEL altura · F livre
|
WHEEL piece · {0} place · {1} rotate · {2} move · {3} copy · {4} remove · CTRL+WHEEL height · {5} free WHEEL peça · {0} colocar · {1} girar · {2} mover · {3} copiar · {4} remover · CTRL+WHEEL altura · {5} livre
|
||||||
Whetstone Steel Aço Amolado
|
Whetstone Steel Aço Amolado
|
||||||
Which address? Qual endereço?
|
Which address? Qual endereço?
|
||||||
Whoa! The twister threw you. Uau! O tornado jogou você longe.
|
Whoa! The twister threw you. Uau! O tornado jogou você longe.
|
||||||
@ -731,8 +727,8 @@ Zero point zero zero one percent. Zero vírgula zero zero um por cento.
|
|||||||
{0:0.##} m · {1:0} kg {0:0.##} m · {1:0} kg
|
{0:0.##} m · {1:0} kg {0:0.##} m · {1:0} kg
|
||||||
{0:0.##}% of Herbaria-7 {0:0.##}% de Herbaria-7
|
{0:0.##}% of Herbaria-7 {0:0.##}% de Herbaria-7
|
||||||
{0:0.#} cm · {1:0.##} kg {0:0.#} cm · {1:0.##} kg
|
{0:0.#} cm · {1:0.##} kg {0:0.#} cm · {1:0.##} kg
|
||||||
{0:0.#} m of belt · MMB copy · RMB remove {0:0.#} m de esteira · MMB copiar · RMB remover
|
{0:0.#} m of belt · {1} copy · {2} remove {0:0.#} m de esteira · {1} copiar · {2} remover
|
||||||
{0:0.#} m, {1} · height {2:0.0} m · RMB stops {0:0.#} m, {1} · altura {2:0.0} m · RMB encerra
|
{0:0.#} m, {1} · height {2:0.0} m · {3} stops {0:0.#} m, {1} · altura {2:0.0} m · {3} encerra
|
||||||
{0:0.#}% mown {0:0.#}% cortado
|
{0:0.#}% mown {0:0.#}% cortado
|
||||||
{0:0.0000}% {0:0.0000}%
|
{0:0.0000}% {0:0.0000}%
|
||||||
{0:0.00} / {1:0.##} KG {0:0.00} / {1:0.##} KG
|
{0:0.00} / {1:0.##} KG {0:0.00} / {1:0.##} KG
|
||||||
@ -744,7 +740,7 @@ Zero point zero zero one percent. Zero vírgula zero zero um por cento.
|
|||||||
{0:N0} Sectors {0:N0} Setores
|
{0:N0} Sectors {0:N0} Setores
|
||||||
{0:N0} sectors clean · {1} / {2} stakes · {3} / {4} survey points {0:N0} setores limpos · {1} / {2} estacas · {3} / {4} pontos topográficos
|
{0:N0} sectors clean · {1} / {2} stakes · {3} / {4} survey points {0:N0} setores limpos · {1} / {2} estacas · {3} / {4} pontos topográficos
|
||||||
{0:N0} started · {1:N0} mown · {2:0.0000}% of the planet {0:N0} iniciados · {1:N0} cortados · {2:0.0000}% do planeta
|
{0:N0} started · {1:N0} mown · {2:0.0000}% of the planet {0:N0} iniciados · {1:N0} cortados · {2:0.0000}% do planeta
|
||||||
{0} [T] Upgrades & settings {0} [T] Melhorias e ajustes
|
{0} [{1}] Upgrades & settings {0} [{1}] Melhorias e ajustes
|
||||||
{0} (you) {0} (você)
|
{0} (you) {0} (você)
|
||||||
{0} / kg {0} / kg
|
{0} / kg {0} / kg
|
||||||
{0} / {1} slots {0} / {1} espaços
|
{0} / {1} slots {0} / {1} espaços
|
||||||
@ -797,9 +793,9 @@ HOW MUCH LAWN? QUANTO GRAMADO?
|
|||||||
EASY FÁCIL
|
EASY FÁCIL
|
||||||
NORMAL NORMAL
|
NORMAL NORMAL
|
||||||
EXTRA HARD MUITO DIFÍCIL
|
EXTRA HARD MUITO DIFÍCIL
|
||||||
A planet a third the size, with sectors to match. Earth can wait a little. Um planeta com um terço do tamanho, com setores proporcionais. A Terra pode esperar um pouco.
|
A sixth of the big planet, sectors to match. Earth can wait a little. Um sexto do planeta grande, com setores proporcionais. A Terra pode esperar um pouco.
|
||||||
Half the planet, half-size sectors. Still a lot of lawn. Metade do planeta, setores com metade do tamanho. Ainda é muito gramado.
|
A third of the big planet, smaller sectors. Still a lot of lawn. Um terço do planeta grande, setores menores. Ainda é muito gramado.
|
||||||
The whole of Herbaria-7, full-size sectors, every blade of it. Herbaria-7 inteira, setores em tamanho real, cada folha de grama.
|
The big planet: the whole of Herbaria-7, every blade of it. O planeta grande: Herbaria-7 inteira, cada folha de grama.
|
||||||
DECOR DECORAÇÃO
|
DECOR DECORAÇÃO
|
||||||
Wall Parede
|
Wall Parede
|
||||||
A 3 m timber wall. It goes on the edge of a foundation or a floor; R turns it round. Uma parede de madeira de 3 m. Vai na borda de uma fundação ou de um piso; R gira.
|
A 3 m timber wall. It goes on the edge of a foundation or a floor; R turns it round. Uma parede de madeira de 3 m. Vai na borda de uma fundação ou de um piso; R gira.
|
||||||
@ -962,3 +958,52 @@ A big mowing drone. It flies over rocks and hills, works 91 sectors around its p
|
|||||||
ME EU
|
ME EU
|
||||||
GLOBE GLOBO
|
GLOBE GLOBO
|
||||||
DRAG move · WHEEL zoom · SPACE back to you · M close DRAG mover · WHEEL zoom · SPACE voltar a você · M fechar
|
DRAG move · WHEEL zoom · SPACE back to you · M close DRAG mover · WHEEL zoom · SPACE voltar a você · M fechar
|
||||||
|
AUTOMATION AUTOMAÇÃO
|
||||||
|
Long Leash Coleira longa
|
||||||
|
Robots start further out and mow further from home. Os robôs começam mais longe e cortam mais longe de casa.
|
||||||
|
+{0}% robot reach +{0}% de alcance dos robôs
|
||||||
|
Overdrive Motors Motores Overdrive
|
||||||
|
Robots and Sky Mowers drive and mow faster. Robôs e Cortadores Aéreos andam e cortam mais rápido.
|
||||||
|
+{0}% robot speed +{0}% de velocidade dos robôs
|
||||||
|
Bigger Hoppers Caçambas maiores
|
||||||
|
Robots carry more grass before they head home. Os robôs levam mais grama antes de voltar para casa.
|
||||||
|
+{0}% robot hopper +{0}% de caçamba dos robôs
|
||||||
|
Long-Range Drones Drones de longo alcance
|
||||||
|
Drone pads fetch bundles from further away. As Plataformas de Drones buscam fardos mais longe.
|
||||||
|
+{0} m drone reach +{0} m de alcance dos drones
|
||||||
|
Hive Mind Mente de colmeia
|
||||||
|
Every robot, Sky Mower and drone works 20% faster. Todo robô, Cortador Aéreo e drone trabalha 20% mais rápido.
|
||||||
|
Autopilot Piloto automático
|
||||||
|
C hands it over: it mows and unloads on its own C entrega o controle: corta e descarrega sozinho
|
||||||
|
autopilot: off to unload piloto automático: indo descarregar
|
||||||
|
autopilot: nothing left to mow round here piloto automático: não sobrou nada para cortar por aqui
|
||||||
|
autopilot: mowing piloto automático: cortando
|
||||||
|
Take over the {0} ({1}, {2} / {3}) Assumir: {0} ({1}, {2} / {3})
|
||||||
|
Autopilot on: the {0} mows round here and unloads itself. Hop back in to take over. Piloto automático ligado: {0} corta por aqui e descarrega sozinho. Suba de novo para assumir.
|
||||||
|
WASD to drive · SHIFT boost · R chase view · E to hop off · C autopilot WASD dirigir · SHIFT turbo · R câmera de perseguição · E descer · C piloto automático
|
||||||
|
Grass Train Trem da Grama
|
||||||
|
Lays its own track to a station next door, mowing all the way there. Then it runs back and forth, its side cutters reaching further out on every run, and what it cuts is paid for at either end. Build it on open ground facing the way it should go. Assenta os próprios trilhos até uma estação vizinha, cortando grama o caminho todo. Depois vai e volta, os cortadores laterais alcançam mais longe a cada viagem e o que ele corta é pago nas duas pontas. Construa em terreno aberto, virado para onde ele deve ir.
|
||||||
|
{0}: laying track to {1}, {2} of {3} m {0}: assentando trilhos até {1}, {2} de {3} m
|
||||||
|
E: another station E: outra estação
|
||||||
|
{0}: running to {1} and back, cutting {2} m out either side, {3} on board {0}: indo a {1} e voltando, cortando {2} m de cada lado, {3} a bordo
|
||||||
|
x{0:0.#} speed and reach, {1} wagons x{0:0.#} velocidade e alcance, {1} vagões
|
||||||
|
Train yard: {0} Pátio do trem: {0}
|
||||||
|
The Grass Train lays track on to {0} O Trem de Grama assenta trilhos até {0}
|
||||||
|
{0}: carrying grass home from the stations on its line, {1} on board, {2} waiting {0}: leva para casa a grama das estações da linha, {1} a bordo, {2} esperando
|
||||||
|
E: ride in the cab E: subir na cabine
|
||||||
|
In the cab: W forward · S back · E to get off Na cabine: W frente · S ré · E descer
|
||||||
|
Head bob Balanço da câmera
|
||||||
|
The view rocks a little with each step. Off keeps it still. A visão balança um pouco a cada passo. Desligado, ela fica parada.
|
||||||
|
STEAM PAGE PÁGINA NA STEAM
|
||||||
|
FEEDBACK FEEDBACK
|
||||||
|
Grass Cutters Together needs Steam. Start Steam, sign in to the account that owns the game, and launch it from your library. Grass Cutters Together precisa da Steam. Abra a Steam, entre na conta que possui o jogo e inicie-o pela sua biblioteca.
|
||||||
|
That's the end of the demo: the full game has the rest of the planet. A demo termina aqui: o resto do planeta está no jogo completo.
|
||||||
|
DEMO DEMO
|
||||||
|
WISHLIST THE FULL GAME ADICIONAR O JOGO À LISTA DE DESEJOS
|
||||||
|
DEMO COMPLETE · thanks for playing! DEMO CONCLUÍDA · obrigado por jogar!
|
||||||
|
DEMO · goal: ship {0} of {1} kg of grass DEMO · meta: entregar {0} de {1} kg de grama
|
||||||
|
THANKS FOR PLAYING THE DEMO! OBRIGADO POR JOGAR A DEMO!
|
||||||
|
Your crew shipped {0} kg of grass and reached the end of the demo. In the full game the whole planet is yours: machines, belts, robots, far stations and up to 16 players. Sua equipe entregou {0} kg de grama e chegou ao fim da demo. No jogo completo o planeta inteiro é seu: máquinas, esteiras, robôs, estações distantes e até 16 jogadores.
|
||||||
|
You can keep mowing here, but nothing more is for sale in the demo. Você pode continuar cortando aqui, mas nada mais está à venda na demo.
|
||||||
|
LEAVE FEEDBACK DAR FEEDBACK
|
||||||
|
KEEP MOWING CONTINUAR CORTANDO
|
||||||
|
|||||||
@ -139,7 +139,7 @@ Company property Собственность компании
|
|||||||
Connecting to {0}… Подключение: {0}…
|
Connecting to {0}… Подключение: {0}…
|
||||||
Connecting… Подключение…
|
Connecting… Подключение…
|
||||||
Container {0:0.##} kg Контейнер {0:0.##} кг
|
Container {0:0.##} kg Контейнер {0:0.##} кг
|
||||||
Container full! Press E at the DEPOT to hand it all in, or Q to tie a 1 kg bundle you can carry and throw. Контейнер полон! Нажми E у СКЛАДА, чтобы сдать всё, или Q, чтобы связать связку в 1 кг: её можно нести и бросать.
|
Container full! Press {0} at the DEPOT to hand it all in, or {1} to tie a 1 kg bundle you can carry and throw. Контейнер полон! Нажми {0} у СКЛАДА, чтобы сдать всё, или {1}, чтобы связать связку в 1 кг: её можно нести и бросать.
|
||||||
Container full! Q ties a bundle, E at the DEPOT hands it all in Контейнер полон! Q — связать, E у СКЛАДА — сдать всё
|
Container full! Q ties a bundle, E at the DEPOT hands it all in Контейнер полон! Q — связать, E у СКЛАДА — сдать всё
|
||||||
Container x{0:0} Контейнер x{0:0}
|
Container x{0:0} Контейнер x{0:0}
|
||||||
CONTAINERS КОНТЕЙНЕРЫ
|
CONTAINERS КОНТЕЙНЕРЫ
|
||||||
@ -194,8 +194,8 @@ ECONOMY ЭКОНОМИКА
|
|||||||
Effects Эффекты
|
Effects Эффекты
|
||||||
Eleven more stations stand around the planet. Walk up to one and it opens for the crew: a depot, a supply wall, a console and a travel terminal. По планете разбросаны ещё одиннадцать станций. Подойди к любой, и она откроется для экипажа: склад, стенд снаряжения, консоль и терминал перемещения.
|
Eleven more stations stand around the planet. Walk up to one and it opens for the crew: a depot, a supply wall, a console and a travel terminal. По планете разбросаны ещё одиннадцать станций. Подойди к любой, и она откроется для экипажа: склад, стенд снаряжения, консоль и терминал перемещения.
|
||||||
Empty Пусто
|
Empty Пусто
|
||||||
Empty bed · E with a bundle in your arms loads it Кузов пуст · E со связкой в руках — загрузить
|
Empty bed · {0} with a bundle in your arms loads it Кузов пуст · {0} со связкой в руках — загрузить
|
||||||
Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors (E). Руки пусты! Иди к СТЕНДУ СНАРЯЖЕНИЯ на западной стороне платформы и возьми маникюрные ножницы (E).
|
Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors ({0}). Руки пусты! Иди к СТЕНДУ СНАРЯЖЕНИЯ на западной стороне платформы и возьми маникюрные ножницы ({0}).
|
||||||
Every blade counts. Apparently. Каждая травинка на счету. Видимо.
|
Every blade counts. Apparently. Каждая травинка на счету. Видимо.
|
||||||
Every kilo is shot into a Bundle Catcher, anywhere on the planet. A Catcher holds 100 kg and puts it on a belt. With no Catcher free the Reaper stops when its hopper is full. Каждый килограмм отстреливается в ловец связок, где бы тот ни стоял на планете. Ловец вмещает 100 кг и выкладывает их на конвейер. Если свободных ловцов нет, Жнец встаёт, когда его бункер полон.
|
Every kilo is shot into a Bundle Catcher, anywhere on the planet. A Catcher holds 100 kg and puts it on a belt. With no Catcher free the Reaper stops when its hopper is full. Каждый килограмм отстреливается в ловец связок, где бы тот ни стоял на планете. Ловец вмещает 100 кг и выкладывает их на конвейер. Если свободных ловцов нет, Жнец встаёт, когда его бункер полон.
|
||||||
Every Last Stake Все колышки до одного
|
Every Last Stake Все колышки до одного
|
||||||
@ -223,7 +223,6 @@ FIND GAMES НАЙТИ ИГРУ
|
|||||||
First day Первый день
|
First day Первый день
|
||||||
First Delivery Первая поставка
|
First Delivery Первая поставка
|
||||||
Five kilos of grass become five of hay in 12 seconds. Hay pays three times as much. Пять кило травы за 12 секунд становятся пятью кило сена. Сено стоит втрое дороже травы.
|
Five kilos of grass become five of hay in 12 seconds. Hay pays three times as much. Пять кило травы за 12 секунд становятся пятью кило сена. Сено стоит втрое дороже травы.
|
||||||
FLEET ТЕХНИКА
|
|
||||||
Floodlights Прожекторы
|
Floodlights Прожекторы
|
||||||
Found so far: {0} stakes, {1} points. Пока найдено колышков: {0}, геоточек: {1}.
|
Found so far: {0} stakes, {1} points. Пока найдено колышков: {0}, геоточек: {1}.
|
||||||
Foundations Настилы
|
Foundations Настилы
|
||||||
@ -288,9 +287,9 @@ Hi. I'm the Director's assistant. Привет. Я ассистент Дирек
|
|||||||
Hold: Read the survey point ({0}) Удерживай: считать геоточку ({0})
|
Hold: Read the survey point ({0}) Удерживай: считать геоточку ({0})
|
||||||
Hold: Untangle the stake ({0}) Удерживай: распутать колышек ({0})
|
Hold: Untangle the stake ({0}) Удерживай: распутать колышек ({0})
|
||||||
Holds 100 kg of what Reapers shoot and puts it on the belt. Принимает до 100 кг того, что отстреливают Жнецы, и выкладывает на конвейер.
|
Holds 100 kg of what Reapers shoot and puts it on the belt. Принимает до 100 кг того, что отстреливают Жнецы, и выкладывает на конвейер.
|
||||||
Hop down to the meadow (SPACE at the railing) and HOLD LEFT CLICK: sweep the blade over the grass. Earth needs every blade of it. Спрыгни на луг (SPACE у перил) и ЗАЖМИ ЛЕВЫЙ КЛИК: води лезвием по траве. Земле нужна каждая травинка.
|
Hop down to the meadow ({0} at the railing) and HOLD {1}: sweep the blade over the grass. Earth needs every blade of it. Спрыгни на луг ({0} у перил) и ЗАЖМИ {1}: води лезвием по траве. Земле нужна каждая травинка.
|
||||||
Hop down to the meadow, space at the railing. Спрыгни на луг: пробел у перил.
|
Hop down to the meadow, space at the railing. Спрыгни на луг: пробел у перил.
|
||||||
Hop off [R] View Выйти [R] Вид
|
Hop off [{0}] View Выйти [{0}] Вид
|
||||||
Hop over the railing with SPACE, hold LEFT CLICK and sweep the blade over the grass. It goes straight into the tool's container. Перемахни через перила клавишей SPACE, зажми ЛЕВЫЙ КЛИК и води лезвием по траве. Она сразу попадает в контейнер инструмента.
|
Hop over the railing with SPACE, hold LEFT CLICK and sweep the blade over the grass. It goes straight into the tool's container. Перемахни через перила клавишей SPACE, зажми ЛЕВЫЙ КЛИК и води лезвием по траве. Она сразу попадает в контейнер инструмента.
|
||||||
hopper full, needs a catcher with room бункер полон, нужен свободный ловец
|
hopper full, needs a catcher with room бункер полон, нужен свободный ловец
|
||||||
Hopper full: drive to an UNLOAD marker Бункер полон: езжай к метке РАЗГРУЗКА
|
Hopper full: drive to an UNLOAD marker Бункер полон: езжай к метке РАЗГРУЗКА
|
||||||
@ -332,8 +331,8 @@ Let the Robot Do It Пусть робот поработает
|
|||||||
Linking... Связь...
|
Linking... Связь...
|
||||||
Listen up, you incompetent idiots! Слушайте сюда, бездарные идиоты!
|
Listen up, you incompetent idiots! Слушайте сюда, бездарные идиоты!
|
||||||
Listening for LAN games… Поиск игр в локальной сети…
|
Listening for LAN games… Поиск игр в локальной сети…
|
||||||
LMB where the belt starts · height {0:0.0} m ЛКМ — начало конвейера · высота {0:0.0} м
|
{1} where the belt starts · height {0:0.0} m {1} — начало конвейера · высота {0:0.0} м
|
||||||
LMB: go on from this end ЛКМ: продолжить с этого конца
|
{0}: go on from this end {0}: продолжить с этого конца
|
||||||
LOGISTICS ЛОГИСТИКА
|
LOGISTICS ЛОГИСТИКА
|
||||||
Long Handles Длинные рукояти
|
Long Handles Длинные рукояти
|
||||||
Long Scythe Длинная коса
|
Long Scythe Длинная коса
|
||||||
@ -357,7 +356,7 @@ Mode Режим
|
|||||||
More cash for every sector mown clean. Больше денег за каждый сектор, скошенный начисто.
|
More cash for every sector mown clean. Больше денег за каждый сектор, скошенный начисто.
|
||||||
Mouse sensitivity Чувствительность мыши
|
Mouse sensitivity Чувствительность мыши
|
||||||
Move faster. Двигайся быстрее.
|
Move faster. Двигайся быстрее.
|
||||||
Moving {0}: LMB put down · R rotate · RMB cancel Перенос ({0}): ЛКМ — поставить · R — повернуть · ПКМ — отмена
|
Moving {0}: {1} put down · {2} rotate · {3} cancel Перенос ({0}): {1} — поставить · {2} — повернуть · {3} — отмена
|
||||||
Mow a path for the belt first Сначала выкоси дорожку для конвейера
|
Mow a path for the belt first Сначала выкоси дорожку для конвейера
|
||||||
Mow Base База покоса
|
Mow Base База покоса
|
||||||
Mow the grass here first Сначала скоси здесь траву
|
Mow the grass here first Сначала скоси здесь траву
|
||||||
@ -382,7 +381,6 @@ Nail Scissors Basket Корзина маникюрных ножниц
|
|||||||
NE СВ
|
NE СВ
|
||||||
Never once lost a scythe. Ни разу не потерял косу.
|
Never once lost a scythe. Ни разу не потерял косу.
|
||||||
NEW GAME НОВАЯ ИГРА
|
NEW GAME НОВАЯ ИГРА
|
||||||
NEXT {0} ДАЛЕЕ {0}
|
|
||||||
Night Vision Ночное зрение
|
Night Vision Ночное зрение
|
||||||
Night vision on Ночное зрение включено
|
Night vision on Ночное зрение включено
|
||||||
Night Vision: {0}. N goes from the headlamp to night vision to nothing. Ночное зрение: {0}. N переключает: фонарь, ночное зрение, ничего.
|
Night Vision: {0}. N goes from the headlamp to night vision to nothing. Ночное зрение: {0}. N переключает: фонарь, ночное зрение, ничего.
|
||||||
@ -401,7 +399,6 @@ nothing to run, {0:0.#} kW free нечего питать, свободно {0:0
|
|||||||
nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh нечего питать, свободно {0:0.#} кВт, батареи {1:0.0} из {2:0} кВт·ч
|
nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh нечего питать, свободно {0:0.#} кВт, батареи {1:0.0} из {2:0} кВт·ч
|
||||||
Nothing to set on this one. Здесь нечего настраивать.
|
Nothing to set on this one. Здесь нечего настраивать.
|
||||||
Nothing to tie: cut some grass first Нечего вязать: сначала накоси травы
|
Nothing to tie: cut some grass first Нечего вязать: сначала накоси травы
|
||||||
NOW {0} СЕЙЧАС {0}
|
|
||||||
NOW {0} of {1} slots СЕЙЧАС ячеек: {0} из {1}
|
NOW {0} of {1} slots СЕЙЧАС ячеек: {0} из {1}
|
||||||
NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! А ТЕПЕРЬ ОСТАЛЬНЫЕ ДЕВЯНОСТО ДЕВЯТЬ ЦЕЛЫХ ДЕВЯТЬСОТ ДЕВЯНОСТО ДЕВЯТЬ ТЫСЯЧНЫХ!
|
NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! А ТЕПЕРЬ ОСТАЛЬНЫЕ ДЕВЯНОСТО ДЕВЯТЬ ЦЕЛЫХ ДЕВЯТЬСОТ ДЕВЯНОСТО ДЕВЯТЬ ТЫСЯЧНЫХ!
|
||||||
NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! А ТЕПЕРЬ МАРШ НАРУЖУ И СКОСИТЕ ЭТУ ЧЁРТОВУ ПЛАНЕТУ!
|
NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! А ТЕПЕРЬ МАРШ НАРУЖУ И СКОСИТЕ ЭТУ ЧЁРТОВУ ПЛАНЕТУ!
|
||||||
@ -489,7 +486,7 @@ Reset progress? Сбросить прогресс?
|
|||||||
resting без нагрузки
|
resting без нагрузки
|
||||||
RESUME ПРОДОЛЖИТЬ
|
RESUME ПРОДОЛЖИТЬ
|
||||||
Ride the {0} ({1} / {2}) {0}: сесть ({1} / {2})
|
Ride the {0} ({1} / {2}) {0}: сесть ({1} / {2})
|
||||||
Ride the {0} ({1} of {2} bundles, E with a bundle loads it) {0}: сесть (связок: {1} из {2}, E со связкой — загрузить)
|
Ride the {0} ({1} of {2} bundles, {3} with a bundle loads it) {0}: сесть (связок: {1} из {2}, {3} со связкой — загрузить)
|
||||||
RIGHT CLICK takes a piece down and gives all the money back. T carries it somewhere else, the middle button copies it. ПРАВЫЙ КЛИК сносит постройку и возвращает все деньги. T переносит её в другое место, средняя кнопка копирует.
|
RIGHT CLICK takes a piece down and gives all the money back. T carries it somewhere else, the middle button copies it. ПРАВЫЙ КЛИК сносит постройку и возвращает все деньги. T переносит её в другое место, средняя кнопка копирует.
|
||||||
Robot Робот
|
Robot Робот
|
||||||
Robot Crew Робобригада
|
Robot Crew Робобригада
|
||||||
@ -588,7 +585,7 @@ Supply wall — tools & gear Стенд снаряжения — инструм
|
|||||||
Survey point: already read Геоточка: уже считана
|
Survey point: already read Геоточка: уже считана
|
||||||
Surveyor Геодезист
|
Surveyor Геодезист
|
||||||
SW ЮЗ
|
SW ЮЗ
|
||||||
T move · MMB copy · RMB remove T — перенести · СКМ — копировать · ПКМ — снести
|
{0} move · {1} copy · {2} remove {0} — перенести · {1} — копировать · {2} — снести
|
||||||
TAKE IN HAND ВЗЯТЬ В РУКИ
|
TAKE IN HAND ВЗЯТЬ В РУКИ
|
||||||
TAKE IT ВЗЯТЬ
|
TAKE IT ВЗЯТЬ
|
||||||
Take the nail scissors from the SUPPLY WALL on the west side of the deck. Возьми маникюрные ножницы со СТЕНДА СНАРЯЖЕНИЯ на западной стороне платформы.
|
Take the nail scissors from the SUPPLY WALL on the west side of the deck. Возьми маникюрные ножницы со СТЕНДА СНАРЯЖЕНИЯ на западной стороне платформы.
|
||||||
@ -638,10 +635,10 @@ They fill with whatever sun the machines don't use, and when the panels fall sho
|
|||||||
Thirty harvests and still early. Тридцать жатв, и всё ещё первый в поле.
|
Thirty harvests and still early. Тридцать жатв, и всё ещё первый в поле.
|
||||||
This is G.R.A.S.S.A. We take grass very seriously. Это G.R.A.S.S.A. Мы относимся к траве очень серьёзно.
|
This is G.R.A.S.S.A. We take grass very seriously. Это G.R.A.S.S.A. Мы относимся к траве очень серьёзно.
|
||||||
This is what peak civilization looks like. Вот так выглядит вершина цивилизации.
|
This is what peak civilization looks like. Вот так выглядит вершина цивилизации.
|
||||||
Throw [E] Drop [R] Turn Бросить [E] Положить [R] Повернуть
|
Throw [{0}] Drop [{1}] Turn Бросить [{0}] Положить [{1}] Повернуть
|
||||||
Throw +{0}% Бросок +{0}%
|
Throw +{0}% Бросок +{0}%
|
||||||
Throw bundles further. Бросай связки дальше.
|
Throw bundles further. Бросай связки дальше.
|
||||||
Throw it in the DEPOT or onto a belt [E] Drop [R] Turn Брось на СКЛАД или на конвейер [E] Положить [R] Повернуть
|
Throw it in the DEPOT or onto a belt [{0}] Drop [{1}] Turn Брось на СКЛАД или на конвейер [{0}] Положить [{1}] Повернуть
|
||||||
Throwing Arm Сильная рука
|
Throwing Arm Сильная рука
|
||||||
Thunderstorm! Dark skies, weak sun, twisters about. Гроза! Тёмное небо, слабое солнце, вокруг смерчи.
|
Thunderstorm! Dark skies, weak sun, twisters about. Гроза! Тёмное небо, слабое солнце, вокруг смерчи.
|
||||||
Thunderstorm. Dark skies, weak sun, and twisters about. Гроза. Тёмное небо, слабое солнце, и вокруг смерчи.
|
Thunderstorm. Dark skies, weak sun, and twisters about. Гроза. Тёмное небо, слабое солнце, и вокруг смерчи.
|
||||||
@ -685,7 +682,6 @@ Upgrades are for the whole crew and come out of the shared wallet. Улучше
|
|||||||
V-Sync V-Sync
|
V-Sync V-Sync
|
||||||
Version mismatch Версии не совпадают
|
Version mismatch Версии не совпадают
|
||||||
Voices Голоса
|
Voices Голоса
|
||||||
v{0} · early build v{0} · ранняя сборка
|
|
||||||
W З
|
W З
|
||||||
W A S D to drive. Shift to boost. W A S D — ехать. Shift — ускорение.
|
W A S D to drive. Shift to boost. W A S D — ехать. Shift — ускорение.
|
||||||
Wait. Is that... progress? Стоп. Это что... прогресс?
|
Wait. Is that... progress? Стоп. Это что... прогресс?
|
||||||
@ -699,7 +695,7 @@ Weight Вес
|
|||||||
WELCOME TO HERBARIA-7 ДОБРО ПОЖАЛОВАТЬ НА HERBARIA-7
|
WELCOME TO HERBARIA-7 ДОБРО ПОЖАЛОВАТЬ НА HERBARIA-7
|
||||||
Well Travelled Бывалые путники
|
Well Travelled Бывалые путники
|
||||||
Wheat Пшеница
|
Wheat Пшеница
|
||||||
WHEEL piece · LMB place · R rotate · T move · MMB copy · RMB remove · CTRL+WHEEL height · F free WHEEL выбор · ЛКМ поставить · R повернуть · T перенести · СКМ копия · ПКМ снести · CTRL+WHEEL высота · F свободно
|
WHEEL piece · {0} place · {1} rotate · {2} move · {3} copy · {4} remove · CTRL+WHEEL height · {5} free WHEEL выбор · {0} поставить · {1} повернуть · {2} перенести · {3} копия · {4} снести · CTRL+WHEEL высота · {5} свободно
|
||||||
Whetstone Steel Точёная сталь
|
Whetstone Steel Точёная сталь
|
||||||
Which address? Какой адрес?
|
Which address? Какой адрес?
|
||||||
Whoa! The twister threw you. Ого! Тебя отшвырнул смерч.
|
Whoa! The twister threw you. Ого! Тебя отшвырнул смерч.
|
||||||
@ -731,8 +727,8 @@ Zero point zero zero one percent. Ноль целых одна тысячная
|
|||||||
{0:0.##} m · {1:0} kg {0:0.##} м · {1:0} кг
|
{0:0.##} m · {1:0} kg {0:0.##} м · {1:0} кг
|
||||||
{0:0.##}% of Herbaria-7 {0:0.##}% Herbaria-7
|
{0:0.##}% of Herbaria-7 {0:0.##}% Herbaria-7
|
||||||
{0:0.#} cm · {1:0.##} kg {0:0.#} см · {1:0.##} кг
|
{0:0.#} cm · {1:0.##} kg {0:0.#} см · {1:0.##} кг
|
||||||
{0:0.#} m of belt · MMB copy · RMB remove Конвейер {0:0.#} м · СКМ — копировать · ПКМ — снести
|
{0:0.#} m of belt · {1} copy · {2} remove Конвейер {0:0.#} м · {1} — копировать · {2} — снести
|
||||||
{0:0.#} m, {1} · height {2:0.0} m · RMB stops {0:0.#} м, {1} · высота {2:0.0} м · ПКМ — стоп
|
{0:0.#} m, {1} · height {2:0.0} m · {3} stops {0:0.#} м, {1} · высота {2:0.0} м · {3} — стоп
|
||||||
{0:0.#}% mown скошено {0:0.#}%
|
{0:0.#}% mown скошено {0:0.#}%
|
||||||
{0:0.0000}% {0:0.0000}%
|
{0:0.0000}% {0:0.0000}%
|
||||||
{0:0.00} / {1:0.##} KG {0:0.00} / {1:0.##} КГ
|
{0:0.00} / {1:0.##} KG {0:0.00} / {1:0.##} КГ
|
||||||
@ -744,7 +740,7 @@ Zero point zero zero one percent. Ноль целых одна тысячная
|
|||||||
{0:N0} Sectors {0:N0} секторов
|
{0:N0} Sectors {0:N0} секторов
|
||||||
{0:N0} sectors clean · {1} / {2} stakes · {3} / {4} survey points Чистых секторов: {0:N0} · колышки {1} / {2} · геоточки {3} / {4}
|
{0:N0} sectors clean · {1} / {2} stakes · {3} / {4} survey points Чистых секторов: {0:N0} · колышки {1} / {2} · геоточки {3} / {4}
|
||||||
{0:N0} started · {1:N0} mown · {2:0.0000}% of the planet Начато: {0:N0} · скошено: {1:N0} · {2:0.0000}% планеты
|
{0:N0} started · {1:N0} mown · {2:0.0000}% of the planet Начато: {0:N0} · скошено: {1:N0} · {2:0.0000}% планеты
|
||||||
{0} [T] Upgrades & settings {0} [T] Улучшения и настройки
|
{0} [{1}] Upgrades & settings {0} [{1}] Улучшения и настройки
|
||||||
{0} (you) {0} (ты)
|
{0} (you) {0} (ты)
|
||||||
{0} / kg {0} / кг
|
{0} / kg {0} / кг
|
||||||
{0} / {1} slots Ячейки: {0} / {1}
|
{0} / {1} slots Ячейки: {0} / {1}
|
||||||
@ -797,9 +793,9 @@ HOW MUCH LAWN? СКОЛЬКО ГАЗОНА?
|
|||||||
EASY ЛЕГКО
|
EASY ЛЕГКО
|
||||||
NORMAL НОРМАЛЬНО
|
NORMAL НОРМАЛЬНО
|
||||||
EXTRA HARD ОЧЕНЬ СЛОЖНО
|
EXTRA HARD ОЧЕНЬ СЛОЖНО
|
||||||
A planet a third the size, with sectors to match. Earth can wait a little. Планета втрое меньше, и секторы под стать. Земля немного подождёт.
|
A sixth of the big planet, sectors to match. Earth can wait a little. Шестая часть большой планеты, и секторы под стать. Земля немного подождёт.
|
||||||
Half the planet, half-size sectors. Still a lot of lawn. Полпланеты, секторы вдвое меньше. Газона всё равно много.
|
A third of the big planet, smaller sectors. Still a lot of lawn. Треть большой планеты, секторы поменьше. Газона всё равно много.
|
||||||
The whole of Herbaria-7, full-size sectors, every blade of it. Вся Гербария-7, секторы в полный размер, до последней травинки.
|
The big planet: the whole of Herbaria-7, every blade of it. Большая планета: вся Гербария-7, до последней травинки.
|
||||||
DECOR ДЕКОР
|
DECOR ДЕКОР
|
||||||
Wall Стена
|
Wall Стена
|
||||||
A 3 m timber wall. It goes on the edge of a foundation or a floor; R turns it round. Деревянная стена 3 м. Ставится на край настила или перекрытия; R поворачивает её.
|
A 3 m timber wall. It goes on the edge of a foundation or a floor; R turns it round. Деревянная стена 3 м. Ставится на край настила или перекрытия; R поворачивает её.
|
||||||
@ -962,3 +958,52 @@ A big mowing drone. It flies over rocks and hills, works 91 sectors around its p
|
|||||||
ME Я
|
ME Я
|
||||||
GLOBE ГЛОБУС
|
GLOBE ГЛОБУС
|
||||||
DRAG move · WHEEL zoom · SPACE back to you · M close DRAG — двигать · WHEEL — масштаб · SPACE — к себе · M — закрыть
|
DRAG move · WHEEL zoom · SPACE back to you · M close DRAG — двигать · WHEEL — масштаб · SPACE — к себе · M — закрыть
|
||||||
|
AUTOMATION АВТОМАТИКА
|
||||||
|
Long Leash Длинный поводок
|
||||||
|
Robots start further out and mow further from home. Роботы начинают дальше и косят дальше от дома.
|
||||||
|
+{0}% robot reach +{0}% к дальности роботов
|
||||||
|
Overdrive Motors Форсаж-моторы
|
||||||
|
Robots and Sky Mowers drive and mow faster. Роботы и небесные косилки ездят и косят быстрее.
|
||||||
|
+{0}% robot speed +{0}% к скорости роботов
|
||||||
|
Bigger Hoppers Большие бункеры
|
||||||
|
Robots carry more grass before they head home. Роботы набирают больше травы, прежде чем ехать домой.
|
||||||
|
+{0}% robot hopper +{0}% к бункеру роботов
|
||||||
|
Long-Range Drones Дальнобойные дроны
|
||||||
|
Drone pads fetch bundles from further away. Дронопорты забирают снопы издалека.
|
||||||
|
+{0} m drone reach +{0} м к дальности дронов
|
||||||
|
Hive Mind Разум улья
|
||||||
|
Every robot, Sky Mower and drone works 20% faster. Все роботы, небесные косилки и дроны работают на 20% быстрее.
|
||||||
|
Autopilot Автопилот
|
||||||
|
C hands it over: it mows and unloads on its own C передаёт управление: косит и разгружается сам
|
||||||
|
autopilot: off to unload автопилот: едет разгружаться
|
||||||
|
autopilot: nothing left to mow round here автопилот: тут косить больше нечего
|
||||||
|
autopilot: mowing автопилот: косит
|
||||||
|
Take over the {0} ({1}, {2} / {3}) Сесть за руль: {0} ({1}, {2} / {3})
|
||||||
|
Autopilot on: the {0} mows round here and unloads itself. Hop back in to take over. Автопилот включён: {0} косит здесь и сам разгружается. Садись обратно, чтобы взять управление.
|
||||||
|
WASD to drive · SHIFT boost · R chase view · E to hop off · C autopilot WASD — ехать · SHIFT — ускорение · R — вид сзади · E — выйти · C автопилот
|
||||||
|
Grass Train Травяной поезд
|
||||||
|
Lays its own track to a station next door, mowing all the way there. Then it runs back and forth, its side cutters reaching further out on every run, and what it cuts is paid for at either end. Build it on open ground facing the way it should go. Сам прокладывает себе рельсы до соседней станции и выкашивает всё по пути. Потом курсирует туда и обратно, боковые косилки с каждым рейсом берут всё дальше, а скошенное оплачивается на обоих концах. Ставь на открытой земле, лицом туда, куда ему ехать.
|
||||||
|
{0}: laying track to {1}, {2} of {3} m {0}: прокладывает путь до станции {1}, {2} из {3} м
|
||||||
|
E: another station E: другая станция
|
||||||
|
{0}: running to {1} and back, cutting {2} m out either side, {3} on board {0}: курсирует до станции {1}, косит на {2} м по сторонам, на борту {3}
|
||||||
|
x{0:0.#} speed and reach, {1} wagons x{0:0.#} к скорости и охвату, вагонов: {1}
|
||||||
|
Train yard: {0} Станция поезда: {0}
|
||||||
|
The Grass Train lays track on to {0} Травяной поезд тянет путь дальше, к станции {0}
|
||||||
|
{0}: carrying grass home from the stations on its line, {1} on board, {2} waiting {0}: возит траву со станций линии на базу, в вагонах {1}, ждёт {2}
|
||||||
|
E: ride in the cab E: сесть в кабину
|
||||||
|
In the cab: W forward · S back · E to get off В кабине: W вперёд · S назад · E выйти
|
||||||
|
Head bob Покачивание камеры
|
||||||
|
The view rocks a little with each step. Off keeps it still. Вид слегка покачивается при каждом шаге. Выключите, чтобы он не двигался.
|
||||||
|
STEAM PAGE СТРАНИЦА В STEAM
|
||||||
|
FEEDBACK ОТЗЫВ
|
||||||
|
Grass Cutters Together needs Steam. Start Steam, sign in to the account that owns the game, and launch it from your library. Для Grass Cutters Together нужен Steam. Запустите Steam, войдите в аккаунт, на котором куплена игра, и запустите её из библиотеки.
|
||||||
|
That's the end of the demo: the full game has the rest of the planet. Демо на этом заканчивается: остальная планета ждёт в полной игре.
|
||||||
|
DEMO ДЕМО
|
||||||
|
WISHLIST THE FULL GAME В ЖЕЛАЕМОЕ: ПОЛНАЯ ИГРА
|
||||||
|
DEMO COMPLETE · thanks for playing! ДЕМО ПРОЙДЕНО · спасибо за игру!
|
||||||
|
DEMO · goal: ship {0} of {1} kg of grass ДЕМО · цель: сдать {0} из {1} кг травы
|
||||||
|
THANKS FOR PLAYING THE DEMO! СПАСИБО, ЧТО СЫГРАЛИ В ДЕМО!
|
||||||
|
Your crew shipped {0} kg of grass and reached the end of the demo. In the full game the whole planet is yours: machines, belts, robots, far stations and up to 16 players. Ваша команда сдала {0} кг травы и дошла до конца демо. В полной игре вся планета ваша: машины, конвейеры, роботы, дальние станции и до 16 игроков.
|
||||||
|
You can keep mowing here, but nothing more is for sale in the demo. Косить здесь можно и дальше, но больше ничего в демо не продаётся.
|
||||||
|
LEAVE FEEDBACK ОСТАВИТЬ ОТЗЫВ
|
||||||
|
KEEP MOWING КОСИТЬ ДАЛЬШЕ
|
||||||
|
|||||||
@ -139,7 +139,7 @@ Company property Şirket malı
|
|||||||
Connecting to {0}… Bağlanılıyor: {0}…
|
Connecting to {0}… Bağlanılıyor: {0}…
|
||||||
Connecting… Bağlanılıyor…
|
Connecting… Bağlanılıyor…
|
||||||
Container {0:0.##} kg Sepet {0:0.##} kg
|
Container {0:0.##} kg Sepet {0:0.##} kg
|
||||||
Container full! Press E at the DEPOT to hand it all in, or Q to tie a 1 kg bundle you can carry and throw. Sepet dolu! Hepsini teslim etmek için DEPODA E'ye bas ya da taşıyıp fırlatabileceğin 1 kg'lık bir demet bağlamak için Q'ya bas.
|
Container full! Press {0} at the DEPOT to hand it all in, or {1} to tie a 1 kg bundle you can carry and throw. Sepet dolu! Hepsini teslim etmek için DEPODA {0} tuşuna bas ya da taşıyıp fırlatabileceğin 1 kg'lık bir demet bağlamak için {1} tuşuna bas.
|
||||||
Container full! Q ties a bundle, E at the DEPOT hands it all in Sepet dolu! Q demet bağlar, DEPODA E hepsini teslim eder
|
Container full! Q ties a bundle, E at the DEPOT hands it all in Sepet dolu! Q demet bağlar, DEPODA E hepsini teslim eder
|
||||||
Container x{0:0} Sepet x{0:0}
|
Container x{0:0} Sepet x{0:0}
|
||||||
CONTAINERS SEPETLER
|
CONTAINERS SEPETLER
|
||||||
@ -194,8 +194,8 @@ ECONOMY EKONOMİ
|
|||||||
Effects Efektler
|
Effects Efektler
|
||||||
Eleven more stations stand around the planet. Walk up to one and it opens for the crew: a depot, a supply wall, a console and a travel terminal. Gezegenin çevresinde on bir istasyon daha var. Birine yürü, ekibe açılsın: bir depo, bir tedarik duvarı, bir konsol ve bir yolculuk terminali.
|
Eleven more stations stand around the planet. Walk up to one and it opens for the crew: a depot, a supply wall, a console and a travel terminal. Gezegenin çevresinde on bir istasyon daha var. Birine yürü, ekibe açılsın: bir depo, bir tedarik duvarı, bir konsol ve bir yolculuk terminali.
|
||||||
Empty Boş
|
Empty Boş
|
||||||
Empty bed · E with a bundle in your arms loads it Kasa boş · kucağında demet varken E yükler
|
Empty bed · {0} with a bundle in your arms loads it Kasa boş · kucağında demet varken {0} yükler
|
||||||
Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors (E). Ellerin boş! Platformun batı tarafındaki TEDARİK DUVARINA yürü ve tırnak makasını al (E).
|
Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors ({0}). Ellerin boş! Platformun batı tarafındaki TEDARİK DUVARINA yürü ve tırnak makasını al ({0}).
|
||||||
Every blade counts. Apparently. Her çim yaprağı önemli. Öyleymiş.
|
Every blade counts. Apparently. Her çim yaprağı önemli. Öyleymiş.
|
||||||
Every kilo is shot into a Bundle Catcher, anywhere on the planet. A Catcher holds 100 kg and puts it on a belt. With no Catcher free the Reaper stops when its hopper is full. Her kilo, gezegenin neresinde olursa olsun bir Demet Yakalayıcıya fırlatılır. Bir Yakalayıcı 100 kg alır ve banda koyar. Boş Yakalayıcı yoksa Orakçı haznesi dolunca durur.
|
Every kilo is shot into a Bundle Catcher, anywhere on the planet. A Catcher holds 100 kg and puts it on a belt. With no Catcher free the Reaper stops when its hopper is full. Her kilo, gezegenin neresinde olursa olsun bir Demet Yakalayıcıya fırlatılır. Bir Yakalayıcı 100 kg alır ve banda koyar. Boş Yakalayıcı yoksa Orakçı haznesi dolunca durur.
|
||||||
Every Last Stake Son Kazığına Kadar
|
Every Last Stake Son Kazığına Kadar
|
||||||
@ -223,7 +223,6 @@ FIND GAMES OYUN BUL
|
|||||||
First day İlk gün
|
First day İlk gün
|
||||||
First Delivery İlk Teslimat
|
First Delivery İlk Teslimat
|
||||||
Five kilos of grass become five of hay in 12 seconds. Hay pays three times as much. Beş kilo çim 12 saniyede beş kilo saman olur. Saman üç kat fazla kazandırır.
|
Five kilos of grass become five of hay in 12 seconds. Hay pays three times as much. Beş kilo çim 12 saniyede beş kilo saman olur. Saman üç kat fazla kazandırır.
|
||||||
FLEET FİLO
|
|
||||||
Floodlights Projektörler
|
Floodlights Projektörler
|
||||||
Found so far: {0} stakes, {1} points. Şimdiye kadar bulunan: {0} kazık, {1} nokta.
|
Found so far: {0} stakes, {1} points. Şimdiye kadar bulunan: {0} kazık, {1} nokta.
|
||||||
Foundations Temeller
|
Foundations Temeller
|
||||||
@ -288,9 +287,9 @@ Hi. I'm the Director's assistant. Merhaba. Müdürün asistanıyım.
|
|||||||
Hold: Read the survey point ({0}) Basılı tut: Ölçüm noktasını oku ({0})
|
Hold: Read the survey point ({0}) Basılı tut: Ölçüm noktasını oku ({0})
|
||||||
Hold: Untangle the stake ({0}) Basılı tut: Kazığı çöz ({0})
|
Hold: Untangle the stake ({0}) Basılı tut: Kazığı çöz ({0})
|
||||||
Holds 100 kg of what Reapers shoot and puts it on the belt. Orakçıların fırlattıklarından 100 kg tutar ve banda koyar.
|
Holds 100 kg of what Reapers shoot and puts it on the belt. Orakçıların fırlattıklarından 100 kg tutar ve banda koyar.
|
||||||
Hop down to the meadow (SPACE at the railing) and HOLD LEFT CLICK: sweep the blade over the grass. Earth needs every blade of it. Çayıra atla (korkulukta SPACE) ve SOL TIKI BASILI TUT: bıçağı çimin üstünde gezdir. Dünya'nın her bir çim yaprağına ihtiyacı var.
|
Hop down to the meadow ({0} at the railing) and HOLD {1}: sweep the blade over the grass. Earth needs every blade of it. Çayıra atla (korkulukta {0}) ve {1} BASILI TUT: bıçağı çimin üstünde gezdir. Dünya'nın her bir çim yaprağına ihtiyacı var.
|
||||||
Hop down to the meadow, space at the railing. Çayıra atla, korkulukta boşluk tuşuna bas.
|
Hop down to the meadow, space at the railing. Çayıra atla, korkulukta boşluk tuşuna bas.
|
||||||
Hop off [R] View İn [R] Görünüm
|
Hop off [{0}] View İn [{0}] Görünüm
|
||||||
Hop over the railing with SPACE, hold LEFT CLICK and sweep the blade over the grass. It goes straight into the tool's container. SPACE ile korkuluğun üstünden atla, SOL TIKI basılı tut ve bıçağı çimin üstünde gezdir. Çim doğrudan aletin sepetine gider.
|
Hop over the railing with SPACE, hold LEFT CLICK and sweep the blade over the grass. It goes straight into the tool's container. SPACE ile korkuluğun üstünden atla, SOL TIKI basılı tut ve bıçağı çimin üstünde gezdir. Çim doğrudan aletin sepetine gider.
|
||||||
hopper full, needs a catcher with room hazne dolu, yeri olan bir yakalayıcı lazım
|
hopper full, needs a catcher with room hazne dolu, yeri olan bir yakalayıcı lazım
|
||||||
Hopper full: drive to an UNLOAD marker Hazne dolu: bir BOŞALTMA işaretine sür
|
Hopper full: drive to an UNLOAD marker Hazne dolu: bir BOŞALTMA işaretine sür
|
||||||
@ -332,8 +331,8 @@ Let the Robot Do It Robot Yapsın
|
|||||||
Linking... Bağlanıyor...
|
Linking... Bağlanıyor...
|
||||||
Listen up, you incompetent idiots! Dinleyin beni, sizi beceriksiz aptallar!
|
Listen up, you incompetent idiots! Dinleyin beni, sizi beceriksiz aptallar!
|
||||||
Listening for LAN games… LAN oyunları dinleniyor…
|
Listening for LAN games… LAN oyunları dinleniyor…
|
||||||
LMB where the belt starts · height {0:0.0} m Bandın başlangıcına LMB · yükseklik {0:0.0} m
|
{1} where the belt starts · height {0:0.0} m Bandın başlangıcına {1} · yükseklik {0:0.0} m
|
||||||
LMB: go on from this end LMB: bu uçtan devam et
|
{0}: go on from this end {0}: bu uçtan devam et
|
||||||
LOGISTICS LOJİSTİK
|
LOGISTICS LOJİSTİK
|
||||||
Long Handles Uzun Saplar
|
Long Handles Uzun Saplar
|
||||||
Long Scythe Uzun Tırpan
|
Long Scythe Uzun Tırpan
|
||||||
@ -357,7 +356,7 @@ Mode Mod
|
|||||||
More cash for every sector mown clean. Tamamen biçilen her sektör için daha fazla para.
|
More cash for every sector mown clean. Tamamen biçilen her sektör için daha fazla para.
|
||||||
Mouse sensitivity Fare hassasiyeti
|
Mouse sensitivity Fare hassasiyeti
|
||||||
Move faster. Daha hızlı hareket et.
|
Move faster. Daha hızlı hareket et.
|
||||||
Moving {0}: LMB put down · R rotate · RMB cancel {0} taşınıyor: LMB bırak · R döndür · RMB iptal
|
Moving {0}: {1} put down · {2} rotate · {3} cancel {0} taşınıyor: {1} bırak · {2} döndür · {3} iptal
|
||||||
Mow a path for the belt first Önce bant için bir yol biç
|
Mow a path for the belt first Önce bant için bir yol biç
|
||||||
Mow Base Biçme Üssü
|
Mow Base Biçme Üssü
|
||||||
Mow the grass here first Önce buradaki çimi biç
|
Mow the grass here first Önce buradaki çimi biç
|
||||||
@ -382,7 +381,6 @@ Nail Scissors Basket Tırnak Makası Sepeti
|
|||||||
NE KD
|
NE KD
|
||||||
Never once lost a scythe. Bir kez bile tırpan kaybetmedi.
|
Never once lost a scythe. Bir kez bile tırpan kaybetmedi.
|
||||||
NEW GAME YENİ OYUN
|
NEW GAME YENİ OYUN
|
||||||
NEXT {0} SONRAKİ {0}
|
|
||||||
Night Vision Gece Görüşü
|
Night Vision Gece Görüşü
|
||||||
Night vision on Gece görüşü açık
|
Night vision on Gece görüşü açık
|
||||||
Night Vision: {0}. N goes from the headlamp to night vision to nothing. Gece Görüşü: {0}. N kafa lambasından gece görüşüne, oradan kapalıya geçer.
|
Night Vision: {0}. N goes from the headlamp to night vision to nothing. Gece Görüşü: {0}. N kafa lambasından gece görüşüne, oradan kapalıya geçer.
|
||||||
@ -401,7 +399,6 @@ nothing to run, {0:0.#} kW free çalışacak bir şey yok, {0:0.#} kW boşta
|
|||||||
nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh çalışacak bir şey yok, {0:0.#} kW boşta, bataryalar {1:0.0} / {2:0} kWh
|
nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh çalışacak bir şey yok, {0:0.#} kW boşta, bataryalar {1:0.0} / {2:0} kWh
|
||||||
Nothing to set on this one. Bunda ayarlanacak bir şey yok.
|
Nothing to set on this one. Bunda ayarlanacak bir şey yok.
|
||||||
Nothing to tie: cut some grass first Bağlanacak bir şey yok: önce biraz çim biç
|
Nothing to tie: cut some grass first Bağlanacak bir şey yok: önce biraz çim biç
|
||||||
NOW {0} ŞU AN {0}
|
|
||||||
NOW {0} of {1} slots ŞU AN {0} / {1} cep
|
NOW {0} of {1} slots ŞU AN {0} / {1} cep
|
||||||
NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! ŞİMDİ KALAN DOKSAN DOKUZ VİRGÜL DOKUZ DOKUZ DOKUZU DA YAPIN!
|
NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! ŞİMDİ KALAN DOKSAN DOKUZ VİRGÜL DOKUZ DOKUZ DOKUZU DA YAPIN!
|
||||||
NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! ŞİMDİ ÇIKIN DIŞARI VE O KAHROLASI GEZEGENİ BİÇİN!
|
NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! ŞİMDİ ÇIKIN DIŞARI VE O KAHROLASI GEZEGENİ BİÇİN!
|
||||||
@ -489,7 +486,7 @@ Reset progress? İlerleme sıfırlansın mı?
|
|||||||
resting beklemede
|
resting beklemede
|
||||||
RESUME DEVAM ET
|
RESUME DEVAM ET
|
||||||
Ride the {0} ({1} / {2}) Bin: {0} ({1} / {2})
|
Ride the {0} ({1} / {2}) Bin: {0} ({1} / {2})
|
||||||
Ride the {0} ({1} of {2} bundles, E with a bundle loads it) Bin: {0} ({1} / {2} demet, elinde demetle E yükler)
|
Ride the {0} ({1} of {2} bundles, {3} with a bundle loads it) Bin: {0} ({1} / {2} demet, elinde demetle {3} yükler)
|
||||||
RIGHT CLICK takes a piece down and gives all the money back. T carries it somewhere else, the middle button copies it. SAĞ TIK bir parçayı söker ve tüm parasını geri verir. T onu başka yere taşır, orta tuş kopyalar.
|
RIGHT CLICK takes a piece down and gives all the money back. T carries it somewhere else, the middle button copies it. SAĞ TIK bir parçayı söker ve tüm parasını geri verir. T onu başka yere taşır, orta tuş kopyalar.
|
||||||
Robot Robot
|
Robot Robot
|
||||||
Robot Crew Robot Ekibi
|
Robot Crew Robot Ekibi
|
||||||
@ -588,7 +585,7 @@ Supply wall — tools & gear Tedarik duvarı — aletler ve ekipman
|
|||||||
Survey point: already read Ölçüm noktası: zaten okundu
|
Survey point: already read Ölçüm noktası: zaten okundu
|
||||||
Surveyor Haritacı
|
Surveyor Haritacı
|
||||||
SW GB
|
SW GB
|
||||||
T move · MMB copy · RMB remove T taşı · MMB kopyala · RMB kaldır
|
{0} move · {1} copy · {2} remove {0} taşı · {1} kopyala · {2} kaldır
|
||||||
TAKE IN HAND ELE AL
|
TAKE IN HAND ELE AL
|
||||||
TAKE IT AL
|
TAKE IT AL
|
||||||
Take the nail scissors from the SUPPLY WALL on the west side of the deck. Platformun batı tarafındaki TEDARİK DUVARINDAN tırnak makasını al.
|
Take the nail scissors from the SUPPLY WALL on the west side of the deck. Platformun batı tarafındaki TEDARİK DUVARINDAN tırnak makasını al.
|
||||||
@ -638,10 +635,10 @@ They fill with whatever sun the machines don't use, and when the panels fall sho
|
|||||||
Thirty harvests and still early. Otuz hasat ve hâlâ erkenci.
|
Thirty harvests and still early. Otuz hasat ve hâlâ erkenci.
|
||||||
This is G.R.A.S.S.A. We take grass very seriously. Burası G.R.A.S.S.A. Çimi çok ciddiye alırız.
|
This is G.R.A.S.S.A. We take grass very seriously. Burası G.R.A.S.S.A. Çimi çok ciddiye alırız.
|
||||||
This is what peak civilization looks like. Medeniyetin zirvesi işte böyle görünür.
|
This is what peak civilization looks like. Medeniyetin zirvesi işte böyle görünür.
|
||||||
Throw [E] Drop [R] Turn Fırlat [E] Bırak [R] Çevir
|
Throw [{0}] Drop [{1}] Turn Fırlat [{0}] Bırak [{1}] Çevir
|
||||||
Throw +{0}% Fırlatma +%{0}
|
Throw +{0}% Fırlatma +%{0}
|
||||||
Throw bundles further. Demetleri daha uzağa fırlat.
|
Throw bundles further. Demetleri daha uzağa fırlat.
|
||||||
Throw it in the DEPOT or onto a belt [E] Drop [R] Turn DEPOYA ya da banda fırlat [E] Bırak [R] Çevir
|
Throw it in the DEPOT or onto a belt [{0}] Drop [{1}] Turn DEPOYA ya da banda fırlat [{0}] Bırak [{1}] Çevir
|
||||||
Throwing Arm Fırlatma Kolu
|
Throwing Arm Fırlatma Kolu
|
||||||
Thunderstorm! Dark skies, weak sun, twisters about. Fırtına! Kara bulutlar, zayıf güneş, ortalıkta hortumlar.
|
Thunderstorm! Dark skies, weak sun, twisters about. Fırtına! Kara bulutlar, zayıf güneş, ortalıkta hortumlar.
|
||||||
Thunderstorm. Dark skies, weak sun, and twisters about. Gök gürültülü fırtına. Kara bulutlar, zayıf güneş ve ortalıkta hortumlar.
|
Thunderstorm. Dark skies, weak sun, and twisters about. Gök gürültülü fırtına. Kara bulutlar, zayıf güneş ve ortalıkta hortumlar.
|
||||||
@ -685,7 +682,6 @@ Upgrades are for the whole crew and come out of the shared wallet. Yükseltmeler
|
|||||||
V-Sync V-Sync
|
V-Sync V-Sync
|
||||||
Version mismatch Sürüm uyuşmazlığı
|
Version mismatch Sürüm uyuşmazlığı
|
||||||
Voices Seslendirme
|
Voices Seslendirme
|
||||||
v{0} · early build v{0} · erken sürüm
|
|
||||||
W B
|
W B
|
||||||
W A S D to drive. Shift to boost. Sürmek için W A S D. Turbo için Shift.
|
W A S D to drive. Shift to boost. Sürmek için W A S D. Turbo için Shift.
|
||||||
Wait. Is that... progress? Durun. Bu... ilerleme mi?
|
Wait. Is that... progress? Durun. Bu... ilerleme mi?
|
||||||
@ -699,7 +695,7 @@ Weight Ağırlık
|
|||||||
WELCOME TO HERBARIA-7 HERBARIA-7'YE HOŞ GELDİN
|
WELCOME TO HERBARIA-7 HERBARIA-7'YE HOŞ GELDİN
|
||||||
Well Travelled Çok Gezen
|
Well Travelled Çok Gezen
|
||||||
Wheat Buğday
|
Wheat Buğday
|
||||||
WHEEL piece · LMB place · R rotate · T move · MMB copy · RMB remove · CTRL+WHEEL height · F free WHEEL parça · LMB yerleştir · R döndür · T taşı · MMB kopyala · RMB kaldır · CTRL+WHEEL yükseklik · F serbest
|
WHEEL piece · {0} place · {1} rotate · {2} move · {3} copy · {4} remove · CTRL+WHEEL height · {5} free WHEEL parça · {0} yerleştir · {1} döndür · {2} taşı · {3} kopyala · {4} kaldır · CTRL+WHEEL yükseklik · {5} serbest
|
||||||
Whetstone Steel Bilenmiş Çelik
|
Whetstone Steel Bilenmiş Çelik
|
||||||
Which address? Hangi adres?
|
Which address? Hangi adres?
|
||||||
Whoa! The twister threw you. Vay! Hortum seni fırlattı.
|
Whoa! The twister threw you. Vay! Hortum seni fırlattı.
|
||||||
@ -731,8 +727,8 @@ Zero point zero zero one percent. Yüzde sıfır virgül sıfır sıfır bir.
|
|||||||
{0:0.##} m · {1:0} kg {0:0.##} m · {1:0} kg
|
{0:0.##} m · {1:0} kg {0:0.##} m · {1:0} kg
|
||||||
{0:0.##}% of Herbaria-7 Herbaria-7: %{0:0.##}
|
{0:0.##}% of Herbaria-7 Herbaria-7: %{0:0.##}
|
||||||
{0:0.#} cm · {1:0.##} kg {0:0.#} cm · {1:0.##} kg
|
{0:0.#} cm · {1:0.##} kg {0:0.#} cm · {1:0.##} kg
|
||||||
{0:0.#} m of belt · MMB copy · RMB remove {0:0.#} m bant · MMB kopyala · RMB kaldır
|
{0:0.#} m of belt · {1} copy · {2} remove {0:0.#} m bant · {1} kopyala · {2} kaldır
|
||||||
{0:0.#} m, {1} · height {2:0.0} m · RMB stops {0:0.#} m, {1} · yükseklik {2:0.0} m · RMB bitirir
|
{0:0.#} m, {1} · height {2:0.0} m · {3} stops {0:0.#} m, {1} · yükseklik {2:0.0} m · {3} bitirir
|
||||||
{0:0.#}% mown %{0:0.#} biçildi
|
{0:0.#}% mown %{0:0.#} biçildi
|
||||||
{0:0.0000}% %{0:0.0000}
|
{0:0.0000}% %{0:0.0000}
|
||||||
{0:0.00} / {1:0.##} KG {0:0.00} / {1:0.##} KG
|
{0:0.00} / {1:0.##} KG {0:0.00} / {1:0.##} KG
|
||||||
@ -744,7 +740,7 @@ Zero point zero zero one percent. Yüzde sıfır virgül sıfır sıfır bir.
|
|||||||
{0:N0} Sectors {0:N0} Sektör
|
{0:N0} Sectors {0:N0} Sektör
|
||||||
{0:N0} sectors clean · {1} / {2} stakes · {3} / {4} survey points {0:N0} temiz sektör · {1} / {2} kazık · {3} / {4} ölçüm noktası
|
{0:N0} sectors clean · {1} / {2} stakes · {3} / {4} survey points {0:N0} temiz sektör · {1} / {2} kazık · {3} / {4} ölçüm noktası
|
||||||
{0:N0} started · {1:N0} mown · {2:0.0000}% of the planet {0:N0} başlandı · {1:N0} biçildi · gezegen: %{2:0.0000}
|
{0:N0} started · {1:N0} mown · {2:0.0000}% of the planet {0:N0} başlandı · {1:N0} biçildi · gezegen: %{2:0.0000}
|
||||||
{0} [T] Upgrades & settings {0} [T] Yükseltmeler ve ayarlar
|
{0} [{1}] Upgrades & settings {0} [{1}] Yükseltmeler ve ayarlar
|
||||||
{0} (you) {0} (sen)
|
{0} (you) {0} (sen)
|
||||||
{0} / kg {0} / kg
|
{0} / kg {0} / kg
|
||||||
{0} / {1} slots {0} / {1} cep
|
{0} / {1} slots {0} / {1} cep
|
||||||
@ -797,9 +793,9 @@ HOW MUCH LAWN? NE KADAR ÇİM?
|
|||||||
EASY KOLAY
|
EASY KOLAY
|
||||||
NORMAL NORMAL
|
NORMAL NORMAL
|
||||||
EXTRA HARD ÇOK ZOR
|
EXTRA HARD ÇOK ZOR
|
||||||
A planet a third the size, with sectors to match. Earth can wait a little. Üçte bir boyutunda bir gezegen, sektörler de ona göre. Dünya biraz bekleyebilir.
|
A sixth of the big planet, sectors to match. Earth can wait a little. Büyük gezegenin altıda biri, sektörler de ona göre. Dünya biraz bekleyebilir.
|
||||||
Half the planet, half-size sectors. Still a lot of lawn. Gezegenin yarısı, yarı boyutta sektörler. Yine de bir sürü çim.
|
A third of the big planet, smaller sectors. Still a lot of lawn. Büyük gezegenin üçte biri, daha küçük sektörler. Yine de bolca çim.
|
||||||
The whole of Herbaria-7, full-size sectors, every blade of it. Herbaria-7'nin tamamı, tam boyutlu sektörler, son çim yaprağına kadar.
|
The big planet: the whole of Herbaria-7, every blade of it. Büyük gezegen: Herbaria-7'nin tamamı, son çim yaprağına kadar.
|
||||||
DECOR DEKOR
|
DECOR DEKOR
|
||||||
Wall Duvar
|
Wall Duvar
|
||||||
A 3 m timber wall. It goes on the edge of a foundation or a floor; R turns it round. 3 m ahşap duvar. Bir temelin ya da döşemenin kenarına konur; R ile döner.
|
A 3 m timber wall. It goes on the edge of a foundation or a floor; R turns it round. 3 m ahşap duvar. Bir temelin ya da döşemenin kenarına konur; R ile döner.
|
||||||
@ -962,3 +958,52 @@ A big mowing drone. It flies over rocks and hills, works 91 sectors around its p
|
|||||||
ME BEN
|
ME BEN
|
||||||
GLOBE KÜRE
|
GLOBE KÜRE
|
||||||
DRAG move · WHEEL zoom · SPACE back to you · M close DRAG taşı · WHEEL yakınlaş · SPACE sana dön · M kapat
|
DRAG move · WHEEL zoom · SPACE back to you · M close DRAG taşı · WHEEL yakınlaş · SPACE sana dön · M kapat
|
||||||
|
AUTOMATION OTOMASYON
|
||||||
|
Long Leash Uzun Tasma
|
||||||
|
Robots start further out and mow further from home. Robotlar daha uzaktan başlar ve evden daha uzağı biçer.
|
||||||
|
+{0}% robot reach Robot menzili +%{0}
|
||||||
|
Overdrive Motors Overdrive Motorlar
|
||||||
|
Robots and Sky Mowers drive and mow faster. Robotlar ve Gök Biçiciler daha hızlı gider ve biçer.
|
||||||
|
+{0}% robot speed Robot hızı +%{0}
|
||||||
|
Bigger Hoppers Büyük Hazneler
|
||||||
|
Robots carry more grass before they head home. Robotlar eve dönmeden önce daha çok çim taşır.
|
||||||
|
+{0}% robot hopper Robot haznesi +%{0}
|
||||||
|
Long-Range Drones Uzun Menzilli Dronlar
|
||||||
|
Drone pads fetch bundles from further away. Dron Pistleri demetleri daha uzaktan toplar.
|
||||||
|
+{0} m drone reach Dron menzili +{0} m
|
||||||
|
Hive Mind Kovan Zihni
|
||||||
|
Every robot, Sky Mower and drone works 20% faster. Her robot, Gök Biçici ve dron %20 daha hızlı çalışır.
|
||||||
|
Autopilot Otopilot
|
||||||
|
C hands it over: it mows and unloads on its own C devreder: kendi biçer, kendi boşaltır
|
||||||
|
autopilot: off to unload otopilot: boşaltmaya gidiyor
|
||||||
|
autopilot: nothing left to mow round here otopilot: buralarda biçecek bir şey kalmadı
|
||||||
|
autopilot: mowing otopilot: biçiyor
|
||||||
|
Take over the {0} ({1}, {2} / {3}) Direksiyona geç: {0} ({1}, {2} / {3})
|
||||||
|
Autopilot on: the {0} mows round here and unloads itself. Hop back in to take over. Otopilot açık: {0} buraları biçip kendi boşaltır. Kontrolü almak için yeniden bin.
|
||||||
|
WASD to drive · SHIFT boost · R chase view · E to hop off · C autopilot WASD sür · SHIFT turbo · R takip kamerası · E in · C otopilot
|
||||||
|
Grass Train Çim Treni
|
||||||
|
Lays its own track to a station next door, mowing all the way there. Then it runs back and forth, its side cutters reaching further out on every run, and what it cuts is paid for at either end. Build it on open ground facing the way it should go. Komşu bir istasyona kendi rayını döşer ve yol boyunca her şeyi biçer. Sonra gidip gelir, yan biçicileri her seferinde daha uzağa uzanır ve biçtiği çim iki uçta da ödenir. Açık bir zemine, gitmesi gereken yöne bakacak şekilde kur.
|
||||||
|
{0}: laying track to {1}, {2} of {3} m {0}: {1} istasyonuna ray döşüyor, {2} / {3} m
|
||||||
|
E: another station E: başka istasyon
|
||||||
|
{0}: running to {1} and back, cutting {2} m out either side, {3} on board {0}: {1} ile arasında gidip geliyor, iki yanda {2} m biçiyor, içinde {3}
|
||||||
|
x{0:0.#} speed and reach, {1} wagons x{0:0.#} hız ve erişim, {1} vagon
|
||||||
|
Train yard: {0} Tren sahası: {0}
|
||||||
|
The Grass Train lays track on to {0} Çim Treni {0} istasyonuna ray döşüyor
|
||||||
|
{0}: carrying grass home from the stations on its line, {1} on board, {2} waiting {0}: hattaki istasyonlardan çimi üsse taşıyor, içinde {1}, bekleyen {2}
|
||||||
|
E: ride in the cab E: kabine bin
|
||||||
|
In the cab: W forward · S back · E to get off Kabinde: W ileri · S geri · E in
|
||||||
|
Head bob Kamera sallanması
|
||||||
|
The view rocks a little with each step. Off keeps it still. Her adımda görüş biraz sallanır. Kapalıyken sabit kalır.
|
||||||
|
STEAM PAGE STEAM SAYFASI
|
||||||
|
FEEDBACK GERİ BİLDİRİM
|
||||||
|
Grass Cutters Together needs Steam. Start Steam, sign in to the account that owns the game, and launch it from your library. Grass Cutters Together için Steam gerekir. Steam'i açın, oyuna sahip hesapla giriş yapın ve oyunu kütüphanenizden başlatın.
|
||||||
|
That's the end of the demo: the full game has the rest of the planet. Demo burada bitiyor: gezegenin geri kalanı tam oyunda.
|
||||||
|
DEMO DEMO
|
||||||
|
WISHLIST THE FULL GAME TAM OYUNU İSTEK LİSTESİNE EKLE
|
||||||
|
DEMO COMPLETE · thanks for playing! DEMO TAMAMLANDI · oynadığın için teşekkürler!
|
||||||
|
DEMO · goal: ship {0} of {1} kg of grass DEMO · hedef: {1} kg çimin {0} kg'ını teslim et
|
||||||
|
THANKS FOR PLAYING THE DEMO! DEMOYU OYNADIĞIN İÇİN TEŞEKKÜRLER!
|
||||||
|
Your crew shipped {0} kg of grass and reached the end of the demo. In the full game the whole planet is yours: machines, belts, robots, far stations and up to 16 players. Ekibin {0} kg çim teslim etti ve demonun sonuna ulaştı. Tam oyunda bütün gezegen senin: makineler, bantlar, robotlar, uzak istasyonlar ve 16 oyuncuya kadar.
|
||||||
|
You can keep mowing here, but nothing more is for sale in the demo. Burada biçmeye devam edebilirsin ama demoda satılık başka bir şey yok.
|
||||||
|
LEAVE FEEDBACK GERİ BİLDİRİM VER
|
||||||
|
KEEP MOWING BİÇMEYE DEVAM
|
||||||
|
|||||||
@ -138,7 +138,7 @@ Company property 公司财产
|
|||||||
Connecting to {0}… 正在连接 {0}……
|
Connecting to {0}… 正在连接 {0}……
|
||||||
Connecting… 正在连接……
|
Connecting… 正在连接……
|
||||||
Container {0:0.##} kg 容量 {0:0.##} kg
|
Container {0:0.##} kg 容量 {0:0.##} kg
|
||||||
Container full! Press E at the DEPOT to hand it all in, or Q to tie a 1 kg bundle you can carry and throw. 容器满了!到收草站按 E 全部上交,或按 Q 打一个 1 kg 的草捆,可以抱着走,也可以扔。
|
Container full! Press {0} at the DEPOT to hand it all in, or {1} to tie a 1 kg bundle you can carry and throw. 容器满了!到收草站按 {0} 全部上交,或按 {1} 打一个 1 kg 的草捆,可以抱着走,也可以扔。
|
||||||
Container full! Q ties a bundle, E at the DEPOT hands it all in 容器满了!按 Q 打捆,或到收草站按 E 全部上交
|
Container full! Q ties a bundle, E at the DEPOT hands it all in 容器满了!按 Q 打捆,或到收草站按 E 全部上交
|
||||||
Container x{0:0} 容量 x{0:0}
|
Container x{0:0} 容量 x{0:0}
|
||||||
CONTAINERS 容器
|
CONTAINERS 容器
|
||||||
@ -193,8 +193,8 @@ ECONOMY 经济
|
|||||||
Effects 音效
|
Effects 音效
|
||||||
Eleven more stations stand around the planet. Walk up to one and it opens for the crew: a depot, a supply wall, a console and a travel terminal. 星球各处还有十一座站点。走到跟前,它就会向团队开放:有收草站、补给墙、控制台和旅行终端。
|
Eleven more stations stand around the planet. Walk up to one and it opens for the crew: a depot, a supply wall, a console and a travel terminal. 星球各处还有十一座站点。走到跟前,它就会向团队开放:有收草站、补给墙、控制台和旅行终端。
|
||||||
Empty 空
|
Empty 空
|
||||||
Empty bed · E with a bundle in your arms loads it 车斗是空的 · 抱着草捆按 E 装车
|
Empty bed · {0} with a bundle in your arms loads it 车斗是空的 · 抱着草捆按 {0} 装车
|
||||||
Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors (E). 两手空空!走到平台西侧的补给墙,拿起指甲剪(E)。
|
Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors ({0}). 两手空空!走到平台西侧的补给墙,拿起指甲剪({0})。
|
||||||
Every blade counts. Apparently. 每一根草都很重要。据说是。
|
Every blade counts. Apparently. 每一根草都很重要。据说是。
|
||||||
Every kilo is shot into a Bundle Catcher, anywhere on the planet. A Catcher holds 100 kg and puts it on a belt. With no Catcher free the Reaper stops when its hopper is full. 每一公斤草都会被射进接捆器,不管它在星球哪个角落。一个接捆器能装 100 kg,并把草送上传送带。没有空闲的接捆器时,收割者的料斗一满就会停工。
|
Every kilo is shot into a Bundle Catcher, anywhere on the planet. A Catcher holds 100 kg and puts it on a belt. With no Catcher free the Reaper stops when its hopper is full. 每一公斤草都会被射进接捆器,不管它在星球哪个角落。一个接捆器能装 100 kg,并把草送上传送带。没有空闲的接捆器时,收割者的料斗一满就会停工。
|
||||||
Every Last Stake 一根不落
|
Every Last Stake 一根不落
|
||||||
@ -222,7 +222,6 @@ FIND GAMES 寻找游戏
|
|||||||
First day 第一天
|
First day 第一天
|
||||||
First Delivery 首次交货
|
First Delivery 首次交货
|
||||||
Five kilos of grass become five of hay in 12 seconds. Hay pays three times as much. 五公斤草 12 秒变成五公斤干草。干草的价格是草的三倍。
|
Five kilos of grass become five of hay in 12 seconds. Hay pays three times as much. 五公斤草 12 秒变成五公斤干草。干草的价格是草的三倍。
|
||||||
FLEET 车队
|
|
||||||
Floodlights 泛光灯
|
Floodlights 泛光灯
|
||||||
Found so far: {0} stakes, {1} points. 目前已找到:{0} 根测桩,{1} 个勘测点。
|
Found so far: {0} stakes, {1} points. 目前已找到:{0} 根测桩,{1} 个勘测点。
|
||||||
Foundations 地基
|
Foundations 地基
|
||||||
@ -287,9 +286,9 @@ Hi. I'm the Director's assistant. 你好。我是总监的助理。
|
|||||||
Hold: Read the survey point ({0}) 长按:读取勘测点({0})
|
Hold: Read the survey point ({0}) 长按:读取勘测点({0})
|
||||||
Hold: Untangle the stake ({0}) 长按:解开测桩({0})
|
Hold: Untangle the stake ({0}) 长按:解开测桩({0})
|
||||||
Holds 100 kg of what Reapers shoot and puts it on the belt. 能装 100 kg 收割者射来的草,并把它送上传送带。
|
Holds 100 kg of what Reapers shoot and puts it on the belt. 能装 100 kg 收割者射来的草,并把它送上传送带。
|
||||||
Hop down to the meadow (SPACE at the railing) and HOLD LEFT CLICK: sweep the blade over the grass. Earth needs every blade of it. 跳到草地上(在栏杆边按 SPACE),然后按住左键:挥动刀刃扫过草丛。地球需要每一根草。
|
Hop down to the meadow ({0} at the railing) and HOLD {1}: sweep the blade over the grass. Earth needs every blade of it. 跳到草地上(在栏杆边按 {0}),然后按住{1}:挥动刀刃扫过草丛。地球需要每一根草。
|
||||||
Hop down to the meadow, space at the railing. 在栏杆边按 SPACE,跳到草地上。
|
Hop down to the meadow, space at the railing. 在栏杆边按 SPACE,跳到草地上。
|
||||||
Hop off [R] View 下车 [R] 视角
|
Hop off [{0}] View 下车 [{0}] 视角
|
||||||
Hop over the railing with SPACE, hold LEFT CLICK and sweep the blade over the grass. It goes straight into the tool's container. 按 SPACE 跳过栏杆,按住左键,挥动刀刃扫过草丛。割下的草会直接进入工具的容器。
|
Hop over the railing with SPACE, hold LEFT CLICK and sweep the blade over the grass. It goes straight into the tool's container. 按 SPACE 跳过栏杆,按住左键,挥动刀刃扫过草丛。割下的草会直接进入工具的容器。
|
||||||
hopper full, needs a catcher with room 料斗已满,需要有空位的接捆器
|
hopper full, needs a catcher with room 料斗已满,需要有空位的接捆器
|
||||||
Hopper full: drive to an UNLOAD marker 料斗已满:开到“卸货”标记处
|
Hopper full: drive to an UNLOAD marker 料斗已满:开到“卸货”标记处
|
||||||
@ -331,8 +330,8 @@ Let the Robot Do It 让机器人来干
|
|||||||
Linking... 链接中……
|
Linking... 链接中……
|
||||||
Listen up, you incompetent idiots! 都给我听好了,你们这群废物!
|
Listen up, you incompetent idiots! 都给我听好了,你们这群废物!
|
||||||
Listening for LAN games… 正在搜索局域网游戏……
|
Listening for LAN games… 正在搜索局域网游戏……
|
||||||
LMB where the belt starts · height {0:0.0} m LMB 点击传送带起点 · 高度 {0:0.0} m
|
{1} where the belt starts · height {0:0.0} m {1} 点击传送带起点 · 高度 {0:0.0} m
|
||||||
LMB: go on from this end LMB:从这一端继续铺
|
{0}: go on from this end {0}:从这一端继续铺
|
||||||
LOGISTICS 物流
|
LOGISTICS 物流
|
||||||
Long Handles 加长手柄
|
Long Handles 加长手柄
|
||||||
Long Scythe 长柄大镰刀
|
Long Scythe 长柄大镰刀
|
||||||
@ -356,7 +355,7 @@ Mode 模式
|
|||||||
More cash for every sector mown clean. 每割净一个区块,奖金更多。
|
More cash for every sector mown clean. 每割净一个区块,奖金更多。
|
||||||
Mouse sensitivity 鼠标灵敏度
|
Mouse sensitivity 鼠标灵敏度
|
||||||
Move faster. 移动更快。
|
Move faster. 移动更快。
|
||||||
Moving {0}: LMB put down · R rotate · RMB cancel 正在移动{0}:LMB 放下 · R 旋转 · RMB 取消
|
Moving {0}: {1} put down · {2} rotate · {3} cancel 正在移动{0}:{1} 放下 · {2} 旋转 · {3} 取消
|
||||||
Mow a path for the belt first 请先给传送带割出一条路
|
Mow a path for the belt first 请先给传送带割出一条路
|
||||||
Mow Base 割草基地
|
Mow Base 割草基地
|
||||||
Mow the grass here first 请先把这里的草割掉
|
Mow the grass here first 请先把这里的草割掉
|
||||||
@ -381,7 +380,6 @@ Nail Scissors Basket 指甲剪草篮
|
|||||||
NE 东北
|
NE 东北
|
||||||
Never once lost a scythe. 从没丢过一把镰刀。
|
Never once lost a scythe. 从没丢过一把镰刀。
|
||||||
NEW GAME 新游戏
|
NEW GAME 新游戏
|
||||||
NEXT {0} 下一级 {0}
|
|
||||||
Night Vision 夜视仪
|
Night Vision 夜视仪
|
||||||
Night vision on 夜视仪已开启
|
Night vision on 夜视仪已开启
|
||||||
Night Vision: {0}. N goes from the headlamp to night vision to nothing. 夜视仪:{0}。按 N 依次切换头灯、夜视仪和关闭。
|
Night Vision: {0}. N goes from the headlamp to night vision to nothing. 夜视仪:{0}。按 N 依次切换头灯、夜视仪和关闭。
|
||||||
@ -400,7 +398,6 @@ nothing to run, {0:0.#} kW free 没有机器在运转,空闲 {0:0.#} kW
|
|||||||
nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh 没有机器在运转,空闲 {0:0.#} kW,电池 {1:0.0}/{2:0} kWh
|
nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh 没有机器在运转,空闲 {0:0.#} kW,电池 {1:0.0}/{2:0} kWh
|
||||||
Nothing to set on this one. 这个没有可设置的选项。
|
Nothing to set on this one. 这个没有可设置的选项。
|
||||||
Nothing to tie: cut some grass first 没东西可捆:先割点草
|
Nothing to tie: cut some grass first 没东西可捆:先割点草
|
||||||
NOW {0} 当前 {0}
|
|
||||||
NOW {0} of {1} slots 当前 {0}/{1} 个槽位
|
NOW {0} of {1} slots 当前 {0}/{1} 个槽位
|
||||||
NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! 现在去把剩下的百分之九十九点九九九也割了!
|
NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! 现在去把剩下的百分之九十九点九九九也割了!
|
||||||
NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! 现在都给我滚出去,把那颗该死的星球割干净!
|
NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! 现在都给我滚出去,把那颗该死的星球割干净!
|
||||||
@ -485,7 +482,7 @@ Reset progress? 重置进度?
|
|||||||
resting 待机
|
resting 待机
|
||||||
RESUME 继续
|
RESUME 继续
|
||||||
Ride the {0} ({1} / {2}) 驾驶{0} ({1} / {2})
|
Ride the {0} ({1} / {2}) 驾驶{0} ({1} / {2})
|
||||||
Ride the {0} ({1} of {2} bundles, E with a bundle loads it) 驾驶{0} (草捆 {1}/{2},抱着草捆按 E 装车)
|
Ride the {0} ({1} of {2} bundles, {3} with a bundle loads it) 驾驶{0} (草捆 {1}/{2},抱着草捆按 {3} 装车)
|
||||||
RIGHT CLICK takes a piece down and gives all the money back. T carries it somewhere else, the middle button copies it. 右键拆除建筑并全额退款。T 把它搬到别处,中键复制。
|
RIGHT CLICK takes a piece down and gives all the money back. T carries it somewhere else, the middle button copies it. 右键拆除建筑并全额退款。T 把它搬到别处,中键复制。
|
||||||
Robot 机器人
|
Robot 机器人
|
||||||
Robot Crew 机器人团队
|
Robot Crew 机器人团队
|
||||||
@ -584,7 +581,7 @@ Supply wall — tools & gear 补给墙:工具与装备
|
|||||||
Survey point: already read 勘测点:已读取
|
Survey point: already read 勘测点:已读取
|
||||||
Surveyor 勘测员
|
Surveyor 勘测员
|
||||||
SW 西南
|
SW 西南
|
||||||
T move · MMB copy · RMB remove T 移动 · MMB 复制 · RMB 拆除
|
{0} move · {1} copy · {2} remove {0} 移动 · {1} 复制 · {2} 拆除
|
||||||
TAKE IN HAND 拿在手上
|
TAKE IN HAND 拿在手上
|
||||||
TAKE IT 拿走
|
TAKE IT 拿走
|
||||||
Take the nail scissors from the SUPPLY WALL on the west side of the deck. 去平台西侧的补给墙拿指甲剪。
|
Take the nail scissors from the SUPPLY WALL on the west side of the deck. 去平台西侧的补给墙拿指甲剪。
|
||||||
@ -634,10 +631,10 @@ They fill with whatever sun the machines don't use, and when the panels fall sho
|
|||||||
Thirty harvests and still early. 干了三十季,照样不迟到。
|
Thirty harvests and still early. 干了三十季,照样不迟到。
|
||||||
This is G.R.A.S.S.A. We take grass very seriously. 这里是 G.R.A.S.S.A.。我们对草可是非常认真的。
|
This is G.R.A.S.S.A. We take grass very seriously. 这里是 G.R.A.S.S.A.。我们对草可是非常认真的。
|
||||||
This is what peak civilization looks like. 这就是文明的巅峰。
|
This is what peak civilization looks like. 这就是文明的巅峰。
|
||||||
Throw [E] Drop [R] Turn 投掷 [E] 放下 [R] 旋转
|
Throw [{0}] Drop [{1}] Turn 投掷 [{0}] 放下 [{1}] 旋转
|
||||||
Throw +{0}% 投掷 +{0}%
|
Throw +{0}% 投掷 +{0}%
|
||||||
Throw bundles further. 草捆扔得更远。
|
Throw bundles further. 草捆扔得更远。
|
||||||
Throw it in the DEPOT or onto a belt [E] Drop [R] Turn 扔进收草站或传送带 [E] 放下 [R] 旋转
|
Throw it in the DEPOT or onto a belt [{0}] Drop [{1}] Turn 扔进收草站或传送带 [{0}] 放下 [{1}] 旋转
|
||||||
Throwing Arm 投掷臂
|
Throwing Arm 投掷臂
|
||||||
Thunderstorm! Dark skies, weak sun, twisters about. 雷暴!天色昏暗,阳光微弱,龙卷风四起。
|
Thunderstorm! Dark skies, weak sun, twisters about. 雷暴!天色昏暗,阳光微弱,龙卷风四起。
|
||||||
Thunderstorm. Dark skies, weak sun, and twisters about. 雷暴。天色昏暗,阳光微弱,还有龙卷风出没。
|
Thunderstorm. Dark skies, weak sun, and twisters about. 雷暴。天色昏暗,阳光微弱,还有龙卷风出没。
|
||||||
@ -681,7 +678,6 @@ Upgrades are for the whole crew and come out of the shared wallet. 升级全队
|
|||||||
V-Sync 垂直同步
|
V-Sync 垂直同步
|
||||||
Version mismatch 版本不匹配
|
Version mismatch 版本不匹配
|
||||||
Voices 语音
|
Voices 语音
|
||||||
v{0} · early build v{0} · 早期版本
|
|
||||||
W 西
|
W 西
|
||||||
W A S D to drive. Shift to boost. 用 W A S D 驾驶。按 SHIFT 加速。
|
W A S D to drive. Shift to boost. 用 W A S D 驾驶。按 SHIFT 加速。
|
||||||
Wait. Is that... progress? 等等。这是……进展?
|
Wait. Is that... progress? 等等。这是……进展?
|
||||||
@ -695,7 +691,7 @@ Weight 重量
|
|||||||
WELCOME TO HERBARIA-7 欢迎来到 HERBARIA-7
|
WELCOME TO HERBARIA-7 欢迎来到 HERBARIA-7
|
||||||
Well Travelled 见多识广
|
Well Travelled 见多识广
|
||||||
Wheat 小麦
|
Wheat 小麦
|
||||||
WHEEL piece · LMB place · R rotate · T move · MMB copy · RMB remove · CTRL+WHEEL height · F free WHEEL 选择建筑 · LMB 放置 · R 旋转 · T 移动 · MMB 复制 · RMB 拆除 · CTRL+WHEEL 高度 · F 自由放置
|
WHEEL piece · {0} place · {1} rotate · {2} move · {3} copy · {4} remove · CTRL+WHEEL height · {5} free WHEEL 选择建筑 · {0} 放置 · {1} 旋转 · {2} 移动 · {3} 复制 · {4} 拆除 · CTRL+WHEEL 高度 · {5} 自由放置
|
||||||
Whetstone Steel 精磨钢刃
|
Whetstone Steel 精磨钢刃
|
||||||
Which address? 哪个地址?
|
Which address? 哪个地址?
|
||||||
Whoa! The twister threw you. 哇!你被龙卷风甩飞了。
|
Whoa! The twister threw you. 哇!你被龙卷风甩飞了。
|
||||||
@ -727,8 +723,8 @@ Zero point zero zero one percent. 百分之零点零零一。
|
|||||||
{0:0.##} m · {1:0} kg {0:0.##} m · {1:0} kg
|
{0:0.##} m · {1:0} kg {0:0.##} m · {1:0} kg
|
||||||
{0:0.##}% of Herbaria-7 Herbaria-7 的 {0:0.##}%
|
{0:0.##}% of Herbaria-7 Herbaria-7 的 {0:0.##}%
|
||||||
{0:0.#} cm · {1:0.##} kg {0:0.#} cm · {1:0.##} kg
|
{0:0.#} cm · {1:0.##} kg {0:0.#} cm · {1:0.##} kg
|
||||||
{0:0.#} m of belt · MMB copy · RMB remove {0:0.#} m 传送带 · MMB 复制 · RMB 拆除
|
{0:0.#} m of belt · {1} copy · {2} remove {0:0.#} m 传送带 · {1} 复制 · {2} 拆除
|
||||||
{0:0.#} m, {1} · height {2:0.0} m · RMB stops {0:0.#} m,{1} · 高度 {2:0.0} m · RMB 结束
|
{0:0.#} m, {1} · height {2:0.0} m · {3} stops {0:0.#} m,{1} · 高度 {2:0.0} m · {3} 结束
|
||||||
{0:0.#}% mown 已割 {0:0.#}%
|
{0:0.#}% mown 已割 {0:0.#}%
|
||||||
{0:0.0000}% {0:0.0000}%
|
{0:0.0000}% {0:0.0000}%
|
||||||
{0:0.00} / {1:0.##} KG {0:0.00} / {1:0.##} KG
|
{0:0.00} / {1:0.##} KG {0:0.00} / {1:0.##} KG
|
||||||
@ -740,7 +736,7 @@ Zero point zero zero one percent. 百分之零点零零一。
|
|||||||
{0:N0} Sectors {0:N0} 个区块
|
{0:N0} Sectors {0:N0} 个区块
|
||||||
{0:N0} sectors clean · {1} / {2} stakes · {3} / {4} survey points 已割净 {0:N0} 个区块 · 测桩 {1} / {2} · 勘测点 {3} / {4}
|
{0:N0} sectors clean · {1} / {2} stakes · {3} / {4} survey points 已割净 {0:N0} 个区块 · 测桩 {1} / {2} · 勘测点 {3} / {4}
|
||||||
{0:N0} started · {1:N0} mown · {2:0.0000}% of the planet 已开割 {0:N0} · 已割完 {1:N0} · 星球的 {2:0.0000}%
|
{0:N0} started · {1:N0} mown · {2:0.0000}% of the planet 已开割 {0:N0} · 已割完 {1:N0} · 星球的 {2:0.0000}%
|
||||||
{0} [T] Upgrades & settings {0} [T] 升级与设置
|
{0} [{1}] Upgrades & settings {0} [{1}] 升级与设置
|
||||||
{0} (you) {0} (你)
|
{0} (you) {0} (你)
|
||||||
{0} / kg {0} / kg
|
{0} / kg {0} / kg
|
||||||
{0} / {1} slots {0} / {1} 个槽位
|
{0} / {1} slots {0} / {1} 个槽位
|
||||||
@ -797,9 +793,9 @@ HOW MUCH LAWN? 要割多少草坪?
|
|||||||
EASY 简单
|
EASY 简单
|
||||||
NORMAL 普通
|
NORMAL 普通
|
||||||
EXTRA HARD 超难
|
EXTRA HARD 超难
|
||||||
A planet a third the size, with sectors to match. Earth can wait a little. 星球只有三分之一大,扇区也相应缩小。地球可以稍等一下。
|
A sixth of the big planet, sectors to match. Earth can wait a little. 大星球的六分之一,扇区也相应缩小。地球可以稍等一下。
|
||||||
Half the planet, half-size sectors. Still a lot of lawn. 半个星球,扇区缩小一半。草坪还是很多。
|
A third of the big planet, smaller sectors. Still a lot of lawn. 大星球的三分之一,扇区更小。草坪还是很多。
|
||||||
The whole of Herbaria-7, full-size sectors, every blade of it. 整个 Herbaria-7,扇区全尺寸,一根草都不少。
|
The big planet: the whole of Herbaria-7, every blade of it. 大星球:整个 Herbaria-7,一根草都不少。
|
||||||
DECOR 装饰
|
DECOR 装饰
|
||||||
Wall 墙
|
Wall 墙
|
||||||
A 3 m timber wall. It goes on the edge of a foundation or a floor; R turns it round. 3 米长的木墙。放在地基或楼板的边缘;按 R 旋转。
|
A 3 m timber wall. It goes on the edge of a foundation or a floor; R turns it round. 3 米长的木墙。放在地基或楼板的边缘;按 R 旋转。
|
||||||
@ -962,3 +958,52 @@ A big mowing drone. It flies over rocks and hills, works 91 sectors around its p
|
|||||||
ME 我
|
ME 我
|
||||||
GLOBE 地球仪
|
GLOBE 地球仪
|
||||||
DRAG move · WHEEL zoom · SPACE back to you · M close DRAG 移动 · WHEEL 缩放 · SPACE 回到自己 · M 关闭
|
DRAG move · WHEEL zoom · SPACE back to you · M close DRAG 移动 · WHEEL 缩放 · SPACE 回到自己 · M 关闭
|
||||||
|
AUTOMATION 自动化
|
||||||
|
Long Leash 长牵引绳
|
||||||
|
Robots start further out and mow further from home. 机器人从更远处开工,离家更远也照割不误。
|
||||||
|
+{0}% robot reach 机器人范围 +{0}%
|
||||||
|
Overdrive Motors 超速电机
|
||||||
|
Robots and Sky Mowers drive and mow faster. 机器人和空中割草机跑得更快、割得更快。
|
||||||
|
+{0}% robot speed 机器人速度 +{0}%
|
||||||
|
Bigger Hoppers 大号料斗
|
||||||
|
Robots carry more grass before they head home. 机器人回家前能装更多草。
|
||||||
|
+{0}% robot hopper 机器人料斗 +{0}%
|
||||||
|
Long-Range Drones 远程无人机
|
||||||
|
Drone pads fetch bundles from further away. 无人机坪能从更远处取回草捆。
|
||||||
|
+{0} m drone reach 无人机范围 +{0} m
|
||||||
|
Hive Mind 蜂巢思维
|
||||||
|
Every robot, Sky Mower and drone works 20% faster. 所有机器人、空中割草机和无人机工作速度提高 20%。
|
||||||
|
Autopilot 自动驾驶
|
||||||
|
C hands it over: it mows and unloads on its own 按 C 交给它:自己割草、自己卸货
|
||||||
|
autopilot: off to unload 自动驾驶:去卸货
|
||||||
|
autopilot: nothing left to mow round here 自动驾驶:附近没有可割的草了
|
||||||
|
autopilot: mowing 自动驾驶:割草中
|
||||||
|
Take over the {0} ({1}, {2} / {3}) 接管{0} ({1},{2} / {3})
|
||||||
|
Autopilot on: the {0} mows round here and unloads itself. Hop back in to take over. 自动驾驶已开启:{0}会在这附近割草并自己卸货。重新上车即可接管。
|
||||||
|
WASD to drive · SHIFT boost · R chase view · E to hop off · C autopilot WASD 驾驶 · SHIFT 加速 · R 追随视角 · E 下车 · C 自动驾驶
|
||||||
|
Grass Train 割草火车
|
||||||
|
Lays its own track to a station next door, mowing all the way there. Then it runs back and forth, its side cutters reaching further out on every run, and what it cuts is paid for at either end. Build it on open ground facing the way it should go. 自己铺轨通往相邻的站点,一路割草。铺通后便来回往返,每跑一趟两侧割刀伸得更远,割下的草在两端结算。请建在空地上,朝向它要去的方向。
|
||||||
|
{0}: laying track to {1}, {2} of {3} m {0}:正在铺轨前往{1},{2} / {3} m
|
||||||
|
E: another station E:换一个站点
|
||||||
|
{0}: running to {1} and back, cutting {2} m out either side, {3} on board {0}:往返于{1},两侧割到 {2} m,车上 {3}
|
||||||
|
x{0:0.#} speed and reach, {1} wagons 速度与覆盖 x{0:0.#},{1} 节车厢
|
||||||
|
Train yard: {0} 列车货场:{0}
|
||||||
|
The Grass Train lays track on to {0} 割草列车把轨道铺向{0}
|
||||||
|
{0}: carrying grass home from the stations on its line, {1} on board, {2} waiting {0}:把线路各站的草运回基地,车上 {1},待运 {2}
|
||||||
|
E: ride in the cab E:登上驾驶室
|
||||||
|
In the cab: W forward · S back · E to get off 驾驶室:W 前进 · S 后退 · E 下车
|
||||||
|
Head bob 镜头晃动
|
||||||
|
The view rocks a little with each step. Off keeps it still. 走路时视角会轻微晃动。关闭后保持稳定。
|
||||||
|
STEAM PAGE STEAM 商店页
|
||||||
|
FEEDBACK 反馈
|
||||||
|
Grass Cutters Together needs Steam. Start Steam, sign in to the account that owns the game, and launch it from your library. Grass Cutters Together 需要 Steam。请启动 Steam,登录拥有本游戏的账户,然后从库中启动游戏。
|
||||||
|
That's the end of the demo: the full game has the rest of the planet. 试玩版到此结束:星球的其余部分在完整版中等着你。
|
||||||
|
DEMO 试玩版
|
||||||
|
WISHLIST THE FULL GAME 将完整版加入愿望单
|
||||||
|
DEMO COMPLETE · thanks for playing! 试玩完成 · 感谢游玩!
|
||||||
|
DEMO · goal: ship {0} of {1} kg of grass 试玩版 · 目标:交付 {0} / {1} 千克草
|
||||||
|
THANKS FOR PLAYING THE DEMO! 感谢游玩试玩版!
|
||||||
|
Your crew shipped {0} kg of grass and reached the end of the demo. In the full game the whole planet is yours: machines, belts, robots, far stations and up to 16 players. 你的团队交付了 {0} 千克草,已到达试玩版的终点。完整版中整个星球都属于你:机器、传送带、机器人、远方站点,最多 16 名玩家。
|
||||||
|
You can keep mowing here, but nothing more is for sale in the demo. 你可以继续在这里割草,但试玩版中不再出售任何东西。
|
||||||
|
LEAVE FEEDBACK 提交反馈
|
||||||
|
KEEP MOWING 继续割草
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -97,7 +97,7 @@ namespace GrassCutter
|
|||||||
s_next = Time.time + Every;
|
s_next = Time.time + Every;
|
||||||
var ts = TeamState.Instance;
|
var ts = TeamState.Instance;
|
||||||
var me = PlayerAgent.Local;
|
var me = PlayerAgent.Local;
|
||||||
if (!ts || !me) return;
|
if (!ts || !me || Demo.On) return;
|
||||||
Read();
|
Read();
|
||||||
foreach (var a in All)
|
foreach (var a in All)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -13,6 +13,9 @@ namespace GrassCutter
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static class Cheats
|
public static class Cheats
|
||||||
{
|
{
|
||||||
|
/// <summary>The console is for the team: the editor, a development build, or a build started with -gcdev.</summary>
|
||||||
|
public static readonly bool Allowed = Application.isEditor || Debug.isDebugBuild || CommandLine.Has("-gcdev");
|
||||||
|
|
||||||
public class Command
|
public class Command
|
||||||
{
|
{
|
||||||
public string name, args, desc;
|
public string name, args, desc;
|
||||||
@ -219,7 +222,7 @@ namespace GrassCutter
|
|||||||
var cam = CameraFx.Cam ? CameraFx.Cam.transform : Me.head;
|
var cam = CameraFx.Cam ? CameraFx.Cam.transform : Me.head;
|
||||||
var dir = cam.forward;
|
var dir = cam.forward;
|
||||||
float d = ahead;
|
float d = ahead;
|
||||||
if (Physics.Raycast(cam.position, dir, out var hit, ahead + 0.5f, (1 << Layers.Default) | (1 << Layers.Build) | (1 << Layers.Prop), QueryTriggerInteraction.Ignore))
|
if (Physics.Raycast(cam.position, dir, out var hit, ahead + 0.5f, (1 << Layers.Default) | (1 << Layers.Build) | Layers.CargoMask, QueryTriggerInteraction.Ignore))
|
||||||
d = Mathf.Max(0.6f, hit.distance - 0.6f);
|
d = Mathf.Max(0.6f, hit.distance - 0.6f);
|
||||||
var p = cam.position + dir * d;
|
var p = cam.position + dir * d;
|
||||||
float above = Vector3.Dot(p - Me.transform.position, Me.transform.up);
|
float above = Vector3.Dot(p - Me.transform.position, Me.transform.up);
|
||||||
|
|||||||
25
Assets/Scripts/Core/Demo.cs
Normal file
25
Assets/Scripts/Core/Demo.cs
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
namespace GrassCutter
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The demo build (built with GC_DEMO): its own Steam app, its own saves (another product name, so another data
|
||||||
|
/// folder and other settings), no achievements, and an end once the crew has shipped <see cref="GoalKg"/>: a thank-you
|
||||||
|
/// screen with the wishlist and feedback links, and nothing more for sale after it.
|
||||||
|
/// </summary>
|
||||||
|
public static class Demo
|
||||||
|
{
|
||||||
|
#if GC_DEMO
|
||||||
|
public const bool On = true;
|
||||||
|
#else
|
||||||
|
public const bool On = false;
|
||||||
|
#endif
|
||||||
|
/// <summary>The full game: what the wishlist and feedback links go to.</summary>
|
||||||
|
public const uint FullAppId = 5551720;
|
||||||
|
public const uint DemoAppId = 5668050;
|
||||||
|
/// <summary>About half an hour for a first-time player: the paced opening ships 178 kg in 30 minutes knowing exactly what to do.</summary>
|
||||||
|
public const double GoalKg = 150;
|
||||||
|
|
||||||
|
public static double Shipped => TeamState.Instance ? TeamState.Instance.Shipped.Value : 0d;
|
||||||
|
/// <summary>The crew has reached the end of the demo.</summary>
|
||||||
|
public static bool Over => On && Shipped >= GoalKg;
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Assets/Scripts/Core/Demo.cs.meta
Normal file
2
Assets/Scripts/Core/Demo.cs.meta
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: cd1209cf5dfb99e44a1aace34f8042f6
|
||||||
138
Assets/Scripts/Core/DemoBot.Auto.cs
Normal file
138
Assets/Scripts/Core/DemoBot.Auto.cs
Normal file
@ -0,0 +1,138 @@
|
|||||||
|
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>
|
||||||
|
static bool FindDock(out Vector3 at)
|
||||||
|
{
|
||||||
|
var dz = GameObject.Find("DockZone");
|
||||||
|
at = dz ? dz.transform.position : default;
|
||||||
|
return dz;
|
||||||
|
}
|
||||||
|
|
||||||
|
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")}");
|
||||||
|
|
||||||
|
// something in the way to the yard: the autopilot should go straight through it
|
||||||
|
if (FindDock(out var dock))
|
||||||
|
{
|
||||||
|
var mid = Planet.Surface(Vector3.Lerp(tractor.transform.position, dock, 0.5f));
|
||||||
|
var block = Spawner.Instance.SpawnPiece(PieceId.Press, mid, Face(mid, dock - mid), mid, true);
|
||||||
|
Log($"obstacle: {(block ? "press" : "MISSING")} {Vector3.Distance(mid, tractor.transform.position):0} m on the way to the yard");
|
||||||
|
}
|
||||||
|
|
||||||
|
// a building on the steepest slope round here, sat on it the way the build tool now sets it down
|
||||||
|
Vector3 steep = default;
|
||||||
|
float worst = -1f;
|
||||||
|
for (int a = 0; a < 48; a++)
|
||||||
|
for (float r = 60f; r <= 300f; r += 15f)
|
||||||
|
{
|
||||||
|
var q = Soil17(Mathf.Cos(a * 7.5f * Mathf.Deg2Rad) * r, Mathf.Sin(a * 7.5f * Mathf.Deg2Rad) * r);
|
||||||
|
var u = Planet.Up(q);
|
||||||
|
var e = Vector3.ProjectOnPlane(Vector3.right, u).normalized;
|
||||||
|
var n2 = Vector3.Cross(u, e);
|
||||||
|
var nrm = Vector3.Cross(Planet.Surface(q + n2 * 2f) - Planet.Surface(q - n2 * 2f), Planet.Surface(q + e * 2f) - Planet.Surface(q - e * 2f));
|
||||||
|
float slope = Vector3.Angle(nrm.normalized * Mathf.Sign(Vector3.Dot(nrm, u)), u);
|
||||||
|
if (slope > worst && !Ts.OnDeck(q) && !(Ground.Instance && Ground.Instance.RockAt(q)) && !Physics.CheckSphere(q + u * 3f, 9f, 1 << Layers.Default, QueryTriggerInteraction.Ignore)) { worst = slope; steep = q; }
|
||||||
|
}
|
||||||
|
var dryerDef = GameDefs.Piece(PieceId.Dryer);
|
||||||
|
var dAt = steep;
|
||||||
|
var dRot = Face(steep, Vector3.forward);
|
||||||
|
PlayerBuild.Lean(dryerDef, ref dAt, ref dRot);
|
||||||
|
var dryer = Spawner.Instance.SpawnPiece(PieceId.Dryer, dAt, dRot, dAt, true);
|
||||||
|
Log($"slope {worst:0} deg: dryer leans {Vector3.Angle(dRot * Vector3.up, Planet.Up(steep)):0} deg, sunk {Vector3.Dot(dAt - steep, Planet.Up(steep)):0.00} m");
|
||||||
|
if (dryer)
|
||||||
|
{
|
||||||
|
var du = Planet.Up(dAt);
|
||||||
|
var side = Vector3.Cross(du, dRot * Vector3.forward).normalized;
|
||||||
|
yield return Look("auto00_slope_dryer", dAt + du * 3f + side * 13f, dAt + du * 1.5f, 1f);
|
||||||
|
yield return Look("auto00_slope_dryer2", dAt + du * 4f - (dRot * Vector3.forward) * 13f, dAt + du * 1.5f, 0.4f);
|
||||||
|
}
|
||||||
|
|
||||||
|
Time.timeScale = 6f;
|
||||||
|
var start = tractor.transform.position;
|
||||||
|
bool flipped = false;
|
||||||
|
double money = Ts.Money.Value;
|
||||||
|
for (int k = 1; k <= 18; k++)
|
||||||
|
{
|
||||||
|
float until = Time.realtimeSinceStartup + 10f;
|
||||||
|
while (Time.realtimeSinceStartup < until)
|
||||||
|
{
|
||||||
|
yield return null;
|
||||||
|
var tp0 = tractor.transform.position;
|
||||||
|
float tilt = Vector3.Angle(tractor.transform.up, Planet.Up(tp0));
|
||||||
|
if (tilt > 40f && !flipped)
|
||||||
|
{
|
||||||
|
flipped = true;
|
||||||
|
Log($" TIPPED {tilt:0} deg: {tractor.Job}, alt {Planet.Altitude(tp0):0.00} m, {Vector3.Distance(tp0, Planet.FromBase(0f, 0f) * Planet.Radius):0} m from base, speed {tractor.Body.linearVelocity.magnitude:0.0}, on deck {Ts.OnDeck(tp0)}, exclude {tractor.Body.excludeLayers.value}");
|
||||||
|
Time.timeScale = 1f;
|
||||||
|
var u0 = Planet.Up(tp0);
|
||||||
|
yield return Look($"auto_tipped", tp0 + u0 * 8f + Vector3.ProjectOnPlane(Vector3.forward, u0).normalized * -10f, tp0, 0.1f);
|
||||||
|
Time.timeScale = 6f;
|
||||||
|
}
|
||||||
|
if (tilt < 20f) flipped = false;
|
||||||
|
}
|
||||||
|
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($"autopilot: swerved {Vehicle.Swerves}, hopped {Vehicle.Hops}");
|
||||||
|
Log("auto done");
|
||||||
|
Application.Quit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Assets/Scripts/Core/DemoBot.Auto.cs.meta
Normal file
2
Assets/Scripts/Core/DemoBot.Auto.cs.meta
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 4327551bd94af824da28a066f9d9012a
|
||||||
44
Assets/Scripts/Core/DemoBot.DemoEnd.cs
Normal file
44
Assets/Scripts/Core/DemoBot.DemoEnd.cs
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace GrassCutter
|
||||||
|
{
|
||||||
|
public partial class DemoBot
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// -demoend (in a GC_DEMO build): the menu with its wishlist button, the goal on screen, the thank-you screen once
|
||||||
|
/// the goal is shipped, and a purchase refused after it.
|
||||||
|
/// </summary>
|
||||||
|
IEnumerator DemoEndDemo()
|
||||||
|
{
|
||||||
|
Log($"demo build: {Demo.On}, app {SteamManager.AppId}, version {NetSession.Version}, data {Application.persistentDataPath}");
|
||||||
|
BotCapture.From = null;
|
||||||
|
yield return new WaitForSeconds(3f);
|
||||||
|
yield return Shot("demo_0_menu");
|
||||||
|
TeamState.DeleteSave();
|
||||||
|
NetSession.Instance.HostLocal();
|
||||||
|
while (!Me || !Ts) yield return null;
|
||||||
|
yield return new WaitForSeconds(3f);
|
||||||
|
Ts.ServerSetMoney(1000d);
|
||||||
|
yield return new WaitForSeconds(0.5f);
|
||||||
|
yield return Shot("demo_1_goal");
|
||||||
|
Ts.BuyToolRpc((byte)ToolId.Scythe);
|
||||||
|
yield return new WaitForSeconds(1f);
|
||||||
|
Log($"before the goal: scythe bought {(Me.Owns(ToolId.Scythe) ? "yes" : "NO")}, over {Demo.Over}");
|
||||||
|
Ts.Shipped.Value = Demo.GoalKg + 3;
|
||||||
|
yield return new WaitForSeconds(2f);
|
||||||
|
Log($"at the goal: over {Demo.Over}");
|
||||||
|
yield return Shot("demo_2_end");
|
||||||
|
UIRoot.I.CloseTopModal();
|
||||||
|
yield return new WaitForSeconds(0.5f);
|
||||||
|
double cash = Ts.Money.Value;
|
||||||
|
Ts.BuyToolRpc((byte)ToolId.LongScythe);
|
||||||
|
Ts.BuyBeltSlotRpc();
|
||||||
|
yield return new WaitForSeconds(1f);
|
||||||
|
Log($"after the goal: long scythe {(Me.Owns(ToolId.LongScythe) ? "BOUGHT" : "refused")}, money {cash:0} -> {Ts.Money.Value:0}");
|
||||||
|
yield return Shot("demo_3_refused");
|
||||||
|
Log("demoend done");
|
||||||
|
Application.Quit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Assets/Scripts/Core/DemoBot.DemoEnd.cs.meta
Normal file
2
Assets/Scripts/Core/DemoBot.DemoEnd.cs.meta
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1716542de5bb2ed4a8baec5130a35e0e
|
||||||
98
Assets/Scripts/Core/DemoBot.Gpu.cs
Normal file
98
Assets/Scripts/Core/DemoBot.Gpu.cs
Normal file
@ -0,0 +1,98 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Reflection;
|
||||||
|
using System.Text;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.Rendering;
|
||||||
|
using UnityEngine.Rendering.Universal;
|
||||||
|
|
||||||
|
namespace GrassCutter
|
||||||
|
{
|
||||||
|
public partial class DemoBot
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// -demogpu N -onscreen: save slot N in a real window, vsync off, and the frame time with one thing switched off at
|
||||||
|
/// a time (grass, MSAA, SSAO, shadows, post, lights, bundles...), at the base and out in the meadow. The CPU side
|
||||||
|
/// takes about 7 ms, so anything slower is the GPU. Writes gpu.txt.
|
||||||
|
/// </summary>
|
||||||
|
IEnumerator Gpu(int slot)
|
||||||
|
{
|
||||||
|
SaveSlots.Current = slot - 1;
|
||||||
|
yield return new WaitForSeconds(2f);
|
||||||
|
NetSession.Instance.HostLocal();
|
||||||
|
while (!Me || !Ts) yield return null;
|
||||||
|
yield return new WaitForSeconds(6f);
|
||||||
|
QualitySettings.vSyncCount = 0;
|
||||||
|
Application.targetFrameRate = -1;
|
||||||
|
|
||||||
|
var asset = GraphicsSettings.currentRenderPipeline as UniversalRenderPipelineAsset;
|
||||||
|
var datas = asset ? typeof(UniversalRenderPipelineAsset).GetField("m_RendererDataList", BindingFlags.NonPublic | BindingFlags.Instance)?.GetValue(asset) as ScriptableRendererData[] : null;
|
||||||
|
var features = datas != null && datas.Length > 0 && datas[0] ? datas[0].rendererFeatures : new List<ScriptableRendererFeature>();
|
||||||
|
var cam = CameraFx.Cam ? CameraFx.Cam : Camera.main;
|
||||||
|
var camData = cam ? cam.GetUniversalAdditionalCameraData() : null;
|
||||||
|
var sun = FindObjectsByType<Light>(FindObjectsSortMode.None).Where(l => l.type == LightType.Directional).OrderByDescending(l => l.intensity).FirstOrDefault();
|
||||||
|
var outp = new StringBuilder();
|
||||||
|
outp.AppendLine($"screen {Screen.width}x{Screen.height}, {SystemInfo.graphicsDeviceName}, msaa {asset?.msaaSampleCount}, hdr {asset?.supportsHDR}, shadows {asset?.shadowDistance} m x{asset?.shadowCascadeCount}, features {string.Join(",", features.Select(f => f ? f.name + (f.isActive ? "" : "(off)") : "null"))}");
|
||||||
|
outp.AppendLine($"{BuildPiece.All.Count} pieces, {Cargo.All.Count} cargo, {FindObjectsByType<Renderer>(FindObjectsSortMode.None).Length} renderers, {FindObjectsByType<Light>(FindObjectsSortMode.None).Length} lights");
|
||||||
|
|
||||||
|
void Toggle(IEnumerable<Renderer> rs, bool on) { foreach (var r in rs) if (r) r.enabled = on; }
|
||||||
|
List<Renderer> Of(IEnumerable<Component> cs) => cs.Where(c => c).SelectMany(c => c.GetComponentsInChildren<Renderer>()).ToList();
|
||||||
|
var tests = new List<(string name, Action off, Action on)>
|
||||||
|
{
|
||||||
|
("base", () => { }, () => { }),
|
||||||
|
("grass off", () => { if (GrassField.Instance) GrassField.Instance.enabled = false; }, () => { if (GrassField.Instance) GrassField.Instance.enabled = true; }),
|
||||||
|
("msaa 1x", () => asset.msaaSampleCount = 1, () => asset.msaaSampleCount = 4),
|
||||||
|
("hdr off", () => asset.supportsHDR = false, () => asset.supportsHDR = true),
|
||||||
|
("post off", () => { if (camData) camData.renderPostProcessing = false; }, () => { if (camData) camData.renderPostProcessing = true; }),
|
||||||
|
("shadows off", () => asset.shadowDistance = 0f, () => asset.shadowDistance = 90f),
|
||||||
|
("shadows 2 casc 60 m", () => { asset.shadowCascadeCount = 2; asset.shadowDistance = 60f; }, () => { asset.shadowCascadeCount = 4; asset.shadowDistance = 90f; }),
|
||||||
|
("hard shadows", () => { if (sun) sun.shadows = LightShadows.Hard; }, () => { if (sun) sun.shadows = LightShadows.Soft; }),
|
||||||
|
("other lights off", () => { foreach (var l in FindObjectsByType<Light>(FindObjectsSortMode.None)) if (l != sun) l.enabled = false; }, () => { foreach (var l in FindObjectsByType<Light>(FindObjectsInactive.Include, FindObjectsSortMode.None)) if (l != sun) l.enabled = true; }),
|
||||||
|
("bundles hidden", () => Toggle(Of(Cargo.All), false), () => Toggle(Of(Cargo.All), true)),
|
||||||
|
("pieces hidden", () => Toggle(Of(BuildPiece.All), false), () => Toggle(Of(BuildPiece.All), true)),
|
||||||
|
("bundles not instanced", () => CargoTick.Instanced = false, () => CargoTick.Instanced = true),
|
||||||
|
("distance sort on", () => { if (cam) cam.opaqueSortMode = OpaqueSortMode.Default; }, () => { if (cam) cam.opaqueSortMode = OpaqueSortMode.NoDistanceSort; }),
|
||||||
|
("render scale 0.75", () => asset.renderScale = 0.75f, () => asset.renderScale = 1f),
|
||||||
|
};
|
||||||
|
foreach (var f in features)
|
||||||
|
if (f && f.isActive) { var ff = f; tests.Add(($"feature {ff.name} off", () => ff.SetActive(false), () => ff.SetActive(true))); }
|
||||||
|
tests.Add(("base again", () => { }, () => { }));
|
||||||
|
|
||||||
|
var views = new (string name, Vector3 at, Vector3 look)[]
|
||||||
|
{
|
||||||
|
("base", Planet.FromBase(0f, -14f), Planet.FromBase(0f, 6f)),
|
||||||
|
("meadow", Planet.FromBase(140f, 120f), Planet.FromBase(260f, 220f)),
|
||||||
|
};
|
||||||
|
foreach (var v in views)
|
||||||
|
{
|
||||||
|
Me.Teleport(Planet.OnSurface(v.at) + v.at * 0.2f);
|
||||||
|
yield return new WaitForSeconds(2f);
|
||||||
|
Me.LookAt(Planet.OnSurface(v.look));
|
||||||
|
yield return new WaitForSeconds(1.5f);
|
||||||
|
double baseMs = 0;
|
||||||
|
foreach (var (name, off, on) in tests)
|
||||||
|
{
|
||||||
|
off();
|
||||||
|
yield return new WaitForSeconds(0.6f);
|
||||||
|
var dts = new List<float>();
|
||||||
|
float until = Time.realtimeSinceStartup + 4f;
|
||||||
|
while (Time.realtimeSinceStartup < until) { yield return null; dts.Add(Time.unscaledDeltaTime * 1000f); }
|
||||||
|
on();
|
||||||
|
dts.Sort();
|
||||||
|
double ms = dts.Count > 0 ? dts[dts.Count / 2] : 0;
|
||||||
|
if (name == "base") baseMs = ms;
|
||||||
|
if (name == "base") outp.AppendLine($"{v.name}: grass draws {(GrassField.Instance ? GrassField.Instance.Draws : -1)}");
|
||||||
|
outp.AppendLine($"{v.name,-7} {name,-34} {ms,6:0.0} ms {1000.0 / Math.Max(0.1, ms),5:0} fps {(name == "base" ? "" : $"{ms - baseMs:+0.0;-0.0} ms")}");
|
||||||
|
yield return new WaitForSeconds(0.3f);
|
||||||
|
}
|
||||||
|
yield return Shot($"gpu_{v.name}");
|
||||||
|
}
|
||||||
|
File.WriteAllText(Path.Combine(folder, "gpu.txt"), outp.ToString());
|
||||||
|
Log("gpu done");
|
||||||
|
Application.Quit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Assets/Scripts/Core/DemoBot.Gpu.cs.meta
Normal file
2
Assets/Scripts/Core/DemoBot.Gpu.cs.meta
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f67da5b26efc4004580fe49bb92bc022
|
||||||
@ -16,6 +16,44 @@ namespace GrassCutter
|
|||||||
/// every profiler marker (a development build has one per script Update), the slow frames and what was busy in them.
|
/// every profiler marker (a development build has one per script Update), the slow frames and what was busy in them.
|
||||||
/// Writes perf.txt beside the shots. Needs a development build for the per-script markers.
|
/// Writes perf.txt beside the shots. Needs a development build for the per-script markers.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
IEnumerator Phase(StringBuilder outp, List<(string name, ProfilerRecorder rec)> recs, ProfilerRecorder loop, string label, float seconds, System.Action begin, System.Action<int> each)
|
||||||
|
{
|
||||||
|
var total = new Dictionary<string, double>();
|
||||||
|
var spikes = new List<(int frame, float at, double ms, string top)>();
|
||||||
|
var frames = new List<double>();
|
||||||
|
begin();
|
||||||
|
float t0 = Time.realtimeSinceStartup, until = t0 + seconds;
|
||||||
|
int f = 0;
|
||||||
|
while (Time.realtimeSinceStartup < until)
|
||||||
|
{
|
||||||
|
yield return null;
|
||||||
|
f++;
|
||||||
|
each(f);
|
||||||
|
double frameMs = loop.Valid ? loop.LastValue / 1e6 : Time.unscaledDeltaTime * 1000.0;
|
||||||
|
frames.Add(frameMs);
|
||||||
|
var busy = new List<(string, double)>();
|
||||||
|
foreach (var (name, rec) in recs)
|
||||||
|
{
|
||||||
|
if (!rec.Valid) continue;
|
||||||
|
double ms = rec.LastValue / 1e6;
|
||||||
|
if (ms <= 0 || ms > 1000) continue;
|
||||||
|
total[name] = (total.TryGetValue(name, out var t) ? t : 0) + ms;
|
||||||
|
if (frameMs > 20 && ms > 1 && name != "PlayerLoop") busy.Add((name, ms));
|
||||||
|
}
|
||||||
|
if (frameMs > 20)
|
||||||
|
spikes.Add((f, Time.realtimeSinceStartup - t0, frameMs, string.Join(", ", busy.OrderByDescending(b => b.Item2).Take(14).Select(b => $"{b.Item1} {b.Item2:0.0}"))));
|
||||||
|
}
|
||||||
|
frames.Sort();
|
||||||
|
double Pct(double p) => frames.Count == 0 ? 0 : frames[Mathf.Clamp((int)(frames.Count * p), 0, frames.Count - 1)];
|
||||||
|
outp.AppendLine();
|
||||||
|
outp.AppendLine($"=== {label}: {f} frames, mean {frames.Average():0.0} ms, median {Pct(0.5):0.0}, p95 {Pct(0.95):0.0}, p99 {Pct(0.99):0.0}, max {frames.LastOrDefault():0.0}; {spikes.Count} over 20 ms, {spikes.Count(s => s.ms > 50)} over 50 ms");
|
||||||
|
foreach (var kv in total.Where(kv => kv.Key.StartsWith("GC:") || kv.Key.StartsWith("GC.") || kv.Key.StartsWith("Physics") || kv.Key.StartsWith("Gfx.") || kv.Key.StartsWith("Loading") || kv.Key.Contains("Upload")).OrderByDescending(kv => kv.Value).Take(40))
|
||||||
|
outp.AppendLine($"{kv.Value / f,8:0.000} {kv.Key}");
|
||||||
|
outp.AppendLine("— slow frames —");
|
||||||
|
foreach (var s in spikes.OrderByDescending(s => s.ms).Take(20))
|
||||||
|
outp.AppendLine($"#{s.frame} t{s.at:0.0} {s.ms:0.0} ms: {s.top}");
|
||||||
|
}
|
||||||
|
|
||||||
IEnumerator Perf(int slot)
|
IEnumerator Perf(int slot)
|
||||||
{
|
{
|
||||||
SaveSlots.Current = slot - 1;
|
SaveSlots.Current = slot - 1;
|
||||||
@ -29,6 +67,12 @@ namespace GrassCutter
|
|||||||
foreach (var rb in FindObjectsByType<Rigidbody>(FindObjectsSortMode.None)) { bodies++; if (!rb.isKinematic && !rb.IsSleeping()) awake++; }
|
foreach (var rb in FindObjectsByType<Rigidbody>(FindObjectsSortMode.None)) { bodies++; if (!rb.isKinematic && !rb.IsSleeping()) awake++; }
|
||||||
outp.AppendLine($"rigidbodies {bodies}, awake {awake}, renderers {FindObjectsByType<Renderer>(FindObjectsSortMode.None).Length}");
|
outp.AppendLine($"rigidbodies {bodies}, awake {awake}, renderers {FindObjectsByType<Renderer>(FindObjectsSortMode.None).Length}");
|
||||||
|
|
||||||
|
if (CommandLine.Has("-tune"))
|
||||||
|
{
|
||||||
|
foreach (var r in FindObjectsByType<Renderer>(FindObjectsSortMode.None)) r.lightProbeUsage = UnityEngine.Rendering.LightProbeUsage.Off;
|
||||||
|
if (UnityEngine.Rendering.GraphicsSettings.currentRenderPipeline is UnityEngine.Rendering.Universal.UniversalRenderPipelineAsset ua) ua.gpuResidentDrawerMode = UnityEngine.Rendering.GPUResidentDrawerMode.Disabled;
|
||||||
|
outp.AppendLine("tuned: light probes off, resident drawer off");
|
||||||
|
}
|
||||||
var home = Planet.FromBase(0f, -12f);
|
var home = Planet.FromBase(0f, -12f);
|
||||||
Me.Teleport(Planet.OnSurface(home) + home * 0.2f);
|
Me.Teleport(Planet.OnSurface(home) + home * 0.2f);
|
||||||
yield return new WaitForSeconds(1f);
|
yield return new WaitForSeconds(1f);
|
||||||
@ -48,44 +92,35 @@ namespace GrassCutter
|
|||||||
var loop = recs.FirstOrDefault(r => r.name == "PlayerLoop").rec;
|
var loop = recs.FirstOrDefault(r => r.name == "PlayerLoop").rec;
|
||||||
outp.AppendLine($"recording {recs.Count} markers, PlayerLoop {(loop.Valid ? "ok" : "MISSING")}");
|
outp.AppendLine($"recording {recs.Count} markers, PlayerLoop {(loop.Valid ? "ok" : "MISSING")}");
|
||||||
|
|
||||||
var total = new Dictionary<string, double>();
|
// three things a player does: walk about the base, drive a mower across fresh meadow, run through the meadow
|
||||||
var spikes = new List<(int frame, double ms, string top)>();
|
yield return Phase(outp, recs, loop, "walk at the base", 25f, () => Ctl.BotMove = new Vector2(0.3f, 1f), f => { if (f % 120 == 0) Ctl.BotMove = new Vector2(-Ctl.BotMove.x, Ctl.BotMove.y); });
|
||||||
var frames = new List<double>();
|
|
||||||
float until = Time.realtimeSinceStartup + 40f;
|
|
||||||
int f = 0;
|
|
||||||
// walk around a little, as a player would
|
|
||||||
Ctl.BotMove = new Vector2(0.3f, 1f);
|
|
||||||
while (Time.realtimeSinceStartup < until)
|
|
||||||
{
|
|
||||||
yield return null;
|
|
||||||
f++;
|
|
||||||
if (f % 120 == 0) Ctl.BotMove = new Vector2(-Ctl.BotMove.x, Ctl.BotMove.y);
|
|
||||||
double frameMs = loop.Valid ? loop.LastValue / 1e6 : Time.unscaledDeltaTime * 1000.0;
|
|
||||||
frames.Add(frameMs);
|
|
||||||
var busy = new List<(string, double)>();
|
|
||||||
foreach (var (name, rec) in recs)
|
|
||||||
{
|
|
||||||
if (!rec.Valid) continue;
|
|
||||||
double ms = rec.LastValue / 1e6;
|
|
||||||
if (ms <= 0 || ms > 1000) continue;
|
|
||||||
total[name] = (total.TryGetValue(name, out var t) ? t : 0) + ms;
|
|
||||||
if (frameMs > 25 && ms > 1 && ms < 1000 && (name.StartsWith("GC:") || name.StartsWith("Physics.Simulate") || name.StartsWith("Semaphore") || name.StartsWith("GC.") || name.StartsWith("Gfx."))) busy.Add((name, ms));
|
|
||||||
}
|
|
||||||
if (frameMs > 25)
|
|
||||||
spikes.Add((f, frameMs, string.Join(", ", busy.OrderByDescending(b => b.Item2).Take(10).Select(b => $"{b.Item1} {b.Item2:0.0}"))));
|
|
||||||
}
|
|
||||||
Ctl.BotMove = Vector2.zero;
|
Ctl.BotMove = Vector2.zero;
|
||||||
|
var ride = Vehicle.All.Where(v => v && v.Def.width > 0f).OrderByDescending(v => v.Def.width).FirstOrDefault();
|
||||||
|
if (ride)
|
||||||
|
{
|
||||||
|
var far = Planet.FromBase(90f, 160f);
|
||||||
|
var up = far;
|
||||||
|
ride.ServerPut(Planet.OnSurface(far) + up * 1.2f, Quaternion.LookRotation(Vector3.ProjectOnPlane(Vector3.forward, up), up));
|
||||||
|
yield return new WaitForSeconds(1f);
|
||||||
|
Me.Teleport(ride.transform.position + ride.transform.right * 3f);
|
||||||
|
yield return new WaitForSeconds(0.5f);
|
||||||
|
ride.Interact();
|
||||||
|
yield return new WaitForSeconds(1.5f);
|
||||||
|
ride.Tank.Value = 0f;
|
||||||
|
yield return Phase(outp, recs, loop, $"drive the {ride.kind} through the meadow", 40f, () => Ctl.BotMove = new Vector2(0.15f, 1f), f => { });
|
||||||
|
Ctl.BotMove = Vector2.zero;
|
||||||
|
ride.RequestExit();
|
||||||
|
yield return new WaitForSeconds(1.5f);
|
||||||
|
}
|
||||||
|
else outp.AppendLine("no mower to drive");
|
||||||
|
var run = Planet.FromBase(-150f, 120f);
|
||||||
|
Me.Teleport(Planet.OnSurface(run) + run * 0.3f);
|
||||||
|
yield return new WaitForSeconds(1f);
|
||||||
|
yield return Phase(outp, recs, loop, "run through the meadow", 25f, () => { Ctl.BotMove = new Vector2(0f, 1f); Ctl.BotSprint = true; }, f => { if (f % 200 == 0) Ctl.BotMove = new Vector2(Ctl.BotMove.x > 0 ? -0.4f : 0.4f, 1f); });
|
||||||
|
Ctl.BotMove = Vector2.zero;
|
||||||
|
Ctl.BotSprint = false;
|
||||||
foreach (var (_, rec) in recs) rec.Dispose();
|
foreach (var (_, rec) in recs) rec.Dispose();
|
||||||
|
|
||||||
frames.Sort();
|
|
||||||
double Pct(double p) => frames.Count == 0 ? 0 : frames[Mathf.Clamp((int)(frames.Count * p), 0, frames.Count - 1)];
|
|
||||||
outp.AppendLine($"{f} frames: mean {frames.Average():0.0} ms, median {Pct(0.5):0.0}, p95 {Pct(0.95):0.0}, p99 {Pct(0.99):0.0}, max {frames.LastOrDefault():0.0}; {spikes.Count} over 25 ms");
|
|
||||||
outp.AppendLine("— mean ms a frame, top markers —");
|
|
||||||
foreach (var kv in total.OrderByDescending(kv => kv.Value).Take(70))
|
|
||||||
outp.AppendLine($"{kv.Value / f,8:0.000} {kv.Key}");
|
|
||||||
outp.AppendLine("— slow frames —");
|
|
||||||
foreach (var s in spikes.OrderByDescending(s => s.ms).Take(25))
|
|
||||||
outp.AppendLine($"#{s.frame} {s.ms:0.0} ms: {s.top}");
|
|
||||||
float render = 0f;
|
float render = 0f;
|
||||||
yield return BotCapture.FrameCost(40, v => render = v);
|
yield return BotCapture.FrameCost(40, v => render = v);
|
||||||
outp.AppendLine($"render (camera at the base, GPU waited for): {render:0.0} ms");
|
outp.AppendLine($"render (camera at the base, GPU waited for): {render:0.0} ms");
|
||||||
|
|||||||
147
Assets/Scripts/Core/DemoBot.Replica.cs
Normal file
147
Assets/Scripts/Core/DemoBot.Replica.cs
Normal file
@ -0,0 +1,147 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace GrassCutter
|
||||||
|
{
|
||||||
|
public partial class DemoBot
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// -demorep host|client: what a client sees of the host's world. A grass train at Mk IV mowing its line (the
|
||||||
|
/// grass it takes must go on the client too, the train must stand the same), the client buying a machine of its
|
||||||
|
/// own and an upgrade for it, and driving it and hopping off (it must stay on the ground).
|
||||||
|
/// </summary>
|
||||||
|
IEnumerator ReplicaDemo(bool host)
|
||||||
|
{
|
||||||
|
string me = host ? "host" : "client";
|
||||||
|
yield return new WaitForSeconds(2f);
|
||||||
|
if (host) { TeamState.DeleteSave(); NetSession.Instance.HostLocal(); }
|
||||||
|
else { yield return new WaitForSeconds(10f); NetSession.Instance.JoinLocal("127.0.0.1"); }
|
||||||
|
while (!Me || !Ts) yield return null;
|
||||||
|
Quaternion Face(Vector3 p, Vector3 way) => Quaternion.LookRotation(Vector3.ProjectOnPlane(way, Planet.Up(p)), Planet.Up(p));
|
||||||
|
var sAt = Soil17(-40f, -70f);
|
||||||
|
if (host)
|
||||||
|
{
|
||||||
|
Clock(11f);
|
||||||
|
Ts.ServerSetMoney(500000d);
|
||||||
|
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);
|
||||||
|
piece.Tier.Value = GameDefs.MaxTier;
|
||||||
|
var tr = piece.GetComponent<Train>();
|
||||||
|
yield return new WaitForSeconds(0.5f);
|
||||||
|
// its first stretch laid: it goes home mowing out either side
|
||||||
|
tr.State = new[] { (float)tr.Target.Value, tr.LineLength, tr.LineLength, 1f, 0f };
|
||||||
|
}
|
||||||
|
float t0 = Time.time;
|
||||||
|
while (PlayerAgent.All.Count < 2 && Time.time - t0 < 60f) yield return null;
|
||||||
|
Log($"{me}: {PlayerAgent.All.Count} players");
|
||||||
|
if (PlayerAgent.All.Count < 2) { Application.Quit(); yield break; }
|
||||||
|
yield return new WaitForSeconds(4f);
|
||||||
|
var other = PlayerAgent.All.Find(p => p != Me);
|
||||||
|
Log($"{me}: my save key '{Me.SaveId}', the other's '{other.SaveId}'");
|
||||||
|
|
||||||
|
// the train mows: the same strip on both
|
||||||
|
var train = Train.All.Count > 0 ? Train.All[0] : null;
|
||||||
|
if (!train) { Log($"{me}: no train"); Application.Quit(); yield break; }
|
||||||
|
MowMap.Count();
|
||||||
|
float mown0 = MowMap.MownArea();
|
||||||
|
float at0 = train.At.Value;
|
||||||
|
yield return new WaitForSeconds(12f);
|
||||||
|
MowMap.Count();
|
||||||
|
Log($"{me}: train went {at0 - train.At.Value:0} m, {MowMap.MownArea() - mown0:0} m² mown meanwhile, {train.Hopper.Value:0} kg on board");
|
||||||
|
var lp = train.loco.position;
|
||||||
|
var lu = Planet.Up(lp);
|
||||||
|
Log($"{me}: loco at {lp.x:0.00},{lp.y:0.00},{lp.z:0.00} leaning {Vector3.Angle(train.loco.up, lu):0.0} deg, {Planet.Altitude(lp):0.00} m up; wagon 1 at {(train.wagons.Length > 0 && train.wagons[0] ? train.wagons[0].position.ToString("F2") : "-")}, {train.LineLength:0} m of line");
|
||||||
|
Time.timeScale = 1f;
|
||||||
|
yield return Look(host ? "rep_host_train" : "rep_client_train", lp + lu * 8f + Vector3.Cross(lu, train.loco.forward).normalized * 15f + train.loco.forward * 10f, lp - train.loco.forward * 10f, 0.4f);
|
||||||
|
|
||||||
|
// the client buys a machine, finds it is its own, and upgrades it
|
||||||
|
Vehicle mine = null;
|
||||||
|
if (!host)
|
||||||
|
{
|
||||||
|
Ts.BuyVehicleRpc((byte)VehicleKind.Tractor, 0UL);
|
||||||
|
yield return new WaitForSeconds(3f);
|
||||||
|
mine = Vehicle.Mine(VehicleKind.Tractor, Me.SaveId);
|
||||||
|
Log($"client: bought a tractor, the garage sees it as mine: {(mine ? "yes" : "NO")}");
|
||||||
|
if (mine)
|
||||||
|
{
|
||||||
|
int was = mine.Level(TuneId.Motors);
|
||||||
|
Ts.TuneVehicleRpc(mine.NetworkObjectId, (byte)TuneId.Motors);
|
||||||
|
yield return new WaitForSeconds(1.5f);
|
||||||
|
Log($"client: motors {was} -> {mine.Level(TuneId.Motors)}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else yield return new WaitForSeconds(4.5f);
|
||||||
|
yield return new WaitForSeconds(1f);
|
||||||
|
if (host)
|
||||||
|
{
|
||||||
|
var theirs = Vehicle.Mine(VehicleKind.Tractor, other.SaveId);
|
||||||
|
Log($"host: the client's tractor {(theirs ? "is here" : "MISSING")}, mine {(Vehicle.Mine(VehicleKind.Tractor, Me.SaveId) ? "too" : "none (right)")}");
|
||||||
|
}
|
||||||
|
|
||||||
|
// every other kind of purchase, from the client: a matrix perk, a tool, gear, a belt slot, a building's upgrade
|
||||||
|
BuildPiece robot = null, garage = null;
|
||||||
|
if (host)
|
||||||
|
{
|
||||||
|
var rAt = Soil17(30f, -30f);
|
||||||
|
robot = Spawner.Instance.SpawnPiece(PieceId.RobotI, rAt, Face(rAt, Vector3.forward), Vector3.zero, true);
|
||||||
|
var gAt = Soil17(45f, 20f);
|
||||||
|
garage = Spawner.Instance.SpawnPiece(PieceId.Garage, gAt, Face(gAt, Vector3.forward), Vector3.zero, true);
|
||||||
|
}
|
||||||
|
yield return new WaitForSeconds(2f);
|
||||||
|
robot = BuildPiece.All.Find(x => x && x.piece == PieceId.RobotI);
|
||||||
|
garage = BuildPiece.All.Find(x => x && x.piece == PieceId.Garage);
|
||||||
|
if (!host)
|
||||||
|
{
|
||||||
|
PerkDef perk = null;
|
||||||
|
foreach (var d in GameDefs.Perks) if (Ts.Level(d.id) == 0 && Ts.PerkAvailable(d)) { perk = d; break; }
|
||||||
|
int slots = Me.BeltSlots.Value, tier = robot ? robot.Tier.Value : -1;
|
||||||
|
double cash = Ts.Money.Value;
|
||||||
|
if (perk != null) Ts.BuyPerkRpc((int)perk.id);
|
||||||
|
Ts.BuyToolRpc((byte)ToolId.Sickle);
|
||||||
|
Ts.BuyGearRpc((byte)GearId.Jetpack);
|
||||||
|
Ts.BuyBeltSlotRpc();
|
||||||
|
if (robot) robot.UpgradeRpc();
|
||||||
|
yield return new WaitForSeconds(2f);
|
||||||
|
Log($"client buys: perk {(perk != null ? perk.id + " " + Ts.Level(perk.id) : "none available")}, sickle {(Me.Owns(ToolId.Sickle) ? "yes" : "NO")}, jetpack {(Me.HasGear(GearId.Jetpack) ? "yes" : "NO")}, belt slots {slots} -> {Me.BeltSlots.Value}, robot {(robot ? "Mk " + (tier + 1) + " -> Mk " + (robot.Tier.Value + 1) : "MISSING")}, spent {cash - Ts.Money.Value:0}");
|
||||||
|
|
||||||
|
// and the screens, as the client sees them
|
||||||
|
BotCapture.From = null;
|
||||||
|
if (garage) { UIRoot.I.OpenGarage(garage.GetComponent<Garage>(), VehicleKind.Tractor); yield return new WaitForSeconds(1.2f); yield return Shot("rep_client_garage"); UIRoot.I.CloseTopModal(); yield return new WaitForSeconds(0.4f); }
|
||||||
|
if (robot) { UIRoot.I.OpenPiece(robot); yield return new WaitForSeconds(1.2f); yield return Shot("rep_client_robot"); UIRoot.I.CloseTopModal(); yield return new WaitForSeconds(0.4f); }
|
||||||
|
UIRoot.I.OpenShop(); yield return new WaitForSeconds(1.2f); yield return Shot("rep_client_shop"); UIRoot.I.CloseTopModal(); yield return new WaitForSeconds(0.4f);
|
||||||
|
UIRoot.I.OpenSupply(); yield return new WaitForSeconds(1.2f); yield return Shot("rep_client_supply"); UIRoot.I.CloseTopModal(); yield return new WaitForSeconds(0.4f);
|
||||||
|
}
|
||||||
|
else yield return new WaitForSeconds(12f);
|
||||||
|
yield return new WaitForSeconds(1f);
|
||||||
|
if (host) Log($"host sees: robot Mk {(robot ? robot.Tier.Value + 1 : 0)}, the client owns a sickle {(other.Owns(ToolId.Sickle) ? "yes" : "NO")}, perks bought {Ts.Installs - 1}");
|
||||||
|
|
||||||
|
// the client drives it and hops off; both watch how it stands
|
||||||
|
var v = Vehicle.All.Find(x => x && x.kind == VehicleKind.Tractor);
|
||||||
|
if (!host && v)
|
||||||
|
{
|
||||||
|
Me.Teleport(v.transform.position + v.transform.right * 3f + Planet.Up(v.transform.position));
|
||||||
|
yield return new WaitForSeconds(0.5f);
|
||||||
|
v.Interact();
|
||||||
|
yield return new WaitForSeconds(1f);
|
||||||
|
Ctl.BotMove = new Vector2(0.3f, 1f);
|
||||||
|
yield return new WaitForSeconds(5f);
|
||||||
|
Ctl.BotMove = Vector2.zero;
|
||||||
|
yield return new WaitForSeconds(1f);
|
||||||
|
v.RequestExit();
|
||||||
|
}
|
||||||
|
else yield return new WaitForSeconds(7.5f);
|
||||||
|
float low = 0f;
|
||||||
|
if (v) for (float t = 0f; t < 4f; t += Time.deltaTime) { low = Mathf.Min(low, Lowest(v)); yield return null; }
|
||||||
|
if (v) Log($"{me}: after the client hopped off, deepest {low:0.00} m, now {Lowest(v):0.00} m, driver {(v.HasDriver ? "STILL" : "none")}, owned by {(v.IsOwnedByServer ? "the host" : "a client")}, sinks caught here {Vehicle.Sinks}");
|
||||||
|
if (v)
|
||||||
|
{
|
||||||
|
var vp = v.transform.position;
|
||||||
|
var vu = Planet.Up(vp);
|
||||||
|
yield return Look(host ? "rep_host_tractor" : "rep_client_tractor", vp + vu * 2.5f + v.transform.right * 8f, vp, 0.3f);
|
||||||
|
}
|
||||||
|
yield return new WaitForSeconds(3f);
|
||||||
|
Log($"{me}: rep done");
|
||||||
|
Application.Quit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
11
Assets/Scripts/Core/DemoBot.Replica.cs.meta
Normal file
11
Assets/Scripts/Core/DemoBot.Replica.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b0d9abdb827442aea18206094c4586b8
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
40
Assets/Scripts/Core/DemoBot.Shop.cs
Normal file
40
Assets/Scripts/Core/DemoBot.Shop.cs
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace GrassCutter
|
||||||
|
{
|
||||||
|
public partial class DemoBot
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// -demoshop [slot]: the upgrade matrix on a save (a fresh planet without one), every tab, with a node picked in each
|
||||||
|
/// and the detail panel showing it; then the same with a pile of money, so the affordable look shows too.
|
||||||
|
/// </summary>
|
||||||
|
IEnumerator ShopDemo(int slot)
|
||||||
|
{
|
||||||
|
if (slot > 0) SaveSlots.Current = slot - 1;
|
||||||
|
else TeamState.DeleteSave();
|
||||||
|
yield return new WaitForSeconds(2f);
|
||||||
|
NetSession.Instance.HostLocal();
|
||||||
|
while (!Me || !Ts) yield return null;
|
||||||
|
yield return new WaitForSeconds(3f);
|
||||||
|
Log($"perks {Ts.Installs} / {TeamState.TotalInstalls}, money {Ts.Money.Value:0}");
|
||||||
|
for (int pass = 0; pass < 2; pass++)
|
||||||
|
{
|
||||||
|
if (pass == 1) Ts.ServerSetMoney(Ts.Money.Value + 250000d);
|
||||||
|
UIRoot.I.OpenShop();
|
||||||
|
yield return new WaitForSeconds(1.2f);
|
||||||
|
var shop = UIRoot.I.Shop;
|
||||||
|
foreach (var tree in ShopScreen.TerminalTrees)
|
||||||
|
{
|
||||||
|
shop.SetTree(tree, false);
|
||||||
|
yield return new WaitForSeconds(0.6f);
|
||||||
|
yield return Shot($"shop{pass}_{(int)tree}_{tree}");
|
||||||
|
}
|
||||||
|
UIRoot.I.CloseTopModal();
|
||||||
|
yield return new WaitForSeconds(0.5f);
|
||||||
|
}
|
||||||
|
Log("shop done");
|
||||||
|
Application.Quit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Assets/Scripts/Core/DemoBot.Shop.cs.meta
Normal file
2
Assets/Scripts/Core/DemoBot.Shop.cs.meta
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8a69e95e36ced72458cec3d35add3642
|
||||||
116
Assets/Scripts/Core/DemoBot.Sink.cs
Normal file
116
Assets/Scripts/Core/DemoBot.Sink.cs
Normal file
@ -0,0 +1,116 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace GrassCutter
|
||||||
|
{
|
||||||
|
public partial class DemoBot
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// -demosink: a tractor on the steepest bit of meadow round the base. Each round drives it up the slope, hops off,
|
||||||
|
/// and drops it from eight metres; the log says how far below the ground its lowest corner or its nose went. The
|
||||||
|
/// first round has the hard floor off (how it was), the second on.
|
||||||
|
/// </summary>
|
||||||
|
IEnumerator SinkDemo()
|
||||||
|
{
|
||||||
|
TeamState.DeleteSave();
|
||||||
|
yield return new WaitForSeconds(2f);
|
||||||
|
NetSession.Instance.HostLocal();
|
||||||
|
while (!Me || !Ts) yield return null;
|
||||||
|
yield return new WaitForSeconds(3f);
|
||||||
|
Clock(11f);
|
||||||
|
Ts.ServerSetMoney(100000d);
|
||||||
|
|
||||||
|
// the steepest clear slope within 70 m
|
||||||
|
Vector3 steep = Soil17(60f, 40f), downhill = Vector3.forward;
|
||||||
|
float worst = -1f;
|
||||||
|
for (int a = 0; a < 48; a++)
|
||||||
|
for (float r = 30f; r <= 70f; r += 8f)
|
||||||
|
{
|
||||||
|
var q = Soil17(Mathf.Cos(a * 7.5f * Mathf.Deg2Rad) * r, Mathf.Sin(a * 7.5f * Mathf.Deg2Rad) * r);
|
||||||
|
var u = Planet.Up(q);
|
||||||
|
var e1 = Vector3.Cross(u, Vector3.forward).normalized;
|
||||||
|
var e2 = Vector3.Cross(u, e1);
|
||||||
|
float h1 = Planet.Altitude(q + e1 * 2f + u * 0f) - Planet.Altitude(q - e1 * 2f);
|
||||||
|
float h2 = Planet.Altitude(q + e2 * 2f) - Planet.Altitude(q - e2 * 2f);
|
||||||
|
float slope = Mathf.Atan2(new Vector2(h1, h2).magnitude, 4f) * Mathf.Rad2Deg;
|
||||||
|
if (slope > worst && !Ts.OnDeck(q) && !(Ground.Instance && Ground.Instance.RockAt(q)) && !Physics.CheckSphere(q + u * 3f, 9f, 1 << Layers.Default, QueryTriggerInteraction.Ignore))
|
||||||
|
{
|
||||||
|
worst = slope; steep = q;
|
||||||
|
// altitude grows the way the ground falls away under the probe, so "uphill" is against it
|
||||||
|
downhill = (e1 * h1 + e2 * h2).normalized;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var up = Planet.Up(steep);
|
||||||
|
var start = steep + downhill * 18f;
|
||||||
|
start = Planet.Surface(start);
|
||||||
|
var uphill = Vector3.ProjectOnPlane(-downhill, Planet.Up(start)).normalized;
|
||||||
|
Log($"slope {worst:0} deg at {steep}");
|
||||||
|
|
||||||
|
var v = Spawner.Instance.SpawnVehicle(VehicleKind.Tractor, Me.SaveId, start + Planet.Up(start) * 0.6f, Quaternion.LookRotation(uphill, Planet.Up(start)));
|
||||||
|
yield return new WaitForSeconds(1.5f);
|
||||||
|
if (!v) { Log("tractor NOT spawned"); Application.Quit(); yield break; }
|
||||||
|
|
||||||
|
for (int round = 0; round < 2; round++)
|
||||||
|
{
|
||||||
|
Vehicle.NoFloor = round == 0;
|
||||||
|
string tag = round == 0 ? "floor OFF" : "floor ON ";
|
||||||
|
v.ServerPut(start + Planet.Up(start) * 0.6f, Quaternion.LookRotation(uphill, Planet.Up(start)));
|
||||||
|
yield return new WaitForSeconds(2f);
|
||||||
|
int sinks = Vehicle.Sinks;
|
||||||
|
|
||||||
|
// up the slope, flat out
|
||||||
|
v.Interact();
|
||||||
|
yield return new WaitForSeconds(0.6f);
|
||||||
|
Ctl.BotMove = Vector2.up;
|
||||||
|
float climb = 0f;
|
||||||
|
for (float t = 0f; t < 5f; t += Time.fixedDeltaTime) { climb = Mathf.Min(climb, Lowest(v)); yield return new WaitForFixedUpdate(); }
|
||||||
|
Ctl.BotMove = Vector2.zero;
|
||||||
|
yield return new WaitForSeconds(1f);
|
||||||
|
if (round == 1) yield return Look("sink_climb", v.transform.position + Planet.Up(v.transform.position) * 1.5f + v.transform.right * 7f, v.transform.position, 0.3f);
|
||||||
|
|
||||||
|
// hop off and watch it stand
|
||||||
|
v.RequestExit();
|
||||||
|
float off = 0f;
|
||||||
|
for (float t = 0f; t < 4f; t += Time.fixedDeltaTime) { off = Mathf.Min(off, Lowest(v)); yield return new WaitForFixedUpdate(); }
|
||||||
|
float rest = Lowest(v);
|
||||||
|
|
||||||
|
// and dropped from eight metres
|
||||||
|
var p = v.transform.position;
|
||||||
|
v.ServerPut(p + Planet.Up(p) * 8f, v.transform.rotation);
|
||||||
|
float land = 0f;
|
||||||
|
for (float t = 0f; t < 5f; t += Time.fixedDeltaTime) { land = Mathf.Min(land, Lowest(v)); yield return new WaitForFixedUpdate(); }
|
||||||
|
Log($"{tag}: deepest on the climb {climb:0.00} m, after hopping off {off:0.00} m (at rest {rest:0.00}), landing {land:0.00} m, caught {Vehicle.Sinks - sinks} times, now {Planet.Altitude(v.transform.position):0.00} m up");
|
||||||
|
}
|
||||||
|
Vehicle.NoFloor = false;
|
||||||
|
// and the map, close in, with the sectors round here
|
||||||
|
Cheats.Run("tool all");
|
||||||
|
Me.Teleport(v.transform.position + v.transform.right * 4f + Planet.Up(v.transform.position));
|
||||||
|
yield return Sweep(Me.transform.position, new Vector3(0f, 0f, 1.6f), 3f);
|
||||||
|
UIRoot.I.OpenMap();
|
||||||
|
yield return new WaitForSeconds(1.5f);
|
||||||
|
BotCapture.From = null;
|
||||||
|
yield return Shot("sink_map");
|
||||||
|
Log($"map: {MapScreen.Drawn} sectors drawn close in, {MapScreen.Flipped} turned round");
|
||||||
|
UIRoot.I.CloseTopModal();
|
||||||
|
yield return new WaitForSeconds(0.3f);
|
||||||
|
UIRoot.I.OpenMap(1.6f);
|
||||||
|
yield return new WaitForSeconds(1.5f);
|
||||||
|
yield return Shot("sink_map_far");
|
||||||
|
Log("sink done");
|
||||||
|
Application.Quit();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>The lowest of its four corners, nose and tail, against the ground (below it is negative).</summary>
|
||||||
|
static float Lowest(Vehicle v)
|
||||||
|
{
|
||||||
|
float low = float.MaxValue;
|
||||||
|
var t = v.transform;
|
||||||
|
for (int x = -1; x <= 1; x += 2)
|
||||||
|
for (int z = -1; z <= 1; z += 2)
|
||||||
|
low = Mathf.Min(low, Planet.Altitude(t.TransformPoint(new Vector3(x * 0.5f * v.width, 0f, z * 0.42f * v.length))));
|
||||||
|
low = Mathf.Min(low, Planet.Altitude(t.TransformPoint(new Vector3(0f, 0f, 0.5f * v.length))));
|
||||||
|
low = Mathf.Min(low, Planet.Altitude(t.TransformPoint(new Vector3(0f, 0f, -0.5f * v.length))));
|
||||||
|
return low;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
11
Assets/Scripts/Core/DemoBot.Sink.cs.meta
Normal file
11
Assets/Scripts/Core/DemoBot.Sink.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 20733dbba1c04b8395fe845276378d8f
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
110
Assets/Scripts/Core/DemoBot.Train.cs
Normal file
110
Assets/Scripts/Core/DemoBot.Train.cs
Normal file
@ -0,0 +1,110 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace GrassCutter
|
||||||
|
{
|
||||||
|
public partial class DemoBot
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// -demotrain: a fresh planet; a grass train at Mk IV (six wagons), its first stretch finished at once so it lays on
|
||||||
|
/// to the next station, a full tractor unloading in the first station's yard, the train picking that up and bringing
|
||||||
|
/// it home, and the host riding in the cab and driving it.
|
||||||
|
/// </summary>
|
||||||
|
IEnumerator TrainDemo()
|
||||||
|
{
|
||||||
|
TeamState.DeleteSave();
|
||||||
|
yield return new WaitForSeconds(2f);
|
||||||
|
NetSession.Instance.HostLocal();
|
||||||
|
while (!Me || !Ts) yield return null;
|
||||||
|
yield return new WaitForSeconds(3f);
|
||||||
|
Clock(11f);
|
||||||
|
Ts.ServerSetMoney(500000d);
|
||||||
|
Quaternion Face(Vector3 p, Vector3 way) => Quaternion.LookRotation(Vector3.ProjectOnPlane(way, Planet.Up(p)), Planet.Up(p));
|
||||||
|
|
||||||
|
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;
|
||||||
|
if (!train) { Log("train MISSING"); Application.Quit(); yield break; }
|
||||||
|
piece.Tier.Value = GameDefs.MaxTier;
|
||||||
|
yield return new WaitForSeconds(0.5f);
|
||||||
|
int wagonsOn = 0;
|
||||||
|
foreach (var w in train.wagons) if (w && w.gameObject.activeSelf) wagonsOn++;
|
||||||
|
Log($"train: Mk {piece.Tier.Value + 1}, {train.wagons.Length} wagons made, {wagonsOn} on the rails, line {train.LineLength:0} m to {train.Stops} station(s)");
|
||||||
|
|
||||||
|
// the first stretch done at once: laid, and the side cutters out as far as they go
|
||||||
|
float first = train.LineLength;
|
||||||
|
train.State = new[] { (float)train.Target.Value, first, first, 99f, 0f };
|
||||||
|
yield return new WaitForSeconds(1f);
|
||||||
|
Log($"extended: {train.Stops} stations, line {train.LineLength:0} m (was {first:0}), laying {train.Laid.Value:0} m, runs {train.Runs.Value}");
|
||||||
|
|
||||||
|
// and the second laid too: it starts mowing that stretch on the way home
|
||||||
|
float whole = train.LineLength;
|
||||||
|
train.State = new[] { (float)train.Target.Value, whole, whole, 1f, 0f, (float)(train.Legs.Value & 0xFFFFFF), (float)((train.Legs.Value >> 24) & 0xFFFFFF) };
|
||||||
|
yield return new WaitForSeconds(0.5f);
|
||||||
|
var yards = new List<(Vector3 at, string name)>();
|
||||||
|
Train.Yards(yards);
|
||||||
|
Log($"yards: {yards.Count} ({string.Join(", ", yards.ConvertAll(y => y.name))})");
|
||||||
|
if (yards.Count == 0) { Application.Quit(); yield break; }
|
||||||
|
|
||||||
|
// a full tractor unloads in the first yard
|
||||||
|
var yAt = yards[0].at;
|
||||||
|
var tractor = Spawner.Instance.SpawnVehicle(VehicleKind.Tractor, Me.SaveId, yAt + Planet.Up(yAt) * 1.2f, Face(yAt, Vector3.right));
|
||||||
|
yield return new WaitForSeconds(1f);
|
||||||
|
if (tractor)
|
||||||
|
{
|
||||||
|
tractor.Tank.Value = tractor.Capacity;
|
||||||
|
float full = tractor.Tank.Value;
|
||||||
|
yield return new WaitForSeconds(8f);
|
||||||
|
float waiting = 0f;
|
||||||
|
foreach (var b in train.Bins) waiting += b;
|
||||||
|
Log($"tractor unloaded {full - tractor.Tank.Value:0} kg in the yard (unloading {tractor.Unloading}), {waiting:0} kg waiting for the train");
|
||||||
|
}
|
||||||
|
else Log("tractor NOT spawned");
|
||||||
|
|
||||||
|
// where the line turns round the first station
|
||||||
|
var up0 = Planet.Up(yAt);
|
||||||
|
yield return Look("train_junction", yAt + up0 * 45f + Vector3.ProjectOnPlane(Vector3.forward, up0).normalized * -30f, yAt, 1f);
|
||||||
|
|
||||||
|
// the train comes home through the yard, picks it up, and ships it all at the base
|
||||||
|
double money = Ts.Money.Value;
|
||||||
|
Time.timeScale = 8f;
|
||||||
|
float picked = 0f;
|
||||||
|
for (int i = 0; i < 90 && train.At.Value > 40f; i++)
|
||||||
|
{
|
||||||
|
yield return new WaitForSecondsRealtime(1f);
|
||||||
|
picked = Mathf.Max(picked, train.Hopper.Value);
|
||||||
|
}
|
||||||
|
yield return new WaitForSecondsRealtime(3f);
|
||||||
|
Time.timeScale = 1f;
|
||||||
|
Log($"home: at {train.At.Value:0} m, most on board {picked:0} kg, now {train.Hopper.Value:0} kg, earned {Ts.Money.Value - money:0}");
|
||||||
|
var lp = train.loco.position;
|
||||||
|
var lu = Planet.Up(lp);
|
||||||
|
yield return Look("train_six_wagons", lp + lu * 7f + Vector3.Cross(lu, train.loco.forward).normalized * 16f - train.loco.forward * 14f, lp - train.loco.forward * 14f, 1f);
|
||||||
|
|
||||||
|
// the host gets in the cab and drives it up the line
|
||||||
|
train.ServerBoard(Unity.Netcode.NetworkManager.Singleton.LocalClientId);
|
||||||
|
yield return new WaitForSeconds(1f);
|
||||||
|
Log($"in the cab: {(Me.RidingTrain == train ? "yes" : "NO")}, {Vector3.Distance(Me.transform.position, train.CabFloor):0.00} m from the cab floor");
|
||||||
|
float from = train.At.Value;
|
||||||
|
train.DriveRpc(1);
|
||||||
|
yield return new WaitForSeconds(4f);
|
||||||
|
Log($"driven: {train.At.Value - from:0} m on in 4 s, rider still {Vector3.Distance(Me.transform.position, train.CabFloor):0.00} m from the floor");
|
||||||
|
BotCapture.From = null;
|
||||||
|
yield return Shot("train_cab");
|
||||||
|
train.DriveRpc(0);
|
||||||
|
yield return new WaitForSeconds(0.5f);
|
||||||
|
float stopped = train.At.Value;
|
||||||
|
yield return new WaitForSeconds(1f);
|
||||||
|
Log($"lever back: moved {train.At.Value - stopped:0.0} m in a second");
|
||||||
|
train.Leave();
|
||||||
|
yield return new WaitForSeconds(1f);
|
||||||
|
Log($"off: riding {(Me.RidingTrain ? "STILL" : "no")}, {Vector3.Distance(Me.transform.position, train.loco.position):0.0} m from the loco, altitude {Planet.Altitude(Me.transform.position):0.00} m, rider {(train.Ridden ? "STILL" : "none")}");
|
||||||
|
yield return new WaitForSeconds(3f);
|
||||||
|
Log($"on its own again: at {train.At.Value:0} m, runs {train.Runs.Value}");
|
||||||
|
Log("train done");
|
||||||
|
Application.Quit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Assets/Scripts/Core/DemoBot.Train.cs.meta
Normal file
2
Assets/Scripts/Core/DemoBot.Train.cs.meta
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 242ecd8155aa4caf865239337df2727d
|
||||||
77
Assets/Scripts/Core/DemoBot.Tube.cs
Normal file
77
Assets/Scripts/Core/DemoBot.Tube.cs
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace GrassCutter
|
||||||
|
{
|
||||||
|
public partial class DemoBot
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// -demoyt: a long YouTube video on the phone for well over the couple of minutes it used to stop at, what the page
|
||||||
|
/// thinks it runs in, the video full screen with the phone on its side, and the tool belt out of the way of the phone.
|
||||||
|
/// </summary>
|
||||||
|
IEnumerator TubeDemo()
|
||||||
|
{
|
||||||
|
TeamState.DeleteSave();
|
||||||
|
yield return new WaitForSeconds(2f);
|
||||||
|
NetSession.Instance.HostLocal();
|
||||||
|
while (!Me || !Ts) yield return null;
|
||||||
|
yield return new WaitForSeconds(2f);
|
||||||
|
var at = new Vector3(-16f, Soil + 0.1f, 14f);
|
||||||
|
Me.Teleport(at);
|
||||||
|
Me.LookAt(at + new Vector3(-6f, 1.4f, 9f));
|
||||||
|
yield return new WaitForSeconds(0.8f);
|
||||||
|
var phone = Phone.I;
|
||||||
|
phone.Show(PhoneMode.Side);
|
||||||
|
yield return new WaitForSeconds(0.6f);
|
||||||
|
phone.Show(PhoneMode.Up);
|
||||||
|
yield return new WaitForSeconds(0.6f);
|
||||||
|
var scr = phone.Screen;
|
||||||
|
var web = scr.Web;
|
||||||
|
scr.Open("https://m.youtube.com/watch?v=aqz-KE-bpKQ");
|
||||||
|
yield return Until(() => web.Url != null && web.Url.Contains("watch"), 30f);
|
||||||
|
yield return new WaitForSeconds(4f);
|
||||||
|
yield return Ask(web, "String(navigator.webdriver)+' '+(navigator.userAgentData?navigator.userAgentData.brands.map(b=>b.brand).join('/')+' '+navigator.userAgentData.platform+' mobile '+navigator.userAgentData.mobile:'no hints')");
|
||||||
|
Log($"the page sees: webdriver {_said}");
|
||||||
|
yield return Ask(web, "(()=>{const v=document.querySelector('video');if(!v)return 'no video';v.play().catch(()=>{});return 'playing'})()");
|
||||||
|
BotCapture.From = null;
|
||||||
|
yield return Shot("yt_1_up");
|
||||||
|
const string state = "(()=>{const v=document.querySelector('video');const e=document.querySelector('.ytp-error,ytm-player-error-message-renderer,.player-error,.ytp-error-content');" +
|
||||||
|
"return (v?Math.round(v.currentTime)+' s, paused '+v.paused:'no video')+(e&&e.offsetParent?' ERROR '+e.innerText.slice(0,90).replace(/\\s+/g,' '):'')})()";
|
||||||
|
for (int i = 1; i <= (CommandLine.Has("-demoytlong") ? 10 : 1); i++)
|
||||||
|
{
|
||||||
|
yield return new WaitForSecondsRealtime(20f);
|
||||||
|
yield return Ask(web, state);
|
||||||
|
Log($"after {i * 20} s: {_said}");
|
||||||
|
if (i == 5) yield return Shot("yt_2_100s");
|
||||||
|
}
|
||||||
|
yield return Shot("yt_3_200s");
|
||||||
|
|
||||||
|
// on its side and full screen: the video must fill the page, square on
|
||||||
|
scr.Turn();
|
||||||
|
yield return new WaitForSeconds(1.5f);
|
||||||
|
yield return Ask(web, "(()=>{const p=document.querySelector('.html5-video-player')||document.querySelector('video');if(!p)return Promise.resolve('nothing to fill');" +
|
||||||
|
"return p.requestFullscreen().then(()=>new Promise(r=>setTimeout(r,800))).then(()=>{const b=document.fullscreenElement.getBoundingClientRect();" +
|
||||||
|
"return 'full screen at '+Math.round(b.x)+','+Math.round(b.y)+' size '+Math.round(b.width)+'x'+Math.round(b.height)+', page '+innerWidth+'x'+innerHeight+', scrolled '+scrollY}).catch(e=>'refused: '+e.message)})()");
|
||||||
|
Log($"wide, {_said} (phone css {web.CssW}x{web.CssH})");
|
||||||
|
yield return Shot("yt_4_full");
|
||||||
|
yield return Ask(web, state);
|
||||||
|
Log($"full screen: {_said}");
|
||||||
|
// a page of our own that goes full screen on a real tap, the way a site's own button does
|
||||||
|
scr.Open("data:text/html,<!doctype html><meta name=viewport content='width=device-width,initial-scale=1'><body style='margin:0;height:3000px;background:%23246'>" +
|
||||||
|
"<div id=b style='position:absolute;left:0;top:600px;width:100%25;height:300px;background:%23e33;font:40px sans-serif;color:white'>go full</div>" +
|
||||||
|
"<script>scrollTo(0,500);b.addEventListener('click',()=>b.requestFullscreen().catch(e=>b.dataset.e=e.message))</script>");
|
||||||
|
yield return Until(() => web.Url != null && web.Url.StartsWith("data:"), 15f);
|
||||||
|
yield return new WaitForSeconds(1.5f);
|
||||||
|
var tap = scr.PageAt(0.5f, 0.5f);
|
||||||
|
scr.Pointer(tap, true, true, false);
|
||||||
|
yield return null;
|
||||||
|
scr.Pointer(tap, false, false, true);
|
||||||
|
yield return new WaitForSeconds(1.5f);
|
||||||
|
yield return Ask(web, "(()=>{const f=document.fullscreenElement;if(!f)return 'not full screen '+(b.dataset.e||'');const r=f.getBoundingClientRect();return 'at '+Math.round(r.x)+','+Math.round(r.y)+' size '+Math.round(r.width)+'x'+Math.round(r.height)+', page '+innerWidth+'x'+innerHeight})()");
|
||||||
|
Log($"full screen by a tap: {_said} (phone css {web.CssW}x{web.CssH})");
|
||||||
|
yield return Shot("yt_5_tapfull");
|
||||||
|
Log("yt done");
|
||||||
|
Application.Quit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
11
Assets/Scripts/Core/DemoBot.Tube.cs.meta
Normal file
11
Assets/Scripts/Core/DemoBot.Tube.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 08498c5e737e424abacc3673ab39c783
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@ -2957,6 +2957,11 @@ namespace GrassCutter
|
|||||||
yield return TwoPlayers(role == "host");
|
yield return TwoPlayers(role == "host");
|
||||||
yield break;
|
yield break;
|
||||||
}
|
}
|
||||||
|
if (CommandLine.Get("-demorep") is string rep)
|
||||||
|
{
|
||||||
|
yield return ReplicaDemo(rep == "host");
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
if (CommandLine.Get("-democrowd") is string crowd)
|
if (CommandLine.Get("-democrowd") is string crowd)
|
||||||
{
|
{
|
||||||
yield return Crowd(crowd == "host");
|
yield return Crowd(crowd == "host");
|
||||||
@ -3003,11 +3008,36 @@ namespace GrassCutter
|
|||||||
yield return Sizes();
|
yield return Sizes();
|
||||||
yield break;
|
yield break;
|
||||||
}
|
}
|
||||||
|
if (CommandLine.Get("-demogpu") is string gpuSlot)
|
||||||
|
{
|
||||||
|
yield return Gpu(int.Parse(gpuSlot));
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
if (CommandLine.Get("-demoperf") is string perfSlot)
|
if (CommandLine.Get("-demoperf") is string perfSlot)
|
||||||
{
|
{
|
||||||
yield return Perf(int.Parse(perfSlot));
|
yield return Perf(int.Parse(perfSlot));
|
||||||
yield break;
|
yield break;
|
||||||
}
|
}
|
||||||
|
if (CommandLine.Has("-demosink"))
|
||||||
|
{
|
||||||
|
yield return SinkDemo();
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
if (CommandLine.Has("-demotrain"))
|
||||||
|
{
|
||||||
|
yield return TrainDemo();
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
if (CommandLine.Has("-demoshop"))
|
||||||
|
{
|
||||||
|
yield return ShopDemo(int.TryParse(CommandLine.Get("-demoshop"), out int shopSlot) ? shopSlot : 0);
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
if (CommandLine.Has("-demoauto"))
|
||||||
|
{
|
||||||
|
yield return AutoDemo();
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
if (CommandLine.Has("-demobots"))
|
if (CommandLine.Has("-demobots"))
|
||||||
{
|
{
|
||||||
yield return Bots();
|
yield return Bots();
|
||||||
@ -3048,6 +3078,16 @@ namespace GrassCutter
|
|||||||
yield return gameObject.AddComponent<Trailer>().Shoot(folder);
|
yield return gameObject.AddComponent<Trailer>().Shoot(folder);
|
||||||
yield break;
|
yield break;
|
||||||
}
|
}
|
||||||
|
if (CommandLine.Has("-demoend"))
|
||||||
|
{
|
||||||
|
yield return DemoEndDemo();
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
|
if (CommandLine.Has("-demoyt"))
|
||||||
|
{
|
||||||
|
yield return TubeDemo();
|
||||||
|
yield break;
|
||||||
|
}
|
||||||
if (CommandLine.Has("-demophone"))
|
if (CommandLine.Has("-demophone"))
|
||||||
{
|
{
|
||||||
yield return PhoneTest();
|
yield return PhoneTest();
|
||||||
|
|||||||
@ -11,6 +11,7 @@ namespace GrassCutter
|
|||||||
Layers.SetupCollisions();
|
Layers.SetupCollisions();
|
||||||
Fx.Warmup();
|
Fx.Warmup();
|
||||||
_ = Sfx.I;
|
_ = Sfx.I;
|
||||||
|
if (CommandLine.Has("-resetsettings")) { for (int t = 0; t <= 5; t++) GameSettings.Defaults(t); Debug.Log("[Boot] settings reset"); }
|
||||||
GameSettings.Apply();
|
GameSettings.Apply();
|
||||||
if (CommandLine.Has("-resetsave")) { TeamState.DeleteSave(); Debug.Log("[Boot] save reset"); }
|
if (CommandLine.Has("-resetsave")) { TeamState.DeleteSave(); Debug.Log("[Boot] save reset"); }
|
||||||
foreach (var d in UnityEngine.InputSystem.InputSystem.devices) Debug.Log($"[Input] device: {d.name} ({d.layout}) {d.description.product}");
|
foreach (var d in UnityEngine.InputSystem.InputSystem.devices) Debug.Log($"[Input] device: {d.name} ({d.layout}) {d.description.product}");
|
||||||
@ -18,11 +19,34 @@ namespace GrassCutter
|
|||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
|
NoProbes();
|
||||||
// dev bots render off-screen so they can run with -batchmode without touching the user's desktop
|
// dev bots render off-screen so they can run with -batchmode without touching the user's desktop
|
||||||
if (CommandLine.Has("-screenshot") || CommandLine.Has("-autodemo"))
|
// (-onscreen: a real window instead, for measuring what the screen really costs)
|
||||||
|
if ((CommandLine.Has("-screenshot") || CommandLine.Has("-autodemo")) && !CommandLine.Has("-onscreen"))
|
||||||
BotCapture.Setup(int.TryParse(CommandLine.Get("-shotw", "1600"), out var w) ? w : 1600, int.TryParse(CommandLine.Get("-shoth", "900"), out var h) ? h : 900);
|
BotCapture.Setup(int.TryParse(CommandLine.Get("-shotw", "1600"), out var w) ? w : 1600, int.TryParse(CommandLine.Get("-shoth", "900"), out var h) ? h : 900);
|
||||||
if (CommandLine.Get("-screenshot") is string path) gameObject.AddComponent<AutoScreenshot>().path = path;
|
if (CommandLine.Get("-screenshot") is string path) gameObject.AddComponent<AutoScreenshot>().path = path;
|
||||||
if (CommandLine.Get("-autodemo") is string demo) gameObject.AddComponent<DemoBot>().folder = demo;
|
if (CommandLine.Get("-autodemo") is string demo) gameObject.AddComponent<DemoBot>().folder = demo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The planet has no light probes, so interpolating them for every moving thing (two thousand bundles on the belts
|
||||||
|
/// of a big farm) is work for nothing: the ambient light is the same. Off on every networked prefab and everything
|
||||||
|
/// in the scene, once at boot.
|
||||||
|
/// </summary>
|
||||||
|
static void NoProbes()
|
||||||
|
{
|
||||||
|
if (LightmapSettings.lightProbes != null && LightmapSettings.lightProbes.count > 0) return;
|
||||||
|
void Off(GameObject go)
|
||||||
|
{
|
||||||
|
if (!go) return;
|
||||||
|
foreach (var r in go.GetComponentsInChildren<Renderer>(true)) r.lightProbeUsage = UnityEngine.Rendering.LightProbeUsage.Off;
|
||||||
|
}
|
||||||
|
var nm = Unity.Netcode.NetworkManager.Singleton;
|
||||||
|
// (not in the editor: there the prefab is the asset on disk)
|
||||||
|
if (!Application.isEditor && nm && nm.NetworkConfig?.Prefabs?.Prefabs != null)
|
||||||
|
foreach (var p in nm.NetworkConfig.Prefabs.Prefabs) Off(p.Prefab);
|
||||||
|
foreach (var r in Object.FindObjectsByType<Renderer>(FindObjectsInactive.Include, FindObjectsSortMode.None))
|
||||||
|
r.lightProbeUsage = UnityEngine.Rendering.LightProbeUsage.Off;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -37,6 +37,8 @@ namespace GrassCutter
|
|||||||
/// <summary>The assistant chips in with tips.</summary>
|
/// <summary>The assistant chips in with tips.</summary>
|
||||||
public static bool Tips { get => PlayerPrefs.GetInt("s_tips", 1) == 1; set => PlayerPrefs.SetInt("s_tips", value ? 1 : 0); }
|
public static bool Tips { get => PlayerPrefs.GetInt("s_tips", 1) == 1; set => PlayerPrefs.SetInt("s_tips", value ? 1 : 0); }
|
||||||
/// <summary>The key caps down the right of the screen.</summary>
|
/// <summary>The key caps down the right of the screen.</summary>
|
||||||
|
/// <summary>The view rocks a little with each step.</summary>
|
||||||
|
public static bool HeadBob { get => PlayerPrefs.GetInt("s_bob", 1) == 1; set => PlayerPrefs.SetInt("s_bob", value ? 1 : 0); }
|
||||||
public static bool KeyHints { get => PlayerPrefs.GetInt("s_hints", 1) == 1; set => PlayerPrefs.SetInt("s_hints", value ? 1 : 0); }
|
public static bool KeyHints { get => PlayerPrefs.GetInt("s_hints", 1) == 1; set => PlayerPrefs.SetInt("s_hints", value ? 1 : 0); }
|
||||||
|
|
||||||
// ───────────────────────── controls ─────────────────────────
|
// ───────────────────────── controls ─────────────────────────
|
||||||
@ -127,7 +129,7 @@ namespace GrassCutter
|
|||||||
{
|
{
|
||||||
string[][] keys =
|
string[][] keys =
|
||||||
{
|
{
|
||||||
new[] { "s_shake", "s_tips", "s_hints" },
|
new[] { "s_shake", "s_bob", "s_tips", "s_hints" },
|
||||||
new[] { "s_dmode", "s_fs", "s_resw", "s_resh", "s_vsync", "s_fpscap", "s_fov", "s_bright" },
|
new[] { "s_dmode", "s_fs", "s_resw", "s_resh", "s_vsync", "s_fpscap", "s_fov", "s_bright" },
|
||||||
new[] { "s_quality", "s_rscale", "s_shadows", "s_msaa", "s_grass", "s_bloom" },
|
new[] { "s_quality", "s_rscale", "s_shadows", "s_msaa", "s_grass", "s_bloom" },
|
||||||
new[] { "s_master", "s_music", "s_sfx", "s_voice", "s_phone", "s_bgsound" },
|
new[] { "s_master", "s_music", "s_sfx", "s_voice", "s_phone", "s_bgsound" },
|
||||||
|
|||||||
@ -126,14 +126,26 @@ namespace GrassCutter
|
|||||||
|
|
||||||
const string Pref = "s_lang";
|
const string Pref = "s_lang";
|
||||||
|
|
||||||
/// <summary>Saved choice, else Steam's language for this game, else the system's, else English.</summary>
|
/// <summary>Steam's language when the choice was saved: a new one picked in the game's Steam properties wins over it.</summary>
|
||||||
|
const string SteamPref = "s_lang_steam";
|
||||||
|
|
||||||
|
/// <summary>Saved choice, else Steam's language for this game, else the system's, else English. A language
|
||||||
|
/// changed in Steam's properties since the choice was saved overrides the choice.</summary>
|
||||||
public static void Init()
|
public static void Init()
|
||||||
{
|
{
|
||||||
if (_ready) return;
|
if (_ready) return;
|
||||||
_ready = true;
|
_ready = true;
|
||||||
string code = CommandLine.Get("-demolang") ?? CommandLine.Get("-lang");
|
string code = CommandLine.Get("-demolang") ?? CommandLine.Get("-lang");
|
||||||
|
string steam = FromSteam(), steamThen = PlayerPrefs.GetString(SteamPref, "");
|
||||||
|
if (Find(code) == null && Find(steam) != null && steamThen.Length > 0 && steamThen != steam)
|
||||||
|
{
|
||||||
|
code = steam;
|
||||||
|
PlayerPrefs.SetString(Pref, Find(steam).code);
|
||||||
|
PlayerPrefs.SetString(SteamPref, steam);
|
||||||
|
PlayerPrefs.Save();
|
||||||
|
}
|
||||||
if (Find(code) == null) code = PlayerPrefs.GetString(Pref, "");
|
if (Find(code) == null) code = PlayerPrefs.GetString(Pref, "");
|
||||||
if (Find(code) == null) code = FromSteam();
|
if (Find(code) == null) code = steam;
|
||||||
if (Find(code) == null) code = FromSystem();
|
if (Find(code) == null) code = FromSystem();
|
||||||
Load(Find(code) ?? All[0]);
|
Load(Find(code) ?? All[0]);
|
||||||
}
|
}
|
||||||
@ -152,6 +164,7 @@ namespace GrassCutter
|
|||||||
if (remember)
|
if (remember)
|
||||||
{
|
{
|
||||||
PlayerPrefs.SetString(Pref, l.code);
|
PlayerPrefs.SetString(Pref, l.code);
|
||||||
|
PlayerPrefs.SetString(SteamPref, FromSteam() ?? "");
|
||||||
PlayerPrefs.Save();
|
PlayerPrefs.Save();
|
||||||
}
|
}
|
||||||
_ready = true;
|
_ready = true;
|
||||||
|
|||||||
@ -34,6 +34,26 @@ namespace GrassCutter
|
|||||||
"window.open=u=>{if(u)location.href=u;return window};" +
|
"window.open=u=>{if(u)location.href=u;return window};" +
|
||||||
"addEventListener('click',e=>{const a=e.target.closest&&e.target.closest('a[target]');if(a)a.target='_self'},true)})()";
|
"addEventListener('click',e=>{const a=e.target.closest&&e.target.closest('a[target]');if(a)a.target='_self'},true)})()";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Full screen, done on the page itself: the element is pinned over the whole of the phone's page. The browser
|
||||||
|
/// runs without a window of its own, so the real thing was refused or came out the wrong size and shifted to
|
||||||
|
/// one side, and each site's fallback for that came out crooked in its own way.
|
||||||
|
/// </summary>
|
||||||
|
const string Full =
|
||||||
|
"(()=>{let fe=null,was=null,hid=[];const ev=e=>{for(const n of['fullscreenchange','webkitfullscreenchange'])e.dispatchEvent(new Event(n,{bubbles:true}))};" +
|
||||||
|
"const exit=function(){if(!fe)return Promise.resolve();const e=fe;fe=null;for(const[h,v]of hid)h.style.visibility=v;hid=[];if(was)e.setAttribute('style',was);else e.removeAttribute('style');ev(e);return Promise.resolve()};" +
|
||||||
|
"const enter=function(){if(fe===this)return Promise.resolve();if(fe)exit();fe=this;was=this.getAttribute('style');" +
|
||||||
|
"this.style.cssText+=';position:fixed!important;left:0!important;top:0!important;right:auto!important;bottom:auto!important;width:100vw!important;height:100vh!important;" +
|
||||||
|
"max-width:none!important;max-height:none!important;margin:0!important;transform:none!important;z-index:2147483647!important;background:#000!important';" +
|
||||||
|
// whatever else is on the page (a site's own header sits above the player) is hidden while it lasts
|
||||||
|
"for(let n=this;n&&n.parentElement;n=n.parentElement)for(const o of n.parentElement.children)if(o!==n){hid.push([o,o.style.visibility]);o.style.setProperty('visibility','hidden','important')}" +
|
||||||
|
"ev(this);return Promise.resolve()};" +
|
||||||
|
"for(const n of['requestFullscreen','webkitRequestFullscreen','webkitRequestFullScreen'])Element.prototype[n]=enter;" +
|
||||||
|
"HTMLVideoElement.prototype.webkitEnterFullscreen=enter;HTMLVideoElement.prototype.webkitEnterFullScreen=enter;" +
|
||||||
|
"for(const n of['exitFullscreen','webkitExitFullscreen','webkitCancelFullScreen'])Document.prototype[n]=exit;" +
|
||||||
|
"for(const n of['fullscreenElement','webkitFullscreenElement','webkitCurrentFullScreenElement'])Object.defineProperty(Document.prototype,n,{get:()=>fe,configurable:true});" +
|
||||||
|
"for(const n of['fullscreenEnabled','webkitFullscreenEnabled'])Object.defineProperty(Document.prototype,n,{get:()=>true,configurable:true})})()";
|
||||||
|
|
||||||
/// <summary>One running browser. A new one is made after a crash, so a late message from the old one can't touch it.</summary>
|
/// <summary>One running browser. A new one is made after a crash, so a late message from the old one can't touch it.</summary>
|
||||||
sealed class Link
|
sealed class Link
|
||||||
{
|
{
|
||||||
@ -154,9 +174,21 @@ namespace GrassCutter
|
|||||||
void Metrics()
|
void Metrics()
|
||||||
{
|
{
|
||||||
string turned = _wide ? ",\"screenOrientation\":{\"type\":\"landscapePrimary\",\"angle\":90}" : ",\"screenOrientation\":{\"type\":\"portraitPrimary\",\"angle\":0}";
|
string turned = _wide ? ",\"screenOrientation\":{\"type\":\"landscapePrimary\",\"angle\":90}" : ",\"screenOrientation\":{\"type\":\"portraitPrimary\",\"angle\":0}";
|
||||||
Cmd("Emulation.setDeviceMetricsOverride", $"{{\"width\":{CssW},\"height\":{CssH},\"deviceScaleFactor\":2,\"mobile\":true{turned}}}");
|
Cmd("Emulation.setDeviceMetricsOverride", $"{{\"width\":{CssW},\"height\":{CssH},\"screenWidth\":{CssW},\"screenHeight\":{CssH},\"deviceScaleFactor\":2,\"mobile\":true{turned}}}");
|
||||||
|
Bounds();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The browser's own window the size of the phone's page. A site going full screen fills the window, not the page
|
||||||
|
/// the phone shows, so with the window left at its start-up size the video came out shifted off to one side.
|
||||||
|
/// </summary>
|
||||||
|
void Bounds()
|
||||||
|
{
|
||||||
|
if (_winId > 0) Cmd("Browser.setWindowBounds", $"{{\"windowId\":{_winId},\"bounds\":{{\"width\":{CssW},\"height\":{CssH}}}}}");
|
||||||
|
}
|
||||||
|
|
||||||
|
volatile int _winAsk, _winId;
|
||||||
|
|
||||||
// ───────────────────────── fingers ─────────────────────────
|
// ───────────────────────── fingers ─────────────────────────
|
||||||
|
|
||||||
public void Touch(string type, float x, float y)
|
public void Touch(string type, float x, float y)
|
||||||
@ -231,7 +263,7 @@ namespace GrassCutter
|
|||||||
var done = new TaskCompletionSource<string>();
|
var done = new TaskCompletionSource<string>();
|
||||||
if (!Ready) { done.TrySetResult(null); return done.Task; }
|
if (!Ready) { done.TrySetResult(null); return done.Task; }
|
||||||
_wait[id] = done;
|
_wait[id] = done;
|
||||||
Send(_link, "{\"id\":" + id + ",\"method\":\"Runtime.evaluate\",\"params\":{\"expression\":" + Str(js) + ",\"awaitPromise\":true}}");
|
Send(_link, "{\"id\":" + id + ",\"method\":\"Runtime.evaluate\",\"params\":{\"expression\":" + Str(js) + ",\"awaitPromise\":true,\"userGesture\":true}}");
|
||||||
return done.Task;
|
return done.Task;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -394,7 +426,7 @@ namespace GrassCutter
|
|||||||
catch (UnauthorizedAccessException) { await Task.Delay(100); }
|
catch (UnauthorizedAccessException) { await Task.Delay(100); }
|
||||||
}
|
}
|
||||||
string args = "--headless=new --remote-debugging-port=0 --user-data-dir=\"" + _profile + "\" --no-first-run --no-default-browser-check " +
|
string args = "--headless=new --remote-debugging-port=0 --user-data-dir=\"" + _profile + "\" --no-first-run --no-default-browser-check " +
|
||||||
"--autoplay-policy=no-user-gesture-required --hide-crash-restore-bubble --disable-sync --disk-cache-size=157286400 --window-size=412,875 " + (_mute ? "--mute-audio " : "") + "about:blank";
|
"--autoplay-policy=no-user-gesture-required --disable-blink-features=AutomationControlled --hide-crash-restore-bubble --disable-sync --disk-cache-size=157286400 --window-size=412,875 " + (_mute ? "--mute-audio " : "") + "about:blank";
|
||||||
link.Proc = Process.Start(new ProcessStartInfo(exe, args) { UseShellExecute = false, CreateNoWindow = true });
|
link.Proc = Process.Start(new ProcessStartInfo(exe, args) { UseShellExecute = false, CreateNoWindow = true });
|
||||||
TieToGame(link);
|
TieToGame(link);
|
||||||
|
|
||||||
@ -407,7 +439,7 @@ namespace GrassCutter
|
|||||||
}
|
}
|
||||||
if (port == null) throw new TimeoutException("The browser didn't start.");
|
if (port == null) throw new TimeoutException("The browser didn't start.");
|
||||||
|
|
||||||
string ws, ua;
|
string ws, ua, chrome;
|
||||||
using (var http = new HttpClient(new HttpClientHandler { UseProxy = false }))
|
using (var http = new HttpClient(new HttpClientHandler { UseProxy = false }))
|
||||||
{
|
{
|
||||||
// the debug server hangs up after each answer, so no reusing the connection
|
// the debug server hangs up after each answer, so no reusing the connection
|
||||||
@ -423,7 +455,7 @@ namespace GrassCutter
|
|||||||
foreach (Match old in Regex.Matches(open, "\"id\"\\s*:\\s*\"([^\"]+)\"[^{}]*?\"type\"\\s*:\\s*\"page\""))
|
foreach (Match old in Regex.Matches(open, "\"id\"\\s*:\\s*\"([^\"]+)\"[^{}]*?\"type\"\\s*:\\s*\"page\""))
|
||||||
await http.GetAsync($"http://127.0.0.1:{port}/json/close/{old.Groups[1].Value}");
|
await http.GetAsync($"http://127.0.0.1:{port}/json/close/{old.Groups[1].Value}");
|
||||||
var version = await http.GetStringAsync($"http://127.0.0.1:{port}/json/version");
|
var version = await http.GetStringAsync($"http://127.0.0.1:{port}/json/version");
|
||||||
string chrome = Regex.Match(version, "\"Browser\"\\s*:\\s*\"[^/]+/(\\d+)").Groups[1].Value;
|
chrome = Regex.Match(version, "\"Browser\"\\s*:\\s*\"[^/]+/(\\d+)").Groups[1].Value;
|
||||||
ua = $"Mozilla/5.0 (Linux; Android 14; Pixel 8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/{chrome}.0.0.0 Mobile Safari/537.36";
|
ua = $"Mozilla/5.0 (Linux; Android 14; Pixel 8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/{chrome}.0.0.0 Mobile Safari/537.36";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -434,10 +466,18 @@ namespace GrassCutter
|
|||||||
_ = Task.Run(() => Receiver(link));
|
_ = Task.Run(() => Receiver(link));
|
||||||
|
|
||||||
Send(link, "Page.enable", "{}");
|
Send(link, "Page.enable", "{}");
|
||||||
Send(link, "Emulation.setUserAgentOverride", "{\"userAgent\":" + Str(ua) + ",\"platform\":\"Linux armv8l\"}");
|
// the whole of a phone's Chrome, client hints included: with only the agent string swapped, the hints still
|
||||||
|
// said HeadlessChrome on Windows, and YouTube stopped a video a couple of minutes in ("something went wrong")
|
||||||
|
string brands = $"[{{\"brand\":\"Chromium\",\"version\":\"{chrome}\"}},{{\"brand\":\"Google Chrome\",\"version\":\"{chrome}\"}},{{\"brand\":\"Not.A/Brand\",\"version\":\"99\"}}]";
|
||||||
|
string full = $"[{{\"brand\":\"Chromium\",\"version\":\"{chrome}.0.0.0\"}},{{\"brand\":\"Google Chrome\",\"version\":\"{chrome}.0.0.0\"}},{{\"brand\":\"Not.A/Brand\",\"version\":\"99.0.0.0\"}}]";
|
||||||
|
Send(link, "Emulation.setUserAgentOverride", "{\"userAgent\":" + Str(ua) + ",\"platform\":\"Linux armv8l\",\"userAgentMetadata\":{\"brands\":" + brands +
|
||||||
|
",\"fullVersionList\":" + full + ",\"platform\":\"Android\",\"platformVersion\":\"14.0.0\",\"architecture\":\"\",\"model\":\"Pixel 8\",\"mobile\":true}}");
|
||||||
Send(link, "Emulation.setTouchEmulationEnabled", "{\"enabled\":true,\"maxTouchPoints\":5}");
|
Send(link, "Emulation.setTouchEmulationEnabled", "{\"enabled\":true,\"maxTouchPoints\":5}");
|
||||||
Send(link, "Browser.setDownloadBehavior", "{\"behavior\":\"deny\"}");
|
Send(link, "Browser.setDownloadBehavior", "{\"behavior\":\"deny\"}");
|
||||||
Send(link, "Page.addScriptToEvaluateOnNewDocument", "{\"source\":" + Str(Keep) + "}");
|
Send(link, "Page.addScriptToEvaluateOnNewDocument", "{\"source\":" + Str(Keep + ";" + Full) + "}");
|
||||||
|
int win = Interlocked.Increment(ref _id);
|
||||||
|
_winAsk = win;
|
||||||
|
Send(link, "{\"id\":" + win + ",\"method\":\"Browser.getWindowForTarget\",\"params\":{}}");
|
||||||
Metrics();
|
Metrics();
|
||||||
if (_shown) Screencast(true);
|
if (_shown) Screencast(true);
|
||||||
link.Ready = true;
|
link.Ready = true;
|
||||||
@ -504,7 +544,7 @@ namespace GrassCutter
|
|||||||
[Serializable] class Msg { public int id; public string method; public Params @params; public Outer result; }
|
[Serializable] class Msg { public int id; public string method; public Params @params; public Outer result; }
|
||||||
[Serializable] class Params { public string url, frameId; public FrameInfo frame; }
|
[Serializable] class Params { public string url, frameId; public FrameInfo frame; }
|
||||||
[Serializable] class FrameInfo { public string url; public string parentId; }
|
[Serializable] class FrameInfo { public string url; public string parentId; }
|
||||||
[Serializable] class Outer { public Inner result; public string errorText; }
|
[Serializable] class Outer { public Inner result; public string errorText; public int windowId; }
|
||||||
[Serializable] class Inner { public string value; }
|
[Serializable] class Inner { public string value; }
|
||||||
|
|
||||||
async Task Receiver(Link link)
|
async Task Receiver(Link link)
|
||||||
@ -565,6 +605,7 @@ namespace GrassCutter
|
|||||||
{
|
{
|
||||||
if (_wait.TryRemove(m.id, out var done)) done.TrySetResult(m.result?.result?.value);
|
if (_wait.TryRemove(m.id, out var done)) done.TrySetResult(m.result?.result?.value);
|
||||||
if (m.id == _navId && !string.IsNullOrEmpty(m.result?.errorText)) _navError = m.result.errorText;
|
if (m.id == _navId && !string.IsNullOrEmpty(m.result?.errorText)) _navError = m.result.errorText;
|
||||||
|
if (m.id == _winAsk && m.result != null && m.result.windowId > 0) { _winId = m.result.windowId; Bounds(); }
|
||||||
}
|
}
|
||||||
else if (m.method == "Page.frameNavigated")
|
else if (m.method == "Page.frameNavigated")
|
||||||
{
|
{
|
||||||
|
|||||||
@ -96,10 +96,19 @@ namespace GrassCutter
|
|||||||
bool seen = false;
|
bool seen = false;
|
||||||
Cargo inJunction = null;
|
Cargo inJunction = null;
|
||||||
float side = 0f;
|
float side = 0f;
|
||||||
foreach (var c in Cargo.All)
|
var here = transform.position;
|
||||||
|
// the host has its own items in a list; a joined peer looks round every few frames
|
||||||
|
bool mine = Server;
|
||||||
|
if (!mine && (Time.frameCount + _phase) % 4 != 0) { Paddle(); return; }
|
||||||
|
int count = mine ? Items.Count : Cargo.All.Count;
|
||||||
|
for (int k = 0; k < count; k++)
|
||||||
{
|
{
|
||||||
|
var c = mine ? Items[k].c : Cargo.All[k];
|
||||||
if (!c) continue;
|
if (!c) continue;
|
||||||
var l = transform.InverseTransformPoint(c.transform.position);
|
var at = c.transform.position;
|
||||||
|
// most of a farm's bundles are nowhere near: the cheap test first
|
||||||
|
if ((at - here).sqrMagnitude > 4f) continue;
|
||||||
|
var l = transform.InverseTransformPoint(at);
|
||||||
if (Mathf.Abs(l.x) > 0.55f || Mathf.Abs(l.z) > 0.55f || l.y < -0.2f || l.y > 1.4f) continue;
|
if (Mathf.Abs(l.x) > 0.55f || Mathf.Abs(l.z) > 0.55f || l.y < -0.2f || l.y > 1.4f) continue;
|
||||||
if (l.z < -0.2f) continue;
|
if (l.z < -0.2f) continue;
|
||||||
inJunction = c;
|
inJunction = c;
|
||||||
@ -113,11 +122,17 @@ namespace GrassCutter
|
|||||||
_paddleTarget = -side * 38f;
|
_paddleTarget = -side * 38f;
|
||||||
Sfx.PlayAt("splitter_flip", transform.position + transform.up * 0.4f, 0.55f, 1f, 0.08f);
|
Sfx.PlayAt("splitter_flip", transform.position + transform.up * 0.4f, 0.55f, 1f, 0.08f);
|
||||||
}
|
}
|
||||||
if (paddle)
|
Paddle();
|
||||||
|
}
|
||||||
|
|
||||||
|
static int s_phases;
|
||||||
|
readonly int _phase = s_phases++;
|
||||||
|
|
||||||
|
void Paddle()
|
||||||
{
|
{
|
||||||
|
if (!paddle) return;
|
||||||
_paddleAngle = Mathf.MoveTowards(_paddleAngle, _paddleTarget, Time.deltaTime * 260f);
|
_paddleAngle = Mathf.MoveTowards(_paddleAngle, _paddleTarget, Time.deltaTime * 260f);
|
||||||
paddle.localRotation = Quaternion.AngleAxis(_paddleAngle, paddle.parent ? paddle.parent.InverseTransformDirection(transform.up) : Vector3.up) * _paddleRest;
|
paddle.localRotation = Quaternion.AngleAxis(_paddleAngle, paddle.parent ? paddle.parent.InverseTransformDirection(transform.up) : Vector3.up) * _paddleRest;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@ -58,7 +58,7 @@ namespace GrassCutter
|
|||||||
var ts = TeamState.Instance;
|
var ts = TeamState.Instance;
|
||||||
if (!ts || Upgrades == UpgradeKind.None || Tier.Value >= GameDefs.MaxTier) return;
|
if (!ts || Upgrades == UpgradeKind.None || Tier.Value >= GameDefs.MaxTier) return;
|
||||||
double price = GameDefs.UpgradePrice(this, Tier.Value);
|
double price = GameDefs.UpgradePrice(this, Tier.Value);
|
||||||
if (ts.Money.Value < price) { ts.DeniedRpc(RpcTarget.Single(rpc.Receive.SenderClientId, RpcTargetUse.Temp)); return; }
|
if (ts.Money.Value < price || Demo.Over) { ts.DeniedRpc(RpcTarget.Single(rpc.Receive.SenderClientId, RpcTargetUse.Temp)); return; }
|
||||||
ts.Money.Value -= price;
|
ts.Money.Value -= price;
|
||||||
Tier.Value++;
|
Tier.Value++;
|
||||||
UpgradedRpc();
|
UpgradedRpc();
|
||||||
@ -133,6 +133,8 @@ namespace GrassCutter
|
|||||||
transform.SetPositionAndRotation(at, rot);
|
transform.SetPositionAndRotation(at, rot);
|
||||||
var bot = GetComponent<Mowbot>();
|
var bot = GetComponent<Mowbot>();
|
||||||
if (bot) bot.Moved(at);
|
if (bot) bot.Moved(at);
|
||||||
|
var train = GetComponent<Train>();
|
||||||
|
if (train) train.Moved();
|
||||||
if (Stands && Planet.Altitude(at) < 1f) MowMap.BlockRound(at, Mathf.Max(Def.sizeX, Def.sizeZ) * 0.72f);
|
if (Stands && Planet.Altitude(at) < 1f) MowMap.BlockRound(at, Mathf.Max(Def.sizeX, Def.sizeZ) * 0.72f);
|
||||||
Fx.Build(at, new Vector2(Def.sizeX, Def.sizeZ));
|
Fx.Build(at, new Vector2(Def.sizeX, Def.sizeZ));
|
||||||
Sfx.PlayAt("build_place", at, 0.9f);
|
Sfx.PlayAt("build_place", at, 0.9f);
|
||||||
|
|||||||
@ -21,11 +21,42 @@ namespace GrassCutter
|
|||||||
Grabbable _g;
|
Grabbable _g;
|
||||||
bool _wasInGrass;
|
bool _wasInGrass;
|
||||||
public bool Loaded { get; set; }
|
public bool Loaded { get; set; }
|
||||||
/// <summary>Server: the belt this item is locked onto (null when loose).</summary>
|
/// <summary>Server: the belt this item is locked onto (null when loose). On a belt it is on the Riding layer.</summary>
|
||||||
public Conveyor Belt { get; set; }
|
public Conveyor Belt
|
||||||
|
{
|
||||||
|
get => _belt;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
bool was = !ReferenceEquals(_belt, null), now = !ReferenceEquals(value, null);
|
||||||
|
_belt = value;
|
||||||
|
if (was != now) Ride(now);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Conveyor _belt;
|
||||||
|
Transform[] _parts;
|
||||||
|
|
||||||
|
void Ride(bool riding)
|
||||||
|
{
|
||||||
|
if (_parts == null) _parts = GetComponentsInChildren<Transform>(true);
|
||||||
|
int layer = riding ? Layers.Riding : Layers.Prop;
|
||||||
|
foreach (var t in _parts)
|
||||||
|
if (t && (t.gameObject.layer == Layers.Prop || t.gameObject.layer == Layers.Riding)) t.gameObject.layer = layer;
|
||||||
|
}
|
||||||
public Grabbable Grab => _g ? _g : (_g = GetComponent<Grabbable>());
|
public Grabbable Grab => _g ? _g : (_g = GetComponent<Grabbable>());
|
||||||
|
|
||||||
void Awake() { _g = GetComponent<Grabbable>(); }
|
void Awake()
|
||||||
|
{
|
||||||
|
_g = GetComponent<Grabbable>();
|
||||||
|
// what it looks like, for CargoTick to draw it with all the others
|
||||||
|
Look = GetComponentInChildren<MeshRenderer>(true);
|
||||||
|
var mf = Look ? Look.GetComponent<MeshFilter>() : null;
|
||||||
|
LookMesh = mf ? mf.sharedMesh : null;
|
||||||
|
LookMats = Look ? Look.sharedMaterials : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MeshRenderer Look { get; private set; }
|
||||||
|
public Mesh LookMesh { get; private set; }
|
||||||
|
public Material[] LookMats { get; private set; }
|
||||||
|
|
||||||
/// <summary>Server: unlock from the belt and become a loose physics body again.</summary>
|
/// <summary>Server: unlock from the belt and become a loose physics body again.</summary>
|
||||||
public void ServerLeaveBelt(Vector3 velocity)
|
public void ServerLeaveBelt(Vector3 velocity)
|
||||||
@ -48,6 +79,7 @@ namespace GrassCutter
|
|||||||
public override void OnNetworkSpawn()
|
public override void OnNetworkSpawn()
|
||||||
{
|
{
|
||||||
All.Add(this);
|
All.Add(this);
|
||||||
|
CargoTick.Ensure();
|
||||||
if (Time.timeSinceLevelLoad > 3f) Tween.Scale(transform, Vector3.one * 0.3f, Vector3.one, 0.35f, Ease.OutBack);
|
if (Time.timeSinceLevelLoad > 3f) Tween.Scale(transform, Vector3.one * 0.3f, Vector3.one, 0.35f, Ease.OutBack);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,10 +97,15 @@ namespace GrassCutter
|
|||||||
|
|
||||||
float _fallV;
|
float _fallV;
|
||||||
|
|
||||||
void FixedUpdate()
|
/// <summary>One physics step, called by <see cref="CargoTick"/> for every bundle at once: two thousand Unity
|
||||||
|
/// FixedUpdate messages cost more than the work in them.</summary>
|
||||||
|
internal void Step()
|
||||||
{
|
{
|
||||||
|
if (_belt) return;
|
||||||
if (!IsSpawned) return;
|
if (!IsSpawned) return;
|
||||||
var rb = _g.Body;
|
var rb = _g.Body;
|
||||||
|
// riding a belt or lying still: nothing below needs looking at (most of a big farm's bundles, every step)
|
||||||
|
if (Belt || (rb && !rb.isKinematic && rb.IsSleeping())) { _fallV = 0f; _wasInGrass = !Belt; return; }
|
||||||
var p = transform.position;
|
var p = transform.position;
|
||||||
|
|
||||||
// tossed into a depot
|
// tossed into a depot
|
||||||
|
|||||||
119
Assets/Scripts/Gameplay/CargoTick.cs
Normal file
119
Assets/Scripts/Gameplay/CargoTick.cs
Normal file
@ -0,0 +1,119 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.Rendering;
|
||||||
|
|
||||||
|
namespace GrassCutter
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Steps every bundle and every grabbable thing from one FixedUpdate. A big farm has two thousand bundles, and a Unity
|
||||||
|
/// message per object per physics step (two scripts each) cost more than what they do, which is mostly nothing.
|
||||||
|
/// </summary>
|
||||||
|
public class CargoTick : MonoBehaviour
|
||||||
|
{
|
||||||
|
static CargoTick s_on;
|
||||||
|
|
||||||
|
public static void Ensure()
|
||||||
|
{
|
||||||
|
if (s_on) return;
|
||||||
|
var go = new GameObject("CargoTick");
|
||||||
|
DontDestroyOnLoad(go);
|
||||||
|
s_on = go.AddComponent<CargoTick>();
|
||||||
|
}
|
||||||
|
|
||||||
|
void FixedUpdate()
|
||||||
|
{
|
||||||
|
// backwards: a step can hand a bundle to a depot, which takes it off the list
|
||||||
|
var g = Grabbable.All;
|
||||||
|
for (int i = g.Count - 1; i >= 0; i--)
|
||||||
|
if (i < g.Count && g[i]) g[i].Step();
|
||||||
|
var c = Cargo.All;
|
||||||
|
for (int i = c.Count - 1; i >= 0; i--)
|
||||||
|
if (i < c.Count && c[i]) c[i].Step();
|
||||||
|
}
|
||||||
|
|
||||||
|
// ───────────────────────── drawing ─────────────────────────
|
||||||
|
//
|
||||||
|
// Two thousand bundles were two thousand renderers: culled, sorted and drawn one by one, in the main view and
|
||||||
|
// every shadow cascade. Their own renderers are off and they go down here as a few instanced draws, one per
|
||||||
|
// model. One in someone's hands draws itself as before (it may be on another layer, in first person).
|
||||||
|
|
||||||
|
/// <summary>Off: every bundle draws itself again (a switch for tests).</summary>
|
||||||
|
public static bool Instanced = true;
|
||||||
|
|
||||||
|
sealed class Group
|
||||||
|
{
|
||||||
|
public Mesh mesh;
|
||||||
|
public int sub;
|
||||||
|
public Material mat;
|
||||||
|
public Matrix4x4[] m = new Matrix4x4[256];
|
||||||
|
public int n;
|
||||||
|
public Bounds bounds;
|
||||||
|
}
|
||||||
|
|
||||||
|
readonly Dictionary<(Mesh, int, Material), Group> _groups = new Dictionary<(Mesh, int, Material), Group>();
|
||||||
|
readonly List<Group> _order = new List<Group>();
|
||||||
|
static readonly Dictionary<Material, Material> s_instanced = new Dictionary<Material, Material>();
|
||||||
|
const int Chunk = 1023;
|
||||||
|
|
||||||
|
static Material InstancedCopy(Material m)
|
||||||
|
{
|
||||||
|
if (!s_instanced.TryGetValue(m, out var copy))
|
||||||
|
{
|
||||||
|
copy = new Material(m) { name = m.name + " (instanced)", enableInstancing = true };
|
||||||
|
s_instanced[m] = copy;
|
||||||
|
}
|
||||||
|
return copy;
|
||||||
|
}
|
||||||
|
|
||||||
|
void LateUpdate()
|
||||||
|
{
|
||||||
|
foreach (var g in _order) g.n = 0;
|
||||||
|
var all = Cargo.All;
|
||||||
|
for (int i = 0; i < all.Count; i++)
|
||||||
|
{
|
||||||
|
var c = all[i];
|
||||||
|
if (!c) continue;
|
||||||
|
var r = c.Look;
|
||||||
|
if (!r) continue;
|
||||||
|
bool mine = Instanced && !c.Grab.IsHeld && c.gameObject.activeInHierarchy;
|
||||||
|
if (r.enabled == mine) r.enabled = !mine;
|
||||||
|
if (!mine) continue;
|
||||||
|
var mesh = c.LookMesh;
|
||||||
|
var mats = c.LookMats;
|
||||||
|
if (!mesh || mats == null) { r.enabled = true; continue; }
|
||||||
|
var m = r.localToWorldMatrix;
|
||||||
|
var at = new Vector3(m.m03, m.m13, m.m23);
|
||||||
|
for (int sub = 0; sub < mesh.subMeshCount && sub < mats.Length; sub++)
|
||||||
|
{
|
||||||
|
var mat = mats[sub];
|
||||||
|
if (!mat) continue;
|
||||||
|
var key = (mesh, sub, mat);
|
||||||
|
if (!_groups.TryGetValue(key, out var g))
|
||||||
|
{
|
||||||
|
g = new Group { mesh = mesh, sub = sub, mat = InstancedCopy(mat) };
|
||||||
|
_groups[key] = g;
|
||||||
|
_order.Add(g);
|
||||||
|
}
|
||||||
|
if (g.n == g.m.Length) System.Array.Resize(ref g.m, g.m.Length * 2);
|
||||||
|
if (g.n == 0) g.bounds = new Bounds(at, Vector3.one); else g.bounds.Encapsulate(at);
|
||||||
|
g.m[g.n++] = m;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
foreach (var g in _order)
|
||||||
|
{
|
||||||
|
if (g.n == 0) continue;
|
||||||
|
g.bounds.Expand(2f);
|
||||||
|
var rp = new RenderParams(g.mat)
|
||||||
|
{
|
||||||
|
worldBounds = g.bounds,
|
||||||
|
layer = Layers.Prop,
|
||||||
|
shadowCastingMode = ShadowCastingMode.On,
|
||||||
|
receiveShadows = true,
|
||||||
|
lightProbeUsage = LightProbeUsage.Off,
|
||||||
|
};
|
||||||
|
for (int start = 0; start < g.n; start += Chunk)
|
||||||
|
Graphics.RenderMeshInstanced(rp, g.mesh, g.sub, g.m, Mathf.Min(Chunk, g.n - start), start);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Assets/Scripts/Gameplay/CargoTick.cs.meta
Normal file
2
Assets/Scripts/Gameplay/CargoTick.cs.meta
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c675567074ef89b49b1f9073c8ee1535
|
||||||
@ -46,6 +46,9 @@ namespace GrassCutter
|
|||||||
public float blend;
|
public float blend;
|
||||||
/// <summary>Has it settled which way it's going?</summary>
|
/// <summary>Has it settled which way it's going?</summary>
|
||||||
public bool set;
|
public bool set;
|
||||||
|
/// <summary>Where it was last put, and for how many steps it hasn't moved: a jammed line is left alone.</summary>
|
||||||
|
public float placedD = -1f;
|
||||||
|
public int still;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct Link
|
struct Link
|
||||||
@ -307,6 +310,7 @@ namespace GrassCutter
|
|||||||
int i = 0;
|
int i = 0;
|
||||||
while (i < Items.Count && Items[i].d > d) i++;
|
while (i < Items.Count && Items[i].d > d) i++;
|
||||||
Items.Insert(i, s);
|
Items.Insert(i, s);
|
||||||
|
_idle = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Server: take an item off this belt (a player grabbed it, it got despawned).</summary>
|
/// <summary>Server: take an item off this belt (a player grabbed it, it got despawned).</summary>
|
||||||
@ -334,7 +338,12 @@ namespace GrassCutter
|
|||||||
void FixedUpdate()
|
void FixedUpdate()
|
||||||
{
|
{
|
||||||
if (!Server || !Piece || !Piece.IsSpawned || Items.Count == 0) return;
|
if (!Server || !Piece || !Piece.IsSpawned || Items.Count == 0) return;
|
||||||
float dt = Time.fixedDeltaTime;
|
// a line that hasn't moved for a while only looks again every few steps whether the front can go on
|
||||||
|
// (each line at its own step of the six: a loaded base has hundreds, and all of them looking on the same step
|
||||||
|
// stalled that frame)
|
||||||
|
if (_idle > 40 && (++_idleSkip + _phase) % 6 != 0) return;
|
||||||
|
bool moved = false;
|
||||||
|
float dt = Time.fixedDeltaTime * (_idle > 40 ? 6f : 1f);
|
||||||
float step = Speed * dt;
|
float step = Speed * dt;
|
||||||
for (int i = 0; i < Items.Count; i++)
|
for (int i = 0; i < Items.Count; i++)
|
||||||
{
|
{
|
||||||
@ -347,16 +356,27 @@ namespace GrassCutter
|
|||||||
}
|
}
|
||||||
float L = Length(s.route);
|
float L = Length(s.route);
|
||||||
float limit = Room(i, ref L);
|
float limit = Room(i, ref L);
|
||||||
if (s.d < limit) s.d = Mathf.Min(s.d + step, limit);
|
if (s.d < limit - 1e-5f) { s.d = Mathf.Min(s.d + step, limit); moved = true; }
|
||||||
if ((i == 0 || RouteCount > 1) && s.d >= L - 1e-4f && HandOff(s))
|
if ((i == 0 || RouteCount > 1) && s.d >= L - 1e-4f && HandOff(s))
|
||||||
{
|
{
|
||||||
Items.RemoveAt(i--);
|
Items.RemoveAt(i--);
|
||||||
|
moved = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
// stuck behind the one ahead: once it has come square and settled there is nothing to move
|
||||||
|
if (s.blend >= 1f && Mathf.Abs(s.d - s.placedD) < 1e-5f) { if (++s.still > 40) continue; }
|
||||||
|
else s.still = 0;
|
||||||
Place(s, dt);
|
Place(s, dt);
|
||||||
|
s.placedD = s.d;
|
||||||
|
if (s.blend < 1f) moved = true;
|
||||||
}
|
}
|
||||||
|
_idle = moved ? 0 : _idle + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int _idle, _idleSkip;
|
||||||
|
static int s_lines;
|
||||||
|
readonly int _phase = s_lines++ % 6;
|
||||||
|
|
||||||
/// <summary>How far an item can go: to the turn until it has chosen, then the end of its route, and never into the one ahead.</summary>
|
/// <summary>How far an item can go: to the turn until it has chosen, then the end of its route, and never into the one ahead.</summary>
|
||||||
float Room(int i, ref float L)
|
float Room(int i, ref float L)
|
||||||
{
|
{
|
||||||
@ -418,7 +438,7 @@ namespace GrassCutter
|
|||||||
}
|
}
|
||||||
// nothing there: drop it off the end, but only onto a free spot (one item waits there at a time)
|
// nothing there: drop it off the end, but only onto a free spot (one item waits there at a time)
|
||||||
var land = WorldOnPath(L, s.route, 0f) + dir * 0.45f;
|
var land = WorldOnPath(L, s.route, 0f) + dir * 0.45f;
|
||||||
int n = Physics.OverlapSphereNonAlloc(land, 0.3f, s_hits, 1 << Layers.Prop, QueryTriggerInteraction.Ignore);
|
int n = Physics.OverlapSphereNonAlloc(land, 0.3f, s_hits, Layers.CargoMask, QueryTriggerInteraction.Ignore);
|
||||||
for (int k = 0; k < n; k++)
|
for (int k = 0; k < n; k++)
|
||||||
{
|
{
|
||||||
var other = s_hits[k].GetComponentInParent<Cargo>();
|
var other = s_hits[k].GetComponentInParent<Cargo>();
|
||||||
@ -494,7 +514,7 @@ namespace GrassCutter
|
|||||||
port = index;
|
port = index;
|
||||||
if (belt && !belt.HasRoom) return false;
|
if (belt && !belt.HasRoom) return false;
|
||||||
}
|
}
|
||||||
else if (Physics.OverlapSphereNonAlloc(way.at + way.dir * 0.5f, 0.45f, s_hits, 1 << Layers.Prop, QueryTriggerInteraction.Ignore) > 0) return false;
|
else if (Physics.OverlapSphereNonAlloc(way.at + way.dir * 0.5f, 0.45f, s_hits, Layers.CargoMask, QueryTriggerInteraction.Ignore) > 0) return false;
|
||||||
var made = Spawner.Instance.SpawnCargo(kind, way.at + way.dir * 0.2f + from.transform.up * 0.35f, from.transform.rotation, way.dir * 1.6f);
|
var made = Spawner.Instance.SpawnCargo(kind, way.at + way.dir * 0.2f + from.transform.up * 0.35f, from.transform.rotation, way.dir * 1.6f);
|
||||||
if (!made) return false;
|
if (!made) return false;
|
||||||
if (belt) belt.ServerAcceptPort(made, port);
|
if (belt) belt.ServerAcceptPort(made, port);
|
||||||
@ -528,9 +548,21 @@ namespace GrassCutter
|
|||||||
static readonly List<Port> s_belted = new List<Port>();
|
static readonly List<Port> s_belted = new List<Port>();
|
||||||
|
|
||||||
/// <summary>Does a belt leave any of this piece's hatches?</summary>
|
/// <summary>Does a belt leave any of this piece's hatches?</summary>
|
||||||
|
static readonly Dictionary<BuildPiece, (int ver, bool on)> s_beltedAt = new Dictionary<BuildPiece, (int, bool)>();
|
||||||
|
|
||||||
public static bool Belted(BuildPiece piece)
|
public static bool Belted(BuildPiece piece)
|
||||||
{
|
{
|
||||||
if (!piece) return false;
|
if (!piece) return false;
|
||||||
|
// asked every frame by every pad and dock: the answer only changes when the build does
|
||||||
|
if (s_beltedAt.TryGetValue(piece, out var had) && had.ver == BuildPiece.Version) return had.on;
|
||||||
|
bool on = Look(piece);
|
||||||
|
if (s_beltedAt.Count > 512) s_beltedAt.Clear();
|
||||||
|
s_beltedAt[piece] = (BuildPiece.Version, on);
|
||||||
|
return on;
|
||||||
|
}
|
||||||
|
|
||||||
|
static bool Look(BuildPiece piece)
|
||||||
|
{
|
||||||
s_belted.Clear();
|
s_belted.Clear();
|
||||||
piece.Ports(s_belted);
|
piece.Ports(s_belted);
|
||||||
foreach (var p in s_belted)
|
foreach (var p in s_belted)
|
||||||
|
|||||||
@ -42,8 +42,8 @@ namespace GrassCutter
|
|||||||
NetworkVariable<Vector4> Trip(int i) => i == 0 ? _trip0 : i == 1 ? _trip1 : i == 2 ? _trip2 : _trip3;
|
NetworkVariable<Vector4> Trip(int i) => i == 0 ? _trip0 : i == 1 ? _trip1 : i == 2 ? _trip2 : _trip3;
|
||||||
/// <summary>Two drones at Mk I, one more per upgrade, four at most.</summary>
|
/// <summary>Two drones at Mk I, one more per upgrade, four at most.</summary>
|
||||||
int Count => Mathf.Min(Most, 2 + (Piece ? Piece.Tier.Value : 0));
|
int Count => Mathf.Min(Most, 2 + (Piece ? Piece.Tier.Value : 0));
|
||||||
float Fly => Speed * Mathf.Sqrt(Piece ? Piece.TierMul : 1f);
|
float Fly => Speed * Mathf.Sqrt(Piece ? Piece.TierMul : 1f) * (TeamState.Instance ? TeamState.Instance.DroneSpeedMul : 1f);
|
||||||
float Reach => Range + RangePerTier * (Piece ? Piece.Tier.Value : 0);
|
float Reach => Range + RangePerTier * (Piece ? Piece.Tier.Value : 0) + (TeamState.Instance ? TeamState.Instance.DroneReachAdd : 0f);
|
||||||
readonly float[] _idleUntil = new float[Most];
|
readonly float[] _idleUntil = new float[Most];
|
||||||
float _shipAt;
|
float _shipAt;
|
||||||
double Now => NetworkManager ? NetworkManager.ServerTime.Time : Time.timeAsDouble;
|
double Now => NetworkManager ? NetworkManager.ServerTime.Time : Time.timeAsDouble;
|
||||||
@ -219,7 +219,17 @@ namespace GrassCutter
|
|||||||
static readonly List<Port> s_ports = new List<Port>();
|
static readonly List<Port> s_ports = new List<Port>();
|
||||||
|
|
||||||
/// <summary>Is a belt joined to the hatch?</summary>
|
/// <summary>Is a belt joined to the hatch?</summary>
|
||||||
|
int _beltedVer = -1;
|
||||||
|
bool _belted;
|
||||||
|
|
||||||
bool Belted()
|
bool Belted()
|
||||||
|
{
|
||||||
|
if (_beltedVer == BuildPiece.Version) return _belted;
|
||||||
|
_beltedVer = BuildPiece.Version;
|
||||||
|
return _belted = LookForBelt();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool LookForBelt()
|
||||||
{
|
{
|
||||||
s_ports.Clear();
|
s_ports.Clear();
|
||||||
Ports(s_ports);
|
Ports(s_ports);
|
||||||
|
|||||||
@ -14,9 +14,9 @@ namespace GrassCutter
|
|||||||
|
|
||||||
public enum VehicleKind : byte { Push, Rider, Pickup, Tractor, Combine, Hauler, Mulcher, Baler, Count }
|
public enum VehicleKind : byte { Push, Rider, Pickup, Tractor, Combine, Hauler, Mulcher, Baler, Count }
|
||||||
|
|
||||||
public enum TuneId : byte { Motors, Hopper, Turbo, Cruise, Cutter, Release, Lights, Count }
|
public enum TuneId : byte { Motors, Hopper, Turbo, Cruise, Cutter, Release, Lights, Autopilot, Count }
|
||||||
|
|
||||||
public enum PerkTree : byte { Containers = 0, Cutting = 1, Suit = 2, Logistics = 3, Economy = 4 }
|
public enum PerkTree : byte { Containers = 0, Cutting = 1, Suit = 2, Logistics = 3, Economy = 4, Automation = 5 }
|
||||||
|
|
||||||
public enum PerkId : byte
|
public enum PerkId : byte
|
||||||
{
|
{
|
||||||
@ -30,13 +30,15 @@ namespace GrassCutter
|
|||||||
QuickTwine, BundleLine, ThrowArm, ExpressDepot,
|
QuickTwine, BundleLine, ThrowArm, ExpressDepot,
|
||||||
// ECONOMY
|
// ECONOMY
|
||||||
EarthPrices, RegionBonus, SupplyDeals, GreenExchange,
|
EarthPrices, RegionBonus, SupplyDeals, GreenExchange,
|
||||||
|
// AUTOMATION (after the rest: a save keeps its perks by number)
|
||||||
|
BotReach, BotSpeed, BotHopper, DroneRange, HiveMind,
|
||||||
Count
|
Count
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum PieceCat : byte { Services, Logistics, Production, Power, Structures, Decor, Count }
|
public enum PieceCat : byte { Services, Logistics, Production, Power, Structures, Decor, Count }
|
||||||
|
|
||||||
public enum PieceId : byte { Depot, Belt, Splitter, Merger, Square, Hex, Dryer, Press, SolarS, SolarM, SolarL, Garage, Binder, RobotI, RobotII, Reaper, Catcher, Pole, BatteryS, BatteryL, UnloadBay, DronePad, Intake,
|
public enum PieceId : byte { Depot, Belt, Splitter, Merger, Square, Hex, Dryer, Press, SolarS, SolarM, SolarL, Garage, Binder, RobotI, RobotII, Reaper, Catcher, Pole, BatteryS, BatteryL, UnloadBay, DronePad, Intake,
|
||||||
Wall, WindowWall, DoorWall, Railing, Fence, Floor, FlatRoof, Roof, Stairs, Steps, Pillar, Planter, Lamppost, Bench, Crates, Flagpole, SkyMower, Count }
|
Wall, WindowWall, DoorWall, Railing, Fence, Floor, FlatRoof, Roof, Stairs, Steps, Pillar, Planter, Lamppost, Bench, Crates, Flagpole, SkyMower, Train, Count }
|
||||||
|
|
||||||
/// <summary>How a structure finds its place: anywhere, on the edge of a deck, or on top of the walls (a storey up).</summary>
|
/// <summary>How a structure finds its place: anywhere, on the edge of a deck, or on top of the walls (a storey up).</summary>
|
||||||
public enum Fit : byte { Free, Edge, Top }
|
public enum Fit : byte { Free, Edge, Top }
|
||||||
@ -236,50 +238,65 @@ namespace GrassCutter
|
|||||||
Bin(PerkId.BinScythe, Loc.N("Scythe Basket"), Loc.N("A bigger basket for the Scythe."), 3, 30, 80, 190),
|
Bin(PerkId.BinScythe, Loc.N("Scythe Basket"), Loc.N("A bigger basket for the Scythe."), 3, 30, 80, 190),
|
||||||
Bin(PerkId.BinLongScythe, Loc.N("Long Scythe Basket"), Loc.N("A bigger basket for the Long Scythe."), 4, 45, 110, 260),
|
Bin(PerkId.BinLongScythe, Loc.N("Long Scythe Basket"), Loc.N("A bigger basket for the Long Scythe."), 4, 45, 110, 260),
|
||||||
Bin(PerkId.BinWideScythe, Loc.N("Two-Handed Scythe Basket"), Loc.N("A bigger basket for the Two-Handed Scythe."), 5, 55, 140, 320),
|
Bin(PerkId.BinWideScythe, Loc.N("Two-Handed Scythe Basket"), Loc.N("A bigger basket for the Two-Handed Scythe."), 5, 55, 140, 320),
|
||||||
new PerkDef { id = PerkId.Compactor, tree = PerkTree.Containers, name = Loc.N("Grass Compactor"), icon = "icon_perk_pressure", col = 2, row = 1, prices = new long[] { 150, 450, 1200 },
|
new PerkDef { id = PerkId.Compactor, tree = PerkTree.Containers, name = Loc.N("Grass Compactor"), icon = "icon_perk_pressure", col = 2, row = 1, prices = new long[] { 150, 600, 2400 },
|
||||||
desc = Loc.N("Tread it down harder. Every tool holds more."), effect = l => Loc.F("All tools +{0}%", l * 15) },
|
desc = Loc.N("Tread it down harder. Every tool holds more."), effect = l => Loc.F("All tools +{0}%", l * 15) },
|
||||||
new PerkDef { id = PerkId.AutoBaler, tree = PerkTree.Containers, name = Loc.N("Auto-Binder"), icon = "icon_piece_filler", col = 3, row = 2, prices = new long[] { 2000 }, big = true, requires = new[] { PerkId.Compactor }, requireLevel = 2,
|
new PerkDef { id = PerkId.AutoBaler, tree = PerkTree.Containers, name = Loc.N("Auto-Binder"), icon = "icon_piece_filler", col = 3, row = 2, prices = new long[] { 5000 }, big = true, requires = new[] { PerkId.Compactor }, requireLevel = 2,
|
||||||
desc = Loc.N("A full basket ties itself into a bundle and drops it at your feet.") },
|
desc = Loc.N("A full basket ties itself into a bundle and drops it at your feet.") },
|
||||||
|
|
||||||
// ── CUTTING ──
|
// ── CUTTING ──
|
||||||
new PerkDef { id = PerkId.WiderBlades, tree = PerkTree.Cutting, name = Loc.N("Wider Blades"), icon = "icon_perk_suction", col = 0, row = 0, prices = new long[] { 40, 140, 400 },
|
new PerkDef { id = PerkId.WiderBlades, tree = PerkTree.Cutting, name = Loc.N("Wider Blades"), icon = "icon_perk_suction", col = 0, row = 0, prices = new long[] { 40, 180, 700 },
|
||||||
desc = Loc.N("A wider strip with every tool."), effect = l => Loc.F("Strip width +{0:0}%", WidthBonus(l) * 100f) },
|
desc = Loc.N("A wider strip with every tool."), effect = l => Loc.F("Strip width +{0:0}%", WidthBonus(l) * 100f) },
|
||||||
new PerkDef { id = PerkId.LongHandles, tree = PerkTree.Cutting, name = Loc.N("Long Handles"), icon = "icon_perk_nozzle", col = 1, row = 0, prices = new long[] { 70, 220 },
|
new PerkDef { id = PerkId.LongHandles, tree = PerkTree.Cutting, name = Loc.N("Long Handles"), icon = "icon_perk_nozzle", col = 1, row = 0, prices = new long[] { 70, 350 },
|
||||||
desc = Loc.N("Reach further without taking a step."), effect = l => Loc.F("Reach +{0:0.##} m", l * 0.75f) },
|
desc = Loc.N("Reach further without taking a step."), effect = l => Loc.F("Reach +{0:0.##} m", l * 0.75f) },
|
||||||
new PerkDef { id = PerkId.DeepSwath, tree = PerkTree.Cutting, name = Loc.N("Deep Swath"), icon = "icon_perk_flow", col = 2, row = 0, prices = new long[] { 90, 280 },
|
new PerkDef { id = PerkId.DeepSwath, tree = PerkTree.Cutting, name = Loc.N("Deep Swath"), icon = "icon_perk_flow", col = 2, row = 0, prices = new long[] { 90, 450 },
|
||||||
desc = Loc.N("The blade bites deeper into the grass."), effect = l => Loc.F("Strip width +{0:0}%", l * 6) },
|
desc = Loc.N("The blade bites deeper into the grass."), effect = l => Loc.F("Strip width +{0:0}%", l * 6) },
|
||||||
new PerkDef { id = PerkId.WhetSteel, tree = PerkTree.Cutting, name = Loc.N("Whetstone Steel"), icon = "icon_perk_blast", col = 1, row = 1, prices = new long[] { 1500 }, big = true, requires = new[] { PerkId.WiderBlades, PerkId.LongHandles, PerkId.DeepSwath }, requireLevel = 2,
|
new PerkDef { id = PerkId.WhetSteel, tree = PerkTree.Cutting, name = Loc.N("Whetstone Steel"), icon = "icon_perk_blast", col = 1, row = 1, prices = new long[] { 4500 }, big = true, requires = new[] { PerkId.WiderBlades, PerkId.LongHandles, PerkId.DeepSwath }, requireLevel = 2,
|
||||||
desc = Loc.N("A razor edge: +10% width and depth, +0.5 m reach.") },
|
desc = Loc.N("A razor edge: +10% width and depth, +0.5 m reach.") },
|
||||||
|
|
||||||
// ── SUIT ──
|
// ── SUIT ──
|
||||||
new PerkDef { id = PerkId.ServoBoots, tree = PerkTree.Suit, name = Loc.N("Servo Boots"), icon = "icon_perk_sneakers", col = 0, row = 0, prices = new long[] { 50, 160, 450 },
|
new PerkDef { id = PerkId.ServoBoots, tree = PerkTree.Suit, name = Loc.N("Servo Boots"), icon = "icon_perk_sneakers", col = 0, row = 0, prices = new long[] { 50, 200, 800 },
|
||||||
desc = Loc.N("Move faster."), effect = l => Loc.F("Speed +{0}%", l * 7) },
|
desc = Loc.N("Move faster."), effect = l => Loc.F("Speed +{0}%", l * 7) },
|
||||||
new PerkDef { id = PerkId.SpringStep, tree = PerkTree.Suit, name = Loc.N("Spring Step"), icon = "icon_perk_boots", col = 2, row = 0, prices = new long[] { 80, 250 },
|
new PerkDef { id = PerkId.SpringStep, tree = PerkTree.Suit, name = Loc.N("Spring Step"), icon = "icon_perk_boots", col = 2, row = 0, prices = new long[] { 80, 400 },
|
||||||
desc = Loc.N("Jump higher."), effect = l => Loc.F("Jump +{0}%", l * 20) },
|
desc = Loc.N("Jump higher."), effect = l => Loc.F("Jump +{0}%", l * 20) },
|
||||||
new PerkDef { id = PerkId.FieldFrame, tree = PerkTree.Suit, name = Loc.N("Field Frame"), icon = "icon_perk_fins", col = 1, row = 1, prices = new long[] { 1200 }, big = true, requires = new[] { PerkId.ServoBoots, PerkId.SpringStep }, requireLevel = 2,
|
new PerkDef { id = PerkId.FieldFrame, tree = PerkTree.Suit, name = Loc.N("Field Frame"), icon = "icon_perk_fins", col = 1, row = 1, prices = new long[] { 3500 }, big = true, requires = new[] { PerkId.ServoBoots, PerkId.SpringStep }, requireLevel = 2,
|
||||||
desc = Loc.N("A light exoskeleton: +8% speed, +15% jump.") },
|
desc = Loc.N("A light exoskeleton: +8% speed, +15% jump.") },
|
||||||
|
|
||||||
// ── LOGISTICS ──
|
// ── LOGISTICS ──
|
||||||
new PerkDef { id = PerkId.QuickTwine, tree = PerkTree.Logistics, name = Loc.N("Quick Twine"), icon = "icon_perk_release", col = 0, row = 0, prices = new long[] { 30, 100, 300 },
|
new PerkDef { id = PerkId.QuickTwine, tree = PerkTree.Logistics, name = Loc.N("Quick Twine"), icon = "icon_perk_release", col = 0, row = 0, prices = new long[] { 30, 120, 450 },
|
||||||
desc = Loc.N("Tie bundles faster."), effect = l => Loc.F("Bundle time -{0}%", l switch { 1 => 25, 2 => 44, _ => 58 }) },
|
desc = Loc.N("Tie bundles faster."), effect = l => Loc.F("Bundle time -{0}%", l switch { 1 => 25, 2 => 44, _ => 58 }) },
|
||||||
new PerkDef { id = PerkId.BundleLine, tree = PerkTree.Logistics, name = Loc.N("Bundle Line"), icon = "icon_perk_remote", col = 1, row = 0, prices = new long[] { 60, 200 },
|
new PerkDef { id = PerkId.BundleLine, tree = PerkTree.Logistics, name = Loc.N("Bundle Line"), icon = "icon_perk_remote", col = 1, row = 0, prices = new long[] { 60, 300 },
|
||||||
desc = Loc.N("Grab bundles from further away."), effect = l => Loc.F("Pick-up reach +{0:0.#} m", l * 1.5f) },
|
desc = Loc.N("Grab bundles from further away."), effect = l => Loc.F("Pick-up reach +{0:0.#} m", l * 1.5f) },
|
||||||
new PerkDef { id = PerkId.ThrowArm, tree = PerkTree.Logistics, name = Loc.N("Throwing Arm"), icon = "icon_perk_beltspeed", col = 2, row = 0, prices = new long[] { 80, 240 },
|
new PerkDef { id = PerkId.ThrowArm, tree = PerkTree.Logistics, name = Loc.N("Throwing Arm"), icon = "icon_perk_beltspeed", col = 2, row = 0, prices = new long[] { 80, 360 },
|
||||||
desc = Loc.N("Throw bundles further."), effect = l => Loc.F("Throw +{0}%", l * 25) },
|
desc = Loc.N("Throw bundles further."), effect = l => Loc.F("Throw +{0}%", l * 25) },
|
||||||
new PerkDef { id = PerkId.ExpressDepot, tree = PerkTree.Logistics, name = Loc.N("Express Depot"), icon = "icon_perk_dockpump", col = 1, row = 1, prices = new long[] { 900 }, big = true, requires = new[] { PerkId.QuickTwine }, requireLevel = 2,
|
new PerkDef { id = PerkId.ExpressDepot, tree = PerkTree.Logistics, name = Loc.N("Express Depot"), icon = "icon_perk_dockpump", col = 1, row = 1, prices = new long[] { 2500 }, big = true, requires = new[] { PerkId.QuickTwine }, requireLevel = 2,
|
||||||
desc = Loc.N("Bundles tie twice as fast and machines unload at the depot twice as fast.") },
|
desc = Loc.N("Bundles tie twice as fast and machines unload at the depot twice as fast.") },
|
||||||
|
|
||||||
// ── ECONOMY ──
|
// ── ECONOMY ──
|
||||||
new PerkDef { id = PerkId.EarthPrices, tree = PerkTree.Economy, name = Loc.N("Earth Prices"), icon = "icon_perk_contracts", col = 0, row = 0, prices = new long[] { 120, 400, 1100 },
|
new PerkDef { id = PerkId.EarthPrices, tree = PerkTree.Economy, name = Loc.N("Earth Prices"), icon = "icon_perk_contracts", col = 0, row = 0, prices = new long[] { 150, 900, 3500 },
|
||||||
desc = Loc.N("Earth is desperate for grass. Make it pay."), effect = l => Loc.F("Payout +{0}%", l * 6) },
|
desc = Loc.N("Earth is desperate for grass. Make it pay."), effect = l => Loc.F("Payout +{0}%", l * 6) },
|
||||||
new PerkDef { id = PerkId.RegionBonus, tree = PerkTree.Economy, name = Loc.N("Sector Bounty"), icon = "icon_perk_purity", col = 2, row = 0, prices = new long[] { 200, 600 },
|
new PerkDef { id = PerkId.RegionBonus, tree = PerkTree.Economy, name = Loc.N("Sector Bounty"), icon = "icon_perk_purity", col = 2, row = 0, prices = new long[] { 250, 1200 },
|
||||||
desc = Loc.N("More cash for every sector mown clean."), effect = l => Loc.F("+{0} per sector", UIK.Money(l * 15d)) },
|
desc = Loc.N("More cash for every sector mown clean."), effect = l => Loc.F("+{0} per sector", UIK.Money(l * 15d)) },
|
||||||
new PerkDef { id = PerkId.SupplyDeals, tree = PerkTree.Economy, name = Loc.N("Supply Deals"), icon = "icon_perk_overclock", col = 0, row = 1, prices = new long[] { 250, 700 },
|
new PerkDef { id = PerkId.SupplyDeals, tree = PerkTree.Economy, name = Loc.N("Supply Deals"), icon = "icon_perk_overclock", col = 0, row = 1, prices = new long[] { 250, 900 },
|
||||||
desc = Loc.N("Tools at the supply wall get cheaper."), effect = l => Loc.F("Tools -{0}%", l * 5) },
|
desc = Loc.N("Tools at the supply wall get cheaper."), effect = l => Loc.F("Tools -{0}%", l * 5) },
|
||||||
new PerkDef { id = PerkId.GreenExchange, tree = PerkTree.Economy, name = Loc.N("Green Exchange"), icon = "icon_star", col = 1, row = 2, prices = new long[] { 2500 }, big = true, requires = new[] { PerkId.EarthPrices }, requireLevel = 2,
|
new PerkDef { id = PerkId.GreenExchange, tree = PerkTree.Economy, name = Loc.N("Green Exchange"), icon = "icon_star", col = 1, row = 2, prices = new long[] { 12000 }, big = true, requires = new[] { PerkId.EarthPrices }, requireLevel = 2,
|
||||||
desc = Loc.N("A seat on the Earth grass exchange: +10% on every payout.") },
|
desc = Loc.N("A seat on the Earth grass exchange: +10% on every payout.") },
|
||||||
|
|
||||||
|
// ── AUTOMATION ──
|
||||||
|
new PerkDef { id = PerkId.BotReach, tree = PerkTree.Automation, name = Loc.N("Long Leash"), icon = "icon_perk_turnaround", col = 0, row = 0, prices = new long[] { 600, 1800, 5000 },
|
||||||
|
desc = Loc.N("Robots start further out and mow further from home."), effect = l => Loc.F("+{0}% robot reach", l * 25) },
|
||||||
|
new PerkDef { id = PerkId.BotSpeed, tree = PerkTree.Automation, name = Loc.N("Overdrive Motors"), icon = "icon_perk_turbo", col = 1, row = 0, prices = new long[] { 800, 2400, 6500 },
|
||||||
|
desc = Loc.N("Robots and Sky Mowers drive and mow faster."), effect = l => Loc.F("+{0}% robot speed", l * 12) },
|
||||||
|
new PerkDef { id = PerkId.BotHopper, tree = PerkTree.Automation, name = Loc.N("Bigger Hoppers"), icon = "icon_perk_tankcap", col = 2, row = 0, prices = new long[] { 700, 2600 },
|
||||||
|
desc = Loc.N("Robots carry more grass before they head home."), effect = l => Loc.F("+{0}% robot hopper", l * 25) },
|
||||||
|
new PerkDef { id = PerkId.DroneRange, tree = PerkTree.Automation, name = Loc.N("Long-Range Drones"), icon = "icon_perk_dronefleet", col = 3, row = 0, prices = new long[] { 900, 2800, 7000 },
|
||||||
|
desc = Loc.N("Drone pads fetch bundles from further away."), effect = l => Loc.F("+{0} m drone reach", l * DroneReachStep) },
|
||||||
|
new PerkDef { id = PerkId.HiveMind, tree = PerkTree.Automation, name = Loc.N("Hive Mind"), icon = "icon_perk_swarm", col = 2, row = 1, prices = new long[] { 15000 }, big = true, requires = new[] { PerkId.BotSpeed, PerkId.DroneRange }, requireLevel = 2,
|
||||||
|
desc = Loc.N("Every robot, Sky Mower and drone works 20% faster.") },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// <summary>Metres a drone pad reaches further per level of Long-Range Drones.</summary>
|
||||||
|
public const int DroneReachStep = 20;
|
||||||
|
|
||||||
public static PerkDef Perk(PerkId id) => Perks[(int)id];
|
public static PerkDef Perk(PerkId id) => Perks[(int)id];
|
||||||
|
|
||||||
// ───────────────────────── build pieces ─────────────────────────
|
// ───────────────────────── build pieces ─────────────────────────
|
||||||
@ -298,9 +315,9 @@ namespace GrassCutter
|
|||||||
desc = Loc.N("A level timber deck on mown ground. What stands on it goes along when you move it.") },
|
desc = Loc.N("A level timber deck on mown ground. What stands on it goes along when you move it.") },
|
||||||
new PieceDef { id = PieceId.Hex, cat = PieceCat.Structures, name = Loc.N("Hex Foundation"), icon = "icon_piece_hexfoundation", model = "SM_Foundation_Hex", prefab = "Piece_Hex", price = 10, sizeX = 3, sizeZ = 3,
|
new PieceDef { id = PieceId.Hex, cat = PieceCat.Structures, name = Loc.N("Hex Foundation"), icon = "icon_piece_hexfoundation", model = "SM_Foundation_Hex", prefab = "Piece_Hex", price = 10, sizeX = 3, sizeZ = 3,
|
||||||
desc = Loc.N("A level timber deck on mown ground, turns in steps of 30 degrees.") },
|
desc = Loc.N("A level timber deck on mown ground, turns in steps of 30 degrees.") },
|
||||||
new PieceDef { id = PieceId.Dryer, cat = PieceCat.Production, name = Loc.N("Windmill"), icon = "icon_piece_vaporizer", model = "SM_Windmill", prefab = "Piece_Dryer", price = 500, sizeX = 2, sizeZ = 2, kw = 10f,
|
new PieceDef { id = PieceId.Dryer, cat = PieceCat.Production, name = Loc.N("Windmill"), icon = "icon_piece_vaporizer", model = "SM_Windmill", prefab = "Piece_Dryer", price = 800, sizeX = 2, sizeZ = 2, kw = 10f,
|
||||||
desc = Loc.N("Five kilos of grass become five of hay in 12 seconds. Hay pays three times as much.") },
|
desc = Loc.N("Five kilos of grass become five of hay in 12 seconds. Hay pays three times as much.") },
|
||||||
new PieceDef { id = PieceId.Press, cat = PieceCat.Production, name = Loc.N("Brick Press"), icon = "icon_piece_cryo", model = "SM_CryoPress", prefab = "Piece_Press", price = 1000, sizeX = 2, sizeZ = 2, kw = 18f,
|
new PieceDef { id = PieceId.Press, cat = PieceCat.Production, name = Loc.N("Brick Press"), icon = "icon_piece_cryo", model = "SM_CryoPress", prefab = "Piece_Press", price = 2500, sizeX = 2, sizeZ = 2, kw = 18f,
|
||||||
desc = Loc.N("A kilo of grass and a kilo of hay become two kilos of brick in 6 seconds. Brick pays seven times as much.") },
|
desc = Loc.N("A kilo of grass and a kilo of hay become two kilos of brick in 6 seconds. Brick pays seven times as much.") },
|
||||||
new PieceDef { id = PieceId.SolarS, cat = PieceCat.Power, name = Loc.N("Solar Post"), icon = "icon_piece_solars", prefab = "Piece_SolarS", price = 75,
|
new PieceDef { id = PieceId.SolarS, cat = PieceCat.Power, name = Loc.N("Solar Post"), icon = "icon_piece_solars", prefab = "Piece_SolarS", price = 75,
|
||||||
desc = Loc.N("3 kW within 16 m, less when the sun is low, nothing at night.") },
|
desc = Loc.N("3 kW within 16 m, less when the sun is low, nothing at night.") },
|
||||||
@ -314,21 +331,21 @@ namespace GrassCutter
|
|||||||
desc = Loc.N("E hands it what's in your tool. It ties the grass into bundles and puts them on the belt at its front.") },
|
desc = Loc.N("E hands it what's in your tool. It ties the grass into bundles and puts them on the belt at its front.") },
|
||||||
new PieceDef { id = PieceId.RobotI, cat = PieceCat.Services, name = Loc.N("Robot Mk I"), icon = "icon_piece_robot", model = "SM_RobotDock", prefab = "Piece_RobotI", price = 250, sizeX = 3, sizeZ = 3,
|
new PieceDef { id = PieceId.RobotI, cat = PieceCat.Services, name = Loc.N("Robot Mk I"), icon = "icon_piece_robot", model = "SM_RobotDock", prefab = "Piece_RobotI", price = 250, sizeX = 3, sizeZ = 3,
|
||||||
desc = Loc.N("Mows the sectors around its dock, then further out once they are done. With a belt the dock sends bundles down it, without one it ships the grass to Earth itself.") },
|
desc = Loc.N("Mows the sectors around its dock, then further out once they are done. With a belt the dock sends bundles down it, without one it ships the grass to Earth itself.") },
|
||||||
new PieceDef { id = PieceId.RobotII, cat = PieceCat.Services, name = Loc.N("Robot Mk II"), icon = "icon_piece_robot2", model = "SM_RobotDock", prefab = "Piece_RobotII", price = 500, sizeX = 3, sizeZ = 3,
|
new PieceDef { id = PieceId.RobotII, cat = PieceCat.Services, name = Loc.N("Robot Mk II"), icon = "icon_piece_robot2", model = "SM_RobotDock", prefab = "Piece_RobotII", price = 900, sizeX = 3, sizeZ = 3,
|
||||||
desc = Loc.N("Starts with 37 sectors, a wider cut and a bigger hopper.") },
|
desc = Loc.N("Starts with 37 sectors, a wider cut and a bigger hopper.") },
|
||||||
new PieceDef { id = PieceId.Reaper, cat = PieceCat.Services, name = Loc.N("Reaper"), icon = "icon_piece_reaper", model = "SM_Reaper", prefab = "Piece_Reaper", price = 20000, sizeX = 3, sizeZ = 4,
|
new PieceDef { id = PieceId.Reaper, cat = PieceCat.Services, name = Loc.N("Reaper"), icon = "icon_piece_reaper", model = "SM_Reaper", prefab = "Piece_Reaper", price = 60000, sizeX = 3, sizeZ = 4,
|
||||||
desc = Loc.N("Goes from sector to sector on its own and shoots every bundle into a Bundle Catcher, from anywhere on the planet.") },
|
desc = Loc.N("Goes from sector to sector on its own and shoots every bundle into a Bundle Catcher, from anywhere on the planet.") },
|
||||||
new PieceDef { id = PieceId.Catcher, cat = PieceCat.Services, name = Loc.N("Bundle Catcher"), icon = "icon_piece_catcher", model = "SM_BundleCatcher", prefab = "Piece_Catcher", price = 1500, sizeX = 3, sizeZ = 3,
|
new PieceDef { id = PieceId.Catcher, cat = PieceCat.Services, name = Loc.N("Bundle Catcher"), icon = "icon_piece_catcher", model = "SM_BundleCatcher", prefab = "Piece_Catcher", price = 3000, sizeX = 3, sizeZ = 3,
|
||||||
desc = Loc.N("Holds 100 kg of what Reapers shoot and puts it on the belt.") },
|
desc = Loc.N("Holds 100 kg of what Reapers shoot and puts it on the belt.") },
|
||||||
new PieceDef { id = PieceId.Pole, cat = PieceCat.Power, name = Loc.N("Power Pole"), icon = "icon_piece_pole", model = "SM_Prop_Power_Pole_01", prefab = "Piece_Pole", price = 25, scale = 0.62f,
|
new PieceDef { id = PieceId.Pole, cat = PieceCat.Power, name = Loc.N("Power Pole"), icon = "icon_piece_pole", model = "SM_Prop_Power_Pole_01", prefab = "Piece_Pole", price = 25, scale = 0.62f,
|
||||||
desc = Loc.N("Carries the network 30 m further. Poles reach each other and everything around them.") },
|
desc = Loc.N("Carries the network 30 m further. Poles reach each other and everything around them.") },
|
||||||
new PieceDef { id = PieceId.BatteryS, cat = PieceCat.Power, name = Loc.N("Battery Rack"), icon = "icon_piece_battery", model = "SM_BatteryRack", prefab = "Piece_BatteryS", price = 250, sizeX = 2, sizeZ = 2,
|
new PieceDef { id = PieceId.BatteryS, cat = PieceCat.Power, name = Loc.N("Battery Rack"), icon = "icon_piece_battery", model = "SM_BatteryRack", prefab = "Piece_BatteryS", price = 250, sizeX = 2, sizeZ = 2,
|
||||||
desc = Loc.N("Stores 5 kWh of spare sun and gives it back at up to 10 kW when the panels fall short, within 12 m.") },
|
desc = Loc.N("Stores 5 kWh of spare sun and gives it back at up to 10 kW when the panels fall short, within 12 m.") },
|
||||||
new PieceDef { id = PieceId.BatteryL, cat = PieceCat.Power, name = Loc.N("Battery Bank"), icon = "icon_piece_batteryl", model = "SM_BatteryBank", prefab = "Piece_BatteryL", price = 1000, sizeX = 3, sizeZ = 2,
|
new PieceDef { id = PieceId.BatteryL, cat = PieceCat.Power, name = Loc.N("Battery Bank"), icon = "icon_piece_batteryl", model = "SM_BatteryBank", prefab = "Piece_BatteryL", price = 1800, sizeX = 3, sizeZ = 2,
|
||||||
desc = Loc.N("Stores 25 kWh and gives back up to 40 kW, within 16 m. A windmill and a press run all night on one.") },
|
desc = Loc.N("Stores 25 kWh and gives back up to 40 kW, within 16 m. A windmill and a press run all night on one.") },
|
||||||
new PieceDef { id = PieceId.UnloadBay, cat = PieceCat.Logistics, name = Loc.N("Unload Bay"), icon = "icon_piece_unloadbay", model = "SM_UnloadBay", prefab = "Piece_UnloadBay", price = 150, sizeX = 4, sizeZ = 7,
|
new PieceDef { id = PieceId.UnloadBay, cat = PieceCat.Logistics, name = Loc.N("Unload Bay"), icon = "icon_piece_unloadbay", model = "SM_UnloadBay", prefab = "Piece_UnloadBay", price = 150, sizeX = 4, sizeZ = 7,
|
||||||
desc = Loc.N("Drive a mower onto the grate and it empties into the bin. Two hatches at the back put it on belts as bundles.") },
|
desc = Loc.N("Drive a mower onto the grate and it empties into the bin. Two hatches at the back put it on belts as bundles.") },
|
||||||
new PieceDef { id = PieceId.DronePad, cat = PieceCat.Logistics, name = Loc.N("Drone Pad"), icon = "icon_piece_dronepad", model = "SM_DronePad", prefab = "Piece_DronePad", price = 600, sizeX = 3, sizeZ = 3, scale = 3.2f,
|
new PieceDef { id = PieceId.DronePad, cat = PieceCat.Logistics, name = Loc.N("Drone Pad"), icon = "icon_piece_dronepad", model = "SM_DronePad", prefab = "Piece_DronePad", price = 900, sizeX = 3, sizeZ = 3, scale = 3.2f,
|
||||||
desc = Loc.N("Its drones fly out to bundles of grass lying loose within 70 m (25 m more per upgrade) and bring them in. With a belt on the front hatch they go down it, without one straight to Earth. Two drones, one more per upgrade.") },
|
desc = Loc.N("Its drones fly out to bundles of grass lying loose within 70 m (25 m more per upgrade) and bring them in. With a belt on the front hatch they go down it, without one straight to Earth. Two drones, one more per upgrade.") },
|
||||||
new PieceDef { id = PieceId.Intake, cat = PieceCat.Services, company = true, name = Loc.N("Base Intake"), icon = "icon_piece_hopper", model = "SM_BaseIntake", prefab = "Piece_Intake", sizeX = 3, sizeZ = 2,
|
new PieceDef { id = PieceId.Intake, cat = PieceCat.Services, company = true, name = Loc.N("Base Intake"), icon = "icon_piece_hopper", model = "SM_BaseIntake", prefab = "Piece_Intake", sizeX = 3, sizeZ = 2,
|
||||||
desc = Loc.N("A low hopper against the side of the base: drop grass in or run a belt to it, and it's paid and on its way to Earth.") },
|
desc = Loc.N("A low hopper against the side of the base: drop grass in or run a belt to it, and it's paid and on its way to Earth.") },
|
||||||
@ -367,8 +384,10 @@ namespace GrassCutter
|
|||||||
new PieceDef { id = PieceId.Flagpole, cat = PieceCat.Decor, name = Loc.N("Flagpole"), icon = "icon_piece_flagpole", model = "SM_Flagpole", prefab = "Piece_Flagpole", price = 5, sizeX = 1, sizeZ = 1,
|
new PieceDef { id = PieceId.Flagpole, cat = PieceCat.Decor, name = Loc.N("Flagpole"), icon = "icon_piece_flagpole", model = "SM_Flagpole", prefab = "Piece_Flagpole", price = 5, sizeX = 1, sizeZ = 1,
|
||||||
desc = Loc.N("The crew's own flag, four metres up.") },
|
desc = Loc.N("The crew's own flag, four metres up.") },
|
||||||
// (appended: the list follows PieceId, and saves keep the ids)
|
// (appended: the list follows PieceId, and saves keep the ids)
|
||||||
new PieceDef { id = PieceId.SkyMower, cat = PieceCat.Services, name = Loc.N("Sky Mower"), icon = "icon_piece_skymower", model = "SM_DronePad", prefab = "Piece_SkyMower", price = 4000, sizeX = 3, sizeZ = 3, scale = 3.2f,
|
new PieceDef { id = PieceId.SkyMower, cat = PieceCat.Services, name = Loc.N("Sky Mower"), icon = "icon_piece_skymower", model = "SM_DronePad", prefab = "Piece_SkyMower", price = 9000, sizeX = 3, sizeZ = 3, scale = 3.2f,
|
||||||
desc = Loc.N("A big mowing drone. It flies over rocks and hills, works 91 sectors around its pad and goes further out once they are mown. No belt needed: the pad sends the grass to Earth.") },
|
desc = Loc.N("A big mowing drone. It flies over rocks and hills, works 91 sectors around its pad and goes further out once they are mown. No belt needed: the pad sends the grass to Earth.") },
|
||||||
|
new PieceDef { id = PieceId.Train, cat = PieceCat.Services, name = Loc.N("Grass Train"), icon = "icon_piece_train", model = "SM_TrainStation", prefab = "Piece_Train", price = 12000, sizeX = 4, sizeZ = 8,
|
||||||
|
desc = Loc.N("Lays its own track to a station next door, mowing all the way there. Then it runs back and forth, its side cutters reaching further out on every run, and what it cuts is paid for at either end. Build it on open ground facing the way it should go.") },
|
||||||
};
|
};
|
||||||
|
|
||||||
public static PieceDef Piece(PieceId id) => Pieces[(int)id];
|
public static PieceDef Piece(PieceId id) => Pieces[(int)id];
|
||||||
@ -384,7 +403,7 @@ namespace GrassCutter
|
|||||||
{
|
{
|
||||||
case PieceId.Belt: case PieceId.Splitter: case PieceId.Merger: return UpgradeKind.Belt;
|
case PieceId.Belt: case PieceId.Splitter: case PieceId.Merger: return UpgradeKind.Belt;
|
||||||
case PieceId.Dryer: case PieceId.Press: case PieceId.Binder: return UpgradeKind.Machine;
|
case PieceId.Dryer: case PieceId.Press: case PieceId.Binder: return UpgradeKind.Machine;
|
||||||
case PieceId.RobotI: case PieceId.RobotII: case PieceId.Reaper: case PieceId.SkyMower: return UpgradeKind.Robot;
|
case PieceId.RobotI: case PieceId.RobotII: case PieceId.Reaper: case PieceId.SkyMower: case PieceId.Train: return UpgradeKind.Robot;
|
||||||
case PieceId.Garage: case PieceId.UnloadBay: case PieceId.Catcher: case PieceId.DronePad: return UpgradeKind.Silo;
|
case PieceId.Garage: case PieceId.UnloadBay: case PieceId.Catcher: case PieceId.DronePad: return UpgradeKind.Silo;
|
||||||
default: return UpgradeKind.None;
|
default: return UpgradeKind.None;
|
||||||
}
|
}
|
||||||
@ -421,6 +440,13 @@ namespace GrassCutter
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>What a piece gets at a tier: the train also gets a wagon for each.</summary>
|
||||||
|
public static string TierEffect(PieceId id, UpgradeKind k, int tier)
|
||||||
|
{
|
||||||
|
if (id == PieceId.Train) return Loc.F("x{0:0.#} speed and reach, {1} wagons", TierMul(k, tier), 3 + Mathf.Clamp(tier, 0, MaxTier));
|
||||||
|
return TierEffect(k, tier);
|
||||||
|
}
|
||||||
|
|
||||||
public static double UpgradePrice(BuildPiece p, int tier)
|
public static double UpgradePrice(BuildPiece p, int tier)
|
||||||
{
|
{
|
||||||
double basis = p.Run ? Math.Max(20d, p.Run.Metres * 4d) : Math.Max(20d, p.Def.price);
|
double basis = p.Run ? Math.Max(20d, p.Run.Metres * 4d) : Math.Max(20d, p.Def.price);
|
||||||
@ -519,19 +545,19 @@ namespace GrassCutter
|
|||||||
{
|
{
|
||||||
new VehicleDef { kind = VehicleKind.Push, name = Loc.N("Push Mower"), icon = "icon_vehicle_push", price = 300, width = 1.35f, hopper = 100f, speed = 5f, accel = 7f, turn = 3f,
|
new VehicleDef { kind = VehicleKind.Push, name = Loc.N("Push Mower"), icon = "icon_vehicle_push", price = 300, width = 1.35f, hopper = 100f, speed = 5f, accel = 7f, turn = 3f,
|
||||||
desc = Loc.N("The first step up from a scythe: a wide strip at walking pace.") },
|
desc = Loc.N("The first step up from a scythe: a wide strip at walking pace.") },
|
||||||
new VehicleDef { kind = VehicleKind.Rider, name = Loc.N("Garden Rider"), icon = "icon_vehicle_ski", price = 1000, width = 2f, hopper = 500f, speed = 9.7f, accel = 11f, turn = 2.2f,
|
new VehicleDef { kind = VehicleKind.Rider, name = Loc.N("Garden Rider"), icon = "icon_vehicle_ski", price = 1200, width = 2f, hopper = 500f, speed = 9.7f, accel = 11f, turn = 2.2f,
|
||||||
desc = Loc.N("Sit down, drive, mow. Unloads at a garage pad.") },
|
desc = Loc.N("Sit down, drive, mow. Unloads at a garage pad.") },
|
||||||
new VehicleDef { kind = VehicleKind.Pickup, name = Loc.N("Pickup"), icon = "icon_vehicle_hover", price = 2000, speed = 14f, accel = 10f, turn = 1.8f, bed = 4, seatDrop = 0.56f, seatAhead = 0.12f,
|
new VehicleDef { kind = VehicleKind.Pickup, name = Loc.N("Pickup"), icon = "icon_vehicle_hover", price = 2500, speed = 14f, accel = 10f, turn = 1.8f, bed = 4, seatDrop = 0.56f, seatAhead = 0.12f,
|
||||||
desc = Loc.N("Doesn't mow. Fast, and carries four bundles: E loads the one in your arms, T tips them out.") },
|
desc = Loc.N("Doesn't mow. Fast, and carries four bundles: E loads the one in your arms, T tips them out.") },
|
||||||
new VehicleDef { kind = VehicleKind.Tractor, name = Loc.N("Mowing Tractor"), icon = "icon_vehicle_tug", price = 2500, width = 2.8f, hopper = 1200f, speed = 9f, accel = 8f, turn = 1.5f, seatDrop = 0.42f,
|
new VehicleDef { kind = VehicleKind.Tractor, name = Loc.N("Mowing Tractor"), icon = "icon_vehicle_tug", price = 4000, width = 2.8f, hopper = 1200f, speed = 9f, accel = 8f, turn = 1.5f, seatDrop = 0.42f,
|
||||||
desc = Loc.N("A proper machine for proper fields.") },
|
desc = Loc.N("A proper machine for proper fields.") },
|
||||||
new VehicleDef { kind = VehicleKind.Combine, name = Loc.N("Combine"), icon = "icon_vehicle_combine", price = 6000, width = 3.7f, hopper = 3000f, speed = 8f, accel = 5f, turn = 1.3f, seatDrop = 0.45f,
|
new VehicleDef { kind = VehicleKind.Combine, name = Loc.N("Combine"), icon = "icon_vehicle_combine", price = 15000, width = 3.7f, hopper = 3000f, speed = 8f, accel = 5f, turn = 1.3f, seatDrop = 0.45f,
|
||||||
desc = Loc.N("Slow to turn, and nothing else cuts as wide or carries as much.") },
|
desc = Loc.N("Slow to turn, and nothing else cuts as wide or carries as much.") },
|
||||||
new VehicleDef { kind = VehicleKind.Hauler, name = Loc.N("Haul Tractor"), icon = "icon_vehicle_hauler", price = 4000, width = 1.6f, hopper = 4000f, speed = 12f, accel = 8f, turn = 1.4f, seatDrop = 0.18f,
|
new VehicleDef { kind = VehicleKind.Hauler, name = Loc.N("Haul Tractor"), icon = "icon_vehicle_hauler", price = 7000, width = 1.6f, hopper = 4000f, speed = 12f, accel = 8f, turn = 1.4f, seatDrop = 0.18f,
|
||||||
desc = Loc.N("A narrow cutter and a huge tank on a trailer: mow far out, come back once.") },
|
desc = Loc.N("A narrow cutter and a huge tank on a trailer: mow far out, come back once.") },
|
||||||
new VehicleDef { kind = VehicleKind.Mulcher, name = Loc.N("Wide Mulcher"), icon = "icon_vehicle_mulcher", price = 8000, width = 5.5f, hopper = 900f, speed = 7f, accel = 5f, turn = 1.1f, seatDrop = 0.18f,
|
new VehicleDef { kind = VehicleKind.Mulcher, name = Loc.N("Wide Mulcher"), icon = "icon_vehicle_mulcher", price = 20000, width = 5.5f, hopper = 900f, speed = 7f, accel = 5f, turn = 1.1f, seatDrop = 0.18f,
|
||||||
desc = Loc.N("Wings out to five and a half metres. Fills fast: put an Unload Bay near the field.") },
|
desc = Loc.N("Wings out to five and a half metres. Fills fast: put an Unload Bay near the field.") },
|
||||||
new VehicleDef { kind = VehicleKind.Baler, name = Loc.N("Baler Tractor"), icon = "icon_vehicle_baler", price = 3500, width = 2.2f, hopper = 600f, speed = 9f, accel = 8f, turn = 1.5f, bales = true,
|
new VehicleDef { kind = VehicleKind.Baler, name = Loc.N("Baler Tractor"), icon = "icon_vehicle_baler", price = 6000, width = 2.2f, hopper = 600f, speed = 9f, accel = 8f, turn = 1.5f, bales = true,
|
||||||
desc = Loc.N("Bales as it goes: pull up beside the start of any belt and its chute feeds the belt, five bundles a second.") },
|
desc = Loc.N("Bales as it goes: pull up beside the start of any belt and its chute feeds the belt, five bundles a second.") },
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -539,19 +565,21 @@ namespace GrassCutter
|
|||||||
|
|
||||||
public static readonly TuneDef[] Tunes =
|
public static readonly TuneDef[] Tunes =
|
||||||
{
|
{
|
||||||
new TuneDef { id = TuneId.Motors, name = Loc.N("Tuned Motors"), prices = new long[] { 250, 600, 1500 }, effect = l => Loc.F("+{0}% speed and pull", l * 10) },
|
new TuneDef { id = TuneId.Motors, name = Loc.N("Tuned Motors"), prices = new long[] { 250, 900, 3000 }, effect = l => Loc.F("+{0}% speed and pull", l * 10) },
|
||||||
new TuneDef { id = TuneId.Hopper, name = Loc.N("Big Hopper"), prices = new long[] { 200, 500, 1200 }, effect = l => Loc.F("+{0}% hopper", l * 30) },
|
new TuneDef { id = TuneId.Hopper, name = Loc.N("Big Hopper"), prices = new long[] { 200, 700, 2400 }, effect = l => Loc.F("+{0}% hopper", l * 30) },
|
||||||
new TuneDef { id = TuneId.Turbo, name = Loc.N("Turbo Kit"), prices = new long[] { 400, 1200 }, effect = l => Loc.F("SHIFT boost {0:0}%", BoostMul(l) * 100f) },
|
new TuneDef { id = TuneId.Turbo, name = Loc.N("Turbo Kit"), prices = new long[] { 400, 2000 }, effect = l => Loc.F("SHIFT boost {0:0}%", BoostMul(l) * 100f) },
|
||||||
new TuneDef { id = TuneId.Cruise, name = Loc.N("Cruise Control"), prices = new long[] { 500 }, effect = l => Loc.T("C holds your speed") },
|
new TuneDef { id = TuneId.Cruise, name = Loc.N("Cruise Control"), prices = new long[] { 500 }, effect = l => Loc.T("C holds your speed") },
|
||||||
new TuneDef { id = TuneId.Cutter, name = Loc.N("Cutter Control"), prices = new long[] { 400, 900, 2000 }, effect = l => Loc.F("Strip +{0}% at {1:0}% speed", l * 25, CutterSpeed(l) * 100f) },
|
new TuneDef { id = TuneId.Cutter, name = Loc.N("Cutter Control"), prices = new long[] { 400, 1400, 4000 }, effect = l => Loc.F("Strip +{0}% at {1:0}% speed", l * 25, CutterSpeed(l) * 100f) },
|
||||||
new TuneDef { id = TuneId.Release, name = Loc.N("Quick Release"), prices = new long[] { 150, 400 }, effect = l => Loc.F("+{0}% unloading", l * 50) },
|
new TuneDef { id = TuneId.Release, name = Loc.N("Quick Release"), prices = new long[] { 150, 400 }, effect = l => Loc.F("+{0}% unloading", l * 50) },
|
||||||
new TuneDef { id = TuneId.Lights, name = Loc.N("Floodlights"), prices = new long[] { 100, 300 }, effect = l => Loc.F("+{0}% light at night", l * 60) },
|
new TuneDef { id = TuneId.Lights, name = Loc.N("Floodlights"), prices = new long[] { 100, 300 }, effect = l => Loc.F("+{0}% light at night", l * 60) },
|
||||||
|
new TuneDef { id = TuneId.Autopilot, name = Loc.N("Autopilot"), prices = new long[] { 1500 }, effect = l => Loc.T("C hands it over: it mows and unloads on its own") },
|
||||||
};
|
};
|
||||||
|
|
||||||
public static TuneDef Tune(TuneId t) => Tunes[(int)t];
|
public static TuneDef Tune(TuneId t) => Tunes[(int)t];
|
||||||
/// <summary>Upgrades cost more on dearer machines, from half to three times the listed price.</summary>
|
/// <summary>Upgrades cost more on dearer machines, from half to three times the listed price.</summary>
|
||||||
public static double TunePrice(VehicleKind k, TuneId t, int level) => System.Math.Round(Tune(t).prices[level] * System.Math.Min(3d, System.Math.Max(0.5d, Vehicle(k).price / 1000d)), 2);
|
public static double TunePrice(VehicleKind k, TuneId t, int level) => System.Math.Round(Tune(t).prices[level] * System.Math.Min(3d, System.Math.Max(0.5d, Vehicle(k).price / 1000d)), 2);
|
||||||
public static bool TuneFits(VehicleKind k, TuneId t) => Vehicle(k).bed == 0 || (t != TuneId.Hopper && t != TuneId.Cutter && t != TuneId.Release);
|
public static bool TuneFits(VehicleKind k, TuneId t) => t == TuneId.Autopilot ? Vehicle(k).bed == 0 && Vehicle(k).width > 0f
|
||||||
|
: Vehicle(k).bed == 0 || (t != TuneId.Hopper && t != TuneId.Cutter && t != TuneId.Release);
|
||||||
public static float BoostMul(int level) => level >= 2 ? 1.65f : level == 1 ? 1.5f : 1.25f;
|
public static float BoostMul(int level) => level >= 2 ? 1.65f : level == 1 ? 1.5f : 1.25f;
|
||||||
public static float CutterSpeed(int level) => level >= 3 ? 0.6f : level == 2 ? 0.72f : level == 1 ? 0.85f : 1f;
|
public static float CutterSpeed(int level) => level >= 3 ? 0.6f : level == 2 ? 0.72f : level == 1 ? 0.85f : 1f;
|
||||||
public static float VehicleTankMul(int level) => 1f + level * 0.3f;
|
public static float VehicleTankMul(int level) => 1f + level * 0.3f;
|
||||||
|
|||||||
@ -44,6 +44,7 @@ namespace GrassCutter
|
|||||||
|
|
||||||
public override void OnNetworkSpawn()
|
public override void OnNetworkSpawn()
|
||||||
{
|
{
|
||||||
|
CargoTick.Ensure();
|
||||||
All.Add(this);
|
All.Add(this);
|
||||||
Holder.OnValueChanged += (_, h) => ApplyHeldLayer(h != Nobody);
|
Holder.OnValueChanged += (_, h) => ApplyHeldLayer(h != Nobody);
|
||||||
Scale.OnValueChanged += (_, s) => transform.localScale = _baseScale * s;
|
Scale.OnValueChanged += (_, s) => transform.localScale = _baseScale * s;
|
||||||
@ -155,15 +156,31 @@ namespace GrassCutter
|
|||||||
if (Body && !Body.isKinematic && !IsHeld) Body.AddForce(velocity, ForceMode.VelocityChange);
|
if (Body && !Body.isKinematic && !IsHeld) Body.AddForce(velocity, ForceMode.VelocityChange);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FixedUpdate()
|
int _still;
|
||||||
|
Cargo _cargo;
|
||||||
|
bool _cargoLooked;
|
||||||
|
|
||||||
|
/// <summary>One physics step, from <see cref="CargoTick"/>.</summary>
|
||||||
|
internal void Step()
|
||||||
{
|
{
|
||||||
|
// riding a belt (most bundles on a big farm): nothing to do, and the managed test is the cheap one
|
||||||
|
if (!_cargoLooked) { _cargo = GetComponent<Cargo>(); _cargoLooked = true; }
|
||||||
|
if (_cargo && _cargo.Belt) return;
|
||||||
if (!IsSpawned || !IsOwner || !Body || Body.isKinematic) return;
|
if (!IsSpawned || !IsOwner || !Body || Body.isKinematic) return;
|
||||||
|
// at rest it sleeps: our own gravity, pushed every step, would keep it awake for ever, and a big farm has
|
||||||
|
// hundreds of bundles lying about. A knock, a grab or a belt wakes it again.
|
||||||
|
if (Body.IsSleeping()) return;
|
||||||
var p = Body.position;
|
var p = Body.position;
|
||||||
var up = Planet.Up(p);
|
var up = Planet.Up(p);
|
||||||
if (!IsHeld) Body.AddForce(-up * GameDefs.LowGravity, ForceMode.Acceleration);
|
if (!IsHeld) Body.AddForce(-up * GameDefs.LowGravity, ForceMode.Acceleration);
|
||||||
// there is no collider under the grass: the soil is a number
|
// there is no collider under the grass: the soil is a number
|
||||||
var c = GetComponent<Cargo>();
|
if (!_cargoLooked) { _cargo = GetComponent<Cargo>(); _cargoLooked = true; }
|
||||||
float below = Planet.Altitude(p) - (c ? c.halfHeight : 0.3f);
|
float below = Planet.Altitude(p) - (_cargo ? _cargo.halfHeight : 0.3f);
|
||||||
|
if (!IsHeld && Body.linearVelocity.sqrMagnitude < 0.004f && Body.angularVelocity.sqrMagnitude < 0.01f)
|
||||||
|
{
|
||||||
|
if (++_still > 25) { _still = 0; Body.Sleep(); return; }
|
||||||
|
}
|
||||||
|
else _still = 0;
|
||||||
if (below >= 0f) return;
|
if (below >= 0f) return;
|
||||||
Body.position = p - up * below;
|
Body.position = p - up * below;
|
||||||
var v = Body.linearVelocity;
|
var v = Body.linearVelocity;
|
||||||
@ -193,6 +210,10 @@ namespace GrassCutter
|
|||||||
public const int ViewModel = 11;
|
public const int ViewModel = 11;
|
||||||
public const int LocalPlayer = 12;
|
public const int LocalPlayer = 12;
|
||||||
public const int Build = 13;
|
public const int Build = 13;
|
||||||
|
/// <summary>Cargo riding a belt: the belts' catch triggers (and the static world) don't see it, everything else does.</summary>
|
||||||
|
public const int Riding = 14;
|
||||||
|
/// <summary>Loose cargo and cargo on a belt, for the casts that look for either.</summary>
|
||||||
|
public const int CargoMask = (1 << Prop) | (1 << Riding);
|
||||||
|
|
||||||
public static void SetupCollisions()
|
public static void SetupCollisions()
|
||||||
{
|
{
|
||||||
@ -202,9 +223,14 @@ namespace GrassCutter
|
|||||||
Physics.IgnoreLayerCollision(Wrap, Vehicle);
|
Physics.IgnoreLayerCollision(Wrap, Vehicle);
|
||||||
Physics.IgnoreLayerCollision(ViewModel, Default);
|
Physics.IgnoreLayerCollision(ViewModel, Default);
|
||||||
for (int i = 0; i < 32; i++) Physics.IgnoreLayerCollision(ViewModel, i);
|
for (int i = 0; i < 32; i++) Physics.IgnoreLayerCollision(ViewModel, i);
|
||||||
|
// a bundle on a belt is kinematic: against the belts and the static world it only ever made trigger calls,
|
||||||
|
// one per bundle per belt per physics step (two thousand on a big farm), all of them for nothing
|
||||||
|
Physics.IgnoreLayerCollision(Riding, Build);
|
||||||
|
Physics.IgnoreLayerCollision(Riding, Default);
|
||||||
|
Physics.IgnoreLayerCollision(Riding, Riding);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Things the player's interaction ray can hit.</summary>
|
/// <summary>Things the player's interaction ray can hit.</summary>
|
||||||
public static readonly int InteractMask = (1 << Default) | (1 << Wrap) | (1 << Prop) | (1 << Vehicle) | (1 << Player) | (1 << Build);
|
public static readonly int InteractMask = (1 << Default) | (1 << Wrap) | (1 << Prop) | (1 << Riding) | (1 << Vehicle) | (1 << Player) | (1 << Build);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -53,7 +53,9 @@ namespace GrassCutter
|
|||||||
BuildPiece _bp;
|
BuildPiece _bp;
|
||||||
/// <summary>The dock's upgrade level makes the robot faster and its hopper bigger.</summary>
|
/// <summary>The dock's upgrade level makes the robot faster and its hopper bigger.</summary>
|
||||||
protected float Boost => (_bp ? _bp : (_bp = GetComponent<BuildPiece>())) ? _bp.TierMul : 1f;
|
protected float Boost => (_bp ? _bp : (_bp = GetComponent<BuildPiece>())) ? _bp.TierMul : 1f;
|
||||||
public float HopperCap => Def.hopper * Boost;
|
public float HopperCap => Def.hopper * Boost * (TeamState.Instance ? TeamState.Instance.BotHopperMul : 1f);
|
||||||
|
/// <summary>The crew's automation perks.</summary>
|
||||||
|
protected float PerkSpeed => TeamState.Instance ? TeamState.Instance.BotSpeedMul : 1f;
|
||||||
public RobotMood Doing => (RobotMood)Mood.Value;
|
public RobotMood Doing => (RobotMood)Mood.Value;
|
||||||
|
|
||||||
protected abstract Transform Body { get; }
|
protected abstract Transform Body { get; }
|
||||||
@ -312,7 +314,7 @@ namespace GrassCutter
|
|||||||
// not RotateTowards: it calls anything under a tenth of a degree "there already", and that is 4 m on this ball
|
// not RotateTowards: it calls anything under a tenth of a degree "there already", and that is 4 m on this ball
|
||||||
var gap = goal - Dir;
|
var gap = goal - Dir;
|
||||||
// on the way somewhere (to a sector, home to unload) it goes faster than it mows
|
// on the way somewhere (to a sector, home to unload) it goes faster than it mows
|
||||||
float step = Def.speed * Boost * (Homing || _travel ? TravelMul : 1f) * dt / Planet.Radius;
|
float step = Def.speed * Boost * PerkSpeed * (Homing || _travel ? TravelMul : 1f) * dt / Planet.Radius;
|
||||||
if (gap.magnitude > step) Dir = (Dir + gap.normalized * step).normalized;
|
if (gap.magnitude > step) Dir = (Dir + gap.normalized * step).normalized;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -23,8 +23,10 @@ namespace GrassCutter
|
|||||||
protected override Transform Body => bot;
|
protected override Transform Body => bot;
|
||||||
protected override bool NoseOnBack => true;
|
protected override bool NoseOnBack => true;
|
||||||
protected override Vector3 Origin => transform.position;
|
protected override Vector3 Origin => transform.position;
|
||||||
protected override int Reach => _reach > 0 ? _reach : Def.reach;
|
protected override int Reach => Mathf.Min(MaxReach, Mathf.Max(_reach, StartReach));
|
||||||
int MaxReach => Def.reach * 4;
|
/// <summary>Where it starts: its own reach, and Long Leash puts it further out.</summary>
|
||||||
|
int StartReach => Def.reach + (TeamState.Instance ? TeamState.Instance.BotReachRings : 0);
|
||||||
|
int MaxReach => Mathf.Max(StartReach, Mathf.RoundToInt(Def.reach * 4 * (TeamState.Instance ? TeamState.Instance.BotRoamMul : 1f)));
|
||||||
protected override Vector3 HomeDir => Planet.Up(transform.position);
|
protected override Vector3 HomeDir => Planet.Up(transform.position);
|
||||||
|
|
||||||
public override string Prompt
|
public override string Prompt
|
||||||
@ -98,7 +100,7 @@ namespace GrassCutter
|
|||||||
public override void Moved(Vector3 at)
|
public override void Moved(Vector3 at)
|
||||||
{
|
{
|
||||||
base.Moved(at);
|
base.Moved(at);
|
||||||
_reach = Def.reach;
|
_reach = 0;
|
||||||
_area = 0;
|
_area = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -16,7 +16,7 @@ namespace GrassCutter
|
|||||||
bool belt = d.id == PieceId.Belt;
|
bool belt = d.id == PieceId.Belt;
|
||||||
double price = belt ? GameDefs.BeltPrice(Vector3.Distance(at, to)) : d.price;
|
double price = belt ? GameDefs.BeltPrice(Vector3.Distance(at, to)) : d.price;
|
||||||
bool fits = belt ? BuildRules.CanRun(at, to, out _) : BuildRules.CanPlace(d, at, rot, null, out _);
|
bool fits = belt ? BuildRules.CanRun(at, to, out _) : BuildRules.CanPlace(d, at, rot, null, out _);
|
||||||
if (d.company || !who || !who.Owns(ToolId.Hammer) || Money.Value < price || !fits) { DeniedRpc(sender); return; }
|
if (d.company || !who || !who.Owns(ToolId.Hammer) || Money.Value < price || Demo.Over || !fits) { DeniedRpc(sender); return; }
|
||||||
Money.Value -= price;
|
Money.Value -= price;
|
||||||
ServerSpawnPiece(d.id, at, belt ? BuildRules.RunRotation(at, to) : rot, to);
|
ServerSpawnPiece(d.id, at, belt ? BuildRules.RunRotation(at, to) : rot, to);
|
||||||
Save();
|
Save();
|
||||||
|
|||||||
@ -18,6 +18,9 @@ namespace GrassCutter
|
|||||||
public float tank;
|
public float tank;
|
||||||
public int[] tune;
|
public int[] tune;
|
||||||
public Vector2[] bed;
|
public Vector2[] bed;
|
||||||
|
/// <summary>On autopilot (<see cref="Vehicle.AutoJob"/>, 0 off), and the spot and way it was started from.</summary>
|
||||||
|
public int auto;
|
||||||
|
public Vector3 home, fwd;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Where a garage puts a machine: its pad, or if it's gone, at the base along the ramp in the first free spot.</summary>
|
/// <summary>Where a garage puts a machine: its pad, or if it's gone, at the base along the ramp in the first free spot.</summary>
|
||||||
@ -89,7 +92,7 @@ namespace GrassCutter
|
|||||||
var who = PlayerOf(rpc.Receive.SenderClientId);
|
var who = PlayerOf(rpc.Receive.SenderClientId);
|
||||||
if (!who || !who.ClaimedSave || kind >= (byte)VehicleKind.Count) return;
|
if (!who || !who.ClaimedSave || kind >= (byte)VehicleKind.Count) return;
|
||||||
var d = GameDefs.Vehicle((VehicleKind)kind);
|
var d = GameDefs.Vehicle((VehicleKind)kind);
|
||||||
if (Money.Value < d.price || Vehicle.Mine(d.kind, who.SaveId)) { DeniedRpc(sender); return; }
|
if (Money.Value < d.price || Demo.Over || Vehicle.Mine(d.kind, who.SaveId)) { DeniedRpc(sender); return; }
|
||||||
Money.Value -= d.price;
|
Money.Value -= d.price;
|
||||||
var shed = ShedFor(garage);
|
var shed = ShedFor(garage);
|
||||||
Vector3 at;
|
Vector3 at;
|
||||||
@ -128,7 +131,7 @@ namespace GrassCutter
|
|||||||
int level = v.Level(t);
|
int level = v.Level(t);
|
||||||
if (level >= GameDefs.Tune(t).prices.Length) { DeniedRpc(sender); return; }
|
if (level >= GameDefs.Tune(t).prices.Length) { DeniedRpc(sender); return; }
|
||||||
double price = GameDefs.TunePrice(v.kind, t, level);
|
double price = GameDefs.TunePrice(v.kind, t, level);
|
||||||
if (Money.Value < price) { DeniedRpc(sender); return; }
|
if (Money.Value < price || Demo.Over) { DeniedRpc(sender); return; }
|
||||||
Money.Value -= price;
|
Money.Value -= price;
|
||||||
v.Tuned[tune] = (byte)(level + 1);
|
v.Tuned[tune] = (byte)(level + 1);
|
||||||
Save();
|
Save();
|
||||||
@ -141,6 +144,7 @@ namespace GrassCutter
|
|||||||
{
|
{
|
||||||
if (!v || !v.IsSpawned) continue;
|
if (!v || !v.IsSpawned) continue;
|
||||||
var s = new VehicleSave { kind = (int)v.kind, key = v.Crew.Value.ToString(), at = v.transform.position, turn = v.transform.rotation, tank = v.Tank.Value };
|
var s = new VehicleSave { kind = (int)v.kind, key = v.Crew.Value.ToString(), at = v.transform.position, turn = v.transform.rotation, tank = v.Tank.Value };
|
||||||
|
if (!v.HasDriver) v.AutoState(out s.auto, out s.home, out s.fwd);
|
||||||
s.tune = new int[v.Tuned.Count];
|
s.tune = new int[v.Tuned.Count];
|
||||||
for (int i = 0; i < s.tune.Length; i++) s.tune[i] = v.Tuned[i];
|
for (int i = 0; i < s.tune.Length; i++) s.tune[i] = v.Tuned[i];
|
||||||
s.bed = new Vector2[v.Bed.Count];
|
s.bed = new Vector2[v.Bed.Count];
|
||||||
@ -161,6 +165,7 @@ namespace GrassCutter
|
|||||||
v.Tank.Value = s.tank;
|
v.Tank.Value = s.tank;
|
||||||
if (s.tune != null) for (int i = 0; i < s.tune.Length && i < v.Tuned.Count; i++) v.Tuned[i] = (byte)s.tune[i];
|
if (s.tune != null) for (int i = 0; i < s.tune.Length && i < v.Tuned.Count; i++) v.Tuned[i] = (byte)s.tune[i];
|
||||||
if (s.bed != null) foreach (var b in s.bed) v.Bed.Add(b);
|
if (s.bed != null) foreach (var b in s.bed) v.Bed.Add(b);
|
||||||
|
if (s.auto != 0) v.ServerResumeAuto(s.home, s.fwd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -157,7 +157,7 @@ namespace GrassCutter
|
|||||||
{
|
{
|
||||||
var at = TwisterPos(Now);
|
var at = TwisterPos(Now);
|
||||||
var up = Planet.Up(at);
|
var up = Planet.Up(at);
|
||||||
int n = Physics.OverlapSphereNonAlloc(at + up * 2f, TwisterRadius + 2f, s_hits, 1 << Layers.Prop, QueryTriggerInteraction.Ignore);
|
int n = Physics.OverlapSphereNonAlloc(at + up * 2f, TwisterRadius + 2f, s_hits, Layers.CargoMask, QueryTriggerInteraction.Ignore);
|
||||||
for (int i = 0; i < n; i++)
|
for (int i = 0; i < n; i++)
|
||||||
{
|
{
|
||||||
var rb = s_hits[i].attachedRigidbody;
|
var rb = s_hits[i].attachedRigidbody;
|
||||||
|
|||||||
@ -46,6 +46,8 @@ namespace GrassCutter
|
|||||||
public int ver;
|
public int ver;
|
||||||
/// <summary>How big the ball is: 0 the whole planet (every save from before there was a choice), 1 half, 2 a third.</summary>
|
/// <summary>How big the ball is: 0 the whole planet (every save from before there was a choice), 1 half, 2 a third.</summary>
|
||||||
public int level;
|
public int level;
|
||||||
|
/// <summary>Which set of planet sizes (<see cref="Difficulties.NewGen"/>): 0 for every save from before.</summary>
|
||||||
|
public int sizeGen;
|
||||||
public double money, shipped, mown;
|
public double money, shipped, mown;
|
||||||
/// <summary>Time of day: the first morning begins here.</summary>
|
/// <summary>Time of day: the first morning begins here.</summary>
|
||||||
public float day = 0.75f;
|
public float day = 0.75f;
|
||||||
@ -86,7 +88,7 @@ namespace GrassCutter
|
|||||||
Tiles.OnListChanged += _ => { TilesChanged?.Invoke(); Changed?.Invoke(); };
|
Tiles.OnListChanged += _ => { TilesChanged?.Invoke(); Changed?.Invoke(); };
|
||||||
if (!IsServer)
|
if (!IsServer)
|
||||||
{
|
{
|
||||||
Difficulties.Apply((Difficulty)Size.Value);
|
Difficulties.ApplyWire(Size.Value);
|
||||||
MowMap.Reset(); // the host sends what has been cut
|
MowMap.Reset(); // the host sends what has been cut
|
||||||
}
|
}
|
||||||
WatchSectors();
|
WatchSectors();
|
||||||
@ -140,6 +142,15 @@ namespace GrassCutter
|
|||||||
|
|
||||||
public float BundleSeconds => GameDefs.BundleSeconds(Level(PerkId.QuickTwine), Level(PerkId.ExpressDepot));
|
public float BundleSeconds => GameDefs.BundleSeconds(Level(PerkId.QuickTwine), Level(PerkId.ExpressDepot));
|
||||||
|
|
||||||
|
/// <summary>Rings a robot starts further out, from Long Leash.</summary>
|
||||||
|
public int BotReachRings => Level(PerkId.BotReach);
|
||||||
|
/// <summary>How far out a robot may roam, against its own limit.</summary>
|
||||||
|
public float BotRoamMul => 1f + Level(PerkId.BotReach) * 0.25f;
|
||||||
|
public float BotSpeedMul => (1f + Level(PerkId.BotSpeed) * 0.12f) * (Has(PerkId.HiveMind) ? 1.2f : 1f);
|
||||||
|
public float BotHopperMul => 1f + Level(PerkId.BotHopper) * 0.25f;
|
||||||
|
public float DroneReachAdd => Level(PerkId.DroneRange) * GameDefs.DroneReachStep;
|
||||||
|
public float DroneSpeedMul => Has(PerkId.HiveMind) ? 1.2f : 1f;
|
||||||
|
|
||||||
public float PayoutMul => GameDefs.PayoutMul(Level(PerkId.EarthPrices), Level(PerkId.GreenExchange));
|
public float PayoutMul => GameDefs.PayoutMul(Level(PerkId.EarthPrices), Level(PerkId.GreenExchange));
|
||||||
|
|
||||||
public double ToolPrice(ToolDef d) => d.id == ToolId.Hammer ? d.price : Math.Round(d.price * (double)GameDefs.ToolPriceMul(Level(PerkId.SupplyDeals)), 2);
|
public double ToolPrice(ToolDef d) => d.id == ToolId.Hammer ? d.price : Math.Round(d.price * (double)GameDefs.ToolPriceMul(Level(PerkId.SupplyDeals)), 2);
|
||||||
@ -190,7 +201,7 @@ namespace GrassCutter
|
|||||||
if (perk < 0 || perk >= (int)PerkId.Count) return;
|
if (perk < 0 || perk >= (int)PerkId.Count) return;
|
||||||
var def = GameDefs.Perk((PerkId)perk);
|
var def = GameDefs.Perk((PerkId)perk);
|
||||||
int lvl = Level(def.id);
|
int lvl = Level(def.id);
|
||||||
if (lvl >= def.maxLevel || !PerkAvailable(def) || Money.Value < def.PriceFor(lvl)) { DeniedRpc(RpcTarget.Single(rpc.Receive.SenderClientId, RpcTargetUse.Temp)); return; }
|
if (lvl >= def.maxLevel || !PerkAvailable(def) || Money.Value < def.PriceFor(lvl) || Demo.Over) { DeniedRpc(RpcTarget.Single(rpc.Receive.SenderClientId, RpcTargetUse.Temp)); return; }
|
||||||
Money.Value -= def.PriceFor(lvl);
|
Money.Value -= def.PriceFor(lvl);
|
||||||
Perks[perk] = (byte)(lvl + 1);
|
Perks[perk] = (byte)(lvl + 1);
|
||||||
PurchasedRpc(PlayerName(rpc.Receive.SenderClientId), def.maxLevel > 1 ? Loc.Key(def.nameEn, GameDefs.ToRoman(lvl + 1)) : Loc.Key(def.nameEn));
|
PurchasedRpc(PlayerName(rpc.Receive.SenderClientId), def.maxLevel > 1 ? Loc.Key(def.nameEn, GameDefs.ToRoman(lvl + 1)) : Loc.Key(def.nameEn));
|
||||||
@ -198,7 +209,11 @@ namespace GrassCutter
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Rpc(SendTo.SpecifiedInParams)]
|
[Rpc(SendTo.SpecifiedInParams)]
|
||||||
public void DeniedRpc(RpcParams p = default) { Sfx.Play("error"); }
|
public void DeniedRpc(RpcParams p = default)
|
||||||
|
{
|
||||||
|
Sfx.Play("error");
|
||||||
|
if (Demo.Over) Hud.Toast(Loc.T("That's the end of the demo: the full game has the rest of the planet."), Hud.ToastKind.Warn);
|
||||||
|
}
|
||||||
|
|
||||||
[Rpc(SendTo.Everyone)]
|
[Rpc(SendTo.Everyone)]
|
||||||
void PurchasedRpc(FixedString64Bytes who, FixedString64Bytes what) => Purchased?.Invoke(who.ToString(), what.ToString());
|
void PurchasedRpc(FixedString64Bytes who, FixedString64Bytes what) => Purchased?.Invoke(who.ToString(), what.ToString());
|
||||||
@ -224,7 +239,7 @@ namespace GrassCutter
|
|||||||
if (!who || tool >= GameDefs.ToolCount) return;
|
if (!who || tool >= GameDefs.ToolCount) return;
|
||||||
var d = GameDefs.Tool((ToolId)tool);
|
var d = GameDefs.Tool((ToolId)tool);
|
||||||
double price = ToolPrice(d);
|
double price = ToolPrice(d);
|
||||||
if (who.Owns((ToolId)tool) || Money.Value < price) { DeniedRpc(RpcTarget.Single(rpc.Receive.SenderClientId, RpcTargetUse.Temp)); return; }
|
if (who.Owns((ToolId)tool) || Money.Value < price || Demo.Over) { DeniedRpc(RpcTarget.Single(rpc.Receive.SenderClientId, RpcTargetUse.Temp)); return; }
|
||||||
Money.Value -= price;
|
Money.Value -= price;
|
||||||
who.Owned.Value |= (ushort)(1 << tool);
|
who.Owned.Value |= (ushort)(1 << tool);
|
||||||
SaveCrew(who);
|
SaveCrew(who);
|
||||||
@ -236,7 +251,7 @@ namespace GrassCutter
|
|||||||
var who = PlayerOf(rpc.Receive.SenderClientId);
|
var who = PlayerOf(rpc.Receive.SenderClientId);
|
||||||
if (!who) return;
|
if (!who) return;
|
||||||
long price = GameDefs.BeltSlotPrice(who.BeltSlots.Value);
|
long price = GameDefs.BeltSlotPrice(who.BeltSlots.Value);
|
||||||
if (who.BeltSlots.Value >= GameDefs.MaxBeltSlots || Money.Value < price) { DeniedRpc(RpcTarget.Single(rpc.Receive.SenderClientId, RpcTargetUse.Temp)); return; }
|
if (who.BeltSlots.Value >= GameDefs.MaxBeltSlots || Money.Value < price || Demo.Over) { DeniedRpc(RpcTarget.Single(rpc.Receive.SenderClientId, RpcTargetUse.Temp)); return; }
|
||||||
Money.Value -= price;
|
Money.Value -= price;
|
||||||
who.BeltSlots.Value++;
|
who.BeltSlots.Value++;
|
||||||
SaveCrew(who);
|
SaveCrew(who);
|
||||||
@ -248,7 +263,7 @@ namespace GrassCutter
|
|||||||
var who = PlayerOf(rpc.Receive.SenderClientId);
|
var who = PlayerOf(rpc.Receive.SenderClientId);
|
||||||
if (!who || gear < (byte)GearId.Jetpack || gear > (byte)GearId.NightVision) return;
|
if (!who || gear < (byte)GearId.Jetpack || gear > (byte)GearId.NightVision) return;
|
||||||
long price = GameDefs.GearPrice((GearId)gear);
|
long price = GameDefs.GearPrice((GearId)gear);
|
||||||
if (who.HasGear((GearId)gear) || Money.Value < price) { DeniedRpc(RpcTarget.Single(rpc.Receive.SenderClientId, RpcTargetUse.Temp)); return; }
|
if (who.HasGear((GearId)gear) || Money.Value < price || Demo.Over) { DeniedRpc(RpcTarget.Single(rpc.Receive.SenderClientId, RpcTargetUse.Temp)); return; }
|
||||||
Money.Value -= price;
|
Money.Value -= price;
|
||||||
who.Owned.Value |= (ushort)(1 << gear);
|
who.Owned.Value |= (ushort)(1 << gear);
|
||||||
SaveCrew(who);
|
SaveCrew(who);
|
||||||
@ -325,7 +340,7 @@ namespace GrassCutter
|
|||||||
public void Save()
|
public void Save()
|
||||||
{
|
{
|
||||||
if (!IsServer) return;
|
if (!IsServer) return;
|
||||||
var d = new SaveData { ver = 6, level = Size.Value, money = Money.Value, shipped = Shipped.Value, mown = Mown.Value, crew = _crew, day = Sun.Phase, vehicles = PackVehicles(), banned = _banned };
|
var d = new SaveData { ver = 6, level = (int)Difficulties.Current, sizeGen = Difficulties.Gen, money = Money.Value, shipped = Shipped.Value, mown = Mown.Value, crew = _crew, day = Sun.Phase, vehicles = PackVehicles(), banned = _banned };
|
||||||
d.perks = new int[Perks.Count];
|
d.perks = new int[Perks.Count];
|
||||||
for (int i = 0; i < Perks.Count; i++) d.perks[i] = Perks[i];
|
for (int i = 0; i < Perks.Count; i++) d.perks[i] = Perks[i];
|
||||||
d.tiles = new int[Tiles.Count];
|
d.tiles = new int[Tiles.Count];
|
||||||
@ -356,8 +371,8 @@ namespace GrassCutter
|
|||||||
// the ball first: the mow map, the stakes and every piece go down on it
|
// the ball first: the mow map, the stakes and every piece go down on it
|
||||||
var level = fresh ? Difficulties.Chosen : (Difficulty)d.level;
|
var level = fresh ? Difficulties.Chosen : (Difficulty)d.level;
|
||||||
if (fresh && CommandLine.Get("-difficulty") is string forced && byte.TryParse(forced, out byte f)) level = (Difficulty)f;
|
if (fresh && CommandLine.Get("-difficulty") is string forced && byte.TryParse(forced, out byte f)) level = (Difficulty)f;
|
||||||
Difficulties.Apply(level);
|
Difficulties.Apply(level, fresh ? Difficulties.NewGen : d.sizeGen);
|
||||||
Size.Value = (byte)Difficulties.Current;
|
Size.Value = Difficulties.Wire;
|
||||||
MowMap.Reset();
|
MowMap.Reset();
|
||||||
if (!fresh) LoadMow();
|
if (!fresh) LoadMow();
|
||||||
Money.Value = d.money;
|
Money.Value = d.money;
|
||||||
|
|||||||
834
Assets/Scripts/Gameplay/Train.cs
Normal file
834
Assets/Scripts/Gameplay/Train.cs
Normal file
@ -0,0 +1,834 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using Unity.Netcode;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace GrassCutter
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The grass train. Built at a base, it lays its own track to a station next door (the one most in front of it, E picks
|
||||||
|
/// another while the track is short), mowing a strip under the rails all the way. Once the track gets there it runs
|
||||||
|
/// back and forth, its side cutters reaching one strip further out on every run; when they reach as far as they can it
|
||||||
|
/// lays the track on to the next station and works that stretch, until the line has been to every station it can reach.
|
||||||
|
/// Each station on the line has a yard at the end of the rails where machines unload: the train picks that up as it
|
||||||
|
/// passes and brings it home with what it cut, paid when it gets back. Anyone can ride in the cab and drive it (W, S).
|
||||||
|
/// Every upgrade adds a wagon, and the wagons hold more. The host moves it; every peer draws the track and the train
|
||||||
|
/// from the same few numbers (where to, how much is laid, where the head is).
|
||||||
|
/// </summary>
|
||||||
|
public class Train : NetworkBehaviour, IInteractable, IPieceState
|
||||||
|
{
|
||||||
|
public static readonly List<Train> All = new List<Train>();
|
||||||
|
|
||||||
|
public Transform loco;
|
||||||
|
public Transform[] wagons;
|
||||||
|
|
||||||
|
/// <summary>Track points every two metres; the first stretch runs straight off the platform.</summary>
|
||||||
|
const float Step = 2f, Lead = 24f, StopShort = 16f;
|
||||||
|
/// <summary>Metres a second laying track and running on it, at Mk I.</summary>
|
||||||
|
const float LaySpeed = 2.4f, RunSpeed = 8f;
|
||||||
|
/// <summary>Off the stretch it is mowing it runs this much faster; with a driver in the cab, this much.</summary>
|
||||||
|
const float Express = 3f, DriveSpeed = 2.5f;
|
||||||
|
/// <summary>Strip cut under the rails, and the width each side cutter adds on a run.</summary>
|
||||||
|
const float Strip = 3.4f, Arm = 3f;
|
||||||
|
/// <summary>How far out the side cutters reach at Mk I, either side of the track.</summary>
|
||||||
|
const float Reach = 18f;
|
||||||
|
const float WaitAtEnd = 6f, Gap = 5.2f, Gauge = 1.62f;
|
||||||
|
/// <summary>The top of the rails above the track line: the models' wheels stand on their origin.</summary>
|
||||||
|
const float RailTop = 0.27f;
|
||||||
|
/// <summary>What one wagon holds, what a yard holds waiting for the train, and how close a machine unloads at one.</summary>
|
||||||
|
const float PerWagon = 2000f, YardHolds = 20000f, YardRadius = 9f;
|
||||||
|
const int BaseWagons = 3;
|
||||||
|
const ulong NoRider = ulong.MaxValue;
|
||||||
|
|
||||||
|
/// <summary>The first station it lays track to (255: not chosen yet).</summary>
|
||||||
|
public readonly NetworkVariable<byte> Target = new NetworkVariable<byte>(255);
|
||||||
|
/// <summary>The stations after the first, in order: a four-bit count, then four bits each.</summary>
|
||||||
|
public readonly NetworkVariable<ulong> Legs = new NetworkVariable<ulong>();
|
||||||
|
/// <summary>Metres of track down.</summary>
|
||||||
|
public readonly NetworkVariable<float> Laid = new NetworkVariable<float>();
|
||||||
|
/// <summary>Where the locomotive is along the track, in metres from the platform.</summary>
|
||||||
|
public readonly NetworkVariable<float> At = new NetworkVariable<float>();
|
||||||
|
/// <summary>Runs since the newest stretch was finished: run n cuts the n-th strip out either side.</summary>
|
||||||
|
public readonly NetworkVariable<int> Runs = new NetworkVariable<int>();
|
||||||
|
public readonly NetworkVariable<float> Hopper = new NetworkVariable<float>();
|
||||||
|
/// <summary>Who drives it from the cab (NoRider: nobody), and the lever: -1 back, 0 stop, 1 on.</summary>
|
||||||
|
public readonly NetworkVariable<ulong> Rider = new NetworkVariable<ulong>(NoRider);
|
||||||
|
public readonly NetworkVariable<sbyte> Drive = new NetworkVariable<sbyte>();
|
||||||
|
/// <summary>Grass unloaded in each station's yard, waiting for the train (one entry per station).</summary>
|
||||||
|
public NetworkList<float> Bins;
|
||||||
|
|
||||||
|
readonly List<Vector3> _pts = new List<Vector3>();
|
||||||
|
readonly List<float> _cum = new List<float>();
|
||||||
|
/// <summary>The stations on the line in order, where the track reaches each (metres), and where the stretch to each starts.</summary>
|
||||||
|
readonly List<int> _line = new List<int>();
|
||||||
|
readonly List<float> _stopAt = new List<float>();
|
||||||
|
readonly List<float> _legStart = new List<float>();
|
||||||
|
readonly List<Vector3> _yardAt = new List<Vector3>();
|
||||||
|
float _length, _wait, _shown = -1f;
|
||||||
|
bool _noMore;
|
||||||
|
BuildPiece _bp;
|
||||||
|
BuildPiece Piece => _bp ? _bp : (_bp = GetComponent<BuildPiece>());
|
||||||
|
TeamState Ts => TeamState.Instance;
|
||||||
|
|
||||||
|
float Mul => (Piece ? Piece.TierMul : 1f) * (Ts ? Ts.BotSpeedMul : 1f);
|
||||||
|
float MaxOut => Reach * (Piece ? Piece.TierMul : 1f);
|
||||||
|
/// <summary>Wagons on the train: three, and one more for every upgrade.</summary>
|
||||||
|
int WagonCount => Mathf.Min(wagons != null ? wagons.Length : 0, BaseWagons + (Piece ? Piece.Tier.Value : 0));
|
||||||
|
float Hold => PerWagon * Mathf.Max(1, WagonCount);
|
||||||
|
/// <summary>Where the train stands at home: far enough along for every wagon to be on the rails.</summary>
|
||||||
|
float HomeAt => Mathf.Min(_length, WagonCount * Gap + 2.5f);
|
||||||
|
/// <summary>Where the stretch it is working on starts: the side cutters only mow from here on.</summary>
|
||||||
|
float WorkFrom => _legStart.Count > 0 ? _legStart[_legStart.Count - 1] : 0f;
|
||||||
|
float Inner => Strip * 0.5f + (Runs.Value - 1) * Arm;
|
||||||
|
bool Laying => Laid.Value < _length - 0.01f;
|
||||||
|
bool Cutting => Inner < MaxOut;
|
||||||
|
public bool Ridden => Rider.Value != NoRider;
|
||||||
|
int Last => _line.Count > 0 ? _line[_line.Count - 1] : Target.Value;
|
||||||
|
|
||||||
|
// ───────────────────────── life ─────────────────────────
|
||||||
|
|
||||||
|
readonly List<(Transform t, Quaternion rest, float r)> _wheels = new List<(Transform, Quaternion, float)>();
|
||||||
|
readonly List<(Transform t, Vector3 rest)> _heaps = new List<(Transform, Vector3)>();
|
||||||
|
Transform _reel;
|
||||||
|
Quaternion _reelRest;
|
||||||
|
float _rolled, _reelAngle, _lastShown = -1f;
|
||||||
|
GameObject _cab;
|
||||||
|
BoxCollider _cabHit;
|
||||||
|
Vector3 _locoAt;
|
||||||
|
Quaternion _locoTurn = Quaternion.identity;
|
||||||
|
|
||||||
|
void Awake()
|
||||||
|
{
|
||||||
|
Bins = new NetworkList<float>();
|
||||||
|
// the prefab has three wagons: the rest are copies of the last, shown as the train is upgraded
|
||||||
|
var list = new List<Transform>((wagons ?? new Transform[0]).Where(w => w));
|
||||||
|
while (list.Count > 0 && list.Count < BaseWagons + GameDefs.MaxTier)
|
||||||
|
{
|
||||||
|
var src = list[list.Count - 1];
|
||||||
|
var copy = Instantiate(src.gameObject, src.parent).transform;
|
||||||
|
copy.name = src.name + "_" + list.Count;
|
||||||
|
list.Add(copy);
|
||||||
|
}
|
||||||
|
wagons = list.ToArray();
|
||||||
|
// the wheels turn as it goes, the cutter reel on the nose spins while it cuts, the heaps grow as it fills
|
||||||
|
foreach (var root in new[] { loco }.Concat(wagons))
|
||||||
|
{
|
||||||
|
if (!root) continue;
|
||||||
|
foreach (var t in root.GetComponentsInChildren<Transform>(true))
|
||||||
|
{
|
||||||
|
if (t.name.StartsWith("Wheel"))
|
||||||
|
{
|
||||||
|
var mf = t.GetComponent<MeshFilter>();
|
||||||
|
float rad = mf && mf.sharedMesh ? Mathf.Max(0.1f, mf.sharedMesh.bounds.extents.y) : 0.4f;
|
||||||
|
_wheels.Add((t, t.localRotation, rad));
|
||||||
|
// how far the axles reach fore and aft: the model sits on the rails at its end axles
|
||||||
|
var lp = Vector3.Scale(root.InverseTransformPoint(t.position), root.localScale);
|
||||||
|
float z = Mathf.Abs((root.localRotation * lp).z);
|
||||||
|
_axles[root] = Mathf.Max(_axles.TryGetValue(root, out var had) ? had : 0f, z);
|
||||||
|
}
|
||||||
|
else if (t.name == "Reel") { _reel = t; _reelRest = t.localRotation; }
|
||||||
|
else if (t.name == "Grass" && root != loco) _heaps.Add((t, t.localScale));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// something to aim at and stand by: E on the locomotive gets you in the cab
|
||||||
|
if (loco)
|
||||||
|
{
|
||||||
|
_cab = new GameObject("Cab");
|
||||||
|
_cab.transform.SetParent(transform, false);
|
||||||
|
_cabHit = _cab.AddComponent<BoxCollider>();
|
||||||
|
_cabHit.center = new Vector3(0f, 1.45f, 0f);
|
||||||
|
_cabHit.size = new Vector3(2.1f, 2.5f, 4.7f);
|
||||||
|
var rb = _cab.AddComponent<Rigidbody>();
|
||||||
|
rb.isKinematic = true;
|
||||||
|
rb.useGravity = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void OnNetworkSpawn()
|
||||||
|
{
|
||||||
|
if (!All.Contains(this)) All.Add(this);
|
||||||
|
Target.OnValueChanged += (_, __) => Route();
|
||||||
|
Legs.OnValueChanged += (_, __) => Route();
|
||||||
|
Planet.Rescaled += Route;
|
||||||
|
if (IsServer)
|
||||||
|
{
|
||||||
|
while (Bins.Count < Stations.Count) Bins.Add(0f);
|
||||||
|
if (Target.Value == 255) Target.Value = Pick(-1);
|
||||||
|
}
|
||||||
|
Route();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Everyone: the depot was picked up and set down elsewhere. The line starts from there now, so it is laid again.</summary>
|
||||||
|
public void Moved()
|
||||||
|
{
|
||||||
|
if (IsServer)
|
||||||
|
{
|
||||||
|
Laid.Value = 0f;
|
||||||
|
At.Value = 0f;
|
||||||
|
Runs.Value = 0;
|
||||||
|
_wait = 0f;
|
||||||
|
_noMore = false;
|
||||||
|
}
|
||||||
|
_shown = 0f;
|
||||||
|
Route();
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void OnNetworkDespawn()
|
||||||
|
{
|
||||||
|
Planet.Rescaled -= Route;
|
||||||
|
All.Remove(this);
|
||||||
|
if (_track) Destroy(_track);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void OnDestroy()
|
||||||
|
{
|
||||||
|
All.Remove(this);
|
||||||
|
if (_track) Destroy(_track);
|
||||||
|
base.OnDestroy();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>A station next to the one this stands by, the most in front of it after <paramref name="after"/>.</summary>
|
||||||
|
byte Pick(int after)
|
||||||
|
{
|
||||||
|
var p = transform.position;
|
||||||
|
var up = Planet.Up(p);
|
||||||
|
var fwd = Vector3.ProjectOnPlane(transform.forward, up).normalized;
|
||||||
|
int home = Stations.Nearest(p);
|
||||||
|
var near = new List<(int i, float score)>();
|
||||||
|
for (int i = 0; i < Stations.Count; i++)
|
||||||
|
{
|
||||||
|
if (i == home) continue;
|
||||||
|
var d = Stations.Dir(i);
|
||||||
|
// the twelve stations stand on an icosahedron: the five next door are a dot of 0.447 away
|
||||||
|
if (Vector3.Dot(d, Stations.Dir(home)) < 0.3f) continue;
|
||||||
|
near.Add((i, Vector3.Dot(Vector3.ProjectOnPlane(d - up, up).normalized, fwd)));
|
||||||
|
}
|
||||||
|
if (near.Count == 0) return (byte)(home == 0 ? 1 : 0);
|
||||||
|
near.Sort((a, b) => b.score.CompareTo(a.score));
|
||||||
|
if (after < 0) return (byte)near[0].i;
|
||||||
|
int k = near.FindIndex(n => n.i == after);
|
||||||
|
return (byte)near[(k + 1) % near.Count].i;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>The station to lay on to from the end of the line: next door to it, not on the line yet, the most straight on.</summary>
|
||||||
|
int NextStation()
|
||||||
|
{
|
||||||
|
if (_line.Count == 0) return -1;
|
||||||
|
int home = Stations.Nearest(transform.position);
|
||||||
|
int last = _line[_line.Count - 1];
|
||||||
|
var at = Stations.Dir(last);
|
||||||
|
var from = _line.Count > 1 ? Stations.Dir(_line[_line.Count - 2]) : Planet.Up(transform.position);
|
||||||
|
var on = Vector3.ProjectOnPlane(at - from, at).normalized;
|
||||||
|
int best = -1;
|
||||||
|
float score = -2f;
|
||||||
|
for (int i = 0; i < Stations.Count; i++)
|
||||||
|
{
|
||||||
|
if (i == home || _line.Contains(i)) continue;
|
||||||
|
var d = Stations.Dir(i);
|
||||||
|
if (Vector3.Dot(d, at) < 0.3f) continue;
|
||||||
|
float s = Vector3.Dot(Vector3.ProjectOnPlane(d - at, at).normalized, on);
|
||||||
|
if (s > score) { score = s; best = i; }
|
||||||
|
}
|
||||||
|
return best;
|
||||||
|
}
|
||||||
|
|
||||||
|
static float Angle(Vector3 a, Vector3 b) => Mathf.Acos(Mathf.Clamp(Vector3.Dot(a, b), -1f, 1f));
|
||||||
|
|
||||||
|
void Add(Vector3 p)
|
||||||
|
{
|
||||||
|
if (_pts.Count > 0) _length += Vector3.Distance(_pts[_pts.Count - 1], p);
|
||||||
|
_pts.Add(p);
|
||||||
|
_cum.Add(_length);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Route()
|
||||||
|
{
|
||||||
|
_pts.Clear();
|
||||||
|
_cum.Clear();
|
||||||
|
_line.Clear();
|
||||||
|
_stopAt.Clear();
|
||||||
|
_legStart.Clear();
|
||||||
|
_yardAt.Clear();
|
||||||
|
_length = 0f;
|
||||||
|
ClearTrack();
|
||||||
|
if (Target.Value >= Stations.Count) return;
|
||||||
|
_line.Add(Target.Value);
|
||||||
|
ulong legs = Legs.Value;
|
||||||
|
int extra = (int)(legs & 0xF);
|
||||||
|
for (int k = 0; k < extra; k++) _line.Add((int)((legs >> (4 + 4 * k)) & 0xF));
|
||||||
|
|
||||||
|
var up = Planet.Up(transform.position);
|
||||||
|
var fwd = Vector3.ProjectOnPlane(transform.forward, up).normalized;
|
||||||
|
// from the buffer stop at the back of the platform
|
||||||
|
var a = transform.position - fwd * 3.6f;
|
||||||
|
var lead = Planet.Surface(a + fwd * Lead);
|
||||||
|
// off the platform in a straight ramp down to the ground
|
||||||
|
int n = Mathf.CeilToInt(Lead / Step);
|
||||||
|
for (int i = 0; i < n; i++)
|
||||||
|
{
|
||||||
|
var g = Planet.Surface(Vector3.Lerp(a, lead, i / (float)n));
|
||||||
|
float t = i / (float)n;
|
||||||
|
Add(Vector3.Lerp(a, g, Mathf.SmoothStep(0f, 1f, t)));
|
||||||
|
}
|
||||||
|
var from = Planet.Up(lead);
|
||||||
|
for (int k = 0; k < _line.Count; k++)
|
||||||
|
{
|
||||||
|
var to = Stations.Dir(_line[k]);
|
||||||
|
if (k > 0)
|
||||||
|
{
|
||||||
|
// round the station it just reached, at the edge of its yard, and off toward the next one
|
||||||
|
var c = Stations.Dir(_line[k - 1]);
|
||||||
|
float sep = Angle(c, to);
|
||||||
|
var exit = Vector3.Slerp(c, to, Mathf.Clamp01(StopShort / Planet.Radius / Mathf.Max(1e-4f, sep)));
|
||||||
|
float turn = Vector3.SignedAngle(Vector3.ProjectOnPlane(from, c), Vector3.ProjectOnPlane(exit, c), c);
|
||||||
|
int steps = Mathf.Max(1, Mathf.CeilToInt(Mathf.Abs(turn) * Mathf.Deg2Rad * StopShort / Step));
|
||||||
|
for (int j = 1; j <= steps; j++) Add(Planet.OnSurface(Quaternion.AngleAxis(turn * j / steps, c) * from));
|
||||||
|
from = Planet.Up(_pts[_pts.Count - 1]);
|
||||||
|
}
|
||||||
|
_legStart.Add(k == 0 ? 0f : _length);
|
||||||
|
// the great circle to the station, stopping short of its yard
|
||||||
|
float full = Angle(from, to) * Planet.Radius, arc = Mathf.Max(Step, full - StopShort);
|
||||||
|
int m = Mathf.Max(1, Mathf.CeilToInt(arc / Step));
|
||||||
|
for (int j = k == 0 ? 0 : 1; j <= m; j++) Add(Planet.OnSurface(Vector3.Slerp(from, to, j * arc / m / full)));
|
||||||
|
_stopAt.Add(_length);
|
||||||
|
_yardAt.Add(_pts[_pts.Count - 1]);
|
||||||
|
from = Planet.Up(_pts[_pts.Count - 1]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>The point this far along the track, carried on straight past either end.</summary>
|
||||||
|
Vector3 PosOn(float d)
|
||||||
|
{
|
||||||
|
if (d < 0f) return Pos(0f) - Ahead(0f) * -d;
|
||||||
|
if (d > _length) return Pos(_length) + Ahead(_length) * (d - _length);
|
||||||
|
return Pos(d);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>The point this far along the track.</summary>
|
||||||
|
Vector3 Pos(float d)
|
||||||
|
{
|
||||||
|
if (_pts.Count == 0) return transform.position;
|
||||||
|
d = Mathf.Clamp(d, 0f, _length);
|
||||||
|
int lo = 0, hi = _cum.Count - 1;
|
||||||
|
while (hi - lo > 1)
|
||||||
|
{
|
||||||
|
int mid = (lo + hi) >> 1;
|
||||||
|
if (_cum[mid] <= d) lo = mid; else hi = mid;
|
||||||
|
}
|
||||||
|
float seg = _cum[hi] - _cum[lo];
|
||||||
|
return Vector3.Lerp(_pts[lo], _pts[hi], seg > 1e-4f ? (d - _cum[lo]) / seg : 0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
Vector3 Ahead(float d) => (Pos(d + 1f) - Pos(d - 1f)).normalized;
|
||||||
|
|
||||||
|
// ───────────────────────── yards ─────────────────────────
|
||||||
|
|
||||||
|
/// <summary>Is this spot in the yard of a station on some train's line (with room left)? Which train, which station.</summary>
|
||||||
|
public static bool YardAt(Vector3 p, out Train train, out int station)
|
||||||
|
{
|
||||||
|
foreach (var t in All)
|
||||||
|
{
|
||||||
|
if (!t || !t.IsSpawned) continue;
|
||||||
|
for (int k = 0; k < t._yardAt.Count; k++)
|
||||||
|
{
|
||||||
|
if (!t.YardOpen(k) || (t._yardAt[k] - p).sqrMagnitude > YardRadius * YardRadius) continue;
|
||||||
|
train = t;
|
||||||
|
station = t._line[k];
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
train = null;
|
||||||
|
station = -1;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Every yard a machine can unload in now, with its name, for the markers and the autopilot.</summary>
|
||||||
|
public static void Yards(List<(Vector3 at, string name)> into)
|
||||||
|
{
|
||||||
|
foreach (var t in All)
|
||||||
|
{
|
||||||
|
if (!t || !t.IsSpawned) continue;
|
||||||
|
for (int k = 0; k < t._yardAt.Count; k++)
|
||||||
|
if (t.YardOpen(k)) into.Add((t._yardAt[k], Loc.F("Train yard: {0}", Stations.Name(t._line[k]))));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>The track has got there and the yard isn't full.</summary>
|
||||||
|
bool YardOpen(int k) => k < _stopAt.Count && Laid.Value >= _stopAt[k] - 1f && _line[k] < Bins.Count && Bins[_line[k]] < YardHolds;
|
||||||
|
|
||||||
|
/// <summary>A machine unloads in a yard: it waits there for the train.</summary>
|
||||||
|
[Rpc(SendTo.Server)]
|
||||||
|
public void FillRpc(byte station, float kg)
|
||||||
|
{
|
||||||
|
if (station < Bins.Count && kg > 0f) Bins[station] += kg;
|
||||||
|
}
|
||||||
|
|
||||||
|
float Waiting()
|
||||||
|
{
|
||||||
|
float sum = 0f;
|
||||||
|
foreach (int s in _line) if (s < Bins.Count) sum += Bins[s];
|
||||||
|
return sum;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Passing a yard between a and b: what waits there goes on board, as much as fits.</summary>
|
||||||
|
void Pickup(float a, float b)
|
||||||
|
{
|
||||||
|
float lo = Mathf.Min(a, b) - 0.5f, hi = Mathf.Max(a, b) + 0.5f;
|
||||||
|
for (int k = 0; k < _stopAt.Count; k++)
|
||||||
|
{
|
||||||
|
float at = _stopAt[k];
|
||||||
|
int s = _line[k];
|
||||||
|
if (at < lo || at > hi || s >= Bins.Count) continue;
|
||||||
|
float have = Bins[s], take = Mathf.Min(have, Hold - Hopper.Value);
|
||||||
|
if (take <= 0.01f) continue;
|
||||||
|
Bins[s] = have - take;
|
||||||
|
Hopper.Value += take;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ───────────────────────── the host runs it ─────────────────────────
|
||||||
|
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
if (!IsSpawned) return;
|
||||||
|
if (IsServer && _length > 0f) Run(Time.deltaTime);
|
||||||
|
if (IsServer && _sendW > 0f && Time.time - _sendT > 0.25f) SendCut();
|
||||||
|
Draw();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Run(float dt)
|
||||||
|
{
|
||||||
|
if (Ridden)
|
||||||
|
{
|
||||||
|
if (!NetworkManager.ConnectedClients.ContainsKey(Rider.Value)) { Rider.Value = NoRider; Drive.Value = 0; }
|
||||||
|
else { Driven(dt); return; }
|
||||||
|
}
|
||||||
|
if (_wait > 0f)
|
||||||
|
{
|
||||||
|
_wait -= dt;
|
||||||
|
Pickup(At.Value, At.Value);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (Laying)
|
||||||
|
{
|
||||||
|
// out to the head of the track first: after a ride, or with a new stretch to lay
|
||||||
|
if (At.Value < Laid.Value - 0.5f) { Roll(Laid.Value, RunSpeed * Mul * Express, dt); return; }
|
||||||
|
float was = Laid.Value, now = Mathf.Min(_length, was + LaySpeed * Mul * dt);
|
||||||
|
Laid.Value = now;
|
||||||
|
At.Value = now;
|
||||||
|
Cut(was, now, 0f, Strip);
|
||||||
|
if (!Laying) Arrive(1);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (Runs.Value <= 0) { Runs.Value = 1; return; }
|
||||||
|
bool cutting = Cutting;
|
||||||
|
// the stretch is mown as far as the cutters reach: on to the next station
|
||||||
|
if (!cutting && TryExtend()) return;
|
||||||
|
// odd runs come home, even ones go out; with nothing to fetch and nothing to cut it waits at home
|
||||||
|
bool home = Runs.Value % 2 == 1;
|
||||||
|
if (!cutting && Hopper.Value < 1f && Waiting() < 1f && At.Value <= HomeAt + 0.5f) { _wait = 3f; return; }
|
||||||
|
float goal = home ? HomeAt : _length;
|
||||||
|
float a = At.Value;
|
||||||
|
bool working = cutting && a >= WorkFrom - 1f;
|
||||||
|
float b = Roll(goal, RunSpeed * Mul * (working ? 1f : Express), dt);
|
||||||
|
if (cutting)
|
||||||
|
{
|
||||||
|
float lo = Mathf.Max(Mathf.Min(a, b), WorkFrom), hi = Mathf.Max(a, b);
|
||||||
|
if (hi > lo + 1e-3f) Cut(lo, hi, Inner, Mathf.Min(Arm, MaxOut - Inner));
|
||||||
|
}
|
||||||
|
if (Mathf.Abs(b - goal) < 0.01f)
|
||||||
|
{
|
||||||
|
if (home) Ship();
|
||||||
|
Arrive(Runs.Value + 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Moves the train toward a point along the track, picking up at the yards it passes. Where it got to.</summary>
|
||||||
|
float Roll(float goal, float speed, float dt)
|
||||||
|
{
|
||||||
|
float a = At.Value, b = Mathf.MoveTowards(a, goal, speed * dt);
|
||||||
|
if (b != a) At.Value = b;
|
||||||
|
Pickup(a, b);
|
||||||
|
return b;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Someone in the cab has the lever: on up the line as far as the rails go, or back home.</summary>
|
||||||
|
void Driven(float dt)
|
||||||
|
{
|
||||||
|
if (Drive.Value == 0) return;
|
||||||
|
float lo = Mathf.Min(HomeAt, Laid.Value), hi = Laid.Value;
|
||||||
|
float b = Roll(Drive.Value > 0 ? hi : lo, RunSpeed * Mul * DriveSpeed, dt);
|
||||||
|
if (b <= lo + 0.5f) Ship();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Arrive(int nextRun)
|
||||||
|
{
|
||||||
|
_wait = WaitAtEnd;
|
||||||
|
Runs.Value = nextRun;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool TryExtend()
|
||||||
|
{
|
||||||
|
if (_noMore) return false;
|
||||||
|
int next = NextStation();
|
||||||
|
ulong legs = Legs.Value;
|
||||||
|
int count = (int)(legs & 0xF);
|
||||||
|
if (next < 0 || count >= 11) { _noMore = true; return false; }
|
||||||
|
legs = (legs & ~0xFUL) | (ulong)(count + 1);
|
||||||
|
legs |= (ulong)next << (4 + 4 * count);
|
||||||
|
Runs.Value = 0;
|
||||||
|
Legs.Value = legs;
|
||||||
|
if (Ts) Ts.AnnounceRpc(Loc.Pack("The Grass Train lays track on to {0}", Stations.Names[next]));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Ship()
|
||||||
|
{
|
||||||
|
if (Hopper.Value <= 0.01f || !Ts) return;
|
||||||
|
Ts.DepositRpc(Hopper.Value, (byte)CargoKind.Grass, Pos(At.Value));
|
||||||
|
Hopper.Value = 0f;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Host: mows along the track from a to b into the hopper, and has everyone else mow the same.</summary>
|
||||||
|
void Cut(float a, float b, float offset, float width)
|
||||||
|
{
|
||||||
|
if (width <= 0.05f || Mathf.Abs(b - a) < 1e-4f) return;
|
||||||
|
Hopper.Value = Mathf.Min(Hold, Hopper.Value + Mow(a, b, offset, width) * GameDefs.GrassDensity);
|
||||||
|
// each peer cuts its own copy of the meadow: the stroke goes out to the others, joined up into a few a second
|
||||||
|
if (_sendW > 0f && (_sendOff != offset || _sendW != width || Mathf.Abs(_sendB - a) > 0.01f || (b > a) != (_sendB > _sendA))) SendCut();
|
||||||
|
if (_sendW <= 0f) { _sendA = a; _sendOff = offset; _sendW = width; _sendT = Time.time; }
|
||||||
|
_sendB = b;
|
||||||
|
if (Time.time - _sendT > 0.25f) SendCut();
|
||||||
|
}
|
||||||
|
|
||||||
|
float _sendA, _sendB, _sendOff, _sendW, _sendT;
|
||||||
|
|
||||||
|
void SendCut()
|
||||||
|
{
|
||||||
|
if (_sendW > 0f && Mathf.Abs(_sendB - _sendA) > 1e-4f) CutRpc(_sendA, _sendB, _sendOff, _sendW);
|
||||||
|
_sendW = 0f;
|
||||||
|
}
|
||||||
|
|
||||||
|
[Rpc(SendTo.NotServer)]
|
||||||
|
void CutRpc(float a, float b, float offset, float width) => Mow(a, b, offset, width);
|
||||||
|
|
||||||
|
/// <summary>Mows along the track from a to b: under it (offset 0), or a strip either side starting this far out. The kilos cut.</summary>
|
||||||
|
float Mow(float a, float b, float offset, float width)
|
||||||
|
{
|
||||||
|
float kg = 0f;
|
||||||
|
int n = Mathf.Max(1, Mathf.CeilToInt(Mathf.Abs(b - a) / Step));
|
||||||
|
for (int k = 0; k < n; k++)
|
||||||
|
{
|
||||||
|
float d0 = Mathf.Lerp(a, b, k / (float)n), d1 = Mathf.Lerp(a, b, (k + 1) / (float)n);
|
||||||
|
var p0 = Pos(d0);
|
||||||
|
var p1 = Pos(d1);
|
||||||
|
if (offset <= 0f) { kg += MowMap.Cut(Planet.Surface(p0), Planet.Surface(p1), width, 0f, MowMap.PaintFeather); continue; }
|
||||||
|
var up = Planet.Up(p0);
|
||||||
|
var side = Vector3.Cross(up, Ahead(d0)).normalized;
|
||||||
|
float o = offset + width * 0.5f;
|
||||||
|
kg += MowMap.Cut(Planet.Surface(p0 + side * o), Planet.Surface(p1 + side * o), width, 0f, MowMap.PaintFeather);
|
||||||
|
kg += MowMap.Cut(Planet.Surface(p0 - side * o), Planet.Surface(p1 - side * o), width, 0f, MowMap.PaintFeather);
|
||||||
|
}
|
||||||
|
return kg;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ───────────────────────── riding ─────────────────────────
|
||||||
|
|
||||||
|
/// <summary>Where someone in the cab stands, and which way the locomotive faces.</summary>
|
||||||
|
public Vector3 CabFloor => _locoAt + _locoTurn * new Vector3(0f, 0.55f, -1.15f);
|
||||||
|
public Quaternion CabTurn => _locoTurn;
|
||||||
|
/// <summary>Beside the locomotive, where someone getting off steps down.</summary>
|
||||||
|
public Vector3 StepOff => _locoAt + _locoTurn * new Vector3(2.4f, 0f, -1.15f);
|
||||||
|
|
||||||
|
bool AimingCab => _cabHit && PlayerAgent.Local && PlayerAgent.Local.HasAim && PlayerAgent.Local.AimHit.collider == _cabHit;
|
||||||
|
|
||||||
|
[Rpc(SendTo.Server)]
|
||||||
|
void BoardRpc(RpcParams rpc = default)
|
||||||
|
{
|
||||||
|
ulong who = rpc.Receive.SenderClientId;
|
||||||
|
var p = TeamState.PlayerOf(who);
|
||||||
|
if (Ridden || !p || p.Driving.Value || (p.transform.position - _locoAt).sqrMagnitude > 144f) return;
|
||||||
|
Drive.Value = 0;
|
||||||
|
Rider.Value = who;
|
||||||
|
}
|
||||||
|
|
||||||
|
[Rpc(SendTo.Server)]
|
||||||
|
void LeaveRpc(RpcParams rpc = default)
|
||||||
|
{
|
||||||
|
if (Rider.Value != rpc.Receive.SenderClientId) return;
|
||||||
|
Rider.Value = NoRider;
|
||||||
|
Drive.Value = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
[Rpc(SendTo.Server)]
|
||||||
|
public void DriveRpc(sbyte lever, RpcParams rpc = default)
|
||||||
|
{
|
||||||
|
if (Rider.Value == rpc.Receive.SenderClientId) Drive.Value = (sbyte)Mathf.Clamp(lever, -1, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Leave() => LeaveRpc();
|
||||||
|
|
||||||
|
/// <summary>For tests: the host gets in its own cab.</summary>
|
||||||
|
public void ServerBoard(ulong who)
|
||||||
|
{
|
||||||
|
if (!IsServer || Ridden) return;
|
||||||
|
Drive.Value = 0;
|
||||||
|
Rider.Value = who;
|
||||||
|
}
|
||||||
|
|
||||||
|
public float LineLength => _length;
|
||||||
|
public int Stops => _line.Count;
|
||||||
|
|
||||||
|
// ───────────────────────── what everyone sees ─────────────────────────
|
||||||
|
|
||||||
|
void Draw()
|
||||||
|
{
|
||||||
|
if (_length <= 0f) return;
|
||||||
|
float at = At.Value;
|
||||||
|
if (IsServer || _shown < 0f || Mathf.Abs(_shown - at) > 30f) _shown = at;
|
||||||
|
else _shown = Mathf.MoveTowards(_shown, at, (RunSpeed * Express + Mathf.Abs(at - _shown) * 4f) * Time.deltaTime);
|
||||||
|
Place(loco, _shown, true);
|
||||||
|
int count = WagonCount;
|
||||||
|
if (wagons != null)
|
||||||
|
for (int i = 0; i < wagons.Length; i++)
|
||||||
|
{
|
||||||
|
float d = _shown - (i + 1) * Gap;
|
||||||
|
bool on = i < count && d >= 0f;
|
||||||
|
if (wagons[i] && wagons[i].gameObject.activeSelf != on) wagons[i].gameObject.SetActive(on);
|
||||||
|
if (on) Place(wagons[i], d, true);
|
||||||
|
}
|
||||||
|
Heaps();
|
||||||
|
Lay(Laid.Value);
|
||||||
|
Spin();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>The wagons fill from the front: each heap shows how full its wagon is (heaps are in wagon order).</summary>
|
||||||
|
void Heaps()
|
||||||
|
{
|
||||||
|
float fill = Hopper.Value / PerWagon;
|
||||||
|
for (int i = 0; i < _heaps.Count; i++)
|
||||||
|
{
|
||||||
|
var (t, rest) = _heaps[i];
|
||||||
|
if (!t) continue;
|
||||||
|
float f = Mathf.Clamp01(fill - i);
|
||||||
|
bool show = f > 0.02f;
|
||||||
|
if (t.gameObject.activeSelf != show) t.gameObject.SetActive(show);
|
||||||
|
if (show) t.localScale = rest * Mathf.Lerp(0.45f, 1f, f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void Spin()
|
||||||
|
{
|
||||||
|
float moved = _lastShown < 0f ? 0f : _shown - _lastShown;
|
||||||
|
_lastShown = _shown;
|
||||||
|
if (Mathf.Abs(moved) > 20f) moved = 0f;
|
||||||
|
_rolled += moved;
|
||||||
|
foreach (var (t, rest, r) in _wheels)
|
||||||
|
if (t) t.localRotation = rest * Quaternion.AngleAxis(_rolled / r * Mathf.Rad2Deg, Vector3.right);
|
||||||
|
if (_reel && Mathf.Abs(moved) > 1e-4f && (Laying || Cutting))
|
||||||
|
{
|
||||||
|
_reelAngle += Time.deltaTime * 720f;
|
||||||
|
_reel.localRotation = _reelRest * Quaternion.AngleAxis(_reelAngle, Vector3.right);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <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>();
|
||||||
|
readonly Dictionary<Transform, float> _axles = new Dictionary<Transform, float>();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Stands a model on the rails: its front and back axles both on the track, so it leans up and down the slopes
|
||||||
|
/// with the rails instead of standing level and hanging off one end.
|
||||||
|
/// </summary>
|
||||||
|
void Place(Transform t, float d, bool onRails)
|
||||||
|
{
|
||||||
|
if (!t) return;
|
||||||
|
if (!_rest.TryGetValue(t, out var rest)) _rest[t] = rest = t.localRotation;
|
||||||
|
float half = _axles.TryGetValue(t, out var ax) && ax > 0.2f ? ax : 1.5f;
|
||||||
|
var back = PosOn(d - half);
|
||||||
|
var front = PosOn(d + half);
|
||||||
|
var f = front - back;
|
||||||
|
if (f.sqrMagnitude < 1e-4f) f = Ahead(d);
|
||||||
|
f.Normalize();
|
||||||
|
var mid = (back + front) * 0.5f;
|
||||||
|
var up = Vector3.ProjectOnPlane(Planet.Up(mid), f);
|
||||||
|
if (up.sqrMagnitude < 1e-6f) up = Planet.Up(mid);
|
||||||
|
up.Normalize();
|
||||||
|
var at = mid + up * (onRails ? RailTop : 0f);
|
||||||
|
var turn = Quaternion.LookRotation(f, up);
|
||||||
|
t.SetPositionAndRotation(at, turn * rest);
|
||||||
|
if (t == loco)
|
||||||
|
{
|
||||||
|
_locoAt = at;
|
||||||
|
_locoTurn = turn;
|
||||||
|
if (_cab) _cab.transform.SetPositionAndRotation(at, turn);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ───────────────────────── the track ─────────────────────────
|
||||||
|
|
||||||
|
const int ChunkPts = 32;
|
||||||
|
GameObject _track;
|
||||||
|
readonly List<Mesh> _chunks = new List<Mesh>();
|
||||||
|
int _drawnSeg = -1;
|
||||||
|
|
||||||
|
void ClearTrack()
|
||||||
|
{
|
||||||
|
if (_track) Destroy(_track);
|
||||||
|
_track = null;
|
||||||
|
_chunks.Clear();
|
||||||
|
_drawnSeg = -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Rails and sleepers up to this many metres, a chunk of track at a time.</summary>
|
||||||
|
void Lay(float upto)
|
||||||
|
{
|
||||||
|
int seg = 0;
|
||||||
|
while (seg + 1 < _cum.Count && _cum[seg + 1] <= upto + 0.01f) seg++;
|
||||||
|
if (seg == _drawnSeg) return;
|
||||||
|
if (!_track)
|
||||||
|
{
|
||||||
|
_track = new GameObject("Track_" + NetworkObjectId);
|
||||||
|
_drawnSeg = -1;
|
||||||
|
}
|
||||||
|
int from = Mathf.Max(0, _drawnSeg) / ChunkPts, to = seg / ChunkPts;
|
||||||
|
for (int c = from; c <= to; c++) Chunk(c, seg);
|
||||||
|
_drawnSeg = seg;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Chunk(int c, int lastSeg)
|
||||||
|
{
|
||||||
|
while (_chunks.Count <= c)
|
||||||
|
{
|
||||||
|
var go = new GameObject("Rails");
|
||||||
|
go.transform.SetParent(_track.transform, false);
|
||||||
|
var mesh = new Mesh { name = "Track" };
|
||||||
|
go.AddComponent<MeshFilter>().sharedMesh = mesh;
|
||||||
|
var mr = go.AddComponent<MeshRenderer>();
|
||||||
|
var bank = AssetBank.I;
|
||||||
|
mr.sharedMaterials = new[] { bank ? bank.Mat("M_Steel") : null, bank ? bank.Mat("M_Wood") : null };
|
||||||
|
mr.shadowCastingMode = UnityEngine.Rendering.ShadowCastingMode.Off;
|
||||||
|
_chunks.Add(mesh);
|
||||||
|
}
|
||||||
|
var v = new List<Vector3>();
|
||||||
|
var nrm = new List<Vector3>();
|
||||||
|
var uv = new List<Vector2>();
|
||||||
|
var rails = new List<int>();
|
||||||
|
var ties = new List<int>();
|
||||||
|
int s0 = c * ChunkPts, s1 = Mathf.Min(lastSeg, s0 + ChunkPts);
|
||||||
|
for (int s = s0; s < s1; s++)
|
||||||
|
{
|
||||||
|
var a = _pts[s];
|
||||||
|
var b = _pts[s + 1];
|
||||||
|
var up = Planet.Up(a);
|
||||||
|
var f = (b - a).normalized;
|
||||||
|
var side = Vector3.Cross(up, f).normalized;
|
||||||
|
// two steel rails a little proud of the sleepers, one sleeper per two metres
|
||||||
|
for (int r = -1; r <= 1; r += 2)
|
||||||
|
{
|
||||||
|
var o = side * (r * Gauge * 0.5f) + up * 0.16f;
|
||||||
|
Box(v, nrm, uv, rails, a + o, b + o, side, up, 0.09f, 0.11f);
|
||||||
|
}
|
||||||
|
var mid = (a + b) * 0.5f + up * 0.06f;
|
||||||
|
Box(v, nrm, uv, ties, mid - f * 0.14f, mid + f * 0.14f, side, up, 2.2f, 0.12f);
|
||||||
|
}
|
||||||
|
var mesh2 = _chunks[c];
|
||||||
|
mesh2.Clear();
|
||||||
|
mesh2.SetVertices(v);
|
||||||
|
mesh2.SetNormals(nrm);
|
||||||
|
mesh2.SetUVs(0, uv);
|
||||||
|
mesh2.subMeshCount = 2;
|
||||||
|
mesh2.SetTriangles(rails, 0);
|
||||||
|
mesh2.SetTriangles(ties, 1);
|
||||||
|
mesh2.RecalculateBounds();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>A box from a to b, this wide and this tall, standing on the line (no bottom face).</summary>
|
||||||
|
static void Box(List<Vector3> v, List<Vector3> n, List<Vector2> uv, List<int> tris, Vector3 a, Vector3 b, Vector3 side, Vector3 up, float w, float h)
|
||||||
|
{
|
||||||
|
var s = side * (w * 0.5f);
|
||||||
|
var t = up * h;
|
||||||
|
var f = (b - a).normalized;
|
||||||
|
Quad(v, n, uv, tris, a - s + t, a + s + t, b + s + t, b - s + t, up);
|
||||||
|
Quad(v, n, uv, tris, a + s, b + s, b + s + t, a + s + t, side);
|
||||||
|
Quad(v, n, uv, tris, b - s, a - s, a - s + t, b - s + t, -side);
|
||||||
|
Quad(v, n, uv, tris, a - s, a + s, a + s + t, a - s + t, -f);
|
||||||
|
Quad(v, n, uv, tris, b + s, b - s, b - s + t, b + s + t, f);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void Quad(List<Vector3> v, List<Vector3> n, List<Vector2> uv, List<int> tris, Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3, Vector3 normal)
|
||||||
|
{
|
||||||
|
int i = v.Count;
|
||||||
|
v.Add(p0); v.Add(p1); v.Add(p2); v.Add(p3);
|
||||||
|
for (int k = 0; k < 4; k++) n.Add(normal);
|
||||||
|
uv.Add(new Vector2(0, 0)); uv.Add(new Vector2(1, 0)); uv.Add(new Vector2(1, 1)); uv.Add(new Vector2(0, 1));
|
||||||
|
// Unity's front face: Cross(b - a, c - a) points at the viewer
|
||||||
|
var cross = Vector3.Cross(p1 - p0, p2 - p0);
|
||||||
|
if (Vector3.Dot(cross, normal) > 0f) { tris.Add(i); tris.Add(i + 1); tris.Add(i + 2); tris.Add(i); tris.Add(i + 2); tris.Add(i + 3); }
|
||||||
|
else { tris.Add(i); tris.Add(i + 2); tris.Add(i + 1); tris.Add(i); tris.Add(i + 3); tris.Add(i + 2); }
|
||||||
|
}
|
||||||
|
|
||||||
|
// ───────────────────────── talking to it ─────────────────────────
|
||||||
|
|
||||||
|
public string Prompt
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
var def = GameDefs.Piece(PieceId.Train);
|
||||||
|
string where = Last < Stations.Count ? Stations.Name(Last) : "?";
|
||||||
|
string s;
|
||||||
|
if (Laying)
|
||||||
|
{
|
||||||
|
s = Loc.F("{0}: laying track to {1}, {2} of {3} m", def.name, where, Mathf.RoundToInt(Laid.Value), Mathf.RoundToInt(_length));
|
||||||
|
if (Laid.Value < Lead && _line.Count <= 1) s += " · " + Loc.T("E: another station");
|
||||||
|
}
|
||||||
|
else if (!Cutting) s = Loc.F("{0}: carrying grass home from the stations on its line, {1} on board, {2} waiting", def.name, GameDefs.Kilos(Hopper.Value), GameDefs.Kilos(Waiting()));
|
||||||
|
else s = Loc.F("{0}: running to {1} and back, cutting {2} m out either side, {3} on board", def.name, where, Mathf.RoundToInt(Inner + Arm), GameDefs.Kilos(Hopper.Value));
|
||||||
|
if (AimingCab && !Ridden) s = Loc.T("E: ride in the cab") + " · " + s;
|
||||||
|
return s;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool CanInteract => (AimingCab && !Ridden) || (Laying && Laid.Value < Lead && _line.Count <= 1);
|
||||||
|
|
||||||
|
public void Interact()
|
||||||
|
{
|
||||||
|
if (AimingCab && !Ridden) BoardRpc();
|
||||||
|
else OtherWayRpc();
|
||||||
|
}
|
||||||
|
|
||||||
|
[Rpc(SendTo.Server)]
|
||||||
|
void OtherWayRpc()
|
||||||
|
{
|
||||||
|
if (!Laying || Laid.Value >= Lead || Legs.Value != 0) return;
|
||||||
|
Laid.Value = 0f;
|
||||||
|
At.Value = 0f;
|
||||||
|
Target.Value = Pick(Target.Value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Saved: where to, how far laid, where it is, the run, the load, the line on from there (two 24-bit halves), the yards.</summary>
|
||||||
|
public float[] State
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
var s = new float[7 + Stations.Count];
|
||||||
|
s[0] = Target.Value; s[1] = Laid.Value; s[2] = At.Value; s[3] = Runs.Value; s[4] = Hopper.Value;
|
||||||
|
s[5] = Legs.Value & 0xFFFFFF; s[6] = (Legs.Value >> 24) & 0xFFFFFF;
|
||||||
|
for (int i = 0; i < Stations.Count; i++) s[7 + i] = i < Bins.Count ? Bins[i] : 0f;
|
||||||
|
return s;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (value == null || value.Length < 5 || !IsServer) return;
|
||||||
|
if (value.Length >= 7) Legs.Value = (ulong)value[5] | ((ulong)value[6] << 24);
|
||||||
|
if (value[0] < Stations.Count) Target.Value = (byte)value[0];
|
||||||
|
Laid.Value = value[1];
|
||||||
|
At.Value = value[2];
|
||||||
|
Runs.Value = (int)value[3];
|
||||||
|
Hopper.Value = value[4];
|
||||||
|
while (Bins.Count < Stations.Count) Bins.Add(0f);
|
||||||
|
for (int i = 0; i < Stations.Count && 7 + i < value.Length; i++) Bins[i] = value[7 + i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Assets/Scripts/Gameplay/Train.cs.meta
Normal file
2
Assets/Scripts/Gameplay/Train.cs.meta
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b769e94835e00e2489dd6274ee0ecb85
|
||||||
408
Assets/Scripts/Gameplay/Vehicle.Auto.cs
Normal file
408
Assets/Scripts/Gameplay/Vehicle.Auto.cs
Normal file
@ -0,0 +1,408 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using Unity.Netcode;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace GrassCutter
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The autopilot, bought for a machine at the garage. C hands the machine over and the driver steps off: it mows a field
|
||||||
|
/// round where it was let go in long strokes (every other row first, so it has room to turn), then the fields round
|
||||||
|
/// that one, ring by ring. With the hopper full it drives to the nearest place to unload (a garage pad, an unload bay or
|
||||||
|
/// the base yard), empties it and comes back to the stroke it left. Getting in takes it back. The host drives it.
|
||||||
|
/// </summary>
|
||||||
|
public partial class Vehicle
|
||||||
|
{
|
||||||
|
public enum AutoJob : byte { Off, Mowing, Unloading, Done }
|
||||||
|
|
||||||
|
/// <summary>What the autopilot is doing (the host writes it).</summary>
|
||||||
|
public readonly NetworkVariable<byte> Auto = new NetworkVariable<byte>();
|
||||||
|
public AutoJob Job => (AutoJob)Auto.Value;
|
||||||
|
public bool OnAuto => Auto.Value != (byte)AutoJob.Off;
|
||||||
|
/// <summary>Has an autopilot, and a cutter for it to mow with.</summary>
|
||||||
|
public bool CanAuto => GameDefs.TuneFits(kind, TuneId.Autopilot) && Level(TuneId.Autopilot) > 0;
|
||||||
|
|
||||||
|
/// <summary>A field is this many metres a side; it works this many rings of fields round the first.</summary>
|
||||||
|
const float FieldSize = 34f;
|
||||||
|
const int FieldRings = 4;
|
||||||
|
|
||||||
|
Vector3 _home, _homeFwd;
|
||||||
|
/// <summary>Strokes as pairs of points on the ground: start, end, start, end...</summary>
|
||||||
|
readonly List<Vector3> _strokes = new List<Vector3>();
|
||||||
|
int _next, _field;
|
||||||
|
float _stuck, _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;
|
||||||
|
/// <summary>Pads it got to and couldn't unload on this trip (walled in, say): it tries the next place.</summary>
|
||||||
|
readonly HashSet<SiloPiece> _badPads = new HashSet<SiloPiece>();
|
||||||
|
float _thereSince = -1f;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An autopilot touches nothing, so nothing can wedge it, climb it or tip it: it rides on the soil and on the base
|
||||||
|
/// deck, steers round what stands in its way and goes through what it can't get round.
|
||||||
|
/// </summary>
|
||||||
|
const int GhostMask = ~0;
|
||||||
|
/// <summary>What it steers round (not the deck rails: it rolls over those).</summary>
|
||||||
|
const int SolidMask = (1 << Layers.Default) | (1 << Layers.Build) | (1 << Layers.Vehicle) | (1 << Layers.Player) | (1 << Layers.LocalPlayer);
|
||||||
|
bool _ghost, _avoiding;
|
||||||
|
/// <summary>For the demo: how often an autopilot steered round something, went through it, hopped.</summary>
|
||||||
|
public static int Swerves, Hops;
|
||||||
|
static readonly RaycastHit[] s_ahead = new RaycastHit[8];
|
||||||
|
|
||||||
|
bool Solid(Collider c) => c && !c.transform.IsChildOf(transform) && !(c is BoxCollider && c.GetComponent<DeckTileView>());
|
||||||
|
|
||||||
|
/// <summary>How far ahead the way is blocked this way (MaxValue: it's clear), not counting what's near the goal.</summary>
|
||||||
|
float Blocked(Vector3 from, Vector3 dir, float radius, float reach, Vector3 goal)
|
||||||
|
{
|
||||||
|
int n = Physics.SphereCastNonAlloc(from, radius, dir, s_ahead, reach, SolidMask, QueryTriggerInteraction.Ignore);
|
||||||
|
float best = float.MaxValue;
|
||||||
|
for (int i = 0; i < n; i++)
|
||||||
|
{
|
||||||
|
var h = s_ahead[i];
|
||||||
|
if (!Solid(h.collider) || h.distance <= 0f) continue;
|
||||||
|
if ((h.point - goal).sqrMagnitude < 36f) continue;
|
||||||
|
best = Mathf.Min(best, h.distance);
|
||||||
|
}
|
||||||
|
return best;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Steering to take it round what stands ahead: toward the clearer side, harder the closer it is.</summary>
|
||||||
|
float Avoid(Vector3 p, Vector3 up, Vector3 fwd, float dist, Vector3 goal)
|
||||||
|
{
|
||||||
|
float reach = Mathf.Min(9f, dist - 1.5f);
|
||||||
|
if (reach < 2f) return 0f;
|
||||||
|
var from = p + up * 1.1f;
|
||||||
|
float r = Mathf.Max(0.6f, width * 0.5f);
|
||||||
|
float ahead = Blocked(from, fwd, r, reach, goal);
|
||||||
|
if (ahead == float.MaxValue) return 0f;
|
||||||
|
float left = Blocked(from, Quaternion.AngleAxis(-40f, up) * fwd, r, reach, goal);
|
||||||
|
float right = Blocked(from, Quaternion.AngleAxis(40f, up) * fwd, r, reach, goal);
|
||||||
|
float side = left > right ? -1f : left < right ? 1f : (Vector3.SignedAngle(fwd, goal - p, up) < 0f ? -1f : 1f);
|
||||||
|
return side * Mathf.Lerp(1.4f, 0.5f, ahead / reach);
|
||||||
|
}
|
||||||
|
static readonly RaycastHit[] s_deckHits = new RaycastHit[8];
|
||||||
|
|
||||||
|
/// <summary>How high this wheel stands over the base deck's slab under it, if there is one (it keeps to the deck, not to what's on it).</summary>
|
||||||
|
static float DeckClearance(Vector3 wp, Vector3 up, float reach)
|
||||||
|
{
|
||||||
|
int n = Physics.RaycastNonAlloc(wp + up * 1.2f, -up, s_deckHits, reach, 1 << Layers.Default, QueryTriggerInteraction.Ignore);
|
||||||
|
float best = float.MaxValue;
|
||||||
|
for (int i = 0; i < n; i++)
|
||||||
|
if (s_deckHits[i].collider is BoxCollider && s_deckHits[i].collider.GetComponent<DeckTileView>())
|
||||||
|
best = Mathf.Min(best, s_deckHits[i].distance - 1.2f);
|
||||||
|
return best;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Ghost(bool on)
|
||||||
|
{
|
||||||
|
if (_ghost == on) return;
|
||||||
|
_ghost = on;
|
||||||
|
Body.excludeLayers = on ? (LayerMask)GhostMask : (LayerMask)0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>The last way out: picks the machine up and sets it down a few metres on, facing where it's going.</summary>
|
||||||
|
void Hop(Vector3 goal, float metres)
|
||||||
|
{
|
||||||
|
var p = transform.position;
|
||||||
|
var up = Planet.Up(p);
|
||||||
|
var to = Vector3.ProjectOnPlane(goal - p, up);
|
||||||
|
float d = to.magnitude;
|
||||||
|
if (d < 0.5f) return;
|
||||||
|
var dir = to / d;
|
||||||
|
Hops++;
|
||||||
|
var at = Planet.Surface(p + dir * Mathf.Min(metres, d));
|
||||||
|
var nu = Planet.Up(at);
|
||||||
|
// onto the base deck, not under it
|
||||||
|
if (Ts && Ts.OnDeck(at)) { float c = DeckClearance(at + nu * 4f, nu, 8f); if (c < 50f) at += nu * (4f - c); }
|
||||||
|
Body.position = at + nu * 0.6f;
|
||||||
|
Body.rotation = Quaternion.LookRotation(Vector3.ProjectOnPlane(dir, nu).normalized, nu);
|
||||||
|
Body.linearVelocity = Vector3.zero;
|
||||||
|
Body.angularVelocity = Vector3.zero;
|
||||||
|
_hasCut = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
static readonly List<Vector2Int> s_fields = new List<Vector2Int>();
|
||||||
|
static readonly List<(Vector3 at, string name)> s_yards = new List<(Vector3, string)>();
|
||||||
|
static readonly Collider[] s_block = new Collider[4];
|
||||||
|
|
||||||
|
/// <summary>The driver hands over: they step off, it carries on.</summary>
|
||||||
|
[Rpc(SendTo.Server)]
|
||||||
|
void AutoRpc(RpcParams rpc = default)
|
||||||
|
{
|
||||||
|
if (Driver.Value != rpc.Receive.SenderClientId || !CanAuto) return;
|
||||||
|
ServerEject();
|
||||||
|
ServerStartAuto(transform.position, transform.forward);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Host: start working round this spot, the strokes running this way.</summary>
|
||||||
|
public void ServerStartAuto(Vector3 home, Vector3 forward)
|
||||||
|
{
|
||||||
|
if (!IsServer || !CanAuto) return;
|
||||||
|
var up = Planet.Up(home);
|
||||||
|
_home = home;
|
||||||
|
_homeFwd = Vector3.ProjectOnPlane(forward, up).normalized;
|
||||||
|
if (_homeFwd.sqrMagnitude < 0.5f) _homeFwd = Vector3.ProjectOnPlane(Vector3.forward, up).normalized;
|
||||||
|
_field = -1;
|
||||||
|
_strokes.Clear();
|
||||||
|
_next = 0;
|
||||||
|
_stuckTimes = 0;
|
||||||
|
Auto.Value = (byte)AutoJob.Mowing;
|
||||||
|
if (!NextField()) Auto.Value = (byte)AutoJob.Done;
|
||||||
|
}
|
||||||
|
|
||||||
|
float _resumeAt;
|
||||||
|
|
||||||
|
/// <summary>Host, loading a save: back to work once the world round it has been built.</summary>
|
||||||
|
public void ServerResumeAuto(Vector3 home, Vector3 forward)
|
||||||
|
{
|
||||||
|
_home = home;
|
||||||
|
_homeFwd = forward;
|
||||||
|
_resumeAt = Time.time + 4f;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AutoResume()
|
||||||
|
{
|
||||||
|
if (_resumeAt <= 0f || Time.time < _resumeAt) return;
|
||||||
|
_resumeAt = 0f;
|
||||||
|
if (!HasDriver) ServerStartAuto(_home, _homeFwd);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Where the autopilot was started, for the save (Off: it wasn't).</summary>
|
||||||
|
public void AutoState(out int job, out Vector3 home, out Vector3 fwd)
|
||||||
|
{
|
||||||
|
job = Auto.Value;
|
||||||
|
home = _home;
|
||||||
|
fwd = _homeFwd;
|
||||||
|
}
|
||||||
|
|
||||||
|
string AutoPrompt => Job == AutoJob.Unloading ? Loc.T("autopilot: off to unload")
|
||||||
|
: Job == AutoJob.Done ? Loc.T("autopilot: nothing left to mow round here")
|
||||||
|
: Loc.T("autopilot: mowing");
|
||||||
|
|
||||||
|
// ───────────────────────── planning ─────────────────────────
|
||||||
|
|
||||||
|
static void Fields()
|
||||||
|
{
|
||||||
|
if (s_fields.Count > 0) return;
|
||||||
|
s_fields.Add(Vector2Int.zero);
|
||||||
|
for (int r = 1; r <= FieldRings; r++)
|
||||||
|
{
|
||||||
|
// round the ring: along the top, down the right, back along the bottom, up the left
|
||||||
|
for (int x = -r; x < r; x++) s_fields.Add(new Vector2Int(x, r));
|
||||||
|
for (int z = r; z > -r; z--) s_fields.Add(new Vector2Int(r, z));
|
||||||
|
for (int x = r; x > -r; x--) s_fields.Add(new Vector2Int(x, -r));
|
||||||
|
for (int z = -r; z < r; z++) s_fields.Add(new Vector2Int(-r, z));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Plans the next field that has grass on it. False when there is none left.</summary>
|
||||||
|
bool NextField()
|
||||||
|
{
|
||||||
|
Fields();
|
||||||
|
_strokes.Clear();
|
||||||
|
_next = 0;
|
||||||
|
while (++_field < s_fields.Count)
|
||||||
|
{
|
||||||
|
Plan(s_fields[_field]);
|
||||||
|
if (_strokes.Count > 0) return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Plan(Vector2Int f)
|
||||||
|
{
|
||||||
|
var up = Planet.Up(_home);
|
||||||
|
var fwd = _homeFwd;
|
||||||
|
var right = Vector3.Cross(up, fwd);
|
||||||
|
var centre = _home + right * (f.x * FieldSize) + fwd * (f.y * FieldSize);
|
||||||
|
float w = Mathf.Max(0.8f, CutWidth * 0.85f);
|
||||||
|
int rows = Mathf.Max(1, Mathf.CeilToInt(FieldSize / w));
|
||||||
|
// every other row out, the rest on the way back: a turn is two strips wide, not one
|
||||||
|
var order = new List<int>();
|
||||||
|
for (int i = 0; i < rows; i += 2) order.Add(i);
|
||||||
|
for (int i = rows - 1 - (rows % 2 == 0 ? 0 : 1); i >= 1; i -= 2) order.Add(i);
|
||||||
|
bool flip = false;
|
||||||
|
foreach (int i in order)
|
||||||
|
{
|
||||||
|
float u = -FieldSize * 0.5f + (i + 0.5f) * w;
|
||||||
|
var a = centre + right * u - fwd * (FieldSize * 0.5f);
|
||||||
|
var b = centre + right * u + fwd * (FieldSize * 0.5f);
|
||||||
|
if (flip) (a, b) = (b, a);
|
||||||
|
if (Stroke(a, b)) flip = !flip;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Adds the stretches of a row that are free to drive and have grass on them. True if any were.</summary>
|
||||||
|
bool Stroke(Vector3 a, Vector3 b)
|
||||||
|
{
|
||||||
|
const float Step = 1.5f;
|
||||||
|
int n = Mathf.Max(2, Mathf.CeilToInt(Vector3.Distance(a, b) / Step));
|
||||||
|
bool any = false;
|
||||||
|
int start = -1, grass = 0;
|
||||||
|
Vector3 first = default, last = default;
|
||||||
|
for (int k = 0; k <= n; k++)
|
||||||
|
{
|
||||||
|
var p = Planet.Surface(Vector3.Lerp(a, b, k / (float)n));
|
||||||
|
bool free = Free(p);
|
||||||
|
if (free)
|
||||||
|
{
|
||||||
|
if (start < 0) { start = k; first = p; grass = 0; }
|
||||||
|
last = p;
|
||||||
|
if (MowMap.Yield(p) > 0.3f) grass++;
|
||||||
|
}
|
||||||
|
if (!free || k == n)
|
||||||
|
{
|
||||||
|
if (start >= 0 && grass >= 2 && Vector3.Distance(first, last) > 3f)
|
||||||
|
{
|
||||||
|
_strokes.Add(first);
|
||||||
|
_strokes.Add(last);
|
||||||
|
any = true;
|
||||||
|
}
|
||||||
|
start = -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return any;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Open ground: no deck, rock, building or scenery in the way.</summary>
|
||||||
|
bool Free(Vector3 p)
|
||||||
|
{
|
||||||
|
if (Ts && Ts.OnDeck(p)) return false;
|
||||||
|
if (Ground.Instance && Ground.Instance.RockAt(p)) return false;
|
||||||
|
var up = Planet.Up(p);
|
||||||
|
int n = Physics.OverlapSphereNonAlloc(p + up * 1.3f, width * 0.5f + 1f, s_block, (1 << Layers.Default) | (1 << Layers.Build), QueryTriggerInteraction.Ignore);
|
||||||
|
for (int i = 0; i < n; i++)
|
||||||
|
if (s_block[i] && !s_block[i].transform.IsChildOf(transform)) return false;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>The nearest place to empty the hopper: a pad (garage, unload bay) or the base yard.</summary>
|
||||||
|
bool FindUnload(out Vector3 at)
|
||||||
|
{
|
||||||
|
at = default;
|
||||||
|
float best = float.MaxValue;
|
||||||
|
var p = transform.position;
|
||||||
|
foreach (var s in SiloPiece.Pads)
|
||||||
|
{
|
||||||
|
// only what a machine can drive onto (a garage, an unload bay): a drone pad or a binder holds grass too
|
||||||
|
if (!s || !s.IsSpawned || !s.OnPad(s.PadSpot) || _badPads.Contains(s)) continue;
|
||||||
|
float d = (s.PadSpot - p).sqrMagnitude;
|
||||||
|
if (d < best) { best = d; at = s.PadSpot; }
|
||||||
|
}
|
||||||
|
if (!s_dock) { var dz = GameObject.Find("DockZone"); s_dock = dz ? dz.transform : null; }
|
||||||
|
if (s_dock && (s_dock.position - p).sqrMagnitude < best) { best = (s_dock.position - p).sqrMagnitude; at = s_dock.position; }
|
||||||
|
// a yard at a station on a train's line: the train takes it home
|
||||||
|
s_yards.Clear();
|
||||||
|
Train.Yards(s_yards);
|
||||||
|
foreach (var y in s_yards)
|
||||||
|
if ((y.at - p).sqrMagnitude < best) { best = (y.at - p).sqrMagnitude; at = y.at; }
|
||||||
|
return best < float.MaxValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ───────────────────────── driving (host) ─────────────────────────
|
||||||
|
|
||||||
|
/// <summary>The stick the autopilot holds this physics step.</summary>
|
||||||
|
Vector2 AutoInput(float dt)
|
||||||
|
{
|
||||||
|
var p = transform.position;
|
||||||
|
var up = Planet.Up(p);
|
||||||
|
var job = Job;
|
||||||
|
if (job == AutoJob.Off || job == AutoJob.Done) return Vector2.zero;
|
||||||
|
|
||||||
|
if (job == AutoJob.Mowing && Tank.Value >= Capacity - 0.5f)
|
||||||
|
{
|
||||||
|
if (FindUnload(out _unloadAt)) { Auto.Value = (byte)(job = AutoJob.Unloading); _stuckTimes = 0; }
|
||||||
|
else { Auto.Value = (byte)AutoJob.Done; return Vector2.zero; }
|
||||||
|
}
|
||||||
|
if (job == AutoJob.Unloading)
|
||||||
|
{
|
||||||
|
// on the pad: stand still until it's empty, then back to work
|
||||||
|
if (Unloading) { _thereSince = -1f; return Vector2.zero; }
|
||||||
|
if (Tank.Value <= 0.1f) { Auto.Value = (byte)AutoJob.Mowing; _stuckTimes = 0; _badPads.Clear(); return Vector2.zero; }
|
||||||
|
// at the spot and still not unloading: that place won't take it, so the next one
|
||||||
|
if (Vector3.ProjectOnPlane(_unloadAt - p, up).sqrMagnitude < 25f)
|
||||||
|
{
|
||||||
|
if (_thereSince < 0f) _thereSince = Time.time;
|
||||||
|
else if (Time.time - _thereSince > 4f)
|
||||||
|
{
|
||||||
|
_thereSince = -1f;
|
||||||
|
var bad = SiloPiece.Pads.Find(s => s && (s.PadSpot - _unloadAt).sqrMagnitude < 1f);
|
||||||
|
if (bad) _badPads.Add(bad);
|
||||||
|
if (!bad) Hop(_unloadAt, 5f); // the yard: right onto the spot
|
||||||
|
else if (!FindUnload(out _unloadAt)) { Auto.Value = (byte)AutoJob.Done; return Vector2.zero; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else _thereSince = -1f;
|
||||||
|
}
|
||||||
|
|
||||||
|
Vector3 goal;
|
||||||
|
if (job == AutoJob.Unloading) goal = _unloadAt;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (_next >= _strokes.Count && !NextField())
|
||||||
|
{
|
||||||
|
// all done round here: what's in the hopper goes home first
|
||||||
|
if (Tank.Value > 0.1f && FindUnload(out _unloadAt)) Auto.Value = (byte)AutoJob.Unloading;
|
||||||
|
else Auto.Value = (byte)AutoJob.Done;
|
||||||
|
return Vector2.zero;
|
||||||
|
}
|
||||||
|
goal = _strokes[_next];
|
||||||
|
}
|
||||||
|
|
||||||
|
var to = Vector3.ProjectOnPlane(goal - p, up);
|
||||||
|
float dist = to.magnitude;
|
||||||
|
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);
|
||||||
|
// on the way to unload it gets there anyway, a hop at a time
|
||||||
|
_goalKey = -1;
|
||||||
|
if (job == AutoJob.Mowing) _next++;
|
||||||
|
else Hop(goal, Mathf.Min(dist, 8f));
|
||||||
|
return new Vector2(_lastSteer, 0.4f);
|
||||||
|
}
|
||||||
|
|
||||||
|
var fwd = Vector3.ProjectOnPlane(transform.forward, up).normalized;
|
||||||
|
float ang = Vector3.SignedAngle(fwd, to, up);
|
||||||
|
float speed = Vector3.ProjectOnPlane(Body.linearVelocity, up).magnitude;
|
||||||
|
|
||||||
|
float steer = Mathf.Clamp(ang / 30f, -1f, 1f);
|
||||||
|
// mowing it keeps to a pace it can turn at; on the way somewhere far it goes faster
|
||||||
|
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);
|
||||||
|
// round what stands in the way; what it can't get round it goes through
|
||||||
|
float avoid = Avoid(p, up, fwd, dist, goal);
|
||||||
|
if (avoid == 0f) _avoiding = false;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (!_avoiding) Swerves++;
|
||||||
|
_avoiding = true;
|
||||||
|
steer = Mathf.Clamp(steer + avoid, -1f, 1f);
|
||||||
|
thr = Mathf.Min(thr, 0.5f);
|
||||||
|
}
|
||||||
|
_lastSteer = steer;
|
||||||
|
|
||||||
|
// nothing stops it, so not moving means wedged on the ground somehow: it hops on
|
||||||
|
if (speed < 0.5f && thr > 0.2f)
|
||||||
|
{
|
||||||
|
_stuck += dt;
|
||||||
|
if (_stuck > 3f) { _stuck = 0f; Hop(goal, 4f); }
|
||||||
|
}
|
||||||
|
else _stuck = 0f;
|
||||||
|
return new Vector2(steer, thr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Assets/Scripts/Gameplay/Vehicle.Auto.cs.meta
Normal file
2
Assets/Scripts/Gameplay/Vehicle.Auto.cs.meta
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f48ca0b3d49f54140ba770685b721579
|
||||||
@ -11,7 +11,7 @@ namespace GrassCutter
|
|||||||
/// while driving and unloads at a garage pad. The pickup carries bundles on its bed instead.
|
/// while driving and unloads at a garage pad. The pickup carries bundles on its bed instead.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[RequireComponent(typeof(Rigidbody))]
|
[RequireComponent(typeof(Rigidbody))]
|
||||||
public class Vehicle : NetworkBehaviour, IInteractable
|
public partial class Vehicle : NetworkBehaviour, IInteractable
|
||||||
{
|
{
|
||||||
public static readonly List<Vehicle> All = new List<Vehicle>();
|
public static readonly List<Vehicle> All = new List<Vehicle>();
|
||||||
public const ulong Nobody = ulong.MaxValue;
|
public const ulong Nobody = ulong.MaxValue;
|
||||||
@ -109,7 +109,7 @@ namespace GrassCutter
|
|||||||
|
|
||||||
// ───────────────────────── seat ─────────────────────────
|
// ───────────────────────── seat ─────────────────────────
|
||||||
|
|
||||||
public string Prompt => HasDriver ? null : Def.bed > 0 ? Loc.F("Ride the {0} ({1} of {2} bundles, E with a bundle loads it)", Def.name, Bed.Count, Def.bed) : Loc.F("Ride the {0} ({1} / {2})", Def.name, GameDefs.Kilos(Tank.Value), GameDefs.Kilos(Capacity));
|
public string Prompt => HasDriver ? null : OnAuto ? Loc.F("Take over the {0} ({1}, {2} / {3})", Def.name, AutoPrompt, GameDefs.Kilos(Tank.Value), GameDefs.Kilos(Capacity)) : Def.bed > 0 ? Loc.F("Ride the {0} ({1} of {2} bundles, {3} with a bundle loads it)", Def.name, Bed.Count, Def.bed, Binds.Cap(Act.Interact)) : Loc.F("Ride the {0} ({1} / {2})", Def.name, GameDefs.Kilos(Tank.Value), GameDefs.Kilos(Capacity));
|
||||||
public bool CanInteract => !HasDriver;
|
public bool CanInteract => !HasDriver;
|
||||||
|
|
||||||
public void Interact()
|
public void Interact()
|
||||||
@ -124,6 +124,9 @@ namespace GrassCutter
|
|||||||
if (HasDriver || RollingOut) return;
|
if (HasDriver || RollingOut) return;
|
||||||
foreach (var v in All) if (v != this && v.Driver.Value == who) return;
|
foreach (var v in All) if (v != this && v.Driver.Value == who) return;
|
||||||
Driver.Value = who;
|
Driver.Value = who;
|
||||||
|
// getting in takes it back from the autopilot
|
||||||
|
Auto.Value = (byte)AutoJob.Off;
|
||||||
|
_resumeAt = 0f;
|
||||||
if (OwnerClientId != who) NetworkObject.ChangeOwnership(who);
|
if (OwnerClientId != who) NetworkObject.ChangeOwnership(who);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -253,7 +256,13 @@ namespace GrassCutter
|
|||||||
Sfx.Play("ui_open");
|
Sfx.Play("ui_open");
|
||||||
UIRoot.I?.OpenGarage(near.GetComponent<Garage>(), kind);
|
UIRoot.I?.OpenGarage(near.GetComponent<Garage>(), kind);
|
||||||
}
|
}
|
||||||
if (Ctl.CruisePressed && Level(TuneId.Cruise) > 0) _cruise = !_cruise;
|
if (Ctl.CruisePressed && CanAuto)
|
||||||
|
{
|
||||||
|
AutoRpc();
|
||||||
|
Sfx.Play("ui_click", 0.8f, 1.2f);
|
||||||
|
Hud.Toast(Loc.F("Autopilot on: the {0} mows round here and unloads itself. Hop back in to take over.", Def.name), Hud.ToastKind.Info);
|
||||||
|
}
|
||||||
|
else if (Ctl.CruisePressed && Level(TuneId.Cruise) > 0) _cruise = !_cruise;
|
||||||
if (Ctl.MovePressed && Def.bed > 0) TipRpc();
|
if (Ctl.MovePressed && Def.bed > 0) TipRpc();
|
||||||
}
|
}
|
||||||
else _cruise = false;
|
else _cruise = false;
|
||||||
@ -265,13 +274,49 @@ namespace GrassCutter
|
|||||||
|
|
||||||
// ───────────────────────── physics (owner) ─────────────────────────
|
// ───────────────────────── physics (owner) ─────────────────────────
|
||||||
|
|
||||||
|
readonly float[] _clear = new float[4];
|
||||||
|
/// <summary>The nose and the tail, along the middle, past the springs: what digs in first on a rise or a hard landing.</summary>
|
||||||
|
static readonly float[] Ends = { 0.5f, -0.5f, 0f };
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A hard floor under the springs. They are soft enough to ride a meadow, so a hard landing, a steep rise or the
|
||||||
|
/// moment after a hand-over squeezed them right through and a corner (or the nose) went into the ground; nothing
|
||||||
|
/// else holds a machine up, the ground itself has no collider. Whatever is below the ground comes straight back
|
||||||
|
/// up, and stops falling.
|
||||||
|
/// </summary>
|
||||||
|
void Floor(Vector3 up)
|
||||||
|
{
|
||||||
|
float sink = 0f;
|
||||||
|
for (int i = 0; i < _clear.Length; i++) sink = Mathf.Max(sink, -_clear[i]);
|
||||||
|
for (int i = 0; i < Ends.Length; i++)
|
||||||
|
sink = Mathf.Max(sink, -Planet.Altitude(transform.TransformPoint(new Vector3(0f, 0f, Ends[i] * length))));
|
||||||
|
if (sink < 0.02f || NoFloor) return;
|
||||||
|
sink = Mathf.Min(sink, 3f);
|
||||||
|
Body.position += up * sink;
|
||||||
|
float down = Vector3.Dot(Body.linearVelocity, up);
|
||||||
|
if (down < 0f) Body.linearVelocity -= up * down;
|
||||||
|
Sinks++;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>How often the floor had to catch a machine (the tests read it).</summary>
|
||||||
|
public static int Sinks;
|
||||||
|
/// <summary>Tests: the floor off, to see how it was.</summary>
|
||||||
|
public static bool NoFloor;
|
||||||
|
|
||||||
static readonly Vector2[] Probes = { new Vector2(-0.5f, 0.42f), new Vector2(0.5f, 0.42f), new Vector2(-0.5f, -0.42f), new Vector2(0.5f, -0.42f) };
|
static readonly Vector2[] Probes = { new Vector2(-0.5f, 0.42f), new Vector2(0.5f, 0.42f), new Vector2(-0.5f, -0.42f), new Vector2(0.5f, -0.42f) };
|
||||||
|
|
||||||
void FixedUpdate()
|
void FixedUpdate()
|
||||||
{
|
{
|
||||||
if (!IsSpawned || !IsOwner || Body.isKinematic) return;
|
if (!IsSpawned || !IsOwner || Body.isKinematic) { if (_ghost) Ghost(false); return; }
|
||||||
bool driving = LocalDriving;
|
bool driving = LocalDriving;
|
||||||
var input = driving ? Ctl.Move : Vector2.zero;
|
var input = driving ? Ctl.Move : Vector2.zero;
|
||||||
|
// the host drives a machine on autopilot
|
||||||
|
bool auto = false;
|
||||||
|
if (IsServer && !HasDriver)
|
||||||
|
{
|
||||||
|
AutoResume();
|
||||||
|
if (OnAuto) { input = AutoInput(Time.fixedDeltaTime); auto = true; }
|
||||||
|
}
|
||||||
float boost = driving && Ctl.Sprint ? GameDefs.BoostMul(Level(TuneId.Turbo)) : 1f;
|
float boost = driving && Ctl.Sprint ? GameDefs.BoostMul(Level(TuneId.Turbo)) : 1f;
|
||||||
if (input.y < -0.1f) _cruise = false;
|
if (input.y < -0.1f) _cruise = false;
|
||||||
float throttle = _cruise && input.y < 0.1f ? 1f : input.y;
|
float throttle = _cruise && input.y < 0.1f ? 1f : input.y;
|
||||||
@ -279,6 +324,8 @@ namespace GrassCutter
|
|||||||
|
|
||||||
var up = Planet.Up(transform.position);
|
var up = Planet.Up(transform.position);
|
||||||
Body.AddForce(-up * GameDefs.LowGravity, ForceMode.Acceleration);
|
Body.AddForce(-up * GameDefs.LowGravity, ForceMode.Acceleration);
|
||||||
|
// on autopilot it touches nothing: it steers round things and goes through what it can't get round
|
||||||
|
Ghost(auto);
|
||||||
|
|
||||||
// raycast springs at four corners (soil, deck, ramp)
|
// raycast springs at four corners (soil, deck, ramp)
|
||||||
int wet = 0;
|
int wet = 0;
|
||||||
@ -290,8 +337,10 @@ namespace GrassCutter
|
|||||||
var local = new Vector3(Probes[i].x * width, 0f, Probes[i].y * length);
|
var local = new Vector3(Probes[i].x * width, 0f, Probes[i].y * length);
|
||||||
var wp = transform.TransformPoint(local);
|
var wp = transform.TransformPoint(local);
|
||||||
float clearance = Planet.Altitude(wp);
|
float clearance = Planet.Altitude(wp);
|
||||||
if (Physics.Raycast(wp + up * 1.2f, -up, out var sh, 1.2f + ride + 1.5f, groundMask, QueryTriggerInteraction.Ignore))
|
if (_ghost) clearance = Mathf.Min(clearance, DeckClearance(wp, up, 1.2f + ride + 1.5f));
|
||||||
|
else if (Physics.Raycast(wp + up * 1.2f, -up, out var sh, 1.2f + ride + 1.5f, groundMask, QueryTriggerInteraction.Ignore))
|
||||||
clearance = Mathf.Min(clearance, sh.distance - 1.2f);
|
clearance = Mathf.Min(clearance, sh.distance - 1.2f);
|
||||||
|
_clear[i] = clearance;
|
||||||
float depth = ride - clearance;
|
float depth = ride - clearance;
|
||||||
if (depth > 0f)
|
if (depth > 0f)
|
||||||
{
|
{
|
||||||
@ -302,6 +351,7 @@ namespace GrassCutter
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
bool onGround = wet > 0;
|
bool onGround = wet > 0;
|
||||||
|
Floor(up);
|
||||||
|
|
||||||
// drive
|
// drive
|
||||||
var fwd = Vector3.ProjectOnPlane(transform.forward, up).normalized;
|
var fwd = Vector3.ProjectOnPlane(transform.forward, up).normalized;
|
||||||
@ -329,7 +379,7 @@ namespace GrassCutter
|
|||||||
var tq = Vector3.Cross(transform.up, lean.normalized) * 18f - Body.angularVelocity * 2.5f;
|
var tq = Vector3.Cross(transform.up, lean.normalized) * 18f - Body.angularVelocity * 2.5f;
|
||||||
Body.AddTorque(Vector3.ProjectOnPlane(tq, up) * Body.mass, ForceMode.Force);
|
Body.AddTorque(Vector3.ProjectOnPlane(tq, up) * Body.mass, ForceMode.Force);
|
||||||
}
|
}
|
||||||
if (driving && Throttle.Value != throttle) Throttle.Value = throttle;
|
if ((driving || auto) && Throttle.Value != throttle) Throttle.Value = throttle;
|
||||||
|
|
||||||
// mow under the cutter: what the header sweeps goes in the hopper
|
// mow under the cutter: what the header sweeps goes in the hopper
|
||||||
bool mowing = false;
|
bool mowing = false;
|
||||||
@ -338,23 +388,29 @@ namespace GrassCutter
|
|||||||
var ip = intake ? intake.position : transform.position + fwd * length * 0.5f;
|
var ip = intake ? intake.position : transform.position + fwd * length * 0.5f;
|
||||||
bool overMeadow = Planet.Altitude(ip) < 1.2f && !(Ground.Instance && Ground.Instance.RockAt(ip));
|
bool overMeadow = Planet.Altitude(ip) < 1.2f && !(Ground.Instance && Ground.Instance.RockAt(ip));
|
||||||
bool onDeck = Ts && Ts.OnDeck(ip);
|
bool onDeck = Ts && Ts.OnDeck(ip);
|
||||||
if (overMeadow && !onDeck && Tank.Value < Capacity && driving)
|
if (overMeadow && !onDeck && Tank.Value < Capacity && (driving || auto))
|
||||||
{
|
{
|
||||||
mowing = true;
|
mowing = true;
|
||||||
float kg = MowMap.Cut(_hasCut ? _lastCut : ip, ip, CutWidth, blade: true) * GameDefs.GrassDensity;
|
float kg = MowMap.Cut(_hasCut ? _lastCut : ip, ip, CutWidth, blade: true) * GameDefs.GrassDensity;
|
||||||
Tank.Value = Mathf.Min(Capacity, Tank.Value + kg);
|
Tank.Value = Mathf.Min(Capacity, Tank.Value + kg);
|
||||||
if (Tank.Value >= Capacity - 0.01f) { Sfx.Play("tank_full", 0.8f); Assistant.Say("asst_hopper"); Hud.Toast(Loc.F("{0} hopper full: unload at the base yard, a garage pad or an Unload Bay (follow the UNLOAD markers)", Def.name), Hud.ToastKind.Warn); }
|
if (Tank.Value >= Capacity - 0.01f && driving) { Sfx.Play("tank_full", 0.8f); Assistant.Say("asst_hopper"); Hud.Toast(Loc.F("{0} hopper full: unload at the base yard, a garage pad or an Unload Bay (follow the UNLOAD markers)", Def.name), Hud.ToastKind.Warn); }
|
||||||
_lastCut = ip;
|
_lastCut = ip;
|
||||||
}
|
}
|
||||||
_hasCut = mowing;
|
_hasCut = mowing;
|
||||||
}
|
}
|
||||||
if (Slurping.Value != mowing) Slurping.Value = mowing;
|
if (Slurping.Value != mowing) Slurping.Value = mowing;
|
||||||
|
|
||||||
// unload: in the yard at the base it's paid as it comes off, on a garage's pad or an unload bay it fills the bin
|
// unload: in the yard at the base it's paid as it comes off, on a garage's pad or an unload bay it fills the bin,
|
||||||
|
// in a train yard at a station on a line it waits there for the train
|
||||||
var pad = Tank.Value > 0.1f ? SiloPiece.PadUnder(transform.position) : null;
|
var pad = Tank.Value > 0.1f ? SiloPiece.PadUnder(transform.position) : null;
|
||||||
if (Def.bales && driving) Bale(dt);
|
bool dock = Tank.Value > 0.1f && !pad && NearDock();
|
||||||
Unloading = Tank.Value > 0.1f && (pad || NearDock());
|
Train yard = null;
|
||||||
if (Tank.Value > 0.1f && (pad || NearDock()) && Ts)
|
int yardOf = -1;
|
||||||
|
if (Tank.Value > 0.1f && !pad && !dock) Train.YardAt(transform.position, out yard, out yardOf);
|
||||||
|
bool into = pad || dock || yard;
|
||||||
|
if (Def.bales && (driving || auto)) Bale(dt);
|
||||||
|
Unloading = Tank.Value > 0.1f && into;
|
||||||
|
if (Tank.Value > 0.1f && into && Ts)
|
||||||
{
|
{
|
||||||
float give = Mathf.Min(Tank.Value, GameDefs.DockRate(Level(TuneId.Release)) * (Ts.Has(PerkId.ExpressDepot) ? 2f : 1f) * dt);
|
float give = Mathf.Min(Tank.Value, GameDefs.DockRate(Level(TuneId.Release)) * (Ts.Has(PerkId.ExpressDepot) ? 2f : 1f) * dt);
|
||||||
Tank.Value -= give;
|
Tank.Value -= give;
|
||||||
@ -362,6 +418,7 @@ namespace GrassCutter
|
|||||||
if (_unloadCarry > 40f || Tank.Value <= 0.1f)
|
if (_unloadCarry > 40f || Tank.Value <= 0.1f)
|
||||||
{
|
{
|
||||||
if (pad) pad.TakeRpc(_unloadCarry);
|
if (pad) pad.TakeRpc(_unloadCarry);
|
||||||
|
else if (yard) yard.FillRpc((byte)yardOf, _unloadCarry);
|
||||||
else Ts.DepositRpc(_unloadCarry, (byte)CargoKind.Grass, transform.position);
|
else Ts.DepositRpc(_unloadCarry, (byte)CargoKind.Grass, transform.position);
|
||||||
_unloadCarry = 0f;
|
_unloadCarry = 0f;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,7 +22,7 @@ namespace GrassCutter
|
|||||||
public class NetSession : MonoBehaviour
|
public class NetSession : MonoBehaviour
|
||||||
{
|
{
|
||||||
public const string GameKey = "grasscutter";
|
public const string GameKey = "grasscutter";
|
||||||
public const string Version = "0.1";
|
public const string Version = Demo.On ? "0.1-demo" : "0.1";
|
||||||
public const int MaxPlayers = 16;
|
public const int MaxPlayers = 16;
|
||||||
const ushort LocalPort = 7777;
|
const ushort LocalPort = 7777;
|
||||||
|
|
||||||
|
|||||||
@ -8,7 +8,7 @@ namespace GrassCutter
|
|||||||
[DefaultExecutionOrder(-1000)]
|
[DefaultExecutionOrder(-1000)]
|
||||||
public class SteamManager : MonoBehaviour
|
public class SteamManager : MonoBehaviour
|
||||||
{
|
{
|
||||||
public const uint AppId = 5551720;
|
public const uint AppId = Demo.On ? Demo.DemoAppId : Demo.FullAppId;
|
||||||
|
|
||||||
public static SteamManager Instance { get; private set; }
|
public static SteamManager Instance { get; private set; }
|
||||||
public static bool Initialized { get; private set; }
|
public static bool Initialized { get; private set; }
|
||||||
@ -36,7 +36,9 @@ namespace GrassCutter
|
|||||||
DontDestroyOnLoad(gameObject);
|
DontDestroyOnLoad(gameObject);
|
||||||
|
|
||||||
Debug.Log("[Steam] initializing…");
|
Debug.Log("[Steam] initializing…");
|
||||||
if (CommandLine.Has("-nosteam")) { Debug.Log("[Steam] disabled by -nosteam"); return; }
|
// Only our own builds carry steam_appid.txt; a player's copy must run through Steam, which checks it's theirs.
|
||||||
|
bool devAppId = Application.isEditor || System.IO.File.Exists(System.IO.Path.Combine(System.IO.Path.GetDirectoryName(Application.dataPath) ?? ".", "steam_appid.txt"));
|
||||||
|
if (CommandLine.Has("-nosteam") && devAppId) { Debug.Log("[Steam] disabled by -nosteam"); return; }
|
||||||
|
|
||||||
if (!Packsize.Test()) Debug.LogError("[Steam] Packsize test failed — wrong Steamworks.NET platform binaries.");
|
if (!Packsize.Test()) Debug.LogError("[Steam] Packsize test failed — wrong Steamworks.NET platform binaries.");
|
||||||
if (!DllCheck.Test()) Debug.LogError("[Steam] DllCheck failed — steam_api64.dll mismatch.");
|
if (!DllCheck.Test()) Debug.LogError("[Steam] DllCheck failed — steam_api64.dll mismatch.");
|
||||||
@ -46,7 +48,6 @@ namespace GrassCutter
|
|||||||
#if !UNITY_EDITOR
|
#if !UNITY_EDITOR
|
||||||
// When launched outside Steam without steam_appid.txt this relaunches through Steam.
|
// When launched outside Steam without steam_appid.txt this relaunches through Steam.
|
||||||
// Dev builds ship steam_appid.txt next to the exe, so skip the check entirely there.
|
// Dev builds ship steam_appid.txt next to the exe, so skip the check entirely there.
|
||||||
bool devAppId = System.IO.File.Exists(System.IO.Path.Combine(System.IO.Path.GetDirectoryName(Application.dataPath) ?? ".", "steam_appid.txt"));
|
|
||||||
if (!devAppId && SteamAPI.RestartAppIfNecessary(new AppId_t(AppId)))
|
if (!devAppId && SteamAPI.RestartAppIfNecessary(new AppId_t(AppId)))
|
||||||
{
|
{
|
||||||
Debug.Log("[Steam] Relaunching through Steam");
|
Debug.Log("[Steam] Relaunching through Steam");
|
||||||
@ -59,12 +60,14 @@ namespace GrassCutter
|
|||||||
if (!Initialized)
|
if (!Initialized)
|
||||||
{
|
{
|
||||||
Debug.LogWarning($"[Steam] Init failed ({res}): {err}. Is Steam running? Falling back to offline mode.");
|
Debug.LogWarning($"[Steam] Init failed ({res}): {err}. Is Steam running? Falling back to offline mode.");
|
||||||
|
if (!devAppId) NeedSteam();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (DllNotFoundException e)
|
catch (DllNotFoundException e)
|
||||||
{
|
{
|
||||||
Debug.LogError("[Steam] steam_api64.dll not found: " + e.Message);
|
Debug.LogError("[Steam] steam_api64.dll not found: " + e.Message);
|
||||||
|
if (!devAppId) NeedSteam();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -103,6 +106,46 @@ namespace GrassCutter
|
|||||||
if (Initialized) SteamAPI.RunCallbacks();
|
if (Initialized) SteamAPI.RunCallbacks();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// always the full game: the demo has no hub of its own, and its wishlist button is for the game
|
||||||
|
public static string StoreUrl => $"https://store.steampowered.com/app/{Demo.FullAppId}/";
|
||||||
|
public static string FeedbackUrl => $"https://steamcommunity.com/app/{Demo.FullAppId}/discussions/";
|
||||||
|
|
||||||
|
/// <summary>The game's store page (wishlist, follow, review): in the Steam overlay, else the browser.</summary>
|
||||||
|
public static void OpenStore()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (Initialized && SteamUtils.IsOverlayEnabled()) { SteamFriends.ActivateGameOverlayToStore(new AppId_t(Demo.FullAppId), EOverlayToStoreFlag.k_EOverlayToStoreFlag_None); return; }
|
||||||
|
}
|
||||||
|
catch (Exception) { }
|
||||||
|
Application.OpenURL(StoreUrl);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>A page in the Steam overlay's browser, else the system's.</summary>
|
||||||
|
public static void OpenWeb(string url)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (Initialized && SteamUtils.IsOverlayEnabled()) { SteamFriends.ActivateGameOverlayToWebPage(url); return; }
|
||||||
|
}
|
||||||
|
catch (Exception) { }
|
||||||
|
Application.OpenURL(url);
|
||||||
|
}
|
||||||
|
|
||||||
|
[System.Runtime.InteropServices.DllImport("user32.dll", CharSet = System.Runtime.InteropServices.CharSet.Unicode)]
|
||||||
|
static extern int MessageBoxW(IntPtr hWnd, string text, string caption, uint type);
|
||||||
|
|
||||||
|
/// <summary>The game isn't running through Steam (or Steam can't vouch for it): say so and close.</summary>
|
||||||
|
static void NeedSteam()
|
||||||
|
{
|
||||||
|
Debug.LogError("[Steam] not started through Steam: quitting");
|
||||||
|
#if UNITY_STANDALONE_WIN && !UNITY_EDITOR
|
||||||
|
try { MessageBoxW(IntPtr.Zero, Loc.T("Grass Cutters Together needs Steam. Start Steam, sign in to the account that owns the game, and launch it from your library."), "Grass Cutters Together", 0x30); }
|
||||||
|
catch (Exception) { }
|
||||||
|
#endif
|
||||||
|
Application.Quit();
|
||||||
|
}
|
||||||
|
|
||||||
void OnApplicationQuit()
|
void OnApplicationQuit()
|
||||||
{
|
{
|
||||||
Shutdown();
|
Shutdown();
|
||||||
|
|||||||
@ -21,6 +21,8 @@ namespace GrassCutter
|
|||||||
{
|
{
|
||||||
_i = this;
|
_i = this;
|
||||||
Cam = GetComponent<Camera>();
|
Cam = GetComponent<Camera>();
|
||||||
|
// the GPU has time to spare, the CPU doesn't: sorting thousands of draws front to back cost more than the overdraw it saves
|
||||||
|
if (Cam) Cam.opaqueSortMode = UnityEngine.Rendering.OpaqueSortMode.NoDistanceSort;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@ -12,7 +12,7 @@ namespace GrassCutter
|
|||||||
public class CrewBody : MonoBehaviour
|
public class CrewBody : MonoBehaviour
|
||||||
{
|
{
|
||||||
const float Skin = 0.03f, StepUp = 0.4f, FloorDot = 0.6f, StickDown = 0.3f;
|
const float Skin = 0.03f, StepUp = 0.4f, FloorDot = 0.6f, StickDown = 0.3f;
|
||||||
const int Solid = (1 << Layers.Default) | (1 << Physics.IgnoreRaycastLayer) | (1 << Layers.Prop) | (1 << Layers.Vehicle) | (1 << Layers.Player) | (1 << Layers.Build);
|
const int Solid = (1 << Layers.Default) | (1 << Physics.IgnoreRaycastLayer) | (1 << Layers.Prop) | (1 << Layers.Riding) | (1 << Layers.Vehicle) | (1 << Layers.Player) | (1 << Layers.Build);
|
||||||
|
|
||||||
public bool isGrounded { get; private set; }
|
public bool isGrounded { get; private set; }
|
||||||
/// <summary>Walked into something: what was hit and which way we were going.</summary>
|
/// <summary>Walked into something: what was hit and which way we were going.</summary>
|
||||||
|
|||||||
@ -14,6 +14,8 @@ namespace GrassCutter
|
|||||||
/// <summary>Dev bots hold / tap the use buttons through these (they bypass focus checks).</summary>
|
/// <summary>Dev bots hold / tap the use buttons through these (they bypass focus checks).</summary>
|
||||||
public static bool BotUseHeld, BotUsePressed, BotAltHeld, BotAltPressed;
|
public static bool BotUseHeld, BotUsePressed, BotAltHeld, BotAltPressed;
|
||||||
public static Vector2 BotMove;
|
public static Vector2 BotMove;
|
||||||
|
/// <summary>The test bots run.</summary>
|
||||||
|
public static bool BotSprint;
|
||||||
public static bool BotJumpPressed;
|
public static bool BotJumpPressed;
|
||||||
/// <summary>The opening film is running: nobody moves.</summary>
|
/// <summary>The opening film is running: nobody moves.</summary>
|
||||||
public static bool Cinematic;
|
public static bool Cinematic;
|
||||||
@ -63,6 +65,7 @@ namespace GrassCutter
|
|||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (Blocked) { s_sprintOn = false; return false; }
|
if (Blocked) { s_sprintOn = false; return false; }
|
||||||
|
if (BotSprint) return true;
|
||||||
if (G != null && G.leftStickButton.isPressed) return true;
|
if (G != null && G.leftStickButton.isPressed) return true;
|
||||||
if (!SprintToggle) return Binds.Held(Act.Sprint);
|
if (!SprintToggle) return Binds.Held(Act.Sprint);
|
||||||
if (s_sprintFrame != Time.frameCount)
|
if (s_sprintFrame != Time.frameCount)
|
||||||
@ -77,7 +80,8 @@ namespace GrassCutter
|
|||||||
static bool s_sprintOn;
|
static bool s_sprintOn;
|
||||||
static int s_sprintFrame = -1;
|
static int s_sprintFrame = -1;
|
||||||
public static bool JumpHeld => !Blocked && (Binds.Held(Act.Jump) || (G != null && G.buttonSouth.isPressed));
|
public static bool JumpHeld => !Blocked && (Binds.Held(Act.Jump) || (G != null && G.buttonSouth.isPressed));
|
||||||
public static bool DownHeld => !Blocked && ((K != null && (K.leftCtrlKey.isPressed || K.cKey.isPressed)) || (G != null && G.buttonEast.isPressed));
|
/// <summary>Down while flying (the cheat fly mode). Ctrl only: C is Cruise.</summary>
|
||||||
|
public static bool DownHeld => !Blocked && ((K != null && K.leftCtrlKey.isPressed) || (G != null && G.buttonEast.isPressed));
|
||||||
/// <summary>~ / Ё (the key under Esc) or F1: the cheat console. Works even while UI is open.</summary>
|
/// <summary>~ / Ё (the key under Esc) or F1: the cheat console. Works even while UI is open.</summary>
|
||||||
public static bool ConsolePressed => Application.isFocused && !Typing && K != null && (K.backquoteKey.wasPressedThisFrame || K.f1Key.wasPressedThisFrame);
|
public static bool ConsolePressed => Application.isFocused && !Typing && K != null && (K.backquoteKey.wasPressedThisFrame || K.f1Key.wasPressedThisFrame);
|
||||||
public static bool JumpPressed => BotJumpPressed || !Blocked && (Binds.Pressed(Act.Jump) || (G != null && G.buttonSouth.wasPressedThisFrame));
|
public static bool JumpPressed => BotJumpPressed || !Blocked && (Binds.Pressed(Act.Jump) || (G != null && G.buttonSouth.wasPressedThisFrame));
|
||||||
@ -86,7 +90,6 @@ namespace GrassCutter
|
|||||||
public static bool AltPressed => BotAltPressed || !Blocked && (Binds.Pressed(Act.Alt) || (G != null && G.leftTrigger.wasPressedThisFrame));
|
public static bool AltPressed => BotAltPressed || !Blocked && (Binds.Pressed(Act.Alt) || (G != null && G.leftTrigger.wasPressedThisFrame));
|
||||||
public static bool AltHeld => BotAltHeld || !Blocked && (Binds.Held(Act.Alt) || (G != null && G.leftTrigger.isPressed));
|
public static bool AltHeld => BotAltHeld || !Blocked && (Binds.Held(Act.Alt) || (G != null && G.leftTrigger.isPressed));
|
||||||
public static bool RotatePressed => !Blocked && (Binds.Pressed(Act.Rotate) || (G != null && G.buttonNorth.wasPressedThisFrame));
|
public static bool RotatePressed => !Blocked && (Binds.Pressed(Act.Rotate) || (G != null && G.buttonNorth.wasPressedThisFrame));
|
||||||
public static bool ShakePressed => !Blocked && ((K != null && K.fKey.wasPressedThisFrame) || (G != null && G.dpad.up.wasPressedThisFrame));
|
|
||||||
public static bool BuildPressed => !Blocked && Binds.Pressed(Act.Build);
|
public static bool BuildPressed => !Blocked && Binds.Pressed(Act.Build);
|
||||||
public static bool BotMovePressed, BotCopyPressed;
|
public static bool BotMovePressed, BotCopyPressed;
|
||||||
public static bool CtrlHeld => !Blocked && K != null && K.leftCtrlKey.isPressed;
|
public static bool CtrlHeld => !Blocked && K != null && K.leftCtrlKey.isPressed;
|
||||||
@ -162,7 +165,8 @@ namespace GrassCutter
|
|||||||
public static void SetCursor(bool locked)
|
public static void SetCursor(bool locked)
|
||||||
{
|
{
|
||||||
if (Bot) locked = false;
|
if (Bot) locked = false;
|
||||||
Cursor.lockState = locked ? CursorLockMode.Locked : CursorLockMode.None;
|
// free in the menus, but kept inside the game window
|
||||||
|
Cursor.lockState = locked ? CursorLockMode.Locked : Bot ? CursorLockMode.None : CursorLockMode.Confined;
|
||||||
Cursor.visible = !locked;
|
Cursor.visible = !locked;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -27,6 +27,8 @@ namespace GrassCutter
|
|||||||
new Color(0.96f, 0.96f, 0.94f),// white
|
new Color(0.96f, 0.96f, 0.94f),// white
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// <summary>The key of this player's things in the host's save, as the host settled it: everyone needs it, the garage looks up "my machine" by it.</summary>
|
||||||
|
public readonly NetworkVariable<FixedString64Bytes> SaveKey = new NetworkVariable<FixedString64Bytes>("");
|
||||||
public readonly NetworkVariable<FixedString64Bytes> NetName = new NetworkVariable<FixedString64Bytes>("", NetworkVariableReadPermission.Everyone, NetworkVariableWritePermission.Owner);
|
public readonly NetworkVariable<FixedString64Bytes> NetName = new NetworkVariable<FixedString64Bytes>("", NetworkVariableReadPermission.Everyone, NetworkVariableWritePermission.Owner);
|
||||||
public readonly NetworkVariable<ulong> SteamId = new NetworkVariable<ulong>(0, NetworkVariableReadPermission.Everyone, NetworkVariableWritePermission.Owner);
|
public readonly NetworkVariable<ulong> SteamId = new NetworkVariable<ulong>(0, NetworkVariableReadPermission.Everyone, NetworkVariableWritePermission.Owner);
|
||||||
public readonly NetworkVariable<int> ColorIndex = new NetworkVariable<int>();
|
public readonly NetworkVariable<int> ColorIndex = new NetworkVariable<int>();
|
||||||
@ -75,7 +77,7 @@ namespace GrassCutter
|
|||||||
/// <summary>Gravity boots on: Earth's pull instead of Herbaria's.</summary>
|
/// <summary>Gravity boots on: Earth's pull instead of Herbaria's.</summary>
|
||||||
public bool BootsOn { get; set; }
|
public bool BootsOn { get; set; }
|
||||||
/// <summary>Key of this player's tools in the host's save.</summary>
|
/// <summary>Key of this player's tools in the host's save.</summary>
|
||||||
public string SaveId { get; private set; }
|
public string SaveId => SaveKey.Value.IsEmpty ? null : SaveKey.Value.ToString();
|
||||||
public bool ClaimedSave => SaveId != null;
|
public bool ClaimedSave => SaveId != null;
|
||||||
public Vehicle Vehicle => _vehicle;
|
public Vehicle Vehicle => _vehicle;
|
||||||
|
|
||||||
@ -118,6 +120,12 @@ namespace GrassCutter
|
|||||||
Vector3 _climbFrom, _climbTo;
|
Vector3 _climbFrom, _climbTo;
|
||||||
float _jumpTapAt = -9f, _dashAt = -9f;
|
float _jumpTapAt = -9f, _dashAt = -9f;
|
||||||
Vehicle _vehicle;
|
Vehicle _vehicle;
|
||||||
|
/// <summary>The train whose cab this player rides in, and the lever as last sent.</summary>
|
||||||
|
Train _train;
|
||||||
|
sbyte _lever;
|
||||||
|
public Train RidingTrain => _train;
|
||||||
|
/// <summary>In a seat of some kind: a machine's, or a train's cab.</summary>
|
||||||
|
bool Seated => _vehicle || _train;
|
||||||
|
|
||||||
public bool Flying { get; private set; }
|
public bool Flying { get; private set; }
|
||||||
public float CheatSpeed = 1f;
|
public float CheatSpeed = 1f;
|
||||||
@ -126,7 +134,7 @@ namespace GrassCutter
|
|||||||
|
|
||||||
public void SetFlying(bool on)
|
public void SetFlying(bool on)
|
||||||
{
|
{
|
||||||
if (!IsOwner || _vehicle || Flying == on) return;
|
if (!IsOwner || Seated || Flying == on) return;
|
||||||
Flying = on;
|
Flying = on;
|
||||||
Body.enabled = !on;
|
Body.enabled = !on;
|
||||||
_vel = Vector3.zero;
|
_vel = Vector3.zero;
|
||||||
@ -209,12 +217,16 @@ namespace GrassCutter
|
|||||||
[Rpc(SendTo.Server)]
|
[Rpc(SendTo.Server)]
|
||||||
void ClaimSaveRpc(FixedString64Bytes id)
|
void ClaimSaveRpc(FixedString64Bytes id)
|
||||||
{
|
{
|
||||||
SaveId = id.ToString();
|
string key = id.ToString();
|
||||||
if (Ts && OwnerClientId != NetworkManager.ServerClientId && Ts.Banned(SaveId))
|
if (Ts && OwnerClientId != NetworkManager.ServerClientId && Ts.Banned(key))
|
||||||
{
|
{
|
||||||
NetworkManager.DisconnectClient(OwnerClientId, Loc.Pack("You are banned from this game"));
|
NetworkManager.DisconnectClient(OwnerClientId, Loc.Pack("You are banned from this game"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// two players under one key (no Steam, or one account on two copies) would share one fleet and one set of
|
||||||
|
// tools: the second one gets a key of its own
|
||||||
|
if (All.Exists(p => p && p != this && p.SaveId == key)) key += "#" + OwnerClientId;
|
||||||
|
SaveKey.Value = new FixedString64Bytes(key);
|
||||||
if (Ts)
|
if (Ts)
|
||||||
{
|
{
|
||||||
Ts.ServerRestoreCrew(this);
|
Ts.ServerRestoreCrew(this);
|
||||||
@ -301,7 +313,7 @@ namespace GrassCutter
|
|||||||
transform.rotation = _frame;
|
transform.rotation = _frame;
|
||||||
// everyone else sees a jump too, not a glide straight through the planet
|
// everyone else sees a jump too, not a glide straight through the planet
|
||||||
if (_net && _net.IsSpawned && _settled) _net.Teleport(pos, _frame, transform.localScale);
|
if (_net && _net.IsSpawned && _settled) _net.Teleport(pos, _frame, transform.localScale);
|
||||||
Body.enabled = !Flying && !_vehicle;
|
Body.enabled = !Flying && !Seated;
|
||||||
_vel = Vector3.zero;
|
_vel = Vector3.zero;
|
||||||
_climbT = -1f;
|
_climbT = -1f;
|
||||||
}
|
}
|
||||||
@ -383,15 +395,16 @@ namespace GrassCutter
|
|||||||
}
|
}
|
||||||
Look();
|
Look();
|
||||||
if (_vehicle) UpdateRiding();
|
if (_vehicle) UpdateRiding();
|
||||||
|
else if (_train) RideTrain();
|
||||||
else if (Flying) Fly();
|
else if (Flying) Fly();
|
||||||
else if (_climbT >= 0f) Climb();
|
else if (_climbT >= 0f) Climb();
|
||||||
else Move();
|
else Move();
|
||||||
UpdateAim();
|
UpdateAim();
|
||||||
if (Ctl.InteractPressed) DoInteract();
|
if (Ctl.InteractPressed) DoInteract();
|
||||||
// T on anything built opens its upgrades and switches (the hammer keeps T for moving pieces)
|
// T on anything built opens its upgrades and switches (the hammer keeps T for moving pieces)
|
||||||
if (Ctl.MovePressed && !_vehicle && AimPiece && !(PlayerBuild.Local && PlayerBuild.Local.Active)) UIRoot.I?.OpenPiece(AimPiece);
|
if (Ctl.MovePressed && !Seated && AimPiece && !(PlayerBuild.Local && PlayerBuild.Local.Active)) UIRoot.I?.OpenPiece(AimPiece);
|
||||||
// never lost under the soil
|
// never lost under the soil
|
||||||
if (!Flying && !_vehicle && Planet.Altitude(transform.position) < -3f) Teleport(Planet.Surface(transform.position) + Planet.Up(transform.position) * 0.1f);
|
if (!Flying && !Seated && Planet.Altitude(transform.position) < -3f) Teleport(Planet.Surface(transform.position) + Planet.Up(transform.position) * 0.1f);
|
||||||
if (Swimming.Value != _swimming) Swimming.Value = _swimming;
|
if (Swimming.Value != _swimming) Swimming.Value = _swimming;
|
||||||
var cp = Tools.CutPoint;
|
var cp = Tools.CutPoint;
|
||||||
var cut = Tools.IsCutting && Ts ? new Vector4(cp.x, cp.y, cp.z, Ts.ToolWidth(Tools.Current)) : Vector4.zero;
|
var cut = Tools.IsCutting && Ts ? new Vector4(cp.x, cp.y, cp.z, Ts.ToolWidth(Tools.Current)) : Vector4.zero;
|
||||||
@ -405,14 +418,14 @@ namespace GrassCutter
|
|||||||
var up = _frame * Vector3.up;
|
var up = _frame * Vector3.up;
|
||||||
_frame = Quaternion.AngleAxis(l.x, up) * _frame;
|
_frame = Quaternion.AngleAxis(l.x, up) * _frame;
|
||||||
_pitch = Mathf.Clamp(_pitch - l.y, -85f, 85f);
|
_pitch = Mathf.Clamp(_pitch - l.y, -85f, 85f);
|
||||||
if (!_vehicle) transform.rotation = _frame;
|
if (!Seated) transform.rotation = _frame;
|
||||||
float flat = Vector3.ProjectOnPlane(_vel, up).magnitude;
|
float flat = Vector3.ProjectOnPlane(_vel, up).magnitude;
|
||||||
float bob = (Grounded || _swimming) && !_vehicle ? Mathf.Sin(_bobPhase * 2f) * (_swimming ? 0.05f : 0.035f) * Mathf.Clamp01(flat / sprintSpeed + (_swimming ? 0.4f : 0f)) : 0f;
|
float bob = (Grounded || _swimming) && !Seated && GameSettings.HeadBob ? Mathf.Sin(_bobPhase * 2f) * (_swimming ? 0.05f : 0.035f) * Mathf.Clamp01(flat / sprintSpeed + (_swimming ? 0.4f : 0f)) : 0f;
|
||||||
float roll = -Ctl.Move.x * 1.5f;
|
float roll = -Ctl.Move.x * 1.5f;
|
||||||
if (_swimming) roll += Mathf.Sin(Time.time * 1.3f) * 2f;
|
if (_swimming) roll += Mathf.Sin(Time.time * 1.3f) * 2f;
|
||||||
_landDip = Mathf.Lerp(_landDip, 0f, Time.deltaTime * 8f);
|
_landDip = Mathf.Lerp(_landDip, 0f, Time.deltaTime * 8f);
|
||||||
head.localPosition = new Vector3(0, eyeHeight + bob - _landDip, 0);
|
head.localPosition = new Vector3(0, eyeHeight + bob - _landDip, 0);
|
||||||
if (_vehicle)
|
if (Seated)
|
||||||
{
|
{
|
||||||
// look is relative to the vehicle heading
|
// look is relative to the vehicle heading
|
||||||
head.rotation = _frame * Quaternion.Euler(_pitch, 0f, 0f);
|
head.rotation = _frame * Quaternion.Euler(_pitch, 0f, 0f);
|
||||||
@ -588,7 +601,7 @@ namespace GrassCutter
|
|||||||
AimInteractable = null;
|
AimInteractable = null;
|
||||||
AimGrabbable = null;
|
AimGrabbable = null;
|
||||||
HasAim = false;
|
HasAim = false;
|
||||||
if (!cam || _vehicle) return;
|
if (!cam || Seated) return;
|
||||||
var ray = new Ray(cam.transform.position, cam.transform.forward);
|
var ray = new Ray(cam.transform.position, cam.transform.forward);
|
||||||
float tether = Ts ? Ts.Level(PerkId.BundleLine) * 1.5f : 0f;
|
float tether = Ts ? Ts.Level(PerkId.BundleLine) * 1.5f : 0f;
|
||||||
if (Physics.Raycast(ray, out var hit, Reach + tether + (InGrass ? 0.6f : 0f), Layers.InteractMask, QueryTriggerInteraction.Ignore))
|
if (Physics.Raycast(ray, out var hit, Reach + tether + (InGrass ? 0.6f : 0f), Layers.InteractMask, QueryTriggerInteraction.Ignore))
|
||||||
@ -606,6 +619,7 @@ namespace GrassCutter
|
|||||||
|
|
||||||
void DoInteract()
|
void DoInteract()
|
||||||
{
|
{
|
||||||
|
if (_train) { _train.Leave(); return; }
|
||||||
if (_vehicle) { _vehicle.RequestExit(); return; }
|
if (_vehicle) { _vehicle.RequestExit(); return; }
|
||||||
if (Grab.Holding)
|
if (Grab.Holding)
|
||||||
{
|
{
|
||||||
@ -639,9 +653,77 @@ namespace GrassCutter
|
|||||||
}
|
}
|
||||||
else if (!_vehicle.LocalDriving) ExitVehicle();
|
else if (!_vehicle.LocalDriving) ExitVehicle();
|
||||||
if (_vehicle) FollowSeat();
|
if (_vehicle) FollowSeat();
|
||||||
|
// the train: the host says who is in its cab
|
||||||
|
if (!_train)
|
||||||
|
{
|
||||||
|
if (!_vehicle)
|
||||||
|
foreach (var t in Train.All)
|
||||||
|
if (t && t.IsSpawned && t.Rider.Value == OwnerClientId) { EnterTrain(t); break; }
|
||||||
|
}
|
||||||
|
else if (!_train.IsSpawned || _train.Rider.Value != OwnerClientId) ExitTrain();
|
||||||
|
if (_train) FollowCab();
|
||||||
Boom();
|
Boom();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ───────────────────────── the train's cab ─────────────────────────
|
||||||
|
|
||||||
|
void EnterTrain(Train t)
|
||||||
|
{
|
||||||
|
SetFlying(false);
|
||||||
|
_train = t;
|
||||||
|
_lever = 0;
|
||||||
|
Body.enabled = false;
|
||||||
|
_swimming = false;
|
||||||
|
_climbT = -1f;
|
||||||
|
Grab.Drop();
|
||||||
|
_heading = CabHeading(t);
|
||||||
|
_frame = _heading;
|
||||||
|
Sfx.Play("build_place", 0.5f, 1.3f);
|
||||||
|
Hud.Toast(Loc.T("In the cab: W forward · S back · E to get off"), Hud.ToastKind.Info);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ExitTrain()
|
||||||
|
{
|
||||||
|
var t = _train;
|
||||||
|
_train = null;
|
||||||
|
_lever = 0;
|
||||||
|
var at = t ? t.StepOff : transform.position;
|
||||||
|
var up = Planet.Up(at);
|
||||||
|
var pos = Planet.Surface(at) + up * 0.1f;
|
||||||
|
if (Physics.Raycast(at + up * 2f, -up, out var hit, 6f, (1 << Layers.Default) | (1 << Layers.Build), QueryTriggerInteraction.Ignore)) pos = hit.point + up * 0.1f;
|
||||||
|
Teleport(pos);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>The lever: W on up the line, S back toward home, neither to stop.</summary>
|
||||||
|
void RideTrain()
|
||||||
|
{
|
||||||
|
if (!_train) return;
|
||||||
|
var m = Ctl.Move;
|
||||||
|
sbyte lever = (sbyte)(m.y > 0.3f ? 1 : m.y < -0.3f ? -1 : 0);
|
||||||
|
if (lever != _lever)
|
||||||
|
{
|
||||||
|
_lever = lever;
|
||||||
|
_train.DriveRpc(lever);
|
||||||
|
}
|
||||||
|
CameraFx.FovTarget(lever != 0 ? 6f : 0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
static Quaternion CabHeading(Train t)
|
||||||
|
{
|
||||||
|
var up = Planet.Up(t.CabFloor);
|
||||||
|
var f = Vector3.ProjectOnPlane(t.CabTurn * Vector3.forward, up);
|
||||||
|
return Quaternion.LookRotation(f.sqrMagnitude > 1e-6f ? f.normalized : Vector3.ProjectOnPlane(Vector3.forward, up).normalized, up);
|
||||||
|
}
|
||||||
|
|
||||||
|
void FollowCab()
|
||||||
|
{
|
||||||
|
transform.position = _train.CabFloor;
|
||||||
|
var heading = CabHeading(_train);
|
||||||
|
_frame = heading * Quaternion.Inverse(_heading) * _frame;
|
||||||
|
_heading = heading;
|
||||||
|
transform.rotation = heading;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The chase view: the camera orbits the machine with the mouse, the wheel pulls it closer or further, and it never ends up
|
/// The chase view: the camera orbits the machine with the mouse, the wheel pulls it closer or further, and it never ends up
|
||||||
/// in the ground or behind a wall. Leaving the seat puts it back on the eyes.
|
/// in the ground or behind a wall. Leaving the seat puts it back on the eyes.
|
||||||
@ -676,9 +758,12 @@ namespace GrassCutter
|
|||||||
var dir = (back + up * 0.25f).normalized;
|
var dir = (back + up * 0.25f).normalized;
|
||||||
float want = _chaseDist;
|
float want = _chaseDist;
|
||||||
float reach = want;
|
float reach = want;
|
||||||
var hits = Physics.SphereCastAll(target, 0.35f, dir, want, (1 << Layers.Default) | (1 << Layers.Build) | (1 << Layers.Vehicle), QueryTriggerInteraction.Ignore);
|
int count = Physics.SphereCastNonAlloc(target, 0.35f, dir, s_boomHits, want, (1 << Layers.Default) | (1 << Layers.Build) | (1 << Layers.Vehicle), QueryTriggerInteraction.Ignore);
|
||||||
foreach (var h in hits)
|
for (int i = 0; i < count; i++)
|
||||||
|
{
|
||||||
|
var h = s_boomHits[i];
|
||||||
if (h.distance > 0f && !h.collider.transform.IsChildOf(v.transform)) reach = Mathf.Min(reach, h.distance - 0.2f);
|
if (h.distance > 0f && !h.collider.transform.IsChildOf(v.transform)) reach = Mathf.Min(reach, h.distance - 0.2f);
|
||||||
|
}
|
||||||
reach = Mathf.Max(1.5f, reach);
|
reach = Mathf.Max(1.5f, reach);
|
||||||
// closing in is instant (walls), backing off again is gentle
|
// closing in is instant (walls), backing off again is gentle
|
||||||
_chaseShown = _chaseShown <= 0f || reach < _chaseShown ? reach : Mathf.Lerp(_chaseShown, reach, Time.deltaTime * 4f);
|
_chaseShown = _chaseShown <= 0f || reach < _chaseShown ? reach : Mathf.Lerp(_chaseShown, reach, Time.deltaTime * 4f);
|
||||||
@ -689,6 +774,8 @@ namespace GrassCutter
|
|||||||
_boom.rotation = Quaternion.LookRotation(target - pos, up);
|
_boom.rotation = Quaternion.LookRotation(target - pos, up);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static readonly RaycastHit[] s_boomHits = new RaycastHit[32];
|
||||||
|
|
||||||
void EnterVehicle(Vehicle v)
|
void EnterVehicle(Vehicle v)
|
||||||
{
|
{
|
||||||
SetFlying(false);
|
SetFlying(false);
|
||||||
@ -702,7 +789,7 @@ namespace GrassCutter
|
|||||||
_frame = _heading;
|
_frame = _heading;
|
||||||
Sfx.Play("build_place", 0.5f, 1.3f);
|
Sfx.Play("build_place", 0.5f, 1.3f);
|
||||||
Assistant.Say("asst_drive");
|
Assistant.Say("asst_drive");
|
||||||
Hud.Toast(Loc.T("WASD to drive · SHIFT boost · R chase view · E to hop off"), Hud.ToastKind.Info);
|
Hud.Toast(v.CanAuto ? Loc.T("WASD to drive · SHIFT boost · R chase view · E to hop off · C autopilot") : Loc.T("WASD to drive · SHIFT boost · R chase view · E to hop off"), Hud.ToastKind.Info);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ExitVehicle()
|
void ExitVehicle()
|
||||||
|
|||||||
@ -271,8 +271,44 @@ namespace GrassCutter
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
at = _point;
|
at = _point;
|
||||||
if (GameDefs.IsFoundation(id)) at += _up * Raise;
|
|
||||||
rot = Quaternion.LookRotation(Quaternion.AngleAxis(_yaw, _up) * Heading(_up), _up);
|
rot = Quaternion.LookRotation(Quaternion.AngleAxis(_yaw, _up) * Heading(_up), _up);
|
||||||
|
// a foundation stays level (it is a floor to build on); everything else sits on the slope it stands on
|
||||||
|
if (GameDefs.IsFoundation(id)) at += _up * Raise;
|
||||||
|
else if (!_on) Lean(GameDefs.Piece(id), ref at, ref rot);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>The most a piece leans with the ground under it.</summary>
|
||||||
|
const float MaxLean = 22f;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Tilts a piece standing on the soil to the ground under its footprint (the plane through its four corners),
|
||||||
|
/// then lowers it until no corner hangs in the air.
|
||||||
|
/// </summary>
|
||||||
|
internal static void Lean(PieceDef d, ref Vector3 at, ref Quaternion rot)
|
||||||
|
{
|
||||||
|
if (d == null || Planet.Altitude(at) > 0.3f) return;
|
||||||
|
var up = Planet.Up(at);
|
||||||
|
float hx = Mathf.Max(0.5f, d.sizeX * 0.5f), hz = Mathf.Max(0.5f, d.sizeZ * 0.5f);
|
||||||
|
var r = rot * Vector3.right * hx;
|
||||||
|
var f = rot * Vector3.forward * hz;
|
||||||
|
var fr = Planet.Surface(at + r + f);
|
||||||
|
var fl = Planet.Surface(at - r + f);
|
||||||
|
var bl = Planet.Surface(at - r - f);
|
||||||
|
var br = Planet.Surface(at + r - f);
|
||||||
|
var n = Vector3.Cross(fr + fl - bl - br, fr + br - fl - bl);
|
||||||
|
if (n.sqrMagnitude < 1e-6f) return;
|
||||||
|
n.Normalize();
|
||||||
|
if (Vector3.Dot(n, up) < 0f) n = -n;
|
||||||
|
n = Vector3.RotateTowards(up, n, MaxLean * Mathf.Deg2Rad, 0f).normalized;
|
||||||
|
var mid = (fr + fl + bl + br) * 0.25f;
|
||||||
|
var c = Planet.Surface(at);
|
||||||
|
var p = mid + Vector3.ProjectOnPlane(c - mid, n);
|
||||||
|
// sink to the lowest of the corners and the middle, a little more than that so no gap shows
|
||||||
|
float drop = 0f;
|
||||||
|
foreach (var s in new[] { fr, fl, bl, br, c }) drop = Mathf.Min(drop, Vector3.Dot(s - p, n));
|
||||||
|
at = p + n * (Mathf.Max(drop, -0.6f) - 0.04f);
|
||||||
|
var fwd = Vector3.ProjectOnPlane(rot * Vector3.forward, n);
|
||||||
|
if (fwd.sqrMagnitude > 1e-6f) rot = Quaternion.LookRotation(fwd.normalized, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ───────────────────────── pieces ─────────────────────────
|
// ───────────────────────── pieces ─────────────────────────
|
||||||
@ -303,7 +339,8 @@ namespace GrassCutter
|
|||||||
{
|
{
|
||||||
HideGhosts();
|
HideGhosts();
|
||||||
Valid = false;
|
Valid = false;
|
||||||
Reason = Target ? (Target.Def.company ? Loc.T("Company property") : Target.Run ? Loc.F("{0:0.#} m of belt · MMB copy · RMB remove", Target.Run.Metres) : Loc.T("T move · MMB copy · RMB remove")) : null;
|
Reason = Target ? (Target.Def.company ? Loc.T("Company property") : Target.Run ? Loc.F("{0:0.#} m of belt · {1} copy · {2} remove", Target.Run.Metres, Binds.Cap(Act.Copy), Binds.Cap(Act.Alt))
|
||||||
|
: Loc.F("{0} move · {1} copy · {2} remove", Binds.Cap(Act.MovePiece), Binds.Cap(Act.Copy), Binds.Cap(Act.Alt))) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Refuse(string reason)
|
static void Refuse(string reason)
|
||||||
@ -339,7 +376,7 @@ namespace GrassCutter
|
|||||||
var at = port ? from.at : Lifted();
|
var at = port ? from.at : Lifted();
|
||||||
Valid = port || BuildRules.CutUnder(at);
|
Valid = port || BuildRules.CutUnder(at);
|
||||||
Reason = Valid ? null : BuildRules.Uncut;
|
Reason = Valid ? null : BuildRules.Uncut;
|
||||||
Note = port ? Loc.T("LMB: go on from this end") : Loc.F("LMB where the belt starts · height {0:0.0} m", Height);
|
Note = port ? Loc.F("{0}: go on from this end", Binds.Cap(Act.Use)) : Loc.F("{1} where the belt starts · height {0:0.0} m", Height, Binds.Cap(Act.Use));
|
||||||
ShowRun(at, at + (port ? from.dir : Heading(Planet.Up(at))), Valid);
|
ShowRun(at, at + (port ? from.dir : Heading(Planet.Up(at))), Valid);
|
||||||
if (!Ctl.UsePressed) return;
|
if (!Ctl.UsePressed) return;
|
||||||
if (Valid) { _from = at; Laying = true; }
|
if (Valid) { _from = at; Laying = true; }
|
||||||
@ -360,7 +397,7 @@ namespace GrassCutter
|
|||||||
double price = GameDefs.BeltPrice(Vector3.Distance(_from, to));
|
double price = GameDefs.BeltPrice(Vector3.Distance(_from, to));
|
||||||
if (Valid && ts && ts.Money.Value < price) { Valid = false; reason = Loc.T("Not enough cash"); }
|
if (Valid && ts && ts.Money.Value < price) { Valid = false; reason = Loc.T("Not enough cash"); }
|
||||||
Reason = reason;
|
Reason = reason;
|
||||||
Note = Loc.F("{0:0.#} m, {1} · height {2:0.0} m · RMB stops", Vector3.Distance(_from, to), UIK.Money(price), Height);
|
Note = Loc.F("{0:0.#} m, {1} · height {2:0.0} m · {3} stops", Vector3.Distance(_from, to), UIK.Money(price), Height, Binds.Cap(Act.Alt));
|
||||||
ShowRun(_from, to, Valid);
|
ShowRun(_from, to, Valid);
|
||||||
if (!Ctl.UsePressed) return;
|
if (!Ctl.UsePressed) return;
|
||||||
if (!Valid) { Refuse(reason); return; }
|
if (!Valid) { Refuse(reason); return; }
|
||||||
@ -550,7 +587,7 @@ namespace GrassCutter
|
|||||||
{
|
{
|
||||||
var p = Moving;
|
var p = Moving;
|
||||||
if (!p || !p.IsSpawned || Ctl.AltPressed) { EndMove(); HideGhosts(); return; }
|
if (!p || !p.IsSpawned || Ctl.AltPressed) { EndMove(); HideGhosts(); return; }
|
||||||
Note = Loc.F("Moving {0}: LMB put down · R rotate · RMB cancel", p.Def.name);
|
Note = Loc.F("Moving {0}: {1} put down · {2} rotate · {3} cancel", p.Def.name, Binds.Cap(Act.Use), Binds.Cap(Act.Rotate), Binds.Cap(Act.Alt));
|
||||||
if (!_aimed) { HideGhosts(); Valid = false; Reason = null; return; }
|
if (!_aimed) { HideGhosts(); Valid = false; Reason = null; return; }
|
||||||
Spot(p.piece, out var at, out var rot);
|
Spot(p.piece, out var at, out var rot);
|
||||||
Valid = BuildRules.CanPlace(p.Def, at, rot, p, out var reason);
|
Valid = BuildRules.CanPlace(p.Def, at, rot, p, out var reason);
|
||||||
|
|||||||
@ -38,11 +38,38 @@ namespace GrassCutter
|
|||||||
["asst_ufo"] = "[nervous] Something is coming down out of the sky. [pause] I'm sure it's fine.",
|
["asst_ufo"] = "[nervous] Something is coming down out of the sky. [pause] I'm sure it's fine.",
|
||||||
};
|
};
|
||||||
|
|
||||||
// how long before a line may be said again, seconds (the rest: three minutes)
|
// the few lines she may say again, and how long after, seconds. Everything else she explains once, ever: players got
|
||||||
|
// tired of hearing how the depot works every four minutes
|
||||||
static readonly Dictionary<string, float> Rest = new Dictionary<string, float>
|
static readonly Dictionary<string, float> Rest = new Dictionary<string, float>
|
||||||
{
|
{
|
||||||
["asst_hello"] = 1e9f, ["asst_drive"] = 1e9f, ["asst_nocash"] = 60f, ["asst_thrown"] = 90f, ["asst_full"] = 240f, ["asst_hopper"] = 240f,
|
["asst_twister"] = 600f, ["asst_nocash"] = 300f,
|
||||||
};
|
};
|
||||||
|
const string HeardKey = "assistant_heard";
|
||||||
|
static HashSet<string> s_heard;
|
||||||
|
static bool s_forgot;
|
||||||
|
|
||||||
|
/// <summary>Lines this player has already heard, kept between games.</summary>
|
||||||
|
static HashSet<string> Heard
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (s_heard == null)
|
||||||
|
{
|
||||||
|
s_heard = new HashSet<string>();
|
||||||
|
// the test bots run on someone's own PC: they neither read nor fill that player's list
|
||||||
|
if (!CommandLine.Has("-autodemo"))
|
||||||
|
foreach (var k in PlayerPrefs.GetString(HeardKey, "").Split(',')) if (k.Length > 0) s_heard.Add(k);
|
||||||
|
}
|
||||||
|
return s_heard;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void MarkHeard(string line)
|
||||||
|
{
|
||||||
|
if (s_forgot || Rest.ContainsKey(line) || !Heard.Add(line) || CommandLine.Has("-autodemo")) return;
|
||||||
|
PlayerPrefs.SetString(HeardKey, string.Join(",", Heard));
|
||||||
|
PlayerPrefs.Save();
|
||||||
|
}
|
||||||
const float StaleAfter = 25f;
|
const float StaleAfter = 25f;
|
||||||
const int PicW = 300, PicH = 380;
|
const int PicW = 300, PicH = 380;
|
||||||
|
|
||||||
@ -71,7 +98,8 @@ namespace GrassCutter
|
|||||||
public static void Say(string line)
|
public static void Say(string line)
|
||||||
{
|
{
|
||||||
if (!I || !Lines.ContainsKey(line) || !GameSettings.Tips) return;
|
if (!I || !Lines.ContainsKey(line) || !GameSettings.Tips) return;
|
||||||
if (I._said.TryGetValue(line, out var at) && Time.time - at < (Rest.TryGetValue(line, out var r) ? r : 180f)) return;
|
if (!s_forgot && !Rest.ContainsKey(line) && Heard.Contains(line)) return;
|
||||||
|
if (I._said.TryGetValue(line, out var at) && Time.time - at < (Rest.TryGetValue(line, out var r) ? r : 1e9f)) return;
|
||||||
foreach (var q in I._queue) if (q.line == line) return;
|
foreach (var q in I._queue) if (q.line == line) return;
|
||||||
// the greeting goes first, whatever was asked before it
|
// the greeting goes first, whatever was asked before it
|
||||||
if (line == "asst_hello" && I._queue.Count > 0)
|
if (line == "asst_hello" && I._queue.Count > 0)
|
||||||
@ -89,6 +117,7 @@ namespace GrassCutter
|
|||||||
public static void Forget()
|
public static void Forget()
|
||||||
{
|
{
|
||||||
if (I) I._said.Clear();
|
if (I) I._said.Clear();
|
||||||
|
s_forgot = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Stops her mid-sentence (the game is ending, a film starts).</summary>
|
/// <summary>Stops her mid-sentence (the game is ending, a film starts).</summary>
|
||||||
@ -112,6 +141,7 @@ namespace GrassCutter
|
|||||||
// what's no longer news isn't said
|
// what's no longer news isn't said
|
||||||
if (Time.time - at > StaleAfter) return;
|
if (Time.time - at > StaleAfter) return;
|
||||||
_said[line] = Time.time;
|
_said[line] = Time.time;
|
||||||
|
MarkHeard(line);
|
||||||
StartCoroutine(Talk(line));
|
StartCoroutine(Talk(line));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -172,7 +172,7 @@ namespace GrassCutter
|
|||||||
_buildCats = UIK.El("build-cats", _build);
|
_buildCats = UIK.El("build-cats", _build);
|
||||||
_buildRow = UIK.El("build-row", _build);
|
_buildRow = UIK.El("build-row", _build);
|
||||||
_buildReason = UIK.Text("", "t-body t-outline build-reason", _build, false);
|
_buildReason = UIK.Text("", "t-body t-outline build-reason", _build, false);
|
||||||
_buildHelp = UIK.Text(Loc.T("WHEEL piece · LMB place · R rotate · T move · MMB copy · RMB remove · CTRL+WHEEL height · F free"), "t-small t-outline", _build, false);
|
_buildHelp = UIK.Text(BuildHelp(), "t-small t-outline", _build, false);
|
||||||
_build.style.display = DisplayStyle.None;
|
_build.style.display = DisplayStyle.None;
|
||||||
|
|
||||||
// how wide the blade in hand cuts, drawn to scale across the aim
|
// how wide the blade in hand cuts, drawn to scale across the aim
|
||||||
@ -227,8 +227,13 @@ namespace GrassCutter
|
|||||||
{
|
{
|
||||||
foreach (var (cap, act) in _caps) cap.text = Binds.Cap(act);
|
foreach (var (cap, act) in _caps) cap.text = Binds.Cap(act);
|
||||||
if (_hints != null) _hints.style.display = GameSettings.KeyHints ? DisplayStyle.Flex : DisplayStyle.None;
|
if (_hints != null) _hints.style.display = GameSettings.KeyHints ? DisplayStyle.Flex : DisplayStyle.None;
|
||||||
|
if (_buildHelp != null) _buildHelp.text = BuildHelp();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>The line under the build palette, with the player's own keys.</summary>
|
||||||
|
static string BuildHelp() => Loc.F("WHEEL piece · {0} place · {1} rotate · {2} move · {3} copy · {4} remove · CTRL+WHEEL height · {5} free",
|
||||||
|
Binds.Cap(Act.Use), Binds.Cap(Act.Rotate), Binds.Cap(Act.MovePiece), Binds.Cap(Act.Copy), Binds.Cap(Act.Alt), Binds.Cap(Act.Free));
|
||||||
|
|
||||||
// ───────────────────────── static api ─────────────────────────
|
// ───────────────────────── static api ─────────────────────────
|
||||||
|
|
||||||
/// <summary>Every toast off the screen at once.</summary>
|
/// <summary>Every toast off the screen at once.</summary>
|
||||||
@ -482,6 +487,9 @@ namespace GrassCutter
|
|||||||
_money.text = UIK.Money(_shownMoney);
|
_money.text = UIK.Money(_shownMoney);
|
||||||
|
|
||||||
if (!ts || _local == null) return;
|
if (!ts || _local == null) return;
|
||||||
|
// the phone up at your face sits low in the view: the tool belt, the tool plate and the hint line step aside for it
|
||||||
|
var away = Phone.Focused ? Visibility.Hidden : Visibility.Visible;
|
||||||
|
if (_hotbar.style.visibility != away) { _hotbar.style.visibility = away; _plate.style.visibility = away; _hint.style.visibility = away; }
|
||||||
RefreshHotbar(false);
|
RefreshHotbar(false);
|
||||||
UpdatePlanet(ts);
|
UpdatePlanet(ts);
|
||||||
UpdateTool(ts);
|
UpdateTool(ts);
|
||||||
@ -617,12 +625,12 @@ namespace GrassCutter
|
|||||||
// only when it matters: standing still, unloading, feeding a belt or full. The markers show where to go.
|
// only when it matters: standing still, unloading, feeding a belt or full. The markers show where to go.
|
||||||
var v = p.Vehicle;
|
var v = p.Vehicle;
|
||||||
bool still = v && v.Body && v.Body.linearVelocity.magnitude < 0.6f;
|
bool still = v && v.Body && v.Body.linearVelocity.magnitude < 0.6f;
|
||||||
if (v && v.Def.bed > 0) { key = Binds.Cap(Act.MovePiece); prompt = v.Bed.Count > 0 ? Loc.T("Tip the bundles out behind") : still ? Loc.T("Empty bed · E with a bundle in your arms loads it") : null; }
|
if (v && v.Def.bed > 0) { key = Binds.Cap(Act.MovePiece); prompt = v.Bed.Count > 0 ? Loc.T("Tip the bundles out behind") : still ? Loc.F("Empty bed · {0} with a bundle in your arms loads it", Binds.Cap(Act.Interact)) : null; }
|
||||||
else if (v && v.Baling) { key = ""; prompt = Loc.T("Baling onto the belt…"); }
|
else if (v && v.Baling) { key = ""; prompt = Loc.T("Baling onto the belt…"); }
|
||||||
else if (v && v.Unloading) { key = ""; prompt = Loc.T("Unloading…"); hot = true; }
|
else if (v && v.Unloading) { key = ""; prompt = Loc.T("Unloading…"); hot = true; }
|
||||||
else if (v && v.Capacity > 0f && v.Load >= v.Capacity * 0.9f) { key = ""; prompt = Loc.T("Hopper full: drive to an UNLOAD marker"); }
|
else if (v && v.Capacity > 0f && v.Load >= v.Capacity * 0.9f) { key = ""; prompt = Loc.T("Hopper full: drive to an UNLOAD marker"); }
|
||||||
else if (v && VehicleShed.Near(v.transform.position)) { key = Binds.Cap(Act.Boots); prompt = Loc.T("Garage: upgrade this machine"); hot = true; }
|
else if (v && VehicleShed.Near(v.transform.position)) { key = Binds.Cap(Act.Boots); prompt = Loc.T("Garage: upgrade this machine"); hot = true; }
|
||||||
else if (still) prompt = Loc.T("Hop off [R] View");
|
else if (still) prompt = Loc.F("Hop off [{0}] View", Binds.Cap(Act.View));
|
||||||
}
|
}
|
||||||
else if (active && p.Grab.Holding)
|
else if (active && p.Grab.Holding)
|
||||||
{
|
{
|
||||||
@ -635,7 +643,8 @@ namespace GrassCutter
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
key = Binds.Cap(Act.Use);
|
key = Binds.Cap(Act.Use);
|
||||||
prompt = bundle ? Loc.T("Throw it in the DEPOT or onto a belt [E] Drop [R] Turn") : Loc.T("Throw [E] Drop [R] Turn");
|
string drop = Binds.Cap(Act.Interact), turn = Binds.Cap(Act.Rotate);
|
||||||
|
prompt = bundle ? Loc.F("Throw it in the DEPOT or onto a belt [{0}] Drop [{1}] Turn", drop, turn) : Loc.F("Throw [{0}] Drop [{1}] Turn", drop, turn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (active && p.HasAim && p.AimHit.collider)
|
else if (active && p.HasAim && p.AimHit.collider)
|
||||||
@ -650,7 +659,7 @@ namespace GrassCutter
|
|||||||
if (aimed && !building)
|
if (aimed && !building)
|
||||||
{
|
{
|
||||||
string tier = aimed.Upgrades != UpgradeKind.None ? aimed.Switched ? Loc.F("{0}, stopped", GameDefs.TierName(aimed.Tier.Value)) : GameDefs.TierName(aimed.Tier.Value) : "";
|
string tier = aimed.Upgrades != UpgradeKind.None ? aimed.Switched ? Loc.F("{0}, stopped", GameDefs.TierName(aimed.Tier.Value)) : GameDefs.TierName(aimed.Tier.Value) : "";
|
||||||
prompt = Loc.F("{0} [T] Upgrades & settings", prompt ?? aimed.Def.name + (tier.Length > 0 ? " " + tier : ""));
|
prompt = Loc.F("{0} [{1}] Upgrades & settings", prompt ?? aimed.Def.name + (tier.Length > 0 ? " " + tier : ""), Binds.Cap(Act.MovePiece));
|
||||||
}
|
}
|
||||||
else if (prompt == null && p.AimGrabbable && !p.AimGrabbable.IsHeld)
|
else if (prompt == null && p.AimGrabbable && !p.AimGrabbable.IsHeld)
|
||||||
{
|
{
|
||||||
@ -661,7 +670,7 @@ namespace GrassCutter
|
|||||||
}
|
}
|
||||||
else if (active && !tools.IsCutting && Ctl.UseHeld && tools.OutOfRange && GameDefs.IsBlade(tools.Current))
|
else if (active && !tools.IsCutting && Ctl.UseHeld && tools.OutOfRange && GameDefs.IsBlade(tools.Current))
|
||||||
{
|
{
|
||||||
key = "LMB";
|
key = Binds.Cap(Act.Use);
|
||||||
prompt = Loc.T("Too far — get closer to the grass");
|
prompt = Loc.T("Too far — get closer to the grass");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -709,7 +718,8 @@ namespace GrassCutter
|
|||||||
if (!s_yard) { var d = GameObject.Find("DockZone"); s_yard = d ? d.transform : null; }
|
if (!s_yard) { var d = GameObject.Find("DockZone"); s_yard = d ? d.transform : null; }
|
||||||
if (s_yard) _dropSpots.Add((s_yard.position, Loc.T("Yard")));
|
if (s_yard) _dropSpots.Add((s_yard.position, Loc.T("Yard")));
|
||||||
foreach (var pad in SiloPiece.Pads)
|
foreach (var pad in SiloPiece.Pads)
|
||||||
if (pad && pad.IsSpawned && _dropSpots.Count < 12) _dropSpots.Add((pad.PadSpot, pad.PadName));
|
if (pad && pad.IsSpawned && pad.OnPad(pad.PadSpot) && _dropSpots.Count < 12) _dropSpots.Add((pad.PadSpot, pad.PadName));
|
||||||
|
Train.Yards(_dropSpots);
|
||||||
// only the nearest one may sit on the screen edge; the rest show only when in view
|
// only the nearest one may sit on the screen edge; the rest show only when in view
|
||||||
var from = v.transform.position;
|
var from = v.transform.position;
|
||||||
_dropSpots.Sort((x, y) => (x.at - from).sqrMagnitude.CompareTo((y.at - from).sqrMagnitude));
|
_dropSpots.Sort((x, y) => (x.at - from).sqrMagnitude.CompareTo((y.at - from).sqrMagnitude));
|
||||||
@ -839,19 +849,19 @@ namespace GrassCutter
|
|||||||
float cap = tools.CurrentCap;
|
float cap = tools.CurrentCap;
|
||||||
if (tools.Belt.Count == 0)
|
if (tools.Belt.Count == 0)
|
||||||
{
|
{
|
||||||
hint = Loc.T("Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors (E).");
|
hint = Loc.F("Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors ({0}).", Binds.Cap(Act.Interact));
|
||||||
voice = "asst_tools";
|
voice = "asst_tools";
|
||||||
}
|
}
|
||||||
else if (ts.Shipped.Value < 5d)
|
else if (ts.Shipped.Value < 5d)
|
||||||
{
|
{
|
||||||
if (GameDefs.IsBlade(tools.Current) && _local.Tank.Value >= cap - 0.01f)
|
if (GameDefs.IsBlade(tools.Current) && _local.Tank.Value >= cap - 0.01f)
|
||||||
{
|
{
|
||||||
hint = Loc.T("Container full! Press E at the DEPOT to hand it all in, or Q to tie a 1 kg bundle you can carry and throw.");
|
hint = Loc.F("Container full! Press {0} at the DEPOT to hand it all in, or {1} to tie a 1 kg bundle you can carry and throw.", Binds.Cap(Act.Interact), Binds.Cap(Act.Pack));
|
||||||
voice = "asst_full";
|
voice = "asst_full";
|
||||||
}
|
}
|
||||||
else if (GameDefs.IsBlade(tools.Current) && _local.Tank.Value < 0.01f)
|
else if (GameDefs.IsBlade(tools.Current) && _local.Tank.Value < 0.01f)
|
||||||
{
|
{
|
||||||
hint = Loc.T("Hop down to the meadow (SPACE at the railing) and HOLD LEFT CLICK: sweep the blade over the grass. Earth needs every blade of it.");
|
hint = Loc.F("Hop down to the meadow ({0} at the railing) and HOLD {1}: sweep the blade over the grass. Earth needs every blade of it.", Binds.Cap(Act.Jump), Binds.Cap(Act.Use));
|
||||||
voice = "asst_mow";
|
voice = "asst_mow";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -870,7 +880,7 @@ namespace GrassCutter
|
|||||||
_hint.style.display = DisplayStyle.Flex;
|
_hint.style.display = DisplayStyle.Flex;
|
||||||
UIK.PopIn(_hint, 0.1f);
|
UIK.PopIn(_hint, 0.1f);
|
||||||
}
|
}
|
||||||
// the assistant says it too, once she may talk (and again after a good while, if it's still up)
|
// the assistant says it too, once she may talk: the first time only, the strip stays on screen for the rest
|
||||||
if (show && voice != null) Assistant.Say(voice);
|
if (show && voice != null) Assistant.Say(voice);
|
||||||
else if (!show && shown) { _hint.style.display = DisplayStyle.None; _hintText.text = ""; }
|
else if (!show && shown) { _hint.style.display = DisplayStyle.None; _hintText.text = ""; }
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,7 +24,7 @@ namespace GrassCutter
|
|||||||
const int MaxHexes = 9000;
|
const int MaxHexes = 9000;
|
||||||
|
|
||||||
public VisualElement Card { get; }
|
public VisualElement Card { get; }
|
||||||
readonly VisualElement _chart, _scaleBar;
|
readonly VisualElement _chart, _ball, _ground, _marks, _scaleBar;
|
||||||
readonly Label _stats, _scaleText;
|
readonly Label _stats, _scaleText;
|
||||||
Quaternion _view;
|
Quaternion _view;
|
||||||
float _zoom = -1f;
|
float _zoom = -1f;
|
||||||
@ -61,13 +61,18 @@ namespace GrassCutter
|
|||||||
UIK.Btn(Loc.T("ME"), () => { _follow = true; Centre(); }, "btn btn-small", tools);
|
UIK.Btn(Loc.T("ME"), () => { _follow = true; Centre(); }, "btn btn-small", tools);
|
||||||
UIK.Btn("+", () => ZoomBy(1.6f), "btn btn-small", tools);
|
UIK.Btn("+", () => ZoomBy(1.6f), "btn btn-small", tools);
|
||||||
UIK.Btn("−", () => ZoomBy(1f / 1.6f), "btn btn-small", tools);
|
UIK.Btn("−", () => ZoomBy(1f / 1.6f), "btn btn-small", tools);
|
||||||
UIK.Btn(Loc.T("GLOBE"), () => { _zoom = 1f; _chart.MarkDirtyRepaint(); }, "btn btn-small", tools);
|
UIK.Btn(Loc.T("GLOBE"), () => { _zoom = 1f; Repaint(); }, "btn btn-small", tools);
|
||||||
UIK.Btn("X", close, "btn btn-red btn-small", header);
|
UIK.Btn("X", close, "btn btn-red btn-small", header);
|
||||||
_chart = UIK.El("map-chart", Card);
|
_chart = UIK.El("map-chart", Card);
|
||||||
_chart.pickingMode = PickingMode.Position;
|
_chart.pickingMode = PickingMode.Position;
|
||||||
_chart.style.overflow = Overflow.Hidden;
|
_chart.style.overflow = Overflow.Hidden;
|
||||||
_chart.focusable = true;
|
_chart.focusable = true;
|
||||||
_chart.generateVisualContent += Draw;
|
// space is the chart's own colour; over it three layers, each its own element so the order is plain: the
|
||||||
|
// ball, the sectors on it, the marks.
|
||||||
|
_chart.style.backgroundColor = Space;
|
||||||
|
_ball = Layer(DrawBall);
|
||||||
|
_ground = Layer(DrawGround);
|
||||||
|
_marks = Layer(DrawMarks);
|
||||||
_chart.RegisterCallback<WheelEvent>(e => ZoomBy(e.delta.y > 0 ? 0.8f : 1.25f));
|
_chart.RegisterCallback<WheelEvent>(e => ZoomBy(e.delta.y > 0 ? 0.8f : 1.25f));
|
||||||
_chart.RegisterCallback<PointerDownEvent>(e => { _dragging = true; _follow = false; _last = e.position; _chart.CapturePointer(e.pointerId); });
|
_chart.RegisterCallback<PointerDownEvent>(e => { _dragging = true; _follow = false; _last = e.position; _chart.CapturePointer(e.pointerId); });
|
||||||
_chart.RegisterCallback<PointerUpEvent>(e => { _dragging = false; _chart.ReleasePointer(e.pointerId); });
|
_chart.RegisterCallback<PointerUpEvent>(e => { _dragging = false; _chart.ReleasePointer(e.pointerId); });
|
||||||
@ -78,7 +83,7 @@ namespace GrassCutter
|
|||||||
_last = e.position;
|
_last = e.position;
|
||||||
float k = 57.3f / (Radius * Zoom);
|
float k = 57.3f / (Radius * Zoom);
|
||||||
_view = Quaternion.Euler(d.y * k, d.x * k, 0f) * _view;
|
_view = Quaternion.Euler(d.y * k, d.x * k, 0f) * _view;
|
||||||
_chart.MarkDirtyRepaint();
|
Repaint();
|
||||||
});
|
});
|
||||||
_chart.schedule.Execute(() =>
|
_chart.schedule.Execute(() =>
|
||||||
{
|
{
|
||||||
@ -102,6 +107,8 @@ namespace GrassCutter
|
|||||||
Key(legend, Station, Loc.T("Station"));
|
Key(legend, Station, Loc.T("Station"));
|
||||||
UIK.Text(Loc.T("DRAG move · WHEEL zoom · SPACE back to you · M close"), "t-small t-muted", legend, false);
|
UIK.Text(Loc.T("DRAG move · WHEEL zoom · SPACE back to you · M close"), "t-small t-muted", legend, false);
|
||||||
|
|
||||||
|
// asked to open at a zoom of its own (1 is "close in on you", the usual)
|
||||||
|
if (zoom != 1f) _zoom = Mathf.Max(1f, zoom);
|
||||||
Centre();
|
Centre();
|
||||||
Refresh();
|
Refresh();
|
||||||
_chart.schedule.Execute(Refresh).Every(500);
|
_chart.schedule.Execute(Refresh).Every(500);
|
||||||
@ -113,18 +120,18 @@ namespace GrassCutter
|
|||||||
get
|
get
|
||||||
{
|
{
|
||||||
// the first time it knows its size: open a few hundred metres across
|
// the first time it knows its size: open a few hundred metres across
|
||||||
if (_zoom < 0f && _chart.contentRect.width > 4f) _zoom = Mathf.Clamp(PxPerMetre(OpenMetres) * Planet.Radius / Radius, 1f, MaxZoom);
|
if (_zoom < 0f && Area.width > 4f) _zoom = Mathf.Clamp(PxPerMetre(OpenMetres) * Planet.Radius / Radius, 1f, MaxZoom);
|
||||||
return _zoom < 0f ? 1f : _zoom;
|
return _zoom < 0f ? 1f : _zoom;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
float MaxZoom => Mathf.Max(1f, PxPerMetre(NearestMetres) * Planet.Radius / Radius);
|
float MaxZoom => Mathf.Max(1f, PxPerMetre(NearestMetres) * Planet.Radius / Radius);
|
||||||
float PxPerMetre(float across) => Mathf.Max(100f, _chart.contentRect.width) / across;
|
float PxPerMetre(float across) => Mathf.Max(100f, Area.width) / across;
|
||||||
|
|
||||||
void ZoomBy(float k)
|
void ZoomBy(float k)
|
||||||
{
|
{
|
||||||
_zoom = Mathf.Clamp(Zoom * k, 1f, MaxZoom);
|
_zoom = Mathf.Clamp(Zoom * k, 1f, MaxZoom);
|
||||||
_chart.MarkDirtyRepaint();
|
Repaint();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>You in the middle, north up.</summary>
|
/// <summary>You in the middle, north up.</summary>
|
||||||
@ -135,7 +142,7 @@ namespace GrassCutter
|
|||||||
var north = Vector3.ProjectOnPlane(Vector3.up, up);
|
var north = Vector3.ProjectOnPlane(Vector3.up, up);
|
||||||
if (north.sqrMagnitude < 1e-4f) north = Vector3.forward;
|
if (north.sqrMagnitude < 1e-4f) north = Vector3.forward;
|
||||||
_view = Quaternion.Inverse(Quaternion.LookRotation(up, north));
|
_view = Quaternion.Inverse(Quaternion.LookRotation(up, north));
|
||||||
_chart?.MarkDirtyRepaint();
|
Repaint();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Refresh()
|
void Refresh()
|
||||||
@ -145,7 +152,7 @@ namespace GrassCutter
|
|||||||
if (ts) _stats.text = Loc.F("{0:N0} started · {1:N0} mown · {2:0.0000}% of the planet", MowMap.Started, ts.Closed.Value, ts.Mown01 * 100.0);
|
if (ts) _stats.text = Loc.F("{0:N0} started · {1:N0} mown · {2:0.0000}% of the planet", MowMap.Started, ts.Closed.Value, ts.Mown01 * 100.0);
|
||||||
// keeps up with you as you go, until you drag it somewhere else
|
// keeps up with you as you go, until you drag it somewhere else
|
||||||
if (_follow) Centre();
|
if (_follow) Centre();
|
||||||
_chart.MarkDirtyRepaint();
|
Repaint();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Key(VisualElement parent, Color c, string label)
|
static void Key(VisualElement parent, Color c, string label)
|
||||||
@ -159,7 +166,7 @@ namespace GrassCutter
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
var r = _chart.contentRect;
|
var r = Area;
|
||||||
return Mathf.Max(40f, Mathf.Min(r.width, r.height) * 0.47f);
|
return Mathf.Max(40f, Mathf.Min(r.width, r.height) * 0.47f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -168,7 +175,7 @@ namespace GrassCutter
|
|||||||
{
|
{
|
||||||
var v = _view * d;
|
var v = _view * d;
|
||||||
front = v.z > 0f;
|
front = v.z > 0f;
|
||||||
return _chart.contentRect.center + new Vector2(v.x, -v.y) * Radius * Zoom;
|
return Area.center + new Vector2(v.x, -v.y) * Radius * Zoom;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>A sector's corners, in order round its middle.</summary>
|
/// <summary>A sector's corners, in order round its middle.</summary>
|
||||||
@ -188,24 +195,94 @@ namespace GrassCutter
|
|||||||
|
|
||||||
static Color Shade(MowMap.Mask m) => m == null || !m.keep ? Meadow : m.done ? Done : Begun;
|
static Color Shade(MowMap.Mask m) => m == null || !m.keep ? Meadow : m.done ? Done : Begun;
|
||||||
|
|
||||||
void Draw(MeshGenerationContext ctx)
|
VisualElement Layer(Action<MeshGenerationContext> draw)
|
||||||
{
|
{
|
||||||
var r = _chart.contentRect;
|
var e = new VisualElement { pickingMode = PickingMode.Ignore };
|
||||||
|
e.style.position = Position.Absolute;
|
||||||
|
e.style.left = 0f; e.style.top = 0f; e.style.right = 0f; e.style.bottom = 0f;
|
||||||
|
e.generateVisualContent += draw;
|
||||||
|
_chart.Add(e);
|
||||||
|
return e;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Repaint()
|
||||||
|
{
|
||||||
|
_ball?.MarkDirtyRepaint();
|
||||||
|
_ground?.MarkDirtyRepaint();
|
||||||
|
_marks?.MarkDirtyRepaint();
|
||||||
|
// the scale bar is an element: sized here, never while drawing
|
||||||
|
if (_scaleBar != null && Area.width > 4f) Scale(Radius * Zoom);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>The chart's drawing area, in the layers' own space.</summary>
|
||||||
|
Rect Area => _ground != null ? _ground.contentRect : _chart.contentRect;
|
||||||
|
|
||||||
|
float HexPx(float size) => Mathf.Sqrt(GameDefs.SectorArea) / Planet.Radius * size;
|
||||||
|
|
||||||
|
void DrawBall(MeshGenerationContext ctx)
|
||||||
|
{
|
||||||
|
var r = Area;
|
||||||
if (r.width < 4f) return;
|
if (r.width < 4f) return;
|
||||||
var ts = TeamState.Instance;
|
_clip = r;
|
||||||
float size = Radius * Zoom;
|
float size = Radius * Zoom;
|
||||||
float hexPx = Mathf.Sqrt(GameDefs.SectorArea) / Planet.Radius * size;
|
Disc(r, size, HexPx(size) >= HexPixels ? Grid : Meadow);
|
||||||
|
Flush(ctx);
|
||||||
var p = ctx.painter2D;
|
}
|
||||||
p.fillColor = Space;
|
|
||||||
p.BeginPath(); p.MoveTo(new Vector2(r.xMin, r.yMin)); p.LineTo(new Vector2(r.xMax, r.yMin)); p.LineTo(new Vector2(r.xMax, r.yMax)); p.LineTo(new Vector2(r.xMin, r.yMax)); p.ClosePath(); p.Fill();
|
|
||||||
p.fillColor = hexPx >= HexPixels ? Grid : Meadow;
|
|
||||||
p.BeginPath(); p.Arc(r.center, size, 0f, 360f); p.Fill();
|
|
||||||
|
|
||||||
|
/// <summary>The sectors on the ball, one mesh, kept inside the chart.</summary>
|
||||||
|
void DrawGround(MeshGenerationContext ctx)
|
||||||
|
{
|
||||||
|
var r = Area;
|
||||||
|
if (r.width < 4f) return;
|
||||||
|
_clip = r;
|
||||||
|
float size = Radius * Zoom;
|
||||||
|
float hexPx = HexPx(size);
|
||||||
_masks.Clear();
|
_masks.Clear();
|
||||||
foreach (var m in MowMap.All) _masks[m.s.id] = m;
|
foreach (var m in MowMap.All) _masks[m.s.id] = m;
|
||||||
if (hexPx >= HexPixels) Hexes(ctx, r);
|
if (hexPx >= HexPixels) Hexes(ctx, r);
|
||||||
else Dots(ctx, r, Mathf.Max(1.5f, hexPx * 0.5f));
|
else Dots(ctx, r, Mathf.Max(1.5f, hexPx * 0.5f));
|
||||||
|
Flush(ctx);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>The ball as a fan, cut to the part of it that shows (close in it is far bigger than the chart).</summary>
|
||||||
|
void Disc(Rect r, float size, Color32 col)
|
||||||
|
{
|
||||||
|
var c = r.center;
|
||||||
|
float reach = new Vector2(r.width, r.height).magnitude * 0.5f;
|
||||||
|
if (size > reach * 1.5f)
|
||||||
|
{
|
||||||
|
// the chart sits wholly inside the ball: a plain quad
|
||||||
|
int q = _verts.Count;
|
||||||
|
Vert(new Vector2(r.xMin, r.yMin), col); Vert(new Vector2(r.xMax, r.yMin), col);
|
||||||
|
Vert(new Vector2(r.xMax, r.yMax), col); Vert(new Vector2(r.xMin, r.yMax), col);
|
||||||
|
_tris.Add((ushort)q); _tris.Add((ushort)(q + 1)); _tris.Add((ushort)(q + 2));
|
||||||
|
_tris.Add((ushort)q); _tris.Add((ushort)(q + 2)); _tris.Add((ushort)(q + 3));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const int Steps = 96;
|
||||||
|
int k = _verts.Count;
|
||||||
|
Vert(c, col);
|
||||||
|
for (int i = 0; i < Steps; i++)
|
||||||
|
{
|
||||||
|
float a = i * Mathf.PI * 2f / Steps;
|
||||||
|
Vert(c + new Vector2(Mathf.Cos(a), Mathf.Sin(a)) * size, col);
|
||||||
|
}
|
||||||
|
for (int i = 0; i < Steps; i++)
|
||||||
|
{
|
||||||
|
_tris.Add((ushort)k);
|
||||||
|
_tris.Add((ushort)(k + 1 + i));
|
||||||
|
_tris.Add((ushort)(k + 1 + (i + 1) % Steps));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Over the ground: the lattice, the rim, and everything that stands on the ball.</summary>
|
||||||
|
void DrawMarks(MeshGenerationContext ctx)
|
||||||
|
{
|
||||||
|
var r = Area;
|
||||||
|
if (r.width < 4f) return;
|
||||||
|
var ts = TeamState.Instance;
|
||||||
|
float size = Radius * Zoom;
|
||||||
|
var p = ctx.painter2D;
|
||||||
if (Zoom < 6f) Lattice(p);
|
if (Zoom < 6f) Lattice(p);
|
||||||
p.strokeColor = Rim;
|
p.strokeColor = Rim;
|
||||||
p.lineWidth = 3f;
|
p.lineWidth = 3f;
|
||||||
@ -228,14 +305,13 @@ namespace GrassCutter
|
|||||||
if (v) Arrow(p, v.transform, 7f, new Color(0.96f, 0.9f, 0.72f));
|
if (v) Arrow(p, v.transform, 7f, new Color(0.96f, 0.9f, 0.72f));
|
||||||
foreach (var pl in PlayerAgent.All)
|
foreach (var pl in PlayerAgent.All)
|
||||||
if (pl) Arrow(p, pl.transform, pl.IsOwner ? 11f : 8f, pl.Tint);
|
if (pl) Arrow(p, pl.transform, pl.IsOwner ? 11f : 8f, pl.Tint);
|
||||||
Scale(size);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>A round number of metres about a fifth of the chart wide.</summary>
|
/// <summary>A round number of metres about a fifth of the chart wide.</summary>
|
||||||
void Scale(float size)
|
void Scale(float size)
|
||||||
{
|
{
|
||||||
float pxPerM = size / Planet.Radius;
|
float pxPerM = size / Planet.Radius;
|
||||||
float want = _chart.contentRect.width * 0.18f / pxPerM;
|
float want = Area.width * 0.18f / pxPerM;
|
||||||
float step = Mathf.Pow(10f, Mathf.Floor(Mathf.Log10(Mathf.Max(1f, want))));
|
float step = Mathf.Pow(10f, Mathf.Floor(Mathf.Log10(Mathf.Max(1f, want))));
|
||||||
float metres = want >= step * 5f ? step * 5f : want >= step * 2f ? step * 2f : step;
|
float metres = want >= step * 5f ? step * 5f : want >= step * 2f ? step * 2f : step;
|
||||||
_scaleBar.style.width = metres * pxPerM;
|
_scaleBar.style.width = metres * pxPerM;
|
||||||
@ -254,6 +330,14 @@ namespace GrassCutter
|
|||||||
|
|
||||||
// ───────────────────────── the sectors, as a mesh ─────────────────────────
|
// ───────────────────────── the sectors, as a mesh ─────────────────────────
|
||||||
|
|
||||||
|
/// <summary>The sectors go out in pieces of this size at most, well inside what one mesh may hold.</summary>
|
||||||
|
const int ChunkVerts = 6000, ChunkIndices = 18000;
|
||||||
|
|
||||||
|
void Room(MeshGenerationContext ctx, int verts, int indices)
|
||||||
|
{
|
||||||
|
if (_verts.Count + verts > ChunkVerts || _tris.Count + indices > ChunkIndices) Flush(ctx);
|
||||||
|
}
|
||||||
|
|
||||||
void Flush(MeshGenerationContext ctx)
|
void Flush(MeshGenerationContext ctx)
|
||||||
{
|
{
|
||||||
if (_verts.Count == 0) return;
|
if (_verts.Count == 0) return;
|
||||||
@ -264,7 +348,15 @@ namespace GrassCutter
|
|||||||
_tris.Clear();
|
_tris.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Vert(Vector2 at, Color32 c) => _verts.Add(new Vertex { position = new Vector3(at.x, at.y, Vertex.nearZ), tint = c });
|
/// <summary>Every corner is held inside the chart, so a sector across its edge is cut off there instead of spilling
|
||||||
|
/// past it onto the card (the chart's rounded edge doesn't clip a hand-made mesh).</summary>
|
||||||
|
Rect _clip = new Rect(-1e6f, -1e6f, 2e6f, 2e6f);
|
||||||
|
|
||||||
|
void Vert(Vector2 at, Color32 c)
|
||||||
|
{
|
||||||
|
at = new Vector2(Mathf.Clamp(at.x, _clip.xMin, _clip.xMax), Mathf.Clamp(at.y, _clip.yMin, _clip.yMax));
|
||||||
|
_verts.Add(new Vertex { position = new Vector3(at.x, at.y, Vertex.nearZ), tint = c });
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>Far out each worked sector is a speck.</summary>
|
/// <summary>Far out each worked sector is a speck.</summary>
|
||||||
void Dots(MeshGenerationContext ctx, Rect r, float half)
|
void Dots(MeshGenerationContext ctx, Rect r, float half)
|
||||||
@ -275,7 +367,7 @@ namespace GrassCutter
|
|||||||
if (!m.keep) continue;
|
if (!m.keep) continue;
|
||||||
var at = Screen(m.s.c, out bool front);
|
var at = Screen(m.s.c, out bool front);
|
||||||
if (!front || !view.Contains(at)) continue;
|
if (!front || !view.Contains(at)) continue;
|
||||||
if (_verts.Count > 60000) Flush(ctx);
|
Room(ctx, 4, 6);
|
||||||
Color32 c = m.done ? Done : Begun;
|
Color32 c = m.done ? Done : Begun;
|
||||||
int k = _verts.Count;
|
int k = _verts.Count;
|
||||||
Vert(at + new Vector2(-half, -half), c);
|
Vert(at + new Vector2(-half, -half), c);
|
||||||
@ -298,6 +390,7 @@ namespace GrassCutter
|
|||||||
_seen.Add(first);
|
_seen.Add(first);
|
||||||
var view = new Rect(r.x - 60f, r.y - 60f, r.width + 120f, r.height + 120f);
|
var view = new Rect(r.x - 60f, r.y - 60f, r.width + 120f, r.height + 120f);
|
||||||
int drawn = 0;
|
int drawn = 0;
|
||||||
|
Flipped = 0;
|
||||||
while (_queue.Count > 0 && drawn < MaxHexes)
|
while (_queue.Count > 0 && drawn < MaxHexes)
|
||||||
{
|
{
|
||||||
var s = HexGrid.Get(_queue.Dequeue());
|
var s = HexGrid.Get(_queue.Dequeue());
|
||||||
@ -307,22 +400,33 @@ namespace GrassCutter
|
|||||||
_masks.TryGetValue(s.id, out var m);
|
_masks.TryGetValue(s.id, out var m);
|
||||||
Color32 col = Shade(m);
|
Color32 col = Shade(m);
|
||||||
var c = Corners(s);
|
var c = Corners(s);
|
||||||
if (_verts.Count + c.Length + 1 > 65000) Flush(ctx);
|
Room(ctx, c.Length + 1, c.Length * 3);
|
||||||
int k = _verts.Count;
|
int k = _verts.Count;
|
||||||
Vert(at, col);
|
Vert(at, col);
|
||||||
for (int i = 0; i < c.Length; i++) Vert(Vector2.LerpUnclamped(at, Screen(c[i], out _), 0.92f), col);
|
for (int i = 0; i < c.Length; i++) Vert(Vector2.LerpUnclamped(at, Screen(c[i], out _), 0.92f), col);
|
||||||
|
// the screen drops faces wound the wrong way round, and the corners go round whichever way the
|
||||||
|
// sector's own frame does: turned the screen's way here, or half the map never shows
|
||||||
|
var e0 = (Vector2)_verts[k + 1].position - at;
|
||||||
|
var e1 = (Vector2)_verts[k + 2].position - at;
|
||||||
|
bool flip = e0.x * e1.y - e0.y * e1.x < 0f;
|
||||||
|
if (flip) Flipped++;
|
||||||
for (int i = 0; i < c.Length; i++)
|
for (int i = 0; i < c.Length; i++)
|
||||||
{
|
{
|
||||||
|
int i0 = k + 1 + i, i1 = k + 1 + (i + 1) % c.Length;
|
||||||
_tris.Add((ushort)k);
|
_tris.Add((ushort)k);
|
||||||
_tris.Add((ushort)(k + 1 + i));
|
_tris.Add((ushort)(flip ? i1 : i0));
|
||||||
_tris.Add((ushort)(k + 1 + (i + 1) % c.Length));
|
_tris.Add((ushort)(flip ? i0 : i1));
|
||||||
}
|
}
|
||||||
foreach (int n in s.neighbours)
|
foreach (int n in s.neighbours)
|
||||||
if (_seen.Add(n)) _queue.Enqueue(n);
|
if (_seen.Add(n)) _queue.Enqueue(n);
|
||||||
}
|
}
|
||||||
Flush(ctx);
|
Flush(ctx);
|
||||||
|
Drawn = drawn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>Tests: sectors in the last close-in drawing, and how many of them had to be turned round.</summary>
|
||||||
|
public static int Drawn, Flipped;
|
||||||
|
|
||||||
/// <summary>Latitude and longitude every 30°.</summary>
|
/// <summary>Latitude and longitude every 30°.</summary>
|
||||||
void Lattice(Painter2D p)
|
void Lattice(Painter2D p)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -53,14 +53,14 @@ namespace GrassCutter
|
|||||||
var row = UIK.El("tune-row", _body);
|
var row = UIK.El("tune-row", _body);
|
||||||
var names = UIK.El("tune-names", row);
|
var names = UIK.El("tune-names", row);
|
||||||
UIK.Text($"{GameDefs.TierName(tier)}", "t-small t-dark", names, false);
|
UIK.Text($"{GameDefs.TierName(tier)}", "t-small t-dark", names, false);
|
||||||
UIK.Text(tier == 0 ? Loc.T("As built.") : Loc.F("Now {0}.", GameDefs.TierEffect(kind, tier)), "tune-effect", names, false);
|
UIK.Text(tier == 0 ? Loc.T("As built.") : Loc.F("Now {0}.", GameDefs.TierEffect(_p.piece, kind, tier)), "tune-effect", names, false);
|
||||||
if (tier < GameDefs.MaxTier)
|
if (tier < GameDefs.MaxTier)
|
||||||
{
|
{
|
||||||
double price = GameDefs.UpgradePrice(_p, tier);
|
double price = GameDefs.UpgradePrice(_p, tier);
|
||||||
var up = UIK.El("tune-row", _body);
|
var up = UIK.El("tune-row", _body);
|
||||||
var upNames = UIK.El("tune-names", up);
|
var upNames = UIK.El("tune-names", up);
|
||||||
UIK.Text(Loc.F("Upgrade to {0}", GameDefs.TierName(tier + 1)), "t-small t-dark", upNames, false);
|
UIK.Text(Loc.F("Upgrade to {0}", GameDefs.TierName(tier + 1)), "t-small t-dark", upNames, false);
|
||||||
UIK.Text(Loc.F("{0}.", Cap(GameDefs.TierEffect(kind, tier + 1))), "tune-effect", upNames, false);
|
UIK.Text(Loc.F("{0}.", Cap(GameDefs.TierEffect(_p.piece, kind, tier + 1))), "tune-effect", upNames, false);
|
||||||
UIK.Costs(UIK.Btn(UIK.Money(price), () =>
|
UIK.Costs(UIK.Btn(UIK.Money(price), () =>
|
||||||
{
|
{
|
||||||
if (!UIK.CanPay(price)) { Sfx.Play("error", 0.7f); return; }
|
if (!UIK.CanPay(price)) { Sfx.Play("error", 0.7f); return; }
|
||||||
@ -119,6 +119,7 @@ namespace GrassCutter
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static string Cap(string s) => string.IsNullOrEmpty(s) ? s : char.ToUpper(s[0], Loc.Culture) + s.Substring(1);
|
/// <summary>A capital to start with, except on a multiplier ("x1.6 speed", not "X1.6").</summary>
|
||||||
|
static string Cap(string s) => string.IsNullOrEmpty(s) || (s.Length > 1 && s[0] == 'x' && char.IsDigit(s[1])) ? s : char.ToUpper(s[0], Loc.Culture) + s.Substring(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,39 +6,48 @@ using UnityEngine.UIElements;
|
|||||||
namespace GrassCutter
|
namespace GrassCutter
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The upgrade matrix as node graphs: the GreenHaul console shows CONTAINERS · CUTTING · SUIT · LOGISTICS · ECONOMY,
|
/// The upgrade matrix as node graphs: the GreenHaul console shows CONTAINERS · CUTTING · SUIT · LOGISTICS · ECONOMY · AUTOMATION,
|
||||||
/// each branch growing out of the free Earth Uplink, the garage shows the FLEET. Click a node to inspect it, buy it from
|
/// each branch growing out of the free Earth Uplink. Click a node to inspect it, buy it from the shared crew wallet.
|
||||||
/// the shared crew wallet.
|
/// Each tree sits in the middle under the uplink, its links run square between the rows (never through a node or a
|
||||||
|
/// name), every node says what it costs, and the detail panel lays out every level with what it gives and costs.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class ShopScreen
|
public class ShopScreen
|
||||||
{
|
{
|
||||||
public VisualElement Card { get; }
|
public VisualElement Card { get; }
|
||||||
readonly Label _money, _installs;
|
readonly Label _money, _installs;
|
||||||
readonly Action _close;
|
readonly Action _close;
|
||||||
public static readonly PerkTree[] TerminalTrees = { PerkTree.Containers, PerkTree.Cutting, PerkTree.Suit, PerkTree.Logistics, PerkTree.Economy };
|
public static readonly PerkTree[] TerminalTrees = { PerkTree.Containers, PerkTree.Cutting, PerkTree.Suit, PerkTree.Logistics, PerkTree.Economy, PerkTree.Automation };
|
||||||
readonly PerkTree[] _trees;
|
readonly PerkTree[] _trees;
|
||||||
bool Hub => _trees == TerminalTrees;
|
bool Hub => _trees == TerminalTrees;
|
||||||
int TreeCount => _trees.Length;
|
int TreeCount => _trees.Length;
|
||||||
readonly Button[] _tabs;
|
readonly Button[] _tabs;
|
||||||
readonly Label[] _tabBadges;
|
readonly Label[] _tabBadges;
|
||||||
|
readonly VisualElement[] _tabFill;
|
||||||
readonly VisualElement _graph, _canvas, _lines, _detail;
|
readonly VisualElement _graph, _canvas, _lines, _detail;
|
||||||
readonly Dictionary<PerkId, VisualElement> _nodes = new Dictionary<PerkId, VisualElement>();
|
readonly Dictionary<PerkId, VisualElement> _nodes = new Dictionary<PerkId, VisualElement>();
|
||||||
VisualElement _hubNode;
|
VisualElement _hubNode;
|
||||||
PerkTree _tree = PerkTree.Containers;
|
PerkTree _tree = PerkTree.Containers;
|
||||||
PerkId _selected = PerkId.BinScissors;
|
PerkId _selected = PerkId.BinScissors;
|
||||||
|
|
||||||
const float ColW = 236f, RowH = 196f, Node = 112f, PadX = 30f, PadY = 22f;
|
// Node matches .node in the style sheet; a big step is drawn a size up
|
||||||
|
const float ColW = 236f, RowH = 228f, HubH = 196f, Node = 118f, BigNode = 140f, PadX = 30f, PadY = 22f;
|
||||||
|
/// <summary>How far above a row its links turn: below the names of the row before, above the nodes of this one.</summary>
|
||||||
|
const float Bus = 30f;
|
||||||
|
const float Corner = 16f;
|
||||||
// the canvas fits the widest / deepest tree so every tab has the same scale
|
// the canvas fits the widest / deepest tree so every tab has the same scale
|
||||||
static int MaxCol { get { int m = 0; foreach (var d in GameDefs.Perks) m = Mathf.Max(m, d.col); return m; } }
|
static int MaxCol { get { int m = 0; foreach (var d in GameDefs.Perks) m = Mathf.Max(m, d.col); return m; } }
|
||||||
static int MaxRow { get { int m = 0; foreach (var d in GameDefs.Perks) m = Mathf.Max(m, d.row); return m; } }
|
static int MaxRow { get { int m = 0; foreach (var d in GameDefs.Perks) m = Mathf.Max(m, d.row); return m; } }
|
||||||
static readonly float CanvasW = PadX * 2f + ColW * (MaxCol + 1), CanvasH = PadY + RowH * (MaxRow + 1) + Node + 64f;
|
// (below the last row only its nodes and their names)
|
||||||
|
static readonly float CanvasW = PadX * 2f + ColW * (MaxCol + 1), CanvasH = PadY + HubH + RowH * MaxRow + Node + 86f;
|
||||||
|
|
||||||
static readonly string[] TreeNames = { Loc.N("CONTAINERS"), Loc.N("CUTTING"), Loc.N("SUIT"), Loc.N("LOGISTICS"), Loc.N("ECONOMY"), Loc.N("FLEET") };
|
static readonly string[] TreeNames = { Loc.N("CONTAINERS"), Loc.N("CUTTING"), Loc.N("SUIT"), Loc.N("LOGISTICS"), Loc.N("ECONOMY"), Loc.N("AUTOMATION") };
|
||||||
static readonly Color[] TreeColors =
|
static readonly Color[] TreeColors =
|
||||||
{
|
{
|
||||||
new Color(0.9f, 0.72f, 0.24f), new Color(0.45f, 0.8f, 0.2f), new Color(0.85f, 0.75f, 0.4f), new Color(1f, 0.8f, 0.25f),
|
new Color(0.9f, 0.72f, 0.24f), new Color(0.45f, 0.8f, 0.2f), new Color(0.85f, 0.75f, 0.4f), new Color(1f, 0.8f, 0.25f),
|
||||||
new Color(0.25f, 0.7f, 0.45f), new Color(0.75f, 0.45f, 0.25f),
|
new Color(0.25f, 0.7f, 0.45f), new Color(0.3f, 0.66f, 0.86f),
|
||||||
};
|
};
|
||||||
|
static readonly Color Ink = new Color(0.165f, 0.13f, 0.08f, 1f);
|
||||||
|
static readonly Color Open = new Color(1f, 0.99f, 0.94f), Shut = new Color(0.7f, 0.66f, 0.56f);
|
||||||
|
|
||||||
TeamState Ts => TeamState.Instance;
|
TeamState Ts => TeamState.Instance;
|
||||||
|
|
||||||
@ -48,6 +57,7 @@ namespace GrassCutter
|
|||||||
_trees = trees ?? TerminalTrees;
|
_trees = trees ?? TerminalTrees;
|
||||||
_tabs = new Button[_trees.Length];
|
_tabs = new Button[_trees.Length];
|
||||||
_tabBadges = new Label[_trees.Length];
|
_tabBadges = new Label[_trees.Length];
|
||||||
|
_tabFill = new VisualElement[_trees.Length];
|
||||||
_tree = _trees[0];
|
_tree = _trees[0];
|
||||||
Card = UIK.El("card shop", layer);
|
Card = UIK.El("card shop", layer);
|
||||||
Card.pickingMode = PickingMode.Position;
|
Card.pickingMode = PickingMode.Position;
|
||||||
@ -75,6 +85,11 @@ namespace GrassCutter
|
|||||||
// label as a child: a Button that has children is no longer measured by its own text
|
// label as a child: a Button that has children is no longer measured by its own text
|
||||||
_tabs[i] = UIK.Btn("", () => SetTree(_trees[t], true), "tab", tabs);
|
_tabs[i] = UIK.Btn("", () => SetTree(_trees[t], true), "tab", tabs);
|
||||||
UIK.Text(Loc.T(TreeNames[(int)_trees[i]]), "tab-label", _tabs[i]).pickingMode = PickingMode.Ignore;
|
UIK.Text(Loc.T(TreeNames[(int)_trees[i]]), "tab-label", _tabs[i]).pickingMode = PickingMode.Ignore;
|
||||||
|
// how much of the tree is bought, as a strip along the bottom of the tab
|
||||||
|
var bar = UIK.El("tab-progress", _tabs[i]);
|
||||||
|
bar.pickingMode = PickingMode.Ignore;
|
||||||
|
_tabFill[i] = UIK.El("tab-progress-fill", bar);
|
||||||
|
_tabFill[i].style.backgroundColor = TreeColors[(int)_trees[i]];
|
||||||
_tabBadges[i] = UIK.Text("", "tab-badge", _tabs[i]);
|
_tabBadges[i] = UIK.Text("", "tab-badge", _tabs[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -95,9 +110,9 @@ namespace GrassCutter
|
|||||||
// the wallet moves all the time: it recolours the prices, the pill and the tab counts, it doesn't rebuild the tree
|
// the wallet moves all the time: it recolours the prices, the pill and the tab counts, it doesn't rebuild the tree
|
||||||
UIK.FollowWallet(Card);
|
UIK.FollowWallet(Card);
|
||||||
Card.schedule.Execute(Wallet).Every(250);
|
Card.schedule.Execute(Wallet).Every(250);
|
||||||
// open on the first tree that has something affordable
|
|
||||||
// a single tree needs no tab row
|
// a single tree needs no tab row
|
||||||
if (TreeCount == 1) tabs.style.display = DisplayStyle.None;
|
if (TreeCount == 1) tabs.style.display = DisplayStyle.None;
|
||||||
|
// open on the first tree that has something affordable
|
||||||
for (int i = 0; i < TreeCount; i++) if (Affordable(_trees[i]) > 0) { _tree = _trees[i]; break; }
|
for (int i = 0; i < TreeCount; i++) if (Affordable(_trees[i]) > 0) { _tree = _trees[i]; break; }
|
||||||
SetTree(_tree, true);
|
SetTree(_tree, true);
|
||||||
}
|
}
|
||||||
@ -112,6 +127,21 @@ namespace GrassCutter
|
|||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>Levels bought in a tree, out of all it has.</summary>
|
||||||
|
float Bought(PerkTree tree)
|
||||||
|
{
|
||||||
|
var ts = Ts;
|
||||||
|
if (!ts) return 0f;
|
||||||
|
int have = 0, all = 0;
|
||||||
|
foreach (var d in GameDefs.Perks)
|
||||||
|
{
|
||||||
|
if (d.tree != tree) continue;
|
||||||
|
have += Mathf.Min(ts.Level(d.id), d.maxLevel);
|
||||||
|
all += d.maxLevel;
|
||||||
|
}
|
||||||
|
return all > 0 ? (float)have / all : 0f;
|
||||||
|
}
|
||||||
|
|
||||||
public void SetTree(PerkTree tree, bool animate)
|
public void SetTree(PerkTree tree, bool animate)
|
||||||
{
|
{
|
||||||
_tree = tree;
|
_tree = tree;
|
||||||
@ -143,8 +173,26 @@ namespace GrassCutter
|
|||||||
_canvas.style.top = (r.height - CanvasH * k) * 0.5f;
|
_canvas.style.top = (r.height - CanvasH * k) * 0.5f;
|
||||||
}
|
}
|
||||||
|
|
||||||
Vector2 NodePos(PerkDef d) => new Vector2(PadX + d.col * ColW + (ColW - Node) * 0.5f, PadY + (d.row + (Hub ? 1 : 0)) * RowH);
|
// ───────────────────────── where things go ─────────────────────────
|
||||||
Vector2 NodeCenter(PerkDef d) => NodePos(d) + new Vector2(Node, Node) * 0.5f;
|
|
||||||
|
/// <summary>The tree's columns sit in the middle of the canvas, under the uplink.</summary>
|
||||||
|
float TreeLeft
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
int cols = 0;
|
||||||
|
foreach (var d in GameDefs.Perks) if (d.tree == _tree) cols = Mathf.Max(cols, d.col + 1);
|
||||||
|
return PadX + (MaxCol + 1 - cols) * ColW * 0.5f;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static float Size(PerkDef d) => d.big ? BigNode : Node;
|
||||||
|
int Row(PerkDef d) => d.row + (Hub ? 1 : 0);
|
||||||
|
float ColX(PerkDef d, float left) => left + d.col * ColW + ColW * 0.5f;
|
||||||
|
/// <summary>The uplink row is short: it has one node with a one-line name.</summary>
|
||||||
|
float RowTop(int row) => Hub ? (row == 0 ? PadY : PadY + HubH + (row - 1) * RowH) : PadY + row * RowH;
|
||||||
|
/// <summary>Top left of a node: centred on its column, its top on its row (a big one stands a little higher).</summary>
|
||||||
|
Vector2 NodePos(PerkDef d, float left) => new Vector2(ColX(d, left) - Size(d) * 0.5f, RowTop(Row(d)) - (Size(d) - Node) * 0.5f);
|
||||||
static Vector2 HubPos => new Vector2(CanvasW * 0.5f - Node * 0.5f, PadY);
|
static Vector2 HubPos => new Vector2(CanvasW * 0.5f - Node * 0.5f, PadY);
|
||||||
|
|
||||||
void Wallet()
|
void Wallet()
|
||||||
@ -158,26 +206,30 @@ namespace GrassCutter
|
|||||||
int n = Affordable(_trees[i]);
|
int n = Affordable(_trees[i]);
|
||||||
_tabBadges[i].text = n > 0 ? n.ToString() : "";
|
_tabBadges[i].text = n > 0 ? n.ToString() : "";
|
||||||
_tabBadges[i].style.display = n > 0 ? DisplayStyle.Flex : DisplayStyle.None;
|
_tabBadges[i].style.display = n > 0 ? DisplayStyle.Flex : DisplayStyle.None;
|
||||||
|
_tabFill[i].style.width = Length.Percent(Bought(_trees[i]) * 100f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ───────────────────────── the graph ─────────────────────────
|
||||||
|
|
||||||
void Rebuild(bool animate)
|
void Rebuild(bool animate)
|
||||||
{
|
{
|
||||||
var ts = Ts;
|
var ts = Ts;
|
||||||
if (!ts) return;
|
if (!ts) return;
|
||||||
Wallet();
|
Wallet();
|
||||||
|
|
||||||
// nodes
|
|
||||||
foreach (var n in _nodes.Values) n.RemoveFromHierarchy();
|
foreach (var n in _nodes.Values) n.RemoveFromHierarchy();
|
||||||
_nodes.Clear();
|
_nodes.Clear();
|
||||||
_hubNode?.RemoveFromHierarchy();
|
_hubNode?.RemoveFromHierarchy();
|
||||||
if (Hub)
|
if (Hub)
|
||||||
{
|
{
|
||||||
_hubNode = UIK.El("node node-maxed", _canvas);
|
_hubNode = UIK.El("node node-maxed node-hub", _canvas);
|
||||||
_hubNode.style.left = HubPos.x; _hubNode.style.top = HubPos.y;
|
_hubNode.style.left = HubPos.x; _hubNode.style.top = HubPos.y;
|
||||||
UIK.Img(AssetBank.I.Tex("icon_star"), "node-icon", _hubNode);
|
UIK.Img(AssetBank.I.Tex("icon_star"), "node-icon", _hubNode);
|
||||||
UIK.Text(Loc.T("Earth Uplink"), "node-name", _hubNode, false);
|
var hubName = UIK.Text(Loc.T("Earth Uplink"), "node-name", _hubNode, false);
|
||||||
|
PlaceName(hubName, Node, false);
|
||||||
}
|
}
|
||||||
|
float left = TreeLeft;
|
||||||
int k = 0;
|
int k = 0;
|
||||||
foreach (var d in GameDefs.Perks)
|
foreach (var d in GameDefs.Perks)
|
||||||
{
|
{
|
||||||
@ -185,25 +237,45 @@ namespace GrassCutter
|
|||||||
int lvl = ts.Level(d.id);
|
int lvl = ts.Level(d.id);
|
||||||
bool maxed = lvl >= d.maxLevel;
|
bool maxed = lvl >= d.maxLevel;
|
||||||
bool avail = ts.PerkAvailable(d);
|
bool avail = ts.PerkAvailable(d);
|
||||||
bool afford = avail && !maxed && ts.Money.Value >= d.PriceFor(lvl);
|
long price = d.PriceFor(lvl);
|
||||||
|
float size = Size(d);
|
||||||
var node = UIK.El("node", _canvas);
|
var node = UIK.El("node", _canvas);
|
||||||
node.pickingMode = PickingMode.Position;
|
node.pickingMode = PickingMode.Position;
|
||||||
var pos = NodePos(d);
|
var pos = NodePos(d, left);
|
||||||
node.style.left = pos.x; node.style.top = pos.y;
|
node.style.left = pos.x; node.style.top = pos.y;
|
||||||
if (maxed || lvl > 0 || !avail) node.AddToClassList(maxed ? "node-maxed" : lvl > 0 ? "node-owned" : "node-locked");
|
node.style.width = size; node.style.height = size;
|
||||||
else UIK.Costs(node, d.PriceFor(lvl), "node-afford", "node-available");
|
if (d.big) node.AddToClassList("node-big");
|
||||||
|
if (maxed) node.AddToClassList("node-maxed");
|
||||||
|
else if (!avail) node.AddToClassList("node-locked");
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (lvl > 0) node.AddToClassList("node-owned");
|
||||||
|
// the wallet keeps this one current: a node you can pay for lights up
|
||||||
|
UIK.Costs(node, price, "node-afford", "node-available");
|
||||||
|
}
|
||||||
if (d.id == _selected) node.AddToClassList("node-selected");
|
if (d.id == _selected) node.AddToClassList("node-selected");
|
||||||
var icon = UIK.Img(AssetBank.I.Tex(d.icon), "node-icon", node);
|
var icon = UIK.Img(AssetBank.I.Tex(d.icon), "node-icon", node);
|
||||||
icon.pickingMode = PickingMode.Ignore;
|
icon.pickingMode = PickingMode.Ignore;
|
||||||
if (!avail) UIK.Text("?", "node-lock t-outline", node).pickingMode = PickingMode.Ignore;
|
if (d.big) { icon.style.width = 100; icon.style.height = 100; }
|
||||||
if (d.maxLevel > 1) UIK.Text($"{lvl}/{d.maxLevel}", "node-level t-outline", node).pickingMode = PickingMode.Ignore;
|
if (!avail && !maxed) UIK.Text("?", "node-lock t-outline", node).pickingMode = PickingMode.Ignore;
|
||||||
else if (lvl > 0) UIK.Text(Loc.T("OWNED"), "node-level t-outline", node).pickingMode = PickingMode.Ignore;
|
if (d.maxLevel > 1)
|
||||||
|
{
|
||||||
|
var pips = UIK.El("node-pips", node);
|
||||||
|
pips.pickingMode = PickingMode.Ignore;
|
||||||
|
for (int i = 0; i < d.maxLevel; i++) UIK.El(i < lvl ? "node-pip node-pip-on" : "node-pip", pips).pickingMode = PickingMode.Ignore;
|
||||||
|
}
|
||||||
|
// under the node: what the next level costs, or that it is all bought
|
||||||
|
bool hasChip = !maxed || d.maxLevel == 1;
|
||||||
|
if (!maxed && avail) UIK.Costs(UIK.Text(UIK.Money(price), "node-price t-outline", node), price, "node-price-yes", "node-price-no").pickingMode = PickingMode.Ignore;
|
||||||
|
else if (!maxed) UIK.Text(UIK.Money(price), "node-price node-price-shut t-outline", node).pickingMode = PickingMode.Ignore;
|
||||||
|
else if (d.maxLevel == 1) UIK.Text(Loc.T("OWNED"), "node-price node-price-done t-outline", node).pickingMode = PickingMode.Ignore;
|
||||||
var name = UIK.Text(d.name, "node-name", node, false);
|
var name = UIK.Text(d.name, "node-name", node, false);
|
||||||
name.pickingMode = PickingMode.Ignore;
|
name.pickingMode = PickingMode.Ignore;
|
||||||
|
PlaceName(name, size, hasChip);
|
||||||
var id = d.id;
|
var id = d.id;
|
||||||
node.RegisterCallback<ClickEvent>(_ => { _selected = id; Sfx.Play("ui_click", 0.6f, 1.1f); Rebuild(false); });
|
node.RegisterCallback<ClickEvent>(_ => { _selected = id; Sfx.Play("ui_click", 0.6f, 1.1f); Rebuild(false); });
|
||||||
node.RegisterCallback<MouseEnterEvent>(_ => Sfx.Play("ui_hover", 0.35f, 1.2f));
|
node.RegisterCallback<MouseEnterEvent>(_ => Sfx.Play("ui_hover", 0.35f, 1.2f));
|
||||||
if (afford) Pulse(node);
|
if (avail && !maxed && ts.Money.Value >= price) Pulse(node);
|
||||||
_nodes[d.id] = node;
|
_nodes[d.id] = node;
|
||||||
if (animate) UIK.PopIn(node, 0.03f * k, 0.35f);
|
if (animate) UIK.PopIn(node, 0.03f * k, 0.35f);
|
||||||
k++;
|
k++;
|
||||||
@ -212,56 +284,95 @@ namespace GrassCutter
|
|||||||
BuildDetail(animate);
|
BuildDetail(animate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void PlaceName(Label name, float size, bool chip)
|
||||||
|
{
|
||||||
|
name.style.top = size + (chip ? 30f : 12f);
|
||||||
|
name.style.left = (size - 230f) * 0.5f;
|
||||||
|
}
|
||||||
|
|
||||||
static void Pulse(VisualElement e)
|
static void Pulse(VisualElement e)
|
||||||
{
|
{
|
||||||
Tween.Run(e, 1.2f, t => { if (e.panel != null) e.style.scale = new Scale(Vector3.one * (1f + Mathf.Sin(t * Mathf.PI * 2f) * 0.035f)); }, Ease.Linear, 0f, () => { if (e.panel != null) Pulse(e); });
|
Tween.Run(e, 1.2f, t => { if (e.panel != null) e.style.scale = new Scale(Vector3.one * (1f + Mathf.Sin(t * Mathf.PI * 2f) * 0.03f)); }, Ease.Linear, 0f, () => { if (e.panel != null) Pulse(e); });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct Link { public Vector2[] pts; public Color color; public int rank; }
|
||||||
|
readonly List<Link> _links = new List<Link>();
|
||||||
|
|
||||||
void DrawLines(MeshGenerationContext ctx)
|
void DrawLines(MeshGenerationContext ctx)
|
||||||
{
|
{
|
||||||
var ts = Ts;
|
var ts = Ts;
|
||||||
if (!ts) return;
|
if (!ts) return;
|
||||||
var p = ctx.painter2D;
|
float left = TreeLeft;
|
||||||
p.lineCap = LineCap.Round;
|
_links.Clear();
|
||||||
p.lineJoin = LineJoin.Round;
|
var hubOut = new Vector2(CanvasW * 0.5f, PadY + Node);
|
||||||
foreach (var d in GameDefs.Perks)
|
foreach (var d in GameDefs.Perks)
|
||||||
{
|
{
|
||||||
if (d.tree != _tree) continue;
|
if (d.tree != _tree) continue;
|
||||||
if (Hub && d.requires.Length == 0) Link(p, HubPos + new Vector2(Node, Node) * 0.5f, NodeCenter(d), ts.Has(d.id));
|
bool mine = ts.Has(d.id);
|
||||||
|
var into = new Vector2(ColX(d, left), NodePos(d, left).y);
|
||||||
|
if (Hub && d.requires.Length == 0) Add(Route(hubOut, 1, into, Row(d), left), mine, true);
|
||||||
foreach (var r in d.requires)
|
foreach (var r in d.requires)
|
||||||
{
|
{
|
||||||
var rd = GameDefs.Perk(r);
|
var rd = GameDefs.Perk(r);
|
||||||
// a root that needs a perk from another tree has no line to draw (the detail panel names it)
|
// a root that needs a perk from another tree has no line to draw (the detail panel names it)
|
||||||
if (rd.tree != d.tree) continue;
|
if (rd.tree != d.tree) continue;
|
||||||
Link(p, NodeCenter(rd), NodeCenter(d), ts.Has(d.id), ts.Has(r));
|
var from = new Vector2(ColX(rd, left), NodePos(rd, left).y + Size(rd));
|
||||||
|
Add(Route(from, Row(rd) + 1, into, Row(d), left), mine, ts.Level(r) >= d.requireLevel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
// the dull ones first, the bought ones on top, all of them outlined before any is filled: crossings merge cleanly
|
||||||
|
_links.Sort((a, b) => a.rank.CompareTo(b.rank));
|
||||||
void Link(Painter2D p, Vector2 a, Vector2 b, bool mine, bool have = true)
|
var p = ctx.painter2D;
|
||||||
|
p.lineCap = LineCap.Round;
|
||||||
|
p.lineJoin = LineJoin.Round;
|
||||||
|
p.strokeColor = Ink;
|
||||||
|
p.lineWidth = 15f;
|
||||||
|
foreach (var l in _links) Path(p, l.pts);
|
||||||
|
p.lineWidth = 8f;
|
||||||
|
foreach (var l in _links)
|
||||||
{
|
{
|
||||||
// outline then fill, so lines read like the chunky UI borders
|
p.strokeColor = l.color;
|
||||||
p.strokeColor = new Color(0.165f, 0.13f, 0.08f, 1f);
|
Path(p, l.pts);
|
||||||
p.lineWidth = 16f;
|
}
|
||||||
Path(p, a, b);
|
|
||||||
p.strokeColor = mine ? TreeColors[(int)_tree] : have ? new Color(1f, 1f, 1f) : new Color(0.78f, 0.8f, 0.66f);
|
|
||||||
p.lineWidth = 9f;
|
|
||||||
Path(p, a, b);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Path(Painter2D p, Vector2 a, Vector2 b)
|
void Add(Vector2[] pts, bool mine, bool open)
|
||||||
|
{
|
||||||
|
_links.Add(new Link { pts = pts, color = mine ? TreeColors[(int)_tree] : open ? Open : Shut, rank = mine ? 2 : open ? 1 : 0 });
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Down from a node, along the gap above the row it goes to, down into it. One that skips rows goes down the gap
|
||||||
|
/// between columns instead, so it never runs through a node in between.
|
||||||
|
/// </summary>
|
||||||
|
Vector2[] Route(Vector2 a, int fromRow, Vector2 b, int toRow, float left)
|
||||||
|
{
|
||||||
|
float busB = b.y - Bus;
|
||||||
|
if (toRow <= fromRow)
|
||||||
|
return Mathf.Abs(a.x - b.x) < 1f ? new[] { a, b } : new[] { a, new Vector2(a.x, busB), new Vector2(b.x, busB), b };
|
||||||
|
float busA = RowTop(fromRow) - Bus;
|
||||||
|
// the gap beside the column it goes to, on the side it comes from
|
||||||
|
float gap = b.x + (a.x < b.x ? -ColW * 0.5f : ColW * 0.5f);
|
||||||
|
return new[] { a, new Vector2(a.x, busA), new Vector2(gap, busA), new Vector2(gap, busB), new Vector2(b.x, busB), b };
|
||||||
|
}
|
||||||
|
|
||||||
|
static void Path(Painter2D p, Vector2[] pts)
|
||||||
{
|
{
|
||||||
p.BeginPath();
|
p.BeginPath();
|
||||||
p.MoveTo(a);
|
p.MoveTo(pts[0]);
|
||||||
if (Mathf.Abs(a.x - b.x) < 1f) p.LineTo(b);
|
for (int i = 1; i < pts.Length - 1; i++)
|
||||||
else
|
|
||||||
{
|
{
|
||||||
float midY = (a.y + b.y) * 0.5f;
|
// round the corner, but never by more than half of either side of it
|
||||||
p.BezierCurveTo(new Vector2(a.x, midY), new Vector2(b.x, midY), b);
|
float r = Mathf.Min(Corner, (pts[i] - pts[i - 1]).magnitude * 0.5f, (pts[i + 1] - pts[i]).magnitude * 0.5f);
|
||||||
|
if (r < 1f) p.LineTo(pts[i]);
|
||||||
|
else p.ArcTo(pts[i], pts[i + 1], r);
|
||||||
}
|
}
|
||||||
|
p.LineTo(pts[pts.Length - 1]);
|
||||||
p.Stroke();
|
p.Stroke();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ───────────────────────── the detail panel ─────────────────────────
|
||||||
|
|
||||||
void BuildDetail(bool animate)
|
void BuildDetail(bool animate)
|
||||||
{
|
{
|
||||||
var ts = Ts;
|
var ts = Ts;
|
||||||
@ -277,30 +388,43 @@ namespace GrassCutter
|
|||||||
top.style.backgroundColor = Color.Lerp(TreeColors[(int)_tree], Color.white, 0.55f);
|
top.style.backgroundColor = Color.Lerp(TreeColors[(int)_tree], Color.white, 0.55f);
|
||||||
UIK.Img(AssetBank.I.Tex(d.icon), "detail-icon", top);
|
UIK.Img(AssetBank.I.Tex(d.icon), "detail-icon", top);
|
||||||
UIK.Text(d.name, "t-h1 t-dark t-center detail-title", _detail);
|
UIK.Text(d.name, "t-h1 t-dark t-center detail-title", _detail);
|
||||||
if (d.maxLevel > 1)
|
var desc = UIK.Text(d.desc, "item-desc t-center detail-desc", _detail, false);
|
||||||
{
|
|
||||||
var pips = UIK.El("item-level detail-pips", _detail);
|
|
||||||
for (int i = 0; i < d.maxLevel; i++) UIK.El(i < lvl ? "pip pip-on" : "pip", pips);
|
|
||||||
}
|
|
||||||
var desc = UIK.Text(d.desc, "item-desc t-center", _detail, false);
|
|
||||||
desc.style.whiteSpace = WhiteSpace.Normal;
|
desc.style.whiteSpace = WhiteSpace.Normal;
|
||||||
if (d.effect != null)
|
|
||||||
|
// every level: what it gives and what it costs, the bought ones ticked off and the next one picked out
|
||||||
|
if (d.maxLevel > 1 || d.effect != null)
|
||||||
{
|
{
|
||||||
var fx = UIK.El("detail-effect", _detail);
|
var ladder = UIK.El("ladder", _detail);
|
||||||
if (lvl > 0) UIK.Text(Loc.F("NOW {0}", d.EffectFor(lvl)), "t-small t-muted", fx, false);
|
for (int l = 1; l <= d.maxLevel; l++)
|
||||||
if (!maxed) UIK.Text(Loc.F("NEXT {0}", d.EffectFor(lvl + 1)), "t-body t-dark", fx, false);
|
{
|
||||||
|
bool done = l <= lvl, next = l == lvl + 1;
|
||||||
|
var row = UIK.El(done ? "ladder-row ladder-done" : next ? "ladder-row ladder-next" : "ladder-row", ladder);
|
||||||
|
UIK.Text(GameDefs.ToRoman(l), "ladder-lvl t-outline", row);
|
||||||
|
var fx = UIK.Text(d.EffectFor(l), "ladder-fx", row, false);
|
||||||
|
fx.style.whiteSpace = WhiteSpace.Normal;
|
||||||
|
if (!done) UIK.Text(UIK.Money(d.PriceFor(l - 1)), next && avail ? "ladder-price" : "ladder-price ladder-price-later", row);
|
||||||
}
|
}
|
||||||
var spacer = UIK.El(null, _detail);
|
}
|
||||||
spacer.style.flexGrow = 1;
|
|
||||||
if (maxed) UIK.Text(d.maxLevel > 1 ? Loc.T("MAXED OUT!") : Loc.T("OWNED"), "price t-green t-outline t-center", _detail);
|
// what it waits for, each one green once it is there (including perks from other trees)
|
||||||
else if (!avail)
|
if (d.requires.Length > 0 && !maxed)
|
||||||
{
|
{
|
||||||
var names = new List<string>();
|
var names = new List<string>();
|
||||||
foreach (var r in d.requires) if (ts.Level(r) < d.requireLevel) names.Add(d.requireLevel > 1 ? $"{GameDefs.Perk(r).name} {GameDefs.ToRoman(d.requireLevel)}" : GameDefs.Perk(r).name);
|
foreach (var r in d.requires)
|
||||||
var req = UIK.Text(Loc.F("Requires {0}", string.Join(" + ", names)), "t-body t-muted t-center", _detail, false);
|
{
|
||||||
req.style.whiteSpace = WhiteSpace.Normal;
|
var rd = GameDefs.Perk(r);
|
||||||
|
string n = d.requireLevel > 1 ? $"{rd.name} {GameDefs.ToRoman(d.requireLevel)}" : rd.name;
|
||||||
|
names.Add(ts.Level(r) >= d.requireLevel ? $"<color=#3E8A24>{n}</color>" : $"<color=#B0402C>{n}</color>");
|
||||||
}
|
}
|
||||||
else
|
var req = UIK.Text(Loc.F("Requires {0}", string.Join(" + ", names)), "t-body t-muted t-center detail-req", _detail, false);
|
||||||
|
req.style.whiteSpace = WhiteSpace.Normal;
|
||||||
|
req.enableRichText = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
var spacer = UIK.El(null, _detail);
|
||||||
|
spacer.style.flexGrow = 1;
|
||||||
|
if (maxed) UIK.Text(d.maxLevel > 1 ? Loc.T("MAXED OUT!") : Loc.T("OWNED"), "price t-green t-outline t-center detail-maxed", _detail);
|
||||||
|
else if (avail)
|
||||||
{
|
{
|
||||||
var b = UIK.Btn(lvl > 0 ? Loc.F("UPGRADE {0}", UIK.Money(price)) : Loc.F("UNLOCK {0}", UIK.Money(price)), () => Buy(d, UIK.CanPay(price)), "btn", _detail);
|
var b = UIK.Btn(lvl > 0 ? Loc.F("UPGRADE {0}", UIK.Money(price)) : Loc.F("UNLOCK {0}", UIK.Money(price)), () => Buy(d, UIK.CanPay(price)), "btn", _detail);
|
||||||
UIK.Costs(b, price);
|
UIK.Costs(b, price);
|
||||||
|
|||||||
63
Assets/Scripts/UI/UIRoot.Demo.cs
Normal file
63
Assets/Scripts/UI/UIRoot.Demo.cs
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.UIElements;
|
||||||
|
|
||||||
|
namespace GrassCutter
|
||||||
|
{
|
||||||
|
/// <summary>The demo's goal on screen while it's being played for, and the thank-you screen when it's reached.</summary>
|
||||||
|
public partial class UIRoot
|
||||||
|
{
|
||||||
|
Label _demoGoal;
|
||||||
|
bool _demoEndSeen;
|
||||||
|
|
||||||
|
void TickDemo()
|
||||||
|
{
|
||||||
|
if (!Demo.On) return;
|
||||||
|
if (_demoGoal == null)
|
||||||
|
{
|
||||||
|
_demoGoal = UIK.Text("", "t-small t-outline", _hud, false);
|
||||||
|
_demoGoal.pickingMode = PickingMode.Ignore;
|
||||||
|
_demoGoal.style.position = Position.Absolute;
|
||||||
|
_demoGoal.style.top = 76;
|
||||||
|
_demoGoal.style.left = 0;
|
||||||
|
_demoGoal.style.right = 0;
|
||||||
|
_demoGoal.style.unityTextAlign = TextAnchor.MiddleCenter;
|
||||||
|
}
|
||||||
|
bool show = _inGame && TeamState.Instance;
|
||||||
|
_demoGoal.style.display = show ? DisplayStyle.Flex : DisplayStyle.None;
|
||||||
|
if (!show) { _demoEndSeen = false; return; }
|
||||||
|
_demoGoal.text = Demo.Over
|
||||||
|
? Loc.T("DEMO COMPLETE · thanks for playing!")
|
||||||
|
: Loc.F("DEMO · goal: ship {0} of {1} kg of grass", Loc.Num(Mathf.Floor((float)Demo.Shipped), "0"), Loc.Num((float)Demo.GoalKg, "0"));
|
||||||
|
if (Demo.Over && !_demoEndSeen && !AnyModal && !Phone.Focused)
|
||||||
|
{
|
||||||
|
_demoEndSeen = true;
|
||||||
|
OpenDemoEnd();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>The end of the demo: thanks, the wishlist and feedback, and the choice to stay on this planet or go.</summary>
|
||||||
|
internal void OpenDemoEnd()
|
||||||
|
{
|
||||||
|
Sfx.Play("milestone", 0.8f);
|
||||||
|
OpenModal(layer =>
|
||||||
|
{
|
||||||
|
var card = UIK.El("card", layer);
|
||||||
|
card.pickingMode = PickingMode.Position;
|
||||||
|
card.style.width = 760;
|
||||||
|
card.style.alignItems = Align.Stretch;
|
||||||
|
UIK.Text(Loc.T("THANKS FOR PLAYING THE DEMO!"), "t-h1 t-dark t-center", card);
|
||||||
|
var body = UIK.Text(Loc.F("Your crew shipped {0} kg of grass and reached the end of the demo. In the full game the whole planet is yours: machines, belts, robots, far stations and up to 16 players.", Loc.Num((float)Demo.Shipped, "0")), "t-body t-dark t-center", card, false);
|
||||||
|
body.style.whiteSpace = WhiteSpace.Normal;
|
||||||
|
body.style.marginBottom = 10;
|
||||||
|
var note = UIK.Text(Loc.T("You can keep mowing here, but nothing more is for sale in the demo."), "t-small t-muted t-center", card, false);
|
||||||
|
note.style.whiteSpace = WhiteSpace.Normal;
|
||||||
|
note.style.marginBottom = 16;
|
||||||
|
UIK.Btn(Loc.T("WISHLIST THE FULL GAME"), () => SteamManager.OpenStore(), "btn btn-green", card);
|
||||||
|
UIK.Btn(Loc.T("LEAVE FEEDBACK"), () => SteamManager.OpenWeb(SteamManager.FeedbackUrl), "btn btn-blue", card);
|
||||||
|
UIK.Btn(Loc.T("KEEP MOWING"), () => CloseModal(layer), "btn btn-white", card);
|
||||||
|
UIK.Btn(Loc.T("LEAVE TO MENU"), () => { CloseModal(layer); NetSession.Instance.Leave(); }, "btn btn-red", card);
|
||||||
|
return card;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
2
Assets/Scripts/UI/UIRoot.Demo.cs.meta
Normal file
2
Assets/Scripts/UI/UIRoot.Demo.cs.meta
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9197efad190236e4ca5f8a292e7c1428
|
||||||
@ -112,6 +112,7 @@ namespace GrassCutter
|
|||||||
var b = UIK.Btn(Loc.Current.native, () => { if (!SetBusy) OpenLanguages(); }, "sel-wide", lang);
|
var b = UIK.Btn(Loc.Current.native, () => { if (!SetBusy) OpenLanguages(); }, "sel-wide", lang);
|
||||||
SetLangFont(b, Loc.Current);
|
SetLangFont(b, Loc.Current);
|
||||||
SetSlider(Loc.T("Screen shake"), Loc.T("How hard the camera shakes on bumps, hits and blasts."), 0f, 1.5f, () => GameSettings.Shake, v => GameSettings.Shake = v, UIK.Pct);
|
SetSlider(Loc.T("Screen shake"), Loc.T("How hard the camera shakes on bumps, hits and blasts."), 0f, 1.5f, () => GameSettings.Shake, v => GameSettings.Shake = v, UIK.Pct);
|
||||||
|
SetToggle(Loc.T("Head bob"), Loc.T("The view rocks a little with each step. Off keeps it still."), () => GameSettings.HeadBob, v => GameSettings.HeadBob = v);
|
||||||
SetToggle(Loc.T("Assistant tips"), Loc.T("The assistant pops up on screen when there's something new to learn."), () => GameSettings.Tips, v => GameSettings.Tips = v);
|
SetToggle(Loc.T("Assistant tips"), Loc.T("The assistant pops up on screen when there's something new to learn."), () => GameSettings.Tips, v => GameSettings.Tips = v);
|
||||||
SetToggle(Loc.T("Key hints"), Loc.T("The keys down the right side of the screen."), () => GameSettings.KeyHints, v => { GameSettings.KeyHints = v; Hud?.RefreshHints(); });
|
SetToggle(Loc.T("Key hints"), Loc.T("The keys down the right side of the screen."), () => GameSettings.KeyHints, v => { GameSettings.KeyHints = v; Hud?.RefreshHints(); });
|
||||||
if (!_inGame)
|
if (!_inGame)
|
||||||
|
|||||||
@ -36,7 +36,7 @@ namespace GrassCutter
|
|||||||
public void ToggleConsole()
|
public void ToggleConsole()
|
||||||
{
|
{
|
||||||
if (_consoleLayer != null) { CloseModal(_consoleLayer); return; }
|
if (_consoleLayer != null) { CloseModal(_consoleLayer); return; }
|
||||||
if (!_inGame) return;
|
if (!_inGame || !Cheats.Allowed) return;
|
||||||
_consoleLayer = OpenModal(layer => { Console = new CheatConsole(layer); return null; }, dim: false);
|
_consoleLayer = OpenModal(layer => { Console = new CheatConsole(layer); return null; }, dim: false);
|
||||||
UIK.SlideIn(Console.Panel, new Vector2(0f, -400f), 0f, 0.25f);
|
UIK.SlideIn(Console.Panel, new Vector2(0f, -400f), 0f, 0.25f);
|
||||||
}
|
}
|
||||||
@ -120,6 +120,7 @@ namespace GrassCutter
|
|||||||
Ctl.UIOpen = _modalStack.Count > 0 || !_inGame;
|
Ctl.UIOpen = _modalStack.Count > 0 || !_inGame;
|
||||||
if (_inGame) Ctl.SetCursor(!AnyModal && !Phone.Focused && !SteamManager.OverlayActive);
|
if (_inGame) Ctl.SetCursor(!AnyModal && !Phone.Focused && !SteamManager.OverlayActive);
|
||||||
Hud?.Tick(_inGame && !AnyModal);
|
Hud?.Tick(_inGame && !AnyModal);
|
||||||
|
TickDemo();
|
||||||
Hud?.SetTabList(_inGame && !AnyModal && Ctl.TabHeld);
|
Hud?.SetTabList(_inGame && !AnyModal && Ctl.TabHeld);
|
||||||
_spinAngle += Time.unscaledDeltaTime * 360f;
|
_spinAngle += Time.unscaledDeltaTime * 360f;
|
||||||
var sp = _connecting?.Q(className: "spinner");
|
var sp = _connecting?.Q(className: "spinner");
|
||||||
@ -152,8 +153,28 @@ namespace GrassCutter
|
|||||||
UIK.Btn(Loc.T("SETTINGS"), OpenSettings, "btn btn-white btn-wide", side),
|
UIK.Btn(Loc.T("SETTINGS"), OpenSettings, "btn btn-white btn-wide", side),
|
||||||
UIK.Btn(Loc.T("QUIT"), Quit, "btn btn-red btn-wide", side),
|
UIK.Btn(Loc.T("QUIT"), Quit, "btn btn-red btn-wide", side),
|
||||||
};
|
};
|
||||||
|
if (Demo.On)
|
||||||
|
{
|
||||||
|
// the demo says so under the logo, and the wishlist sits with the big buttons
|
||||||
|
var badge = UIK.Text(Loc.T("DEMO"), "menu-tagline t-outline", _menu);
|
||||||
|
badge.style.top = Length.Percent(63);
|
||||||
|
badge.style.fontSize = 44;
|
||||||
|
badge.style.color = new Color(1f, 0.83f, 0.25f);
|
||||||
|
var wish = UIK.Btn(Loc.T("WISHLIST THE FULL GAME"), () => SteamManager.OpenStore(), "btn btn-green btn-wide", side);
|
||||||
|
wish.PlaceBehind(buttons[buttons.Count - 1]);
|
||||||
|
buttons.Insert(buttons.Count - 1, wish);
|
||||||
|
}
|
||||||
var hint = UIK.Text(Loc.T(SteamManager.Initialized ? Loc.N("PLAY alone, on your LAN, or in a Steam lobby: invite friends with Shift+Tab.") : Loc.N("Steam not running: play alone or on your LAN.")), "t-small t-outline", side, false);
|
var hint = UIK.Text(Loc.T(SteamManager.Initialized ? Loc.N("PLAY alone, on your LAN, or in a Steam lobby: invite friends with Shift+Tab.") : Loc.N("Steam not running: play alone or on your LAN.")), "t-small t-outline", side, false);
|
||||||
hint.style.marginTop = 14;
|
hint.style.marginTop = 14;
|
||||||
|
// the language in a click (Chinese above all), the store page and where to tell us what's wrong
|
||||||
|
var links = UIK.El("menu-links", side);
|
||||||
|
links.style.flexDirection = FlexDirection.Row;
|
||||||
|
links.style.flexWrap = Wrap.Wrap;
|
||||||
|
links.style.marginTop = 18;
|
||||||
|
var langBtn = UIK.Btn(Loc.T("Language") + ": " + Loc.Current.native, OpenLanguages, "btn btn-white btn-small", links);
|
||||||
|
SetLangFont(langBtn, Loc.Current);
|
||||||
|
if (!Demo.On) UIK.Btn(Loc.T("STEAM PAGE"), () => SteamManager.OpenStore(), "btn btn-blue btn-small", links).style.marginLeft = 10;
|
||||||
|
UIK.Btn(Loc.T("FEEDBACK"), () => SteamManager.OpenWeb(SteamManager.FeedbackUrl), "btn btn-green btn-small", links).style.marginLeft = 10;
|
||||||
|
|
||||||
var footer = UIK.El("menu-footer", _menu);
|
var footer = UIK.El("menu-footer", _menu);
|
||||||
var pill = UIK.El("pill", footer);
|
var pill = UIK.El("pill", footer);
|
||||||
@ -163,8 +184,8 @@ namespace GrassCutter
|
|||||||
UIK.Text(SteamManager.MyName, "t-body", pill);
|
UIK.Text(SteamManager.MyName, "t-body", pill);
|
||||||
var dot = UIK.El("status-dot", pill);
|
var dot = UIK.El("status-dot", pill);
|
||||||
dot.style.backgroundColor = SteamManager.Initialized ? new Color(0.22f, 0.85f, 0.54f) : new Color(1f, 0.55f, 0.24f);
|
dot.style.backgroundColor = SteamManager.Initialized ? new Color(0.22f, 0.85f, 0.54f) : new Color(1f, 0.55f, 0.24f);
|
||||||
UIK.Text(SteamManager.Initialized ? $"Steam · AppID {SteamManager.AppId}" : Loc.T("Offline"), "t-small t-muted", pill, false);
|
UIK.Text(SteamManager.Initialized ? "Steam" : Loc.T("Offline"), "t-small t-muted", pill, false);
|
||||||
UIK.Text(Loc.F("v{0} · early build", NetSession.Version), "version", _menu, false);
|
UIK.Text("v" + NetSession.Version, "version", _menu, false);
|
||||||
|
|
||||||
// entrance animation + idle logo bob
|
// entrance animation + idle logo bob
|
||||||
UIK.PopIn(logo, 0.25f, 0.7f);
|
UIK.PopIn(logo, 0.25f, 0.7f);
|
||||||
|
|||||||
@ -18,12 +18,29 @@ namespace GrassCutter
|
|||||||
public static string Tag(Difficulty d) => Loc.T(d == Difficulty.Mommy ? Loc.N("EASY") : d == Difficulty.HoldMyBeer ? Loc.N("NORMAL") : Loc.N("EXTRA HARD"));
|
public static string Tag(Difficulty d) => Loc.T(d == Difficulty.Mommy ? Loc.N("EASY") : d == Difficulty.HoldMyBeer ? Loc.N("NORMAL") : Loc.N("EXTRA HARD"));
|
||||||
|
|
||||||
public static string Blurb(Difficulty d) => Loc.T(
|
public static string Blurb(Difficulty d) => Loc.T(
|
||||||
d == Difficulty.Mommy ? Loc.N("A planet a third the size, with sectors to match. Earth can wait a little.")
|
d == Difficulty.Mommy ? Loc.N("A sixth of the big planet, sectors to match. Earth can wait a little.")
|
||||||
: d == Difficulty.HoldMyBeer ? Loc.N("Half the planet, half-size sectors. Still a lot of lawn.")
|
: d == Difficulty.HoldMyBeer ? Loc.N("A third of the big planet, smaller sectors. Still a lot of lawn.")
|
||||||
: Loc.N("The whole of Herbaria-7, full-size sectors, every blade of it."));
|
: Loc.N("The big planet: the whole of Herbaria-7, every blade of it."));
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Which set of sizes a save is on. 0: the first one (radius 1, 1/2, 1/3 of the whole planet), every save from
|
||||||
|
/// before the planets shrank; they keep their ball, the pieces on it stand where they stood. 1: by area, the hard
|
||||||
|
/// one half the whole planet, normal a third of that, easy a sixth.
|
||||||
|
/// </summary>
|
||||||
|
public const int NewGen = 1;
|
||||||
|
|
||||||
/// <summary>The planet's radius against the whole one.</summary>
|
/// <summary>The planet's radius against the whole one.</summary>
|
||||||
public static float Scale(Difficulty d) => d == Difficulty.Mommy ? 1f / 3f : d == Difficulty.HoldMyBeer ? 0.5f : 1f;
|
public static float Scale(Difficulty d, int gen) => gen >= 1
|
||||||
|
? (d == Difficulty.Mommy ? 0.288675f : d == Difficulty.HoldMyBeer ? 0.408248f : 0.707107f)
|
||||||
|
: (d == Difficulty.Mommy ? 1f / 3f : d == Difficulty.HoldMyBeer ? 0.5f : 1f);
|
||||||
|
|
||||||
|
/// <summary>The size set the world is built on right now.</summary>
|
||||||
|
public static int Gen { get; private set; }
|
||||||
|
|
||||||
|
/// <summary>Difficulty and size set in one byte, for the wire.</summary>
|
||||||
|
public static byte Wire => (byte)((int)Current | (Gen << 4));
|
||||||
|
|
||||||
|
public static void ApplyWire(byte b) => Apply((Difficulty)(b & 15), b >> 4);
|
||||||
|
|
||||||
/// <summary>What the next new save starts on: set by the menu (and `-difficulty 0..2` for the dev bots).</summary>
|
/// <summary>What the next new save starts on: set by the menu (and `-difficulty 0..2` for the dev bots).</summary>
|
||||||
public static Difficulty Chosen = Difficulty.Hazard;
|
public static Difficulty Chosen = Difficulty.Hazard;
|
||||||
@ -32,12 +49,14 @@ namespace GrassCutter
|
|||||||
public static Difficulty Current { get; private set; } = Difficulty.Hazard;
|
public static Difficulty Current { get; private set; } = Difficulty.Hazard;
|
||||||
|
|
||||||
/// <summary>Builds the world on the ball for this difficulty, if it isn't on it already.</summary>
|
/// <summary>Builds the world on the ball for this difficulty, if it isn't on it already.</summary>
|
||||||
public static void Apply(Difficulty d)
|
public static void Apply(Difficulty d, int gen)
|
||||||
{
|
{
|
||||||
if (d != Difficulty.Mommy && d != Difficulty.HoldMyBeer) d = Difficulty.Hazard;
|
if (d != Difficulty.Mommy && d != Difficulty.HoldMyBeer) d = Difficulty.Hazard;
|
||||||
if (d == Current) return;
|
gen = gen >= 1 ? 1 : 0;
|
||||||
|
if (d == Current && gen == Gen) return;
|
||||||
Current = d;
|
Current = d;
|
||||||
Planet.Rescale(GameDefs.PlanetRadius * Scale(d));
|
Gen = gen;
|
||||||
|
Planet.Rescale(GameDefs.PlanetRadius * Scale(d, gen));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -95,8 +95,12 @@ namespace GrassCutter
|
|||||||
readonly List<MaterialPropertyBlock> _mpbs = new List<MaterialPropertyBlock>();
|
readonly List<MaterialPropertyBlock> _mpbs = new List<MaterialPropertyBlock>();
|
||||||
readonly List<HexGrid.Sector> _near = new List<HexGrid.Sector>();
|
readonly List<HexGrid.Sector> _near = new List<HexGrid.Sector>();
|
||||||
readonly List<HexGrid.Sector> _worked = new List<HexGrid.Sector>();
|
readonly List<HexGrid.Sector> _worked = new List<HexGrid.Sector>();
|
||||||
|
float[] _workedKey = new float[256];
|
||||||
|
HexGrid.Sector[] _workedBy = new HexGrid.Sector[256];
|
||||||
readonly Plane[] _frustum = new Plane[6];
|
readonly Plane[] _frustum = new Plane[6];
|
||||||
int _mpbUsed, _here = -1;
|
int _mpbUsed, _here = -1;
|
||||||
|
/// <summary>Grass draws issued last frame (for -demogpu).</summary>
|
||||||
|
public int Draws { get; private set; }
|
||||||
int _deckHash;
|
int _deckHash;
|
||||||
|
|
||||||
/// <summary>The grass's blocks were cleared (the ball changed size): the deck goes back in next frame.</summary>
|
/// <summary>The grass's blocks were cleared (the ball changed size): the deck goes back in next frame.</summary>
|
||||||
@ -119,6 +123,86 @@ namespace GrassCutter
|
|||||||
void OnDestroy()
|
void OnDestroy()
|
||||||
{
|
{
|
||||||
if (_furTex) Destroy(_furTex);
|
if (_furTex) Destroy(_furTex);
|
||||||
|
foreach (var b in _batches) b.buffer?.Release();
|
||||||
|
if (_furBatchMat) Destroy(_furBatchMat);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ───────────────────────── batches ─────────────────────────
|
||||||
|
|
||||||
|
/// <summary>One sector's frame as the fur shader reads it from <c>_GcSectorBuf</c> (GC_SECTOR_BUFFER).</summary>
|
||||||
|
[System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential)]
|
||||||
|
struct SectorData { public Vector4 c, e1, e2, salt, grid, b0, b1, b2, b3, b4, b5; }
|
||||||
|
|
||||||
|
/// <summary>The sectors of one pile and one shared mow map look, drawn together at the end of the frame.</summary>
|
||||||
|
sealed class Batch
|
||||||
|
{
|
||||||
|
public Pile pile;
|
||||||
|
public bool onlyWorked;
|
||||||
|
public Texture2D mask;
|
||||||
|
public readonly List<SectorData> items = new List<SectorData>();
|
||||||
|
public Bounds bounds;
|
||||||
|
public GraphicsBuffer buffer;
|
||||||
|
public readonly MaterialPropertyBlock mpb = new MaterialPropertyBlock();
|
||||||
|
}
|
||||||
|
|
||||||
|
static readonly int SectorBufId = Shader.PropertyToID("_GcSectorBuf");
|
||||||
|
readonly List<Batch> _batches = new List<Batch>();
|
||||||
|
Material _furBatchMat;
|
||||||
|
|
||||||
|
bool Batched(Pile p, HexGrid.Sector s, Texture2D mask, bool onlyWorked)
|
||||||
|
{
|
||||||
|
if (mask != MowMap.Blank && mask != MowMap.Full) return false;
|
||||||
|
if (!_furBatchMat && furMat)
|
||||||
|
{
|
||||||
|
_furBatchMat = new Material(furMat) { name = furMat.name + " (batched)" };
|
||||||
|
_furBatchMat.EnableKeyword("GC_SECTOR_BUFFER");
|
||||||
|
}
|
||||||
|
if (!_furBatchMat) return false;
|
||||||
|
Batch b = null;
|
||||||
|
foreach (var x in _batches)
|
||||||
|
if (x.mask == mask && x.onlyWorked == onlyWorked && x.pile.shells == p.shells && x.pile.inner == p.inner && x.pile.outer == p.outer && x.pile.fadeA == p.fadeA && x.pile.fadeB == p.fadeB) { b = x; break; }
|
||||||
|
if (b == null) { b = new Batch { pile = p, onlyWorked = onlyWorked, mask = mask }; _batches.Add(b); }
|
||||||
|
if (b.items.Count == 0) b.bounds = s.bounds; else b.bounds.Encapsulate(s.bounds);
|
||||||
|
bool floor = p.shells == 1;
|
||||||
|
var bs = s.borders;
|
||||||
|
b.items.Add(new SectorData
|
||||||
|
{
|
||||||
|
c = s.c, e1 = s.e1, e2 = s.e2, salt = s.salt,
|
||||||
|
grid = new Vector4(s.half, s.half * 2f / ((floor ? FloorSide : GridSide) - 1), 0f, 0f),
|
||||||
|
b0 = bs[0], b1 = bs[1], b2 = bs[2], b3 = bs[3], b4 = bs[4], b5 = bs[5],
|
||||||
|
});
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DrawBatches()
|
||||||
|
{
|
||||||
|
foreach (var b in _batches)
|
||||||
|
{
|
||||||
|
int n = b.items.Count;
|
||||||
|
if (n == 0) continue;
|
||||||
|
if (b.buffer == null || b.buffer.count < n)
|
||||||
|
{
|
||||||
|
b.buffer?.Release();
|
||||||
|
b.buffer = new GraphicsBuffer(GraphicsBuffer.Target.Structured, Mathf.NextPowerOfTwo(Mathf.Max(64, n)), System.Runtime.InteropServices.Marshal.SizeOf<SectorData>());
|
||||||
|
}
|
||||||
|
b.buffer.SetData(b.items);
|
||||||
|
var p = b.pile;
|
||||||
|
b.mpb.SetBuffer(SectorBufId, b.buffer);
|
||||||
|
b.mpb.SetTexture(MaskTexId, b.mask);
|
||||||
|
b.mpb.SetVector(ShellsId, new Vector4(p.shells, b.onlyWorked ? 0f : p.inner, b.onlyWorked ? 1e6f : p.outer, SeamBand));
|
||||||
|
b.mpb.SetVector(FadeId, new Vector4(p.fadeA, b.onlyWorked ? 1e6f : p.fadeB, b.onlyWorked ? 1f : 0f, 0f));
|
||||||
|
var rp = new RenderParams(_furBatchMat)
|
||||||
|
{
|
||||||
|
worldBounds = b.bounds,
|
||||||
|
matProps = b.mpb,
|
||||||
|
shadowCastingMode = ShadowCastingMode.Off,
|
||||||
|
receiveShadows = true,
|
||||||
|
layer = 0,
|
||||||
|
};
|
||||||
|
Graphics.RenderMeshPrimitives(rp, p.shells == 1 ? _floorGrid : _grid, 0, p.shells * n);
|
||||||
|
_drawn++;
|
||||||
|
b.items.Clear();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Meadow height in metres.</summary>
|
/// <summary>Meadow height in metres.</summary>
|
||||||
@ -177,6 +261,7 @@ namespace GrassCutter
|
|||||||
int here = HexGrid.SectorAt(dir);
|
int here = HexGrid.SectorAt(dir);
|
||||||
if (here != _here || _gatheredReach != FurReach) { _here = here; _gatheredReach = FurReach; GatherNear(here); }
|
if (here != _here || _gatheredReach != FurReach) { _here = here; _gatheredReach = FurReach; GatherNear(here); }
|
||||||
_mpbUsed = 0;
|
_mpbUsed = 0;
|
||||||
|
_drawn = 0;
|
||||||
PublishFurAxes(dir);
|
PublishFurAxes(dir);
|
||||||
GeometryUtility.CalculateFrustumPlanes(cam, _frustum);
|
GeometryUtility.CalculateFrustumPlanes(cam, _frustum);
|
||||||
|
|
||||||
@ -186,7 +271,15 @@ namespace GrassCutter
|
|||||||
if (!GeometryUtility.TestPlanesAABB(_frustum, s.bounds)) continue;
|
if (!GeometryUtility.TestPlanesAABB(_frustum, s.bounds)) continue;
|
||||||
float arc = (s.c - dir).magnitude * Planet.Radius;
|
float arc = (s.c - dir).magnitude * Planet.Radius;
|
||||||
float reachable = Mathf.Max(arc - s.radius, alt);
|
float reachable = Mathf.Max(arc - s.radius, alt);
|
||||||
var mask = MowMap.TextureFor(s);
|
var mask = MowMap.TextureFor(s, arc - s.radius < 45f);
|
||||||
|
if (!mask) continue;
|
||||||
|
// mown to the last blade: only the floor shows (the pile's shells and every plant are cut away in the
|
||||||
|
// shader anyway), one draw instead of up to six. Near the base that is most of what is in view.
|
||||||
|
if (mask == MowMap.Full && mask)
|
||||||
|
{
|
||||||
|
if (furMat) DrawPile(FurFloor, s, mask, true);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (furMat)
|
if (furMat)
|
||||||
{
|
{
|
||||||
var far = FurFar;
|
var far = FurFar;
|
||||||
@ -213,16 +306,24 @@ namespace GrassCutter
|
|||||||
}
|
}
|
||||||
if (furMat)
|
if (furMat)
|
||||||
foreach (var s in _worked)
|
foreach (var s in _worked)
|
||||||
if (GeometryUtility.TestPlanesAABB(_frustum, s.bounds)) DrawPile(FurFloor, s, MowMap.TextureFor(s), true);
|
if (GeometryUtility.TestPlanesAABB(_frustum, s.bounds) && MowMap.TextureFor(s, false) is Texture2D worked && worked) DrawPile(FurFloor, s, worked, true);
|
||||||
|
DrawBatches();
|
||||||
|
Draws = _mpbUsed + _drawn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int _drawn;
|
||||||
|
|
||||||
|
readonly HashSet<int> _seen = new HashSet<int>();
|
||||||
|
|
||||||
/// <summary>Every sector the rings can reach from here, the one underfoot first, and the worked ones further out.</summary>
|
/// <summary>Every sector the rings can reach from here, the one underfoot first, and the worked ones further out.</summary>
|
||||||
void GatherNear(int here)
|
void GatherNear(int here)
|
||||||
{
|
{
|
||||||
_near.Clear();
|
_near.Clear();
|
||||||
var from = HexGrid.Get(here);
|
var from = HexGrid.Get(here);
|
||||||
_near.Add(from);
|
_near.Add(from);
|
||||||
var seen = new HashSet<int> { here };
|
var seen = _seen;
|
||||||
|
seen.Clear();
|
||||||
|
seen.Add(here);
|
||||||
float reach = Mathf.Max(Hemp.fadeB, FurFar.outer) + 40f;
|
float reach = Mathf.Max(Hemp.fadeB, FurFar.outer) + 40f;
|
||||||
for (int i = 0; i < _near.Count; i++)
|
for (int i = 0; i < _near.Count; i++)
|
||||||
foreach (int n in _near[i].neighbours)
|
foreach (int n in _near[i].neighbours)
|
||||||
@ -233,13 +334,27 @@ namespace GrassCutter
|
|||||||
}
|
}
|
||||||
MowMap.Trim(from.c);
|
MowMap.Trim(from.c);
|
||||||
_worked.Clear();
|
_worked.Clear();
|
||||||
|
// a well-worked planet has thousands of these: they are sorted by a plain number, not by a comparison that
|
||||||
|
// works out two distances every time (that took 4 ms at every step into a new sector)
|
||||||
|
float far = OverlayReach / Planet.Radius;
|
||||||
|
far *= far;
|
||||||
|
int count = 0;
|
||||||
foreach (var m in MowMap.All)
|
foreach (var m in MowMap.All)
|
||||||
if (m.keep && !seen.Contains(m.s.id) && (m.s.c - from.c).magnitude * Planet.Radius < OverlayReach) _worked.Add(m.s);
|
|
||||||
if (_worked.Count > OverlayMax)
|
|
||||||
{
|
{
|
||||||
_worked.Sort((a, b) => (a.c - from.c).sqrMagnitude.CompareTo((b.c - from.c).sqrMagnitude));
|
if (!m.keep || seen.Contains(m.s.id)) continue;
|
||||||
_worked.RemoveRange(OverlayMax, _worked.Count - OverlayMax);
|
float d = (m.s.c - from.c).sqrMagnitude;
|
||||||
|
if (d >= far) continue;
|
||||||
|
if (count == _workedKey.Length)
|
||||||
|
{
|
||||||
|
System.Array.Resize(ref _workedKey, count * 2);
|
||||||
|
System.Array.Resize(ref _workedBy, count * 2);
|
||||||
}
|
}
|
||||||
|
_workedKey[count] = d;
|
||||||
|
_workedBy[count++] = m.s;
|
||||||
|
}
|
||||||
|
if (count > OverlayMax) System.Array.Sort(_workedKey, _workedBy, 0, count);
|
||||||
|
for (int i = 0; i < count && i < OverlayMax; i++) _worked.Add(_workedBy[i]);
|
||||||
|
System.Array.Clear(_workedBy, 0, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Flat(HexGrid.Sector s, Vector3 dir, out float u, out float v) => MowMap.Flat(s, dir, out u, out v);
|
static void Flat(HexGrid.Sector s, Vector3 dir, out float u, out float v) => MowMap.Flat(s, dir, out u, out v);
|
||||||
@ -276,6 +391,7 @@ namespace GrassCutter
|
|||||||
/// <summary>The pile over a whole sector. onlyWorked: past the grass, just the floor where something was cut.</summary>
|
/// <summary>The pile over a whole sector. onlyWorked: past the grass, just the floor where something was cut.</summary>
|
||||||
void DrawPile(Pile p, HexGrid.Sector s, Texture2D mask, bool onlyWorked)
|
void DrawPile(Pile p, HexGrid.Sector s, Texture2D mask, bool onlyWorked)
|
||||||
{
|
{
|
||||||
|
if (Batched(p, s, mask, onlyWorked)) return;
|
||||||
var mpb = NextMpb();
|
var mpb = NextMpb();
|
||||||
SetSector(mpb, s, mask);
|
SetSector(mpb, s, mask);
|
||||||
bool floor = p.shells == 1;
|
bool floor = p.shells == 1;
|
||||||
|
|||||||
@ -18,8 +18,10 @@ namespace GrassCutter
|
|||||||
public const int Res = 128;
|
public const int Res = 128;
|
||||||
/// <summary>The last scraps of a sector this nearly done go with the stroke that got it there.</summary>
|
/// <summary>The last scraps of a sector this nearly done go with the stroke that got it there.</summary>
|
||||||
// the last few scraps (behind rocks, along the seams) go by themselves: no hunting for the final percent
|
// the last few scraps (behind rocks, along the seams) go by themselves: no hunting for the final percent
|
||||||
const float DoneAt = 0.97f;
|
const float DoneAt = 0.93f;
|
||||||
const int MaxStampsPerCut = 28, MaxOpen = 300;
|
const int MaxStampsPerCut = 28, MaxOpen = 300;
|
||||||
|
/// <summary>Trim waits for this many more open maps than it keeps, so it runs now and then, not at every sector.</summary>
|
||||||
|
const int TrimSlack = 80;
|
||||||
/// <summary>Less than this left in a cell is not worth a row of its own.</summary>
|
/// <summary>Less than this left in a cell is not worth a row of its own.</summary>
|
||||||
const ushort Scrap = 120;
|
const ushort Scrap = 120;
|
||||||
const float MinPaintRadius = 0.15f;
|
const float MinPaintRadius = 0.15f;
|
||||||
@ -32,6 +34,8 @@ namespace GrassCutter
|
|||||||
public ushort[] left; // 65535 = untouched, null while packed
|
public ushort[] left; // 65535 = untouched, null while packed
|
||||||
public byte[] rg; // r, g per cell
|
public byte[] rg; // r, g per cell
|
||||||
public byte[] packed;
|
public byte[] packed;
|
||||||
|
/// <summary>Its bytes, unsqueezed, while a worker packs them (null otherwise).</summary>
|
||||||
|
public byte[] raw;
|
||||||
public float total, mown; // square metres
|
public float total, mown; // square metres
|
||||||
public bool done;
|
public bool done;
|
||||||
public bool paid; // the host has paid out for it
|
public bool paid; // the host has paid out for it
|
||||||
@ -60,6 +64,8 @@ namespace GrassCutter
|
|||||||
public static IEnumerable<Mask> All => s_masks.Values;
|
public static IEnumerable<Mask> All => s_masks.Values;
|
||||||
/// <summary>The map of a sector with nothing on it.</summary>
|
/// <summary>The map of a sector with nothing on it.</summary>
|
||||||
public static Texture2D Blank => s_none;
|
public static Texture2D Blank => s_none;
|
||||||
|
/// <summary>The look of a sector mown to the last blade (with no rock in it): nothing is left standing on it.</summary>
|
||||||
|
public static Texture2D Full => s_full;
|
||||||
public static int Started { get; private set; }
|
public static int Started { get; private set; }
|
||||||
public static int Finished { get; private set; }
|
public static int Finished { get; private set; }
|
||||||
|
|
||||||
@ -125,7 +131,9 @@ namespace GrassCutter
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Apply(Mask m, Bare b)
|
/// <param name="fresh">The map was just made: a cell is the sector's exactly when it still has grass.</param>
|
||||||
|
/// <param name="look">Only the look: the counts came from a packed copy that already has the rock in it.</param>
|
||||||
|
static void Apply(Mask m, Bare b, bool fresh = false, bool look = false)
|
||||||
{
|
{
|
||||||
var s = m.s;
|
var s = m.s;
|
||||||
// only the cells the block can reach: a base is hundreds of tiles, and a sector 16k cells, so looking at all of
|
// only the cells the block can reach: a base is hundreds of tiles, and a sector 16k cells, so looking at all of
|
||||||
@ -134,25 +142,42 @@ namespace GrassCutter
|
|||||||
float reach = (b.round ? b.radius : b.half.magnitude) * 1.5f + m.cell * 2f;
|
float reach = (b.round ? b.radius : b.half.magnitude) * 1.5f + m.cell * 2f;
|
||||||
int x0 = Mathf.Max(0, Mathf.FloorToInt((bu - reach + s.half) / m.cell)), x1 = Mathf.Min(Res - 1, Mathf.CeilToInt((bu + reach + s.half) / m.cell));
|
int x0 = Mathf.Max(0, Mathf.FloorToInt((bu - reach + s.half) / m.cell)), x1 = Mathf.Min(Res - 1, Mathf.CeilToInt((bu + reach + s.half) / m.cell));
|
||||||
int z0 = Mathf.Max(0, Mathf.FloorToInt((bv - reach + s.half) / m.cell)), z1 = Mathf.Min(Res - 1, Mathf.CeilToInt((bv + reach + s.half) / m.cell));
|
int z0 = Mathf.Max(0, Mathf.FloorToInt((bv - reach + s.half) / m.cell)), z1 = Mathf.Min(Res - 1, Mathf.CeilToInt((bv + reach + s.half) / m.cell));
|
||||||
|
// plain numbers, not vectors: a big rock covers thousands of cells, and a fresh sector may have a dozen of them
|
||||||
|
float rr = Planet.Radius * Planet.Radius, r2 = b.radius * b.radius;
|
||||||
|
var c = s.c * Planet.Radius;
|
||||||
|
var e1 = s.e1;
|
||||||
|
var e2 = s.e2;
|
||||||
|
var pc = Planet.Center;
|
||||||
for (int z = z0; z <= z1; z++)
|
for (int z = z0; z <= z1; z++)
|
||||||
|
{
|
||||||
|
float v = Cell(m, z);
|
||||||
|
float rx = c.x + e2.x * v, ry = c.y + e2.y * v, rz = c.z + e2.z * v;
|
||||||
for (int x = x0; x <= x1; x++)
|
for (int x = x0; x <= x1; x++)
|
||||||
{
|
{
|
||||||
int i = z * Res + x;
|
int i = z * Res + x;
|
||||||
if (m.rg[i * 2 + 1] != 0) continue;
|
if (m.rg[i * 2 + 1] != 0) continue;
|
||||||
var flat = s.c * Planet.Radius + s.e1 * Cell(m, x) + s.e2 * Cell(m, z);
|
float u = Cell(m, x);
|
||||||
var p = Planet.Center + flat;
|
float fx = rx + e1.x * u, fy = ry + e1.y * u, fz = rz + e1.z * u;
|
||||||
|
bool hit;
|
||||||
|
if (b.round)
|
||||||
|
{
|
||||||
// a rock is measured along the ground: the frame is flat, the soil isn't
|
// a rock is measured along the ground: the frame is flat, the soil isn't
|
||||||
bool hit = b.round
|
float inv = 1f / Mathf.Sqrt(fx * fx + fy * fy + fz * fz);
|
||||||
? (flat.normalized - b.dir).sqrMagnitude * Planet.Radius * Planet.Radius < b.radius * b.radius
|
float dx = fx * inv - b.dir.x, dy = fy * inv - b.dir.y, dz = fz * inv - b.dir.z;
|
||||||
: Mathf.Abs(p.x - b.center.x) < b.half.x && Mathf.Abs(p.z - b.center.z) < b.half.y;
|
hit = (dx * dx + dy * dy + dz * dz) * rr < r2;
|
||||||
|
}
|
||||||
|
else hit = Mathf.Abs(pc.x + fx - b.center.x) < b.half.x && Mathf.Abs(pc.z + fz - b.center.z) < b.half.y;
|
||||||
if (!hit) continue;
|
if (!hit) continue;
|
||||||
m.rg[i * 2 + 1] = 255;
|
m.rg[i * 2 + 1] = 255;
|
||||||
|
m.show = true;
|
||||||
|
if (look) continue;
|
||||||
// nobody can cut what stands under a rock: it isn't part of the sector's grass
|
// nobody can cut what stands under a rock: it isn't part of the sector's grass
|
||||||
if (Owned(s, x, z, m)) m.total = Mathf.Max(0f, m.total - m.area);
|
if (fresh ? m.left[i] != 0 : Owned(s, x, z, m)) m.total = Mathf.Max(0f, m.total - m.area);
|
||||||
m.left[i] = 0;
|
m.left[i] = 0;
|
||||||
m.show = true;
|
m.show = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static float Cell(Mask m, int i) => (i + 0.5f) * m.cell - m.s.half;
|
static float Cell(Mask m, int i) => (i + 0.5f) * m.cell - m.s.half;
|
||||||
|
|
||||||
@ -189,9 +214,36 @@ namespace GrassCutter
|
|||||||
m.left = new ushort[Res * Res];
|
m.left = new ushort[Res * Res];
|
||||||
m.rg = new byte[Res * Res * 2];
|
m.rg = new byte[Res * Res * 2];
|
||||||
int owned = 0;
|
int owned = 0;
|
||||||
|
var s = m.s;
|
||||||
|
var c = s.c * Planet.Radius;
|
||||||
|
// the sector is a convex patch of the flat frame, so each row of it is one run of cells: the borders give its
|
||||||
|
// ends, and only the cells at the ends are tested one by one (testing all 16k of them stalled the frame)
|
||||||
for (int z = 0; z < Res; z++)
|
for (int z = 0; z < Res; z++)
|
||||||
for (int x = 0; x < Res; x++)
|
{
|
||||||
if (Owned(m.s, x, z, m)) { m.left[z * Res + x] = 65535; owned++; }
|
var row = c + s.e2 * Cell(m, z);
|
||||||
|
float lo = float.NegativeInfinity, hi = float.PositiveInfinity;
|
||||||
|
bool none = false;
|
||||||
|
foreach (var b in s.borders)
|
||||||
|
{
|
||||||
|
float a = Vector3.Dot(row, b), k = Vector3.Dot(s.e1, b);
|
||||||
|
if (Mathf.Abs(k) < 1e-6f) { if (a > 0f) none = true; continue; }
|
||||||
|
if (k > 0f) hi = Mathf.Min(hi, -a / k);
|
||||||
|
else lo = Mathf.Max(lo, -a / k);
|
||||||
|
}
|
||||||
|
if (none) continue;
|
||||||
|
int xa = Mathf.CeilToInt(Mathf.Clamp((lo + s.half) / m.cell - 0.5f, -1f, Res));
|
||||||
|
int xb = Mathf.FloorToInt(Mathf.Clamp((hi + s.half) / m.cell - 0.5f, -1f, Res));
|
||||||
|
xa = Mathf.Clamp(xa, 0, Res - 1);
|
||||||
|
xb = Mathf.Clamp(xb, 0, Res - 1);
|
||||||
|
if (xa > xb) continue;
|
||||||
|
while (xa <= xb && !Owned(s, xa, z, m)) xa++;
|
||||||
|
while (xb >= xa && !Owned(s, xb, z, m)) xb--;
|
||||||
|
if (xa > xb) continue;
|
||||||
|
while (xa > 0 && Owned(s, xa - 1, z, m)) xa--;
|
||||||
|
while (xb < Res - 1 && Owned(s, xb + 1, z, m)) xb++;
|
||||||
|
for (int x = xa; x <= xb; x++) m.left[z * Res + x] = 65535;
|
||||||
|
owned += xb - xa + 1;
|
||||||
|
}
|
||||||
float total = owned * m.area;
|
float total = owned * m.area;
|
||||||
if (m.total <= 0f) m.total = total;
|
if (m.total <= 0f) m.total = total;
|
||||||
m.show = true;
|
m.show = true;
|
||||||
@ -199,19 +251,44 @@ namespace GrassCutter
|
|||||||
{
|
{
|
||||||
float kept = m.total;
|
float kept = m.total;
|
||||||
m.total = total;
|
m.total = total;
|
||||||
foreach (var b in list) Apply(m, b);
|
foreach (var b in list) Apply(m, b, true);
|
||||||
if (m.packed != null) m.total = kept;
|
if (m.packed != null) m.total = kept;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Unpack(Mask m)
|
/// <summary>Just the look of a packed sector, for its texture: the grass counts stay packed.</summary>
|
||||||
|
static void Look(Mask m)
|
||||||
{
|
{
|
||||||
Fresh(m);
|
var raw = m.raw;
|
||||||
if (m.packed == null) return;
|
if (raw == null && m.packed != null) raw = Inflate(m.packed, s_inflate);
|
||||||
var raw = Inflate(m.packed);
|
if (raw == null) { Unpack(m); return; }
|
||||||
System.Buffer.BlockCopy(raw, 0, m.left, 0, Res * Res * 2);
|
m.rg = new byte[Res * Res * 2];
|
||||||
for (int i = 0; i < Res * Res; i++) m.rg[i * 2] = raw[Res * Res * 2 + i];
|
for (int i = 0; i < Res * Res; i++) m.rg[i * 2] = raw[Res * Res * 2 + i];
|
||||||
m.show = true;
|
m.show = true;
|
||||||
|
MarkBare(m);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>The packed copy keeps the grass, not where nothing grows: the blocks mark that again on a new look.</summary>
|
||||||
|
static void MarkBare(Mask m)
|
||||||
|
{
|
||||||
|
if (!s_blocks.TryGetValue(m.s.id, out var list)) return;
|
||||||
|
foreach (var b in list) Apply(m, b, false, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void Unpack(Mask m)
|
||||||
|
{
|
||||||
|
// bytes being squeezed right now, or squeezed ones: no fresh start needed, they say everything
|
||||||
|
var raw = m.raw;
|
||||||
|
if (raw == null && m.packed != null) raw = Inflate(m.packed, s_inflate);
|
||||||
|
if (raw == null) { Fresh(m); return; }
|
||||||
|
m.left = new ushort[Res * Res];
|
||||||
|
bool had = m.rg != null && m.tex;
|
||||||
|
bool fresh = m.rg == null;
|
||||||
|
if (fresh) m.rg = new byte[Res * Res * 2];
|
||||||
|
System.Buffer.BlockCopy(raw, 0, m.left, 0, Res * Res * 2);
|
||||||
|
for (int i = 0; i < Res * Res; i++) m.rg[i * 2] = raw[Res * Res * 2 + i];
|
||||||
|
if (fresh) MarkBare(m);
|
||||||
|
if (!had) m.show = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Pack(Mask m)
|
static void Pack(Mask m)
|
||||||
@ -245,11 +322,42 @@ namespace GrassCutter
|
|||||||
{
|
{
|
||||||
while (s_packed.TryDequeue(out var p))
|
while (s_packed.TryDequeue(out var p))
|
||||||
if (p.m.packed == null && !p.m.dirty && p.m.left != null) p.m.packed = p.packed;
|
if (p.m.packed == null && !p.m.dirty && p.m.left != null) p.m.packed = p.packed;
|
||||||
|
while (s_squeezed.TryDequeue(out var q))
|
||||||
|
{
|
||||||
|
// the bytes it squeezed are still the sector's: they become its packed copy
|
||||||
|
if (!ReferenceEquals(q.m.raw, q.raw)) continue;
|
||||||
|
q.m.raw = null;
|
||||||
|
if (q.m.packed == null && !q.m.dirty) q.m.packed = q.packed;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static byte[] Inflate(byte[] packed)
|
sealed class Squeeze { public Mask m; public byte[] raw, packed; }
|
||||||
|
static readonly System.Collections.Concurrent.ConcurrentQueue<Squeeze> s_squeezed = new System.Collections.Concurrent.ConcurrentQueue<Squeeze>();
|
||||||
|
|
||||||
|
/// <summary>Puts a sector's map away: its bytes go to a worker to be squeezed, the mask lets go of its grass counts.</summary>
|
||||||
|
static void PutAway(Mask m)
|
||||||
{
|
{
|
||||||
var raw = new byte[Res * Res * 3];
|
if (m.dirty || (m.keep && m.packed == null && m.raw == null))
|
||||||
|
{
|
||||||
|
var job = new Squeeze { m = m, raw = Raw(m) };
|
||||||
|
m.raw = job.raw;
|
||||||
|
m.packed = null;
|
||||||
|
m.dirty = false;
|
||||||
|
System.Threading.Tasks.Task.Run(() =>
|
||||||
|
{
|
||||||
|
job.packed = Deflate(job.raw);
|
||||||
|
s_squeezed.Enqueue(job);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
m.left = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>The main thread's inflate buffer: what it holds is copied out at once.</summary>
|
||||||
|
static readonly byte[] s_inflate = new byte[Res * Res * 3];
|
||||||
|
|
||||||
|
static byte[] Inflate(byte[] packed, byte[] into = null)
|
||||||
|
{
|
||||||
|
var raw = into ?? new byte[Res * Res * 3];
|
||||||
using (var z = new DeflateStream(new MemoryStream(packed), CompressionMode.Decompress))
|
using (var z = new DeflateStream(new MemoryStream(packed), CompressionMode.Decompress))
|
||||||
{
|
{
|
||||||
int at = 0, n;
|
int at = 0, n;
|
||||||
@ -258,24 +366,22 @@ namespace GrassCutter
|
|||||||
return raw;
|
return raw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static readonly List<Mask> s_trim = new List<Mask>();
|
||||||
|
|
||||||
/// <summary>Too many maps in memory: squeeze the ones furthest from here.</summary>
|
/// <summary>Too many maps in memory: squeeze the ones furthest from here.</summary>
|
||||||
public static void Trim(Vector3 dir)
|
public static void Trim(Vector3 dir)
|
||||||
{
|
{
|
||||||
TakePacked();
|
TakePacked();
|
||||||
int open = 0;
|
int open = 0;
|
||||||
foreach (var m in s_masks.Values) if (m.left != null) open++;
|
foreach (var m in s_masks.Values) if (m.left != null) open++;
|
||||||
if (open <= MaxOpen) return;
|
if (open <= MaxOpen + TrimSlack) return;
|
||||||
var list = new List<Mask>();
|
s_trim.Clear();
|
||||||
foreach (var m in s_masks.Values) if (m.left != null) list.Add(m);
|
foreach (var m in s_masks.Values) if (m.left != null) s_trim.Add(m);
|
||||||
list.Sort((a, b) => (b.s.c - dir).sqrMagnitude.CompareTo((a.s.c - dir).sqrMagnitude));
|
s_trim.Sort((a, b) => (b.s.c - dir).sqrMagnitude.CompareTo((a.s.c - dir).sqrMagnitude));
|
||||||
for (int i = 0; i < open - MaxOpen; i++)
|
|
||||||
{
|
|
||||||
var m = list[i];
|
|
||||||
if (m.dirty || (m.keep && m.packed == null)) Pack(m);
|
|
||||||
// only the grass counts go: the look (and its texture) stays, because the overlay of worked ground still
|
// only the grass counts go: the look (and its texture) stays, because the overlay of worked ground still
|
||||||
// draws these sectors, and taking it away had every one of them unpacked again the very next frame
|
// draws these sectors, and taking it away had every one of them unpacked again the very next frame
|
||||||
m.left = null;
|
for (int i = 0; i < open - MaxOpen; i++) PutAway(s_trim[i]);
|
||||||
}
|
s_trim.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
// ───────────────────────── cutting ─────────────────────────
|
// ───────────────────────── cutting ─────────────────────────
|
||||||
@ -534,6 +640,7 @@ namespace GrassCutter
|
|||||||
m.mown = m.total;
|
m.mown = m.total;
|
||||||
m.left = null;
|
m.left = null;
|
||||||
m.packed = null;
|
m.packed = null;
|
||||||
|
m.raw = null;
|
||||||
if (s_blocks.ContainsKey(m.s.id) && m.rg != null)
|
if (s_blocks.ContainsKey(m.s.id) && m.rg != null)
|
||||||
{
|
{
|
||||||
// the rock keeps its bare patch
|
// the rock keeps its bare patch
|
||||||
@ -610,6 +717,28 @@ namespace GrassCutter
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>The map as the shaders read it (the blank one for an untouched sector with nothing in the way).</summary>
|
/// <summary>The map as the shaders read it (the blank one for an untouched sector with nothing in the way).</summary>
|
||||||
|
static int s_texFrame, s_texMade;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The map as the shaders read it. A sector coming into view far off may wait a frame or two for its texture
|
||||||
|
/// (null), so that a drive across fresh meadow doesn't unpack and upload dozens in one frame; urgent ones (near the
|
||||||
|
/// eye) always get theirs.
|
||||||
|
/// </summary>
|
||||||
|
public static Texture2D TextureFor(HexGrid.Sector s, bool urgent)
|
||||||
|
{
|
||||||
|
if (!urgent)
|
||||||
|
{
|
||||||
|
var had = Find(s.id);
|
||||||
|
if (had != null && !had.tex && !(had.done && had.rg == null))
|
||||||
|
{
|
||||||
|
if (s_texFrame != Time.frameCount) { s_texFrame = Time.frameCount; s_texMade = 0; }
|
||||||
|
if (s_texMade >= 4) return null;
|
||||||
|
s_texMade++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return TextureFor(s);
|
||||||
|
}
|
||||||
|
|
||||||
public static Texture2D TextureFor(HexGrid.Sector s)
|
public static Texture2D TextureFor(HexGrid.Sector s)
|
||||||
{
|
{
|
||||||
if (!s_none) s_none = Single(new Color32(0, 0, 0, 255));
|
if (!s_none) s_none = Single(new Color32(0, 0, 0, 255));
|
||||||
@ -628,7 +757,8 @@ namespace GrassCutter
|
|||||||
m.left = null;
|
m.left = null;
|
||||||
m.show = true;
|
m.show = true;
|
||||||
}
|
}
|
||||||
if (m.rg == null) Unpack(m);
|
// the eye only needs the look: the grass counts stay packed (an open map counts against the ones kept open)
|
||||||
|
if (m.rg == null) Look(m);
|
||||||
if (!m.tex)
|
if (!m.tex)
|
||||||
{
|
{
|
||||||
// the mips are the soft edge of a cut: the grass beside it reads them to stand lower
|
// the mips are the soft edge of a cut: the grass beside it reads them to stand lower
|
||||||
@ -691,6 +821,11 @@ namespace GrassCutter
|
|||||||
rows.Add((m.s.id, m.total, m.mown, false, null, job));
|
rows.Add((m.s.id, m.total, m.mown, false, null, job));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (!m.done && m.packed == null && m.raw != null)
|
||||||
|
{
|
||||||
|
rows.Add((m.s.id, m.total, m.mown, false, null, new Packing { m = m, raw = m.raw }));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
rows.Add((m.s.id, m.total, m.mown, m.done, m.done ? null : m.packed, null));
|
rows.Add((m.s.id, m.total, m.mown, m.done, m.done ? null : m.packed, null));
|
||||||
}
|
}
|
||||||
return () =>
|
return () =>
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user