Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca32233085 | ||
|
|
6451dc7e63 | ||
|
|
7b48bd13ce | ||
|
|
183b1508e9 | ||
|
|
8010eb56a6 | ||
|
|
579fb9c5be | ||
|
|
fd09077816 | ||
|
|
cd912171ec |
BIN
game_godot/TinMerezhi.exe
(Stored with Git LFS)
BIN
game_godot/TinMerezhi.exe
(Stored with Git LFS)
Binary file not shown.
63
itch/devlog/06_v1.0.94.md
Normal file
63
itch/devlog/06_v1.0.94.md
Normal file
@@ -0,0 +1,63 @@
|
||||
# Допис 6 журналу розробки (v1.0.94)
|
||||
|
||||
**Title:** Оновлення v1.0.94: чесні аванси і спокійніша мережа / Update v1.0.94: honest advances and a calmer network
|
||||
**Post type:** General Update
|
||||
**Tags:** update, bugfix, balance
|
||||
**Languages:** Українська, English (повний переклад)
|
||||
**Cover image:** без обкладинки (itch візьме з проєкту)
|
||||
|
||||
## Content
|
||||
|
||||
Найпростіше вставити через кнопку `<>` (джерело HTML) у редакторі itch, тоді списки й заголовки збережуться. Перед збереженням ОБОВ'ЯЗКОВО вийди з режиму `<>`, інакше itch пише "body: expected text".
|
||||
|
||||
```html
|
||||
<h2>Що нового в v1.0.94</h2>
|
||||
|
||||
<p>Невелике оновлення після вчорашньої «живої мережі»: я пройшовся по нових механіках і закрив кілька дірок.</p>
|
||||
|
||||
<h3>Аванс більше не можна «з'їсти»</h3>
|
||||
<ul>
|
||||
<li>Раніше можна було взяти аванс (<code>contract advance</code>), витратити гроші й зірвати контракт, і аванс лишався тобі задарма.</li>
|
||||
<li>Тепер, якщо аванс уже витрачено, а контракт зірвано, він стає боргом.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Мережа без тебе поводиться обережніше</h3>
|
||||
<ul>
|
||||
<li>Події за час твоєї відсутності більше не чіпають сервери поточної глави: ціль заливки, фрагменти ключа й сервер з підказкою лишаються такими, як ти їх залишив.</li>
|
||||
<li>На Параної мережа більше не змінюється, коли ти перезапускаєш главу з контрольної точки.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Сезони на сторінці гри</h3>
|
||||
<ul>
|
||||
<li>Таблицю поточного сезону Нескінченної мережі тепер видно й на сторінці рекордів: <a href="https://tinmerezhi.duckdns.org">tinmerezhi.duckdns.org</a></li>
|
||||
</ul>
|
||||
|
||||
<p>Windows-версія оновлюється в грі командою <code>update</code>, а браузерна завжди найновіша. Якщо гра подобається, оцінка на itch.io дуже допомагає. Дякую, що граєте!</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<h2>English</h2>
|
||||
|
||||
<h2>What's new in v1.0.94</h2>
|
||||
|
||||
<p>A small update after yesterday's "living network": I went through the new mechanics and closed a few holes.</p>
|
||||
|
||||
<h3>Advances can no longer be pocketed</h3>
|
||||
<ul>
|
||||
<li>Before, you could take an advance (<code>contract advance</code>), spend the money and break the contract, and the advance was yours for free.</li>
|
||||
<li>Now, if the advance is already spent and the contract is broken, it becomes debt.</li>
|
||||
</ul>
|
||||
|
||||
<h3>The network is more careful while you're away</h3>
|
||||
<ul>
|
||||
<li>Events during your absence no longer touch the current chapter's servers: the upload target, the key shards and the clue server stay as you left them.</li>
|
||||
<li>On Paranoid the network no longer changes when you restart a chapter from a checkpoint.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Seasons on the game page</h3>
|
||||
<ul>
|
||||
<li>The current Endless Network season leaderboard is now also shown on the records page: <a href="https://tinmerezhi.duckdns.org">tinmerezhi.duckdns.org</a></li>
|
||||
</ul>
|
||||
|
||||
<p>The Windows version updates in game with the <code>update</code> command, and the browser version is always the latest. If you enjoy the game, a rating on itch.io helps a lot. Thanks for playing!</p>
|
||||
```
|
||||
43
itch/devlog/06_v1.0.94.txt
Normal file
43
itch/devlog/06_v1.0.94.txt
Normal file
@@ -0,0 +1,43 @@
|
||||
Що нового в v1.0.94
|
||||
|
||||
Невелике оновлення після вчорашньої «живої мережі»: я пройшовся по нових механіках і закрив кілька дірок.
|
||||
|
||||
Аванс більше не можна «з'їсти»
|
||||
|
||||
• Раніше можна було взяти аванс (contract advance), витратити гроші й зірвати контракт, і аванс лишався тобі задарма.
|
||||
• Тепер, якщо аванс уже витрачено, а контракт зірвано, він стає боргом.
|
||||
|
||||
Мережа без тебе поводиться обережніше
|
||||
|
||||
• Події за час твоєї відсутності більше не чіпають сервери поточної глави: ціль заливки, фрагменти ключа й сервер з підказкою лишаються такими, як ти їх залишив.
|
||||
• На Параної мережа більше не змінюється, коли ти перезапускаєш главу з контрольної точки.
|
||||
|
||||
Сезони на сторінці гри
|
||||
|
||||
• Таблицю поточного сезону Нескінченної мережі тепер видно й на сторінці рекордів: https://tinmerezhi.duckdns.org
|
||||
|
||||
Windows-версія оновлюється в грі командою update, а браузерна завжди найновіша. Якщо гра подобається, оцінка на itch.io дуже допомагає. Дякую, що граєте!
|
||||
|
||||
──────────
|
||||
|
||||
English
|
||||
|
||||
What's new in v1.0.94
|
||||
|
||||
A small update after yesterday's "living network": I went through the new mechanics and closed a few holes.
|
||||
|
||||
Advances can no longer be pocketed
|
||||
|
||||
• Before, you could take an advance (contract advance), spend the money and break the contract, and the advance was yours for free.
|
||||
• Now, if the advance is already spent and the contract is broken, it becomes debt.
|
||||
|
||||
The network is more careful while you're away
|
||||
|
||||
• Events during your absence no longer touch the current chapter's servers: the upload target, the key shards and the clue server stay as you left them.
|
||||
• On Paranoid the network no longer changes when you restart a chapter from a checkpoint.
|
||||
|
||||
Seasons on the game page
|
||||
|
||||
• The current Endless Network season leaderboard is now also shown on the records page: https://tinmerezhi.duckdns.org
|
||||
|
||||
The Windows version updates in game with the update command, and the browser version is always the latest. If you enjoy the game, a rating on itch.io helps a lot. Thanks for playing!
|
||||
@@ -94,7 +94,8 @@ const T = {
|
||||
shots: "📸 Скриншоти", news: "📰 Що нового", more: "Показати старіші",
|
||||
recnote: "Онлайн-рекорди надсилаються з гри лише за згодою (налаштування → онлайн-рекорди). Таблиці оновлюються щохвилини.",
|
||||
foot: "Розробник: JunioR. Гра і код — під ліцензією MIT. Рушій Godot.",
|
||||
boards: ["♾ Нескінченна мережа", "🏆 Сезон", "📅 Виклик дня", "🤖 1 · Кур'єр", "🤖 2 · Прибиральник", "🤖 3 · Збирач", "🤖 4 · Нічний рейс"],
|
||||
boards: ["♾ Нескінченна мережа", "🏆 Сезон", "📅 Виклик дня", "🤖 1 · Кур'єр", "🤖 2 · Прибиральник", "🤖 3 · Збирач", "🤖 4 · Нічний рейс", "💀 Стіна ганьби"],
|
||||
until: "по", ch: "Глава", when: "Дата", clean: "Поки чисто. Тримайся так!",
|
||||
nick: "Нік", score: "Рахунок", depth: "Глибина", diff: "Складність", jobs: "Замовлень", lines: "Рядків", steps: "Кроків",
|
||||
diffs: ["Новачок", "Звичайний", "Параноя"], empty: "Поки порожньо. Стань першим!", down: "Сервер рекордів недоступний"
|
||||
},
|
||||
@@ -113,17 +114,18 @@ const T = {
|
||||
shots: "📸 Screenshots", news: "📰 What's new", more: "Show older",
|
||||
recnote: "Scores are sent from the game only if you opt in (settings → online leaderboards). Tables refresh every minute.",
|
||||
foot: "Developer: JunioR. The game and its code are MIT-licensed. Godot engine.",
|
||||
boards: ["♾ Endless Network", "🏆 Season", "📅 Daily", "🤖 1 · Courier", "🤖 2 · Janitor", "🤖 3 · Collector", "🤖 4 · Night Flight"],
|
||||
boards: ["♾ Endless Network", "🏆 Season", "📅 Daily", "🤖 1 · Courier", "🤖 2 · Janitor", "🤖 3 · Collector", "🤖 4 · Night Flight", "💀 Wall of Shame"],
|
||||
until: "through", ch: "Chapter", when: "Date", clean: "Clean so far. Keep it up!",
|
||||
nick: "Nick", score: "Score", depth: "Depth", diff: "Difficulty", jobs: "Jobs", lines: "Lines", steps: "Steps",
|
||||
diffs: ["Novice", "Normal", "Paranoid"], empty: "Empty so far. Be the first!", down: "Leaderboard server unavailable"
|
||||
}
|
||||
};
|
||||
const DAY = "d" + new Date().toISOString().slice(0, 10).replaceAll("-", ""); // виклик дня — за UTC, як у грі
|
||||
const IDS = ["endless", "season", DAY, "agent0", "agent1", "agent2", "agent3"];
|
||||
const IDS = ["endless", "season", DAY, "agent0", "agent1", "agent2", "agent3", "shame"];
|
||||
let lang = "uk";
|
||||
try { lang = localStorage.getItem("lang") || (navigator.language.startsWith("uk") ? "uk" : "en"); } catch (e) {}
|
||||
if (new URLSearchParams(location.search).get("lang") in T) lang = new URLSearchParams(location.search).get("lang");
|
||||
let tops = {}; // кеш таблиць, щоб перемикання мови не ходило в мережу
|
||||
let tops = {}, season = null; // кеш таблиць, щоб перемикання мови не ходило в мережу
|
||||
let news = [], newsAll = false; // news.json: ігрові зміни з whatsnew.gd (CI, ci/news.py)
|
||||
|
||||
function el(tag, text, cls) { const e = document.createElement(tag); if (text !== undefined) e.textContent = text; if (cls) e.className = cls; return e; }
|
||||
@@ -142,15 +144,21 @@ function render() {
|
||||
document.getElementById("news-h").style.display = news.length ? "" : "none";
|
||||
document.getElementById("boards").replaceChildren(...IDS.map((id, k) => {
|
||||
const s = el("section", undefined, "b"), tb = el("table"), head = el("tr");
|
||||
s.append(el("h3", t.boards[k]));
|
||||
s.append(el("h3", t.boards[k] + (id === "season" && season ? ` ${season.season} · ${t.until} ${season.ends}` : "")));
|
||||
const deep = k < 2; // endless і сезон: рахунок, глибина, складність
|
||||
const cols = deep ? ["#", t.nick, t.score, t.depth, t.diff] : k === 2 ? ["#", t.nick, t.score, t.jobs] : ["#", t.nick, t.lines, t.steps];
|
||||
const shame = id === "shame"; // стіна ганьби: остаточно арештовані, нові зверху
|
||||
const cols = shame ? ["#", t.nick, t.ch, t.diff, t.when] : deep ? ["#", t.nick, t.score, t.depth, t.diff] : k === 2 ? ["#", t.nick, t.score, t.jobs] : ["#", t.nick, t.lines, t.steps];
|
||||
cols.forEach((c, i) => head.append(el("th", c, i > 1 && c !== t.diff ? "n" : "")));
|
||||
tb.append(head); s.append(tb);
|
||||
const top = tops[id];
|
||||
if (top === undefined) s.append(el("p", "…", "empty"));
|
||||
else if (top === null) s.append(el("p", t.down, "bad"));
|
||||
else if (!top.length) s.append(el("p", t.empty, "empty"));
|
||||
else if (!top.length) s.append(el("p", shame ? t.clean : t.empty, "empty"));
|
||||
else if (shame) top.forEach((r, i) => {
|
||||
const tr = el("tr");
|
||||
tr.append(el("td", i + 1), el("td", r.nick, "bad"), el("td", r.ch + 1, "n"), el("td", t.diffs[r.diff] ?? ""), el("td", new Date(r.ts * 1000).toLocaleDateString(lang, {day: "2-digit", month: "2-digit"}), "n"));
|
||||
tb.append(tr);
|
||||
});
|
||||
else top.forEach((r, i) => {
|
||||
const tr = el("tr");
|
||||
tr.append(el("td", i + 1), el("td", r.nick), el("td", r.a.toLocaleString(lang), "n"), el("td", r.b, "n"));
|
||||
@@ -164,7 +172,12 @@ function render() {
|
||||
|
||||
async function load() {
|
||||
await Promise.all(IDS.map(async id => {
|
||||
try { const r = await fetch("api/top?board=" + id, {cache: "no-store"}); tops[id] = r.ok ? (await r.json()).top : null; }
|
||||
try {
|
||||
const r = await fetch(id === "shame" ? "api/shame" : "api/top?board=" + id, {cache: "no-store"});
|
||||
const d = r.ok ? await r.json() : {};
|
||||
tops[id] = d.top ?? d.shame ?? null;
|
||||
if (id === "season" && d.ends) season = d;
|
||||
}
|
||||
catch (e) { tops[id] = null; }
|
||||
}));
|
||||
render();
|
||||
|
||||
@@ -29,8 +29,7 @@ static func new_layer(g: Main, k, length := -1) -> void:
|
||||
for d in ds.slice(0, int(g.eff(g.skills["crypto"]))): # Криптограф
|
||||
k["absent"][d] = true
|
||||
|
||||
# стан шару (і зовнішнього теж) живе на сервері між візитами, доки сервер не відкрито чи не закрито знову (арешт, Відлуння)
|
||||
# shortcut: між запусками гри зберігається лише номер шару, не його код — після перезапуску шар отримає новий пароль
|
||||
# стан шару (і зовнішнього теж) живе на сервері між візитами і в збереженні, доки сервер не відкрито чи не закрито знову (арешт, Відлуння)
|
||||
static func keep_layer(g: Main) -> void:
|
||||
if g.crack != null:
|
||||
g.cur["layer_state"] = {"code": g.crack["code"], "known": g.crack["known"], "present": g.crack["present"], "absent": g.crack["absent"], "hist": g.crack["hist"]}
|
||||
|
||||
@@ -88,6 +88,7 @@ static func save(g: Main, checkpoint := false) -> bool:
|
||||
"log_list": g.servers.filter(func(s): return s["logs"]).map(func(s): return [s["ip"], s["log_list"]]),
|
||||
"ports_open": g.servers.filter(func(s): return not s["ports_open"].is_empty()).map(func(s): return [s["ip"], s["ports_open"]]),
|
||||
"open": g.servers.filter(func(s): return s["open"]).map(func(s): return s["ip"]),
|
||||
"layer_state": g.servers.filter(func(s): return s["layer_state"] != null).map(func(s): return [s["ip"], s["layer_state"]]),
|
||||
"logs": g.servers.filter(func(s): return s["logs"]).map(func(s): return s["ip"]),
|
||||
"infected": g.servers.filter(func(s): return s["infected"]).map(func(s): return s["ip"]),
|
||||
"aff": g.aff, "ice_off": g.servers.filter(func(s): return s.get("ice_off", false)).map(func(s): return s["ip"]),
|
||||
@@ -173,6 +174,14 @@ static func load_into(g: Main) -> bool:
|
||||
if g.srv_by_ip(str(h["ip"])) != null:
|
||||
g.heat.append({"ip": h["ip"], "t": int(h["t"])})
|
||||
var layers: Dictionary = d.get("layers", {})
|
||||
var states := {}
|
||||
for p in d.get("layer_state", []):
|
||||
var ls: Dictionary = p[1]
|
||||
var known := {}
|
||||
for i in ls["known"]:
|
||||
known[int(i)] = true # JSON робить ключі рядками, а crack шукає позиції числами
|
||||
ls["known"] = known
|
||||
states[str(p[0])] = ls
|
||||
for s in g.servers:
|
||||
s["open"] = s["ip"] in d.get("open", [])
|
||||
s["logs"] = s["ip"] in d.get("logs", [])
|
||||
@@ -181,6 +190,7 @@ static func load_into(g: Main) -> bool:
|
||||
if s["ip"] in d.get("tap", []):
|
||||
s["tap"] = true
|
||||
s["layer_done"] = int(layers.get(s["ip"], 0))
|
||||
s["layer_state"] = states.get(s["ip"])
|
||||
# гру закрили, не відключившись: лишені логи все одно запускають розслідування
|
||||
if s["logs"] and not g.heat.any(func(h): return h["ip"] == s["ip"]):
|
||||
g.heat.append({"ip": s["ip"], "t": g.investigation_time(s)})
|
||||
|
||||
@@ -160,6 +160,17 @@ func _run() -> void:
|
||||
ok(g.crack["code"] == c1 and g.crack["hist"].size() == 1 and g.crack["known"].keys().size() >= kn1.size(), "відступ: зовнішній шар зберігає пароль і спроби")
|
||||
g.run("abort")
|
||||
g.run("disconnect")
|
||||
g.save_game()
|
||||
drop(g)
|
||||
g = fresh(true)
|
||||
g.level = 30
|
||||
for s in g.servers:
|
||||
s["req"] = 1
|
||||
g.run("connect 16")
|
||||
crack(g)
|
||||
ok(g.crack["code"] == c1 and g.crack["hist"].size() == 1 and g.crack["known"].keys().all(func(i): return i is int), "перезапуск гри: шар зберігає пароль і спроби")
|
||||
g.run("abort")
|
||||
g.run("disconnect")
|
||||
g.servers[15]["open"] = true
|
||||
g.Story._lock(g.servers[15])
|
||||
g.run("connect 16")
|
||||
|
||||
@@ -8,6 +8,7 @@ const Updater = preload("res://updater.gd")
|
||||
const MAX_ITEMS := 8 # коротко: вікно має влазити й з великим шрифтом
|
||||
|
||||
const CHANGES := [
|
||||
["1.0.97", "Пароль недопробитого шару тепер переживає перезапуск гри: з'ясовані цифри й спроби не губляться.", "A half-cracked layer's password now survives a game restart: found digits and attempts are kept."],
|
||||
["1.0.94", "Аванс більше не можна «з'їсти»: якщо гроші витрачено, а контракт зірвано, аванс стає боргом.", "An advance can no longer be pocketed: if you spent it and broke the contract, it becomes debt."],
|
||||
["1.0.94", "Мережа без тебе не чіпає сервери поточної глави (ціль заливки, фрагменти ключа, підказку), а на Параної не спрацьовує після перезапуску з контрольної точки.", "While you are away the network no longer touches the current chapter's servers (upload target, key shards, clue), and on Paranoid it no longer fires on a checkpoint restart."],
|
||||
["1.0.93", "Шкала трасування «розжарюється»: від холодного фіолетового до білого, щоб небезпеку було видно краєм ока.", "The trace bar now heats up from cold violet to white-hot, so danger is visible at a glance."],
|
||||
|
||||
Reference in New Issue
Block a user