Compare commits

..

2 Commits

Author SHA1 Message Date
6b2a9931b9 Upgrade matrix you can read at a glance
- Each tree sits centred under the Earth Uplink; links run square between
  rows and down the gaps between columns, never through a node or a name
- Clear node states: gold is done, a green ring is buyable now, green tint
  is started, grey is not open yet; the selected node has a blue ring
- Every node shows the price of its next level and pips for its levels
- The detail panel lists every level with what it gives and what it costs;
  requirements turn green as they are met
- Tabs show how much of each tree is bought
- -demoshop [slot] shoots every tab

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 13:08:46 +06:00
172c3b978d Smoother drives across the meadow: no more hitches opening sectors
- Sector maps are put away on a worker thread, and trimmed in batches
- A far sector's texture only needs its look; at most four new ones a frame
- Fresh maps fill rows between their borders instead of testing every cell
- Rocks are marked with plain numbers; marks come back on unpacked maps
- Worked-overlay sort uses float keys; idle belts look on staggered steps
- Chase camera cast no longer allocates; perf demo drives and runs too

Drive phase on a late save: p99 33 -> 16 ms, frames over 20 ms 242 -> 7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 12:59:16 +06:00
23 changed files with 571 additions and 179 deletions

View File

@ -381,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.
@ -400,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!

View File

@ -380,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.
@ -399,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!

View File

@ -381,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.
@ -400,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 !

View File

@ -381,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.
@ -400,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!

View File

@ -381,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でヘッドランプ → 暗視 → オフと切り替わる。
@ -400,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! とっとと行って、あのいまいましい惑星を刈ってこい!

View File

@ -381,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을 누를 때마다 헤드램프 → 야간 투시경 → 끔 순서로 바뀌어요.
@ -400,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! 당장 나가서 그 빌어먹을 행성을 깎아!

View File

@ -381,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.
@ -400,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Ę!

View File

@ -381,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.
@ -400,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!

View File

@ -381,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 переключает: фонарь, ночное зрение, ничего.
@ -400,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! А ТЕПЕРЬ МАРШ НАРУЖУ И СКОСИТЕ ЭТУ ЧЁРТОВУ ПЛАНЕТУ!

View File

@ -381,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.
@ -400,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!

View File

@ -380,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 依次切换头灯、夜视仪和关闭。
@ -399,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! 现在都给我滚出去,把那颗该死的星球割干净!

View File

@ -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;
@ -54,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");

View 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();
}
}
}

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 8a69e95e36ced72458cec3d35add3642

View File

@ -3013,6 +3013,11 @@ namespace GrassCutter
yield return Perf(int.Parse(perfSlot)); yield return Perf(int.Parse(perfSlot));
yield break; 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")) if (CommandLine.Has("-demoauto"))
{ {
yield return AutoDemo(); yield return AutoDemo();

View File

@ -339,7 +339,9 @@ namespace GrassCutter
{ {
if (!Server || !Piece || !Piece.IsSpawned || Items.Count == 0) return; if (!Server || !Piece || !Piece.IsSpawned || Items.Count == 0) return;
// a line that hasn't moved for a while only looks again every few steps whether the front can go on // a line that hasn't moved for a while only looks again every few steps whether the front can go on
if (_idle > 40 && ++_idleSkip % 6 != 0) return; // (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; bool moved = false;
float dt = Time.fixedDeltaTime * (_idle > 40 ? 6f : 1f); float dt = Time.fixedDeltaTime * (_idle > 40 ? 6f : 1f);
float step = Speed * dt; float step = Speed * dt;
@ -372,6 +374,8 @@ namespace GrassCutter
} }
int _idle, _idleSkip; 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)

View File

@ -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)

View File

@ -676,9 +676,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 +692,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);

View File

@ -7,8 +7,9 @@ namespace GrassCutter
{ {
/// <summary> /// <summary>
/// The upgrade matrix as node graphs: the GreenHaul console shows CONTAINERS · CUTTING · SUIT · LOGISTICS · ECONOMY · AUTOMATION, /// 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
{ {
@ -21,17 +22,23 @@ namespace GrassCutter
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("AUTOMATION") }; 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 =
@ -39,6 +46,8 @@ namespace GrassCutter
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.3f, 0.66f, 0.86f), 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));
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)
{
p.strokeColor = l.color;
Path(p, l.pts);
}
} }
void Link(Painter2D p, Vector2 a, Vector2 b, bool mine, bool have = true) void Add(Vector2[] pts, bool mine, bool open)
{ {
// outline then fill, so lines read like the chunky UI borders _links.Add(new Link { pts = pts, color = mine ? TreeColors[(int)_tree] : open ? Open : Shut, rank = mine ? 2 : open ? 1 : 0 });
p.strokeColor = new Color(0.165f, 0.13f, 0.08f, 1f);
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) /// <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; // what it waits for, each one green once it is there (including perks from other trees)
if (maxed) UIK.Text(d.maxLevel > 1 ? Loc.T("MAXED OUT!") : Loc.T("OWNED"), "price t-green t-outline t-center", _detail); if (d.requires.Length > 0 && !maxed)
else if (!avail)
{ {
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); {
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>");
}
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.style.whiteSpace = WhiteSpace.Normal;
req.enableRichText = true;
} }
else
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);

View File

@ -95,6 +95,8 @@ 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> /// <summary>Grass draws issued last frame (for -demogpu).</summary>
@ -269,7 +271,8 @@ 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 // 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. // 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 (mask == MowMap.Full && mask)
@ -303,20 +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(); DrawBatches();
Draws = _mpbUsed + _drawn; Draws = _mpbUsed + _drawn;
} }
int _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)
@ -327,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);

View File

@ -20,6 +20,8 @@ namespace GrassCutter
// 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.93f; 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
@ -127,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
@ -136,24 +142,41 @@ 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;
// a rock is measured along the ground: the frame is flat, the soil isn't bool hit;
bool hit = b.round if (b.round)
? (flat.normalized - b.dir).sqrMagnitude * Planet.Radius * Planet.Radius < b.radius * b.radius {
: Mathf.Abs(p.x - b.center.x) < b.half.x && Mathf.Abs(p.z - b.center.z) < b.half.y; // a rock is measured along the ground: the frame is flat, the soil isn't
float inv = 1f / Mathf.Sqrt(fx * fx + fy * fy + fz * fz);
float dx = fx * inv - b.dir.x, dy = fy * inv - b.dir.y, dz = fz * inv - b.dir.z;
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;
@ -191,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;
@ -201,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)
@ -247,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;
@ -260,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++) // 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
var m = list[i]; for (int i = 0; i < open - MaxOpen; i++) PutAway(s_trim[i]);
if (m.dirty || (m.keep && m.packed == null)) Pack(m); s_trim.Clear();
// 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
m.left = null;
}
} }
// ───────────────────────── cutting ───────────────────────── // ───────────────────────── cutting ─────────────────────────
@ -536,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
@ -612,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));
@ -630,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
@ -693,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 () =>

View File

@ -834,7 +834,7 @@
border-width: 0; border-width: 0;
border-radius: 0; border-radius: 0;
} }
.slot-on, .node-afford, .node-maxed, .build-card-on { background-color: rgba(0, 0, 0, 0); background-image: url("../Art/UI/ui_slot_on.png"); } .slot-on, .node-maxed, .build-card-on { background-color: rgba(0, 0, 0, 0); background-image: url("../Art/UI/ui_slot_on.png"); }
.node-available, .node-owned, .node-locked { background-color: rgba(0, 0, 0, 0); } .node-available, .node-owned, .node-locked { background-color: rgba(0, 0, 0, 0); }
.node-owned { -unity-background-image-tint-color: #CFE3A0; } .node-owned { -unity-background-image-tint-color: #CFE3A0; }
.node-locked { -unity-background-image-tint-color: #A89E86; } .node-locked { -unity-background-image-tint-color: #A89E86; }
@ -996,3 +996,53 @@
.set-foot { flex-direction: row; align-items: center; flex-shrink: 0; margin-top: 10px; padding-top: 12px; border-top-width: 3px; border-color: rgba(42, 33, 20, 0.18); } .set-foot { flex-direction: row; align-items: center; flex-shrink: 0; margin-top: 10px; padding-top: 12px; border-top-width: 3px; border-color: rgba(42, 33, 20, 0.18); }
.set-desc { flex-grow: 1; flex-shrink: 1; font-size: 21px; color: #6A5A3A; white-space: normal; margin: 0 28px 0 28px; min-height: 56px; -unity-text-align: middle-left; } .set-desc { flex-grow: 1; flex-shrink: 1; font-size: 21px; color: #6A5A3A; white-space: normal; margin: 0 28px 0 28px; min-height: 56px; -unity-text-align: middle-left; }
/* ───────── v4: the upgrade matrix, readable at a glance ───────── */
/* gold is done; a green ring is what you can buy now; green tint is started; grey is not open yet */
.node { padding-bottom: 8px; }
.node-afford { border-width: 5px; border-color: #63C43A; border-radius: 18px; }
.node-selected, .node-afford.node-selected { border-width: 7px; border-color: #3A9BE8; border-radius: 18px; -unity-background-image-tint-color: #FFFDF0; }
.node-locked > .node-icon { opacity: 0.3; }
.node-lock { font-size: 40px; color: #FFFFFF; }
.node-pips { position: absolute; bottom: 9px; flex-direction: row; justify-content: center; }
.node-pip { width: 15px; height: 7px; border-radius: 4px; margin: 0 2px 0 2px; background-color: rgba(42, 33, 20, 0.28); }
.node-pip-on { background-color: #4FAE2E; }
.node-maxed .node-pip-on { background-color: #2A2114; }
.node-price {
position: absolute; bottom: -19px; font-size: 23px; padding: 1px 11px 1px 11px; border-radius: 10px;
background-color: #7A5A3A; color: #FFFFFF; -unity-text-align: middle-center;
}
.node-price-yes { background-color: #3E8A24; }
.node-price-no { background-color: #8B5E34; color: #F1E6C6; }
.node-price-shut { background-color: #8F8672; color: #ECE6D4; }
.node-price-done { background-color: #C28F1C; }
.node-name { width: 230px; font-size: 20px; }
.shop-tabs > .tab { padding-bottom: 12px; }
.tab-progress {
position: absolute; left: 16px; right: 16px; bottom: 6px; height: 5px; border-radius: 3px;
background-color: rgba(42, 33, 20, 0.2); overflow: hidden;
}
.tab-progress-fill { height: 100%; border-radius: 3px; width: 0; }
.detail-top { height: 150px; }
.detail-icon { width: 130px; height: 130px; }
.detail-desc { margin-top: 2px; margin-bottom: 8px; }
.ladder { margin-top: 4px; }
.ladder-row {
flex-direction: row; align-items: center; padding: 6px 10px 6px 8px; margin-bottom: 6px; border-radius: 12px;
background-color: rgba(139, 94, 52, 0.1); border-width: 3px; border-color: rgba(0, 0, 0, 0);
}
.ladder-done { background-color: rgba(99, 196, 58, 0.22); }
.ladder-next { background-color: #FFF6D6; border-color: #2A2114; }
.ladder-lvl {
width: 44px; height: 32px; border-radius: 9px; margin-right: 10px; flex-shrink: 0;
background-color: #A89E86; color: #FFFFFF; font-size: 19px; -unity-text-align: middle-center;
}
.ladder-done > .ladder-lvl { background-color: #3E8A24; }
.ladder-next > .ladder-lvl { background-color: #C28F1C; }
.ladder-fx { flex-grow: 1; flex-shrink: 1; font-size: 20px; color: #2A2114; }
.ladder-done > .ladder-fx { color: #3B5A22; }
.ladder-price { font-size: 21px; color: #2A2114; margin-left: 8px; flex-shrink: 0; -unity-font-style: bold; }
.ladder-price-later { color: #8F8672; -unity-font-style: normal; }
.detail-req { margin-top: 8px; }
.detail-maxed { font-size: 40px; }

View File

@ -96,12 +96,12 @@ Assistant tips UI/UIRoot.Settings.cs:115
ASSISTANT · G.R.A.S.S.A. UI/Assistant.cs:234 ASSISTANT · G.R.A.S.S.A. UI/Assistant.cs:234
Audio UI/UIRoot.Settings.cs:32 Audio UI/UIRoot.Settings.cs:32
Auto-Binder Gameplay/GameDefs.cs:243 Perk name (upgrade matrix node, short, wraps on ~2 lines). Auto-Binder Gameplay/GameDefs.cs:243 Perk name (upgrade matrix node, short, wraps on ~2 lines).
AUTOMATION UI/ShopScreen.cs:36 AUTOMATION UI/ShopScreen.cs:43
Autopilot Gameplay/GameDefs.cs:568 Autopilot Gameplay/GameDefs.cs:568
Autopilot on: the {0} mows round here and unloads itself. Hop back in to take over. Gameplay/Vehicle.cs:263 Autopilot on: the {0} mows round here and unloads itself. Hop back in to take over. Gameplay/Vehicle.cs:263
autopilot: mowing Gameplay/Vehicle.Auto.cs:91 autopilot: mowing Gameplay/Vehicle.Auto.cs:94
autopilot: nothing left to mow round here Gameplay/Vehicle.Auto.cs:90 autopilot: nothing left to mow round here Gameplay/Vehicle.Auto.cs:93
autopilot: off to unload Gameplay/Vehicle.Auto.cs:89 autopilot: off to unload Gameplay/Vehicle.Auto.cs:92
B build, G gravity boots UI/NotebookScreen.cs:241 B build, G gravity boots UI/NotebookScreen.cs:241
Back Player/Binds.cs:42 Back Player/Binds.cs:42
BACK UI/UIRoot.cs:391 BACK UI/UIRoot.cs:391
@ -188,7 +188,7 @@ Container {0:0.##} kg UI/SupplyScreen.cs:151 Tool detail line: how much grass 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. UI/Hud.cs:849 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. UI/Hud.cs:849
Container full! Q ties a bundle, E at the DEPOT hands it all in Player/PlayerTools.cs:284 Toast. Q and E are keys, keep them. DEPOT is the drop-off building. Container full! Q ties a bundle, E at the DEPOT hands it all in Player/PlayerTools.cs:284 Toast. Q and E are keys, keep them. DEPOT is the drop-off building.
Container x{0:0} Gameplay/GameDefs.cs:229 Perk effect line under a basket perk, after "NOW " / "NEXT ". {0} = multiplier (2, 4, 8). Container x{0:0} Gameplay/GameDefs.cs:229 Perk effect line under a basket perk, after "NOW " / "NEXT ". {0} = multiplier (2, 4, 8).
CONTAINERS UI/ShopScreen.cs:36 Upgrade matrix tab label, CAPS, short. CONTAINERS UI/ShopScreen.cs:43 Upgrade matrix tab label, CAPS, short.
Controls UI/UIRoot.Settings.cs:32 Controls UI/UIRoot.Settings.cs:32
Conveyor belts! Grass that moves BY ITSELF! caption:dir_belts (Director, spoken in English, subtitle) Conveyor belts! Grass that moves BY ITSELF! caption:dir_belts (Director, spoken in English, subtitle)
Copy a piece Player/Binds.cs:58 Copy a piece Player/Binds.cs:58
@ -205,7 +205,7 @@ Cruise control Player/Binds.cs:60
CTRL + wheel sets the height, {0:0.0} to {1:0} m. Posts grow down to the ground by themselves. UI/NotebookScreen.cs:130 CTRL + wheel sets the height, {0:0.0} to {1:0} m. Posts grow down to the ground by themselves. UI/NotebookScreen.cs:130
Ctrl+wheel lifts it onto stilts Player/PlayerBuild.cs:295 Ctrl+wheel lifts it onto stilts Player/PlayerBuild.cs:295
Cutter Control Gameplay/GameDefs.cs:565 Machine upgrade name in the garage upgrade list, followed by "level/max" (e.g. "Big Hopper 1/3"). Cutter Control Gameplay/GameDefs.cs:565 Machine upgrade name in the garage upgrade list, followed by "level/max" (e.g. "Big Hopper 1/3").
CUTTING UI/ShopScreen.cs:36 Upgrade matrix tab label, CAPS, short. CUTTING UI/ShopScreen.cs:43 Upgrade matrix tab label, CAPS, short.
Dash every {0:0.#} s UI/SupplyScreen.cs:131 Jetpack detail line: cooldown in seconds. Dash every {0:0.#} s UI/SupplyScreen.cs:131 Jetpack detail line: cooldown in seconds.
Dash in the air UI/SupplyScreen.cs:85 Gear tile subtitle (jetpack), very short. Dash in the air UI/SupplyScreen.cs:85 Gear tile subtitle (jetpack), very short.
deals bundles out in turn Gameplay/BeltSplitter.cs:28 Belt splitter mode (lowercase phrase): sends bundles to each exit in turn. deals bundles out in turn Gameplay/BeltSplitter.cs:28 Belt splitter mode (lowercase phrase): sends bundles to each exit in turn.
@ -242,7 +242,7 @@ E gets in and out, SHIFT boosts. With Cruise Control, C holds your speed. UI/Not
E hands it the contents of your tool. It ties them into bundles and puts them on the belt, so you don't have to walk to the depot. UI/NotebookScreen.cs:217 E hands it the contents of your tool. It ties them into bundles and puts them on the belt, so you don't have to walk to the depot. UI/NotebookScreen.cs:217
E hands it what's in your tool. It ties the grass into bundles and puts them on the belt at its front. Gameplay/GameDefs.cs:331 Build piece description in the build menu / notebook. Keep numbers and units (kW, kWh, m, kg); write decimals your way (7.5 -> 7,5). E = interact key, keep it. E hands it what's in your tool. It ties the grass into bundles and puts them on the belt at its front. Gameplay/GameDefs.cs:331 Build piece description in the build menu / notebook. Keep numbers and units (kW, kWh, m, kg); write decimals your way (7.5 -> 7,5). E = interact key, keep it.
E picks a bundle up. LEFT CLICK throws it, E at the depot hands it in, E anywhere else drops it. UI/NotebookScreen.cs:104 E picks a bundle up. LEFT CLICK throws it, E at the depot hands it in, E anywhere else drops it. UI/NotebookScreen.cs:104
E: another station Gameplay/Train.cs:358 E: another station Gameplay/Train.cs:404
Earth has grass again! Now. caption:dir_m100 (Director, spoken in English, subtitle) Earth has grass again! Now. caption:dir_m100 (Director, spoken in English, subtitle)
Earth has run out of grass and Herbaria-7 is covered in it. Cut it, bundle it, ship it home. UI/NotebookScreen.cs:72 Earth has run out of grass and Herbaria-7 is covered in it. Cut it, bundle it, ship it home. UI/NotebookScreen.cs:72
Earth has run out of grass. Cut it, bundle it, ship it home. Core/DemoBot.Lang.cs:87, UI/Hud.cs:278 Earth has run out of grass. Cut it, bundle it, ship it home. Core/DemoBot.Lang.cs:87, UI/Hud.cs:278
@ -251,10 +251,10 @@ Earth is desperate for grass. Make it pay. Gameplay/GameDefs.cs:276 Perk descrip
EARTH IS OUT OF GRASS! NO GRASS! caption:dir_intro (Director, spoken in English, subtitle) EARTH IS OUT OF GRASS! NO GRASS! caption:dir_intro (Director, spoken in English, subtitle)
Earth Prices Gameplay/GameDefs.cs:275 Perk name (upgrade matrix node, short, wraps on ~2 lines). Earth Prices Gameplay/GameDefs.cs:275 Perk name (upgrade matrix node, short, wraps on ~2 lines).
Earth thanks you. Barely. caption:dir_m0001 (Director, spoken in English, subtitle) Earth thanks you. Barely. caption:dir_m0001 (Director, spoken in English, subtitle)
Earth Uplink UI/ShopScreen.cs:179 Name of the free root node every upgrade branch grows from. Earth Uplink UI/ShopScreen.cs:229 Name of the free root node every upgrade branch grows from.
Earth's lawns will be green by Christmas! caption:dir_combine (Director, spoken in English, subtitle) Earth's lawns will be green by Christmas! caption:dir_combine (Director, spoken in English, subtitle)
EASY World/Difficulty.cs:18 EASY World/Difficulty.cs:18
ECONOMY UI/ShopScreen.cs:36 Upgrade matrix tab label, CAPS, short. ECONOMY UI/ShopScreen.cs:43 Upgrade matrix tab label, CAPS, short.
Effects UI/UIRoot.Settings.cs:172 Effects UI/UIRoot.Settings.cs:172
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. UI/NotebookScreen.cs:230 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. UI/NotebookScreen.cs:230
Empty UI/UIRoot.cs:603 Empty UI/UIRoot.cs:603
@ -444,7 +444,7 @@ Listening for LAN games… UI/UIRoot.cs:368
LMB Player/Binds.cs:192 LMB Player/Binds.cs:192
LMB where the belt starts · height {0:0.0} m Player/PlayerBuild.cs:342 Belt laying hint. LMB = left mouse button, {0} = height in metres. LMB where the belt starts · height {0:0.0} m Player/PlayerBuild.cs:342 Belt laying hint. LMB = left mouse button, {0} = height in metres.
LMB: go on from this end Player/PlayerBuild.cs:342 Belt laying hint. LMB = left mouse button. LMB: go on from this end Player/PlayerBuild.cs:342 Belt laying hint. LMB = left mouse button.
LOGISTICS UI/Hud.cs:563, UI/ShopScreen.cs:36 Build menu category (belts, splitters...). LOGISTICS UI/Hud.cs:563, UI/ShopScreen.cs:43 Build menu category (belts, splitters...).
Long Handles Gameplay/GameDefs.cs:249 Perk name (upgrade matrix node, short, wraps on ~2 lines). Long Handles Gameplay/GameDefs.cs:249 Perk name (upgrade matrix node, short, wraps on ~2 lines).
Long Leash Gameplay/GameDefs.cs:285 Long Leash Gameplay/GameDefs.cs:285
Long Scythe Gameplay/GameDefs.cs:191 Hand tool name: supply wall tile (short, ~18 chars), detail title, HUD. Long Scythe Gameplay/GameDefs.cs:191 Hand tool name: supply wall tile (short, ~18 chars), detail title, HUD.
@ -464,7 +464,7 @@ Map Player/Binds.cs:62, UI/Hud.cs:140, UI/PhoneScreen.cs:140
Master volume UI/UIRoot.Settings.cs:169 Master volume UI/UIRoot.Settings.cs:169
MAX UI/GarageScreen.cs:161 Short button label in place of a price: upgrade fully bought. Very little room. MAX UI/GarageScreen.cs:161 Short button label in place of a price: upgrade fully bought. Very little room.
MAXED UI/SupplyScreen.cs:84 Short price tag on the supply wall: no more belt slots. MAXED UI/SupplyScreen.cs:84 Short price tag on the supply wall: no more belt slots.
MAXED OUT! UI/ShopScreen.cs:295, UI/SupplyScreen.cs:176 Big label instead of the buy button when every level is bought. MAXED OUT! UI/ShopScreen.cs:426, UI/SupplyScreen.cs:176 Big label instead of the buy button when every level is bought.
ME UI/MapScreen.cs:61 ME UI/MapScreen.cs:61
Medium UI/UIRoot.Settings.cs:155, UI/UIRoot.Settings.cs:159, UI/UIRoot.Settings.cs:163 Medium UI/UIRoot.Settings.cs:155, UI/UIRoot.Settings.cs:159, UI/UIRoot.Settings.cs:163
Merger Gameplay/GameDefs.cs:312 Build piece name: build menu card, piece settings header (shown in CAPS there), prompts. Short. Merger Gameplay/GameDefs.cs:312 Build piece name: build menu card, piece settings header (shown in CAPS there), prompts. Short.
@ -506,7 +506,6 @@ Nail Scissors Basket Gameplay/GameDefs.cs:235 Perk name (upgrade matrix node, ma
NE UI/Compass.cs:14 NE UI/Compass.cs:14
Never once lost a scythe. Player/Roster.cs:26 Crew member tagline (character select), one short line. Never once lost a scythe. Player/Roster.cs:26 Crew member tagline (character select), one short line.
NEW GAME UI/UIRoot.cs:604 NEW GAME UI/UIRoot.cs:604
NEXT {0} UI/ShopScreen.cs:291 Perk detail: effect of the next level. Same as "NOW {0}".
Next category Player/Binds.cs:54 Next category Player/Binds.cs:54
Night Vision UI/SupplyScreen.cs:87, UI/SupplyScreen.cs:141 Gear item name. Night Vision UI/SupplyScreen.cs:87, UI/SupplyScreen.cs:141 Gear item name.
Night vision on World/DayNight.cs:142 Toast. Night vision on World/DayNight.cs:142 Toast.
@ -520,7 +519,7 @@ NORMAL World/Difficulty.cs:18
NOT A SINGLE DAMN BLADE! caption:dir_intro (Director, spoken in English, subtitle) NOT A SINGLE DAMN BLADE! caption:dir_intro (Director, spoken in English, subtitle)
Not Alone Out Here Core/Achievements.cs:52 Not Alone Out Here Core/Achievements.cs:52
Not enough cash Player/PlayerBuild.cs:289, Player/PlayerBuild.cs:361 Build refusal. Not enough cash Player/PlayerBuild.cs:289, Player/PlayerBuild.cs:361 Build refusal.
Not enough cash: mow more! UI/GarageScreen.cs:118, UI/ShopScreen.cs:319, UI/SupplyScreen.cs:214 Warning toast when a purchase is too expensive. Not enough cash: mow more! UI/GarageScreen.cs:118, UI/ShopScreen.cs:443, UI/SupplyScreen.cs:214 Warning toast when a purchase is too expensive.
Not enough money. Mow more. caption:asst_nocash (assistant, spoken in English, subtitle) Not enough money. Mow more. caption:asst_nocash (assistant, spoken in English, subtitle)
Notebook Player/Binds.cs:63, UI/Hud.cs:142, UI/PhoneScreen.cs:141 Notebook Player/Binds.cs:63, UI/Hud.cs:142, UI/PhoneScreen.cs:141
Nothing goes on standing grass: cut it first. The ghost turns red and says how much is cut, and its outline on the ground shows what has to go. A belt needs a mown path along its whole length. UI/NotebookScreen.cs:124 Nothing goes on standing grass: cut it first. The ghost turns red and says how much is cut, and its outline on the ground shows what has to go. A belt needs a mown path along its whole length. UI/NotebookScreen.cs:124
@ -528,7 +527,6 @@ nothing to run, {0:0.#} kW free Gameplay/PowerNode.cs:41 Power network summary (
nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh Gameplay/PowerNode.cs:41 Power network summary (lowercase). nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh Gameplay/PowerNode.cs:41 Power network summary (lowercase).
Nothing to set on this one. UI/PieceScreen.cs:95 Piece settings card when the piece has no options. Nothing to set on this one. UI/PieceScreen.cs:95 Piece settings card when the piece has no options.
Nothing to tie: cut some grass first Player/PlayerTools.cs:371 Toast after pressing Q (tie a bundle) with an empty container. Nothing to tie: cut some grass first Player/PlayerTools.cs:371 Toast after pressing Q (tie a bundle) with an empty container.
NOW {0} UI/ShopScreen.cs:290 Perk detail: current effect. {0} = an effect line such as "Speed +7%". Two spaces kept as a gap.
NOW {0} of {1} slots UI/SupplyScreen.cs:125 Belt slot detail line: slots you have and the maximum. NOW {0} of {1} slots UI/SupplyScreen.cs:125 Belt slot detail line: slots you have and the maximum.
NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! caption:dir_m0001 (Director, spoken in English, subtitle) NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! caption:dir_m0001 (Director, spoken in English, subtitle)
NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! caption:dir_intro (Director, spoken in English, subtitle) NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! caption:dir_intro (Director, spoken in English, subtitle)
@ -565,7 +563,7 @@ Overdrive Motors Gameplay/GameDefs.cs:287
Own UI/UIRoot.Settings.cs:155 Own UI/UIRoot.Settings.cs:155
Own every blade on the wall Core/Achievements.cs:56 Own every blade on the wall Core/Achievements.cs:56
Own the Scythe Core/Achievements.cs:55 Own the Scythe Core/Achievements.cs:55
OWNED UI/GarageScreen.cs:85, UI/ShopScreen.cs:200, UI/ShopScreen.cs:295 Short tag/label: you already have it (on a node, a supply tile, a garage tile, or the big label instead of a buy button). OWNED UI/GarageScreen.cs:85, UI/ShopScreen.cs:271, UI/ShopScreen.cs:426 Short tag/label: you already have it (on a node, a supply tile, a garage tile, or the big label instead of a buy button).
PAUSED UI/UIRoot.cs:333 PAUSED UI/UIRoot.cs:333
Paused: it takes grass in but doesn't work it. UI/PieceScreen.cs:118 Machine switched off. Paused: it takes grass in but doesn't work it. UI/PieceScreen.cs:118 Machine switched off.
Payout UI/Hud.cs:340 Payout UI/Hud.cs:340
@ -626,7 +624,7 @@ REFRESH UI/UIRoot.cs:359
RELAY UI/PhoneScreen.cs:215, UI/PhoneScreen.cs:654 Phone status bar: the link to Earth (the web connection) is up. Keep it short. RELAY UI/PhoneScreen.cs:215, UI/PhoneScreen.cs:654 Phone status bar: the link to Earth (the web connection) is up. Keep it short.
RELAY IDLE UI/PhoneScreen.cs:654 Phone status bar: the link to Earth is idle. Keep it short. RELAY IDLE UI/PhoneScreen.cs:654 Phone status bar: the link to Earth is idle. Keep it short.
Render scale UI/UIRoot.Settings.cs:156 Render scale UI/UIRoot.Settings.cs:156
Requires {0} UI/ShopScreen.cs:300 Perk detail. {0} = perk names joined with " + ", e.g. "Wider Blades II + Long Handles II". Requires {0} UI/ShopScreen.cs:419 Perk detail. {0} = perk names joined with " + ", e.g. "Wider Blades II + Long Handles II".
RESET PROGRESS UI/UIRoot.Settings.cs:120 RESET PROGRESS UI/UIRoot.Settings.cs:120
Reset progress? Core/DemoBot.Lang.cs:51, UI/UIRoot.Settings.cs:123 Reset progress? Core/DemoBot.Lang.cs:51, UI/UIRoot.Settings.cs:123
Resolution UI/UIRoot.Settings.cs:135 Resolution UI/UIRoot.Settings.cs:135
@ -747,7 +745,7 @@ Strip width {0:0.#} cm UI/SupplyScreen.cs:151 Tool detail line.
Strip width +{0:0}% Gameplay/GameDefs.cs:248, Gameplay/GameDefs.cs:252 Perk effect line: the cut strip is {0} percent wider. Strip width +{0:0}% Gameplay/GameDefs.cs:248, Gameplay/GameDefs.cs:252 Perk effect line: the cut strip is {0} percent wider.
Strip {0:0.##} m · top speed {1:0} km/h · {2} of {3} UI/GarageScreen.cs:147 Machine detail line. {2} and {3} = weights already formatted ("120 kg of 500 kg"): grass in the hopper and its capacity. Strip {0:0.##} m · top speed {1:0} km/h · {2} of {3} UI/GarageScreen.cs:147 Machine detail line. {2} and {3} = weights already formatted ("120 kg of 500 kg"): grass in the hopper and its capacity.
STRUCTURES UI/Hud.cs:563 Build menu category (foundations). STRUCTURES UI/Hud.cs:563 Build menu category (foundations).
SUIT UI/ShopScreen.cs:36 Upgrade matrix tab label (the crew's work suit), CAPS, short. SUIT UI/ShopScreen.cs:43 Upgrade matrix tab label (the crew's work suit), CAPS, short.
Sun and night UI/NotebookScreen.cs:144 Sun and night UI/NotebookScreen.cs:144
Sunflowers World/Crops.cs:38 HUD crop name before the sector number, see "Wheat". Sunflowers World/Crops.cs:38 HUD crop name before the sector number, see "Wheat".
Supply Deals Gameplay/GameDefs.cs:279 Perk name (upgrade matrix node, short, wraps on ~2 lines). Supply Deals Gameplay/GameDefs.cs:279 Perk name (upgrade matrix node, short, wraps on ~2 lines).
@ -856,12 +854,12 @@ UNLOAD · {0} {1:0} m UI/Hud.cs:740 Marker over the nearest unloading place. {0}
unloading Gameplay/Mowbot.cs:95 Short robot mower status word (lowercase). unloading Gameplay/Mowbot.cs:95 Short robot mower status word (lowercase).
Unloading UI/NotebookScreen.cs:197 Unloading UI/NotebookScreen.cs:197
Unloading… UI/Hud.cs:622 Unloading… UI/Hud.cs:622
UNLOCK {0} UI/ShopScreen.cs:305 Buy button for the first level of a perk. {0} = price. UNLOCK {0} UI/ShopScreen.cs:429 Buy button for the first level of a perk. {0} = price.
Untangle the stake: {0:0}% World/Landmarks.cs:176 Progress prompt while holding the interact key. {0} = percent done. Untangle the stake: {0:0}% World/Landmarks.cs:176 Progress prompt while holding the interact key. {0} = percent done.
Untangled Core/Achievements.cs:47 Untangled Core/Achievements.cs:47
Untouched UI/MapScreen.cs:95 Map legend: sectors nobody has cut. Untouched UI/MapScreen.cs:95 Map legend: sectors nobody has cut.
UPGRADE {0} UI/ShopScreen.cs:305 Buy button for the next level of a perk. {0} = price, e.g. "$140". UPGRADE {0} UI/ShopScreen.cs:429 Buy button for the next level of a perk. {0} = price, e.g. "$140".
UPGRADE MATRIX UI/ShopScreen.cs:58 Screen title of the GreenHaul console's upgrade tree, CAPS. UPGRADE MATRIX UI/ShopScreen.cs:68 Screen title of the GreenHaul console's upgrade tree, CAPS.
Upgrade to {0} UI/PieceScreen.cs:62 Piece settings card row title. {0} = tier name, e.g. "Mk II". Upgrade to {0} UI/PieceScreen.cs:62 Piece settings card row title. {0} = tier name, e.g. "Mk II".
Upgrades UI/NotebookScreen.cs:22, UI/NotebookScreen.cs:201 Upgrades UI/NotebookScreen.cs:22, UI/NotebookScreen.cs:201
Upgrades are for the whole crew and come out of the shared wallet. UI/PieceScreen.cs:96 Footnote in the piece settings card. Upgrades are for the whole crew and come out of the shared wallet. UI/PieceScreen.cs:96 Footnote in the piece settings card.
@ -879,8 +877,8 @@ waiting for room, connect a belt Gameplay/Mowbot.cs:96 Robot mower status (lower
Walk to the supply wall on the west side of the deck and take the nail scissors. caption:asst_tools (assistant, spoken in English, subtitle) Walk to the supply wall on the west side of the deck and take the nail scissors. caption:asst_tools (assistant, spoken in English, subtitle)
Wall Gameplay/GameDefs.cs:354 Wall Gameplay/GameDefs.cs:354
Was that a UFO?! Listen to me. caption:dir_ufo (Director, spoken in English, subtitle) Was that a UFO?! Listen to me. caption:dir_ufo (Director, spoken in English, subtitle)
WASD to drive · SHIFT boost · R chase view · E to hop off Player/PlayerAgent.cs:705 Toast when getting into a machine. WASD/SHIFT/R/E are keys, keep them. WASD to drive · SHIFT boost · R chase view · E to hop off Player/PlayerAgent.cs:710 Toast when getting into a machine. WASD/SHIFT/R/E are keys, keep them.
WASD to drive · SHIFT boost · R chase view · E to hop off · C autopilot Player/PlayerAgent.cs:705 WASD to drive · SHIFT boost · R chase view · E to hop off · C autopilot Player/PlayerAgent.cs:710
WASD walk, SHIFT run, SPACE jump, E use UI/NotebookScreen.cs:239 WASD walk, SHIFT run, SPACE jump, E use UI/NotebookScreen.cs:239
Weight UI/Hud.cs:338 Weight UI/Hud.cs:338
WELCOME TO HERBARIA-7 Core/DemoBot.Lang.cs:87, UI/Hud.cs:278 WELCOME TO HERBARIA-7 Core/DemoBot.Lang.cs:87, UI/Hud.cs:278
@ -969,12 +967,12 @@ Zero point zero zero one percent. caption:dir_m0001 (Director, spoken in English
{0}/m UI/Hud.cs:593 Build menu price of a belt: money per metre. {0}/m UI/Hud.cs:593 Build menu price of a belt: money per metre.
{0}/{1} crew UI/UIRoot.cs:336 {0}/{1} crew UI/UIRoot.cs:336
{0}: 1 kg of grass from your tool. {1}, {2} for 2½ minutes Gameplay/VendingMachine.cs:33 {0}: 1 kg of grass from your tool. {1}, {2} for 2½ minutes Gameplay/VendingMachine.cs:33
{0}: laying track to {1}, {2} of {3} m Gameplay/Train.cs:357 {0}: laying track to {1}, {2} of {3} m Gameplay/Train.cs:403
{0}: press a key or a mouse button. Esc cancels. UI/UIRoot.Settings.cs:287 {0}: press a key or a mouse button. Esc cancels. UI/UIRoot.Settings.cs:287
{0}: reaches {1:0} m, {2} Gameplay/PowerPole.cs:8 Power pole prompt. {0} = name, {1} = radius in metres, {2} = power network summary (lowercase). {0}: reaches {1:0} m, {2} Gameplay/PowerPole.cs:8 Power pole prompt. {0} = name, {1} = radius in metres, {2} = power network summary (lowercase).
{0}: reaches {1:0} m, {2}. String them out to bring power to a far machine. UI/NotebookScreen.cs:166 Notebook: power pole name, reach, price. {0}: reaches {1:0} m, {2}. String them out to bring power to a far machine. UI/NotebookScreen.cs:166 Notebook: power pole name, reach, price.
{0}: running to {1} and back, cutting {2} m out either side, {3} on board Gameplay/Train.cs:361 {0}: running to {1} and back, cutting {2} m out either side, {3} on board Gameplay/Train.cs:407
{0}: the line to {1} is mown clean as far as it reaches. An upgrade reaches further. Gameplay/Train.cs:360 {0}: the line to {1} is mown clean as far as it reaches. An upgrade reaches further. Gameplay/Train.cs:406
{0}: {1:0.##} m strip, {2:0} kg hopper, {3} UI/NotebookScreen.cs:193 Notebook: mower name, cutting width, hopper size, price. {0}: {1:0.##} m strip, {2:0} kg hopper, {3} UI/NotebookScreen.cs:193 Notebook: mower name, cutting width, hopper size, price.
{0}: {1:0.#} cm strip, {2:0.##} kg container, {3} UI/NotebookScreen.cs:89 Notebook tool line: tool name, cutting width, container size, price. {0}: {1:0.#} cm strip, {2:0.##} kg container, {3} UI/NotebookScreen.cs:89 Notebook tool line: tool name, cutting width, container size, price.
{0}: {1:0.#} kW, {2:0} m, {3} UI/NotebookScreen.cs:155 Notebook: solar panel name, power, reach radius in metres, price. {0}: {1:0.#} kW, {2:0} m, {3} UI/NotebookScreen.cs:155 Notebook: solar panel name, power, reach radius in metres, price.

Can't render this file because it has a wrong number of fields in line 2.