Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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();
|
||||
|
||||
Reference in New Issue
Block a user