Compare commits

...

5 Commits

Author SHA1 Message Date
JunioR
47e28c60d7 Стеля навичок за рівнем гравця: рівень / 4 угору, максимум 8 з 29 рівня
All checks were successful
build / build (push) Successful in 2m23s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017HrHZv71JpThjUdKiPXUVH
2026-11-27 08:02:49 +00:00
Gitea Actions
2acf2cea03 game_godot: TinMerezhi.exe v1.0.60 2026-11-27 07:06:17 +00:00
Gitea Actions
f152997ae1 template.sha256: rebuilt template-4.7.2
All checks were successful
build / build (push) Successful in 2m56s
2026-11-27 07:01:05 +00:00
Claude
96c32e4edd Ліміт 60 кадр/с (у фоні 10), zip у релізах, менший шаблон: build profile без невживаних класів, без minizip/brotli/graphite
Some checks failed
build / build (push) Successful in 44s
ci-image / image (push) Failing after 13s
template / template (push) Successful in 13m53s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017HrHZyk6KaYPc8KyisbcEk
2026-11-27 06:47:38 +00:00
Gitea Actions
5c25f940d4 game_godot: TinMerezhi.exe v1.0.59 2026-11-27 00:29:31 +00:00
14 changed files with 152 additions and 17 deletions

View File

@@ -111,11 +111,14 @@ jobs:
ID=$(curl -sf -H "$H" "$API/releases/tags/$TAG" | getid) || \
ID=$(curl -sf -H "$H" -H "Content-Type: application/json" -d "$BODY" "$API/releases" | getid)
# Re-run of the same tag: drop the assets uploaded last time, or the updater could pick the old duplicate
for A in $(curl -sf -H "$H" "$API/releases/$ID/assets" | python3 -c 'import json,sys; print(" ".join(str(a["id"]) for a in json.load(sys.stdin) if a["name"] == "TinMerezhi.exe"))'); do
for A in $(curl -sf -H "$H" "$API/releases/$ID/assets" | python3 -c 'import json,sys; print(" ".join(str(a["id"]) for a in json.load(sys.stdin) if a["name"] in ("TinMerezhi.exe", "TinMerezhi.zip")))'); do
curl -sSf -X DELETE -H "$H" "$API/releases/$ID/assets/$A" >/dev/null
done
curl -sSf -H "$H" -F "attachment=@game_godot/TinMerezhi.exe" "$API/releases/$ID/assets?name=TinMerezhi.exe" >/dev/null
echo "Release $TAG: TinMerezhi.exe uploaded"
# the same exe zipped (~13 MB instead of ~36) for a lighter manual download; the updater still takes the exe
(cd game_godot && python3 -m zipfile -c /tmp/TinMerezhi.zip TinMerezhi.exe)
curl -sSf -H "$H" -F "attachment=@/tmp/TinMerezhi.zip" "$API/releases/$ID/assets?name=TinMerezhi.zip" >/dev/null
echo "Release $TAG: TinMerezhi.exe and TinMerezhi.zip uploaded"
- name: Publish to itch.io
if: startsWith(github.ref, 'refs/tags/')

View File

@@ -6,7 +6,7 @@ name: template
on:
push:
branches: [main]
paths: ['source_godot/tools/template_custom.py', 'source_godot/tools/build_template.sh']
paths: ['source_godot/tools/template_custom.py', 'source_godot/tools/build_template.sh', 'source_godot/tools/template.gdbuild']
workflow_dispatch:
env:

View File

@@ -8,7 +8,7 @@ RUN apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq
&& update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix \
&& update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
ARG GODOT_VER=4.7.2
COPY template_custom.py build_template.sh /tools/
COPY template_custom.py template.gdbuild build_template.sh /tools/
RUN --mount=type=cache,target=/work cd /work && GODOT_VER=$GODOT_VER sh /tools/build_template.sh \
&& mkdir /out && cp godot-$GODOT_VER-stable/bin/godot.windows.template_release.x86_64.exe /out/template.exe

BIN
game_godot/TinMerezhi.exe (Stored with Git LFS)

Binary file not shown.

View File

@@ -155,7 +155,8 @@ SQL 1433). Поки порти закриті, пароль не перевір
Рівні з 36-го дорожчі за досвідом: 40-й — уже після сюжету.
• 8 звань за репутацію: від "Новачка" до "Архітектора мережі".
Вищі звання відкривають контракти і підвищують оплату.
• 12 навичок (skills / learn <навичка>), до 8 рівнів кожна:
• 12 навичок (skills / learn <навичка>), до 8 рівнів кожна. Стеля навички —
рівень гравця / 4 з округленням угору: рівні 1–4 → 1, 5–8 → 2 … 29+ → 8.
brute, stealth, trade, study, social, analyst, ghost, lawyer, intuition,
crypto (Криптограф), botmaster (Ботовод), reflex (Рефлекси).
• 12 модулів обладнання (shop / buy <модуль>), до 8 рівнів кожен:

View File

@@ -20,7 +20,7 @@ const HELP := {
"missions": "missions — поточна сюжетна глава.",
"jobs": "jobs — побічні замовлення: гроші й досвід.",
"skills": "skills — навички та вільні очки.",
"learn": "learn <навичка> — вкласти очко навички. Tab доповнює назву.",
"learn": "learn <навичка> — вкласти очко навички. Стеля навички — рівень гравця / 4 (угору), максимум 8 з 29 рівня. Tab доповнює назву.",
"shop": "shop — модулі обладнання.",
"buy": "buy <модуль> — купити наступний рівень модуля. Tab доповнює назву.",
"code": "code — хакерські програми, які можна написати.",

View File

@@ -132,7 +132,7 @@ const EN := {
"missions — поточна сюжетна глава.": "missions — the current story chapter.",
"jobs — побічні замовлення: гроші й досвід.": "jobs — side jobs: money and experience.",
"skills — навички та вільні очки.": "skills — skills and free points.",
"learn <навичка> — вкласти очко навички. Tab доповнює назву.": "learn <skill> — spend a skill point. Tab completes the name.",
"learn <навичка> — вкласти очко навички. Стеля навички — рівень гравця / 4 (угору), максимум 8 з 29 рівня. Tab доповнює назву.": "learn <skill> — spend a skill point. Skill cap is player level / 4 (rounded up), max 8 from level 29. Tab completes the name.",
"shop — модулі обладнання.": "shop — hardware modules.",
"buy <модуль> — купити наступний рівень модуля. Tab доповнює назву.": "buy <module> — buy the next level of a module. Tab completes the name.",
"code — хакерські програми, які можна написати.": "code — hacker programs you can write.",
@@ -915,6 +915,8 @@ const EN := {
"Яку навичку? %s.": "Which skill? %s.",
"Немає вільних очок. Отримай новий рівень.": "No free points. Gain a new level.",
"Навичка вже на максимумі.": "The skill is already maxed out.",
"Стеля навичок на твоєму рівні — %d. Наступна відкриється на %d рівні.": "Skill cap at your level is %d. The next one opens at level %d.",
"Стеля навичок: %d (рівень гравця / 4, до %d). Наступна — на %d рівні.": "Skill cap: %d (player level / 4, up to %d). Next one at level %d.",
"Вивчено: %s — %d/%d": "Learned: %s — %d/%d",
"Чорний ринок — модернізація обладнання:": "Black market — hardware upgrades:",
" %s %s — рівень %d/%d, %s": " %s %s — level %d/%d, %s",

View File

@@ -208,7 +208,16 @@ func _side_avatars() -> Dictionary:
# ═══════════════════════ старт ═══════════════════════
# CRT-шейдер на весь екран іде щокадру: більше 60 кадрів нічого не дає, а у фоні вистачить 10
func _notification(what: int) -> void:
if what == NOTIFICATION_APPLICATION_FOCUS_OUT:
Engine.max_fps = 10
elif what == NOTIFICATION_APPLICATION_FOCUS_IN:
Engine.max_fps = 60
func _ready() -> void:
if DisplayServer.get_name() != "headless": # тести без вікна крутять кадри на повну швидкість
Engine.max_fps = 60
get_window().title = L.t("Тінь Мережі") # config/name — "TinMerezhi" лише заради назви папки збережень
for k in skill_defs:
skills[k] = 0
@@ -1348,7 +1357,7 @@ func buttons() -> Array:
rt.append(["contract", L.t("📜 Мій контракт") if contract != null else L.t("📜 Взяти контракт")])
if sp:
for k in skill_defs:
if skills[k] < SKILL_MAX:
if skills[k] < skill_cap():
sk.append(["learn " + k, "★ " + k])
for k in hw_defs:
if hw[k] < HW_MAX:
@@ -1406,7 +1415,7 @@ func tip_for(cmd: String) -> String:
"cat":
return L.t("Прочитати файл — тут може бути частина історії")
"learn":
return L.t("%s (зараз %d/%d)") % [skill_defs[a], skills[a], SKILL_MAX]
return L.t("%s (зараз %d/%d)") % [skill_defs[a], skills[a], skill_cap()]
"buy":
return L.t("%s (зараз %d/%d)") % [hw_defs[a]["name"], hw[a], HW_MAX]
"write":
@@ -2789,8 +2798,14 @@ func c_jobs(_a: String) -> void:
func c_skills(_a: String) -> void:
say(L.t("Вільних очок навичок: %d (дається за кожен новий рівень)") % sp)
if skill_cap() < SKILL_MAX:
say(L.t("Стеля навичок: %d (рівень гравця / 4, до %d). Наступна — на %d рівні.") % [skill_cap(), SKILL_MAX, skill_cap() * 4 + 1], "warn")
for k in skill_defs:
say(" %s %s — %d/%d" % [k.rpad(10), skill_defs[k], skills[k], SKILL_MAX])
say(" %s %s — %d/%d" % [k.rpad(10), skill_defs[k], skills[k], skill_cap()])
# найвищий рівень навички зараз: рівень гравця / 4 угору, максимум відкривається на 29-му (~75% сюжету)
func skill_cap() -> int:
return mini(SKILL_MAX, ceili(level / 4.0))
func c_learn(k: String) -> void:
if not skill_defs.has(k):
@@ -2799,10 +2814,12 @@ func c_learn(k: String) -> void:
say(L.t("Немає вільних очок. Отримай новий рівень."), "err")
elif skills[k] >= SKILL_MAX:
say(L.t("Навичка вже на максимумі."), "warn")
elif skills[k] >= skill_cap():
say(L.t("Стеля навичок на твоєму рівні — %d. Наступна відкриється на %d рівні.") % [skill_cap(), skill_cap() * 4 + 1], "warn")
else:
sp -= 1
skills[k] += 1
say(L.t("Вивчено: %s — %d/%d") % [skill_defs[k], skills[k], SKILL_MAX], "info")
say(L.t("Вивчено: %s — %d/%d") % [skill_defs[k], skills[k], skill_cap()], "info")
func c_shop(_a: String) -> void:
say(L.t("Чорний ринок — модернізація обладнання:"))

View File

@@ -279,7 +279,7 @@ func has_job() -> bool:
func shop() -> void:
for cap in [g.T.SOFT_CAP, g.SKILL_MAX]: # спершу всі корисні навички до 5, потім вище
for k in ["brute", "social", "analyst", "study", "stealth", "trade", "ghost", "intuition", "crypto", "lawyer", "reflex", "botmaster"]:
while g.sp > 0 and g.skills[k] < cap:
while g.sp > 0 and g.skills[k] < mini(cap, g.skill_cap()):
act("learn " + k)
for round in 3:
for k in ["cpu", "ram", "proxy", "gpu", "ai", "cooler", "ssd", "crypt", "neuro", "jammer", "miner", "cluster"]:

View File

@@ -256,7 +256,7 @@ func _run() -> void:
g.run("wipe")
g.run("disconnect")
while g.sp > 0:
var opts: Array = g.skills.keys().filter(func(kk): return g.skills[kk] < g.SKILL_MAX)
var opts: Array = g.skills.keys().filter(func(kk): return g.skills[kk] < g.skill_cap())
if opts.is_empty():
break
g.run("learn " + opts[0])
@@ -728,6 +728,17 @@ func _run() -> void:
g.sp = 5
g.run("learn brute")
ok(g.skills["brute"] == g.SKILL_MAX and g.sp == 5, "навичка не росте вище максимуму")
var lv0: int = g.level
g.level = 8
g.skills["social"] = 2
g.run("learn social")
ok(g.skill_cap() == 2 and g.skills["social"] == 2 and g.sp == 5, "стеля навички: рівень 8 → не вище 2")
g.level = 9
g.run("learn social")
ok(g.skill_cap() == 3 and g.skills["social"] == 3 and g.sp == 4, "стеля навички: рівень 9 → 3")
g.level = 29
ok(g.skill_cap() == g.SKILL_MAX, "стеля навички: 29 рівень відкриває максимум")
g.level = lv0
drop(g)
# маршрут росте з рівнем: 1 вузол на старті, 5 — з 16-го

View File

@@ -12,5 +12,5 @@ if [ ! -f "godot-$VER-stable/SConstruct" ]; then
tar xf "godot-$VER.tar.xz" && rm "godot-$VER.tar.xz"
fi
cd "godot-$VER-stable"
scons profile="$HERE/template_custom.py" d3d12=no vulkan=no winrt=no accesskit=no angle=no -j"$(nproc)"
scons profile="$HERE/template_custom.py" build_profile="$HERE/template.gdbuild" d3d12=no vulkan=no winrt=no accesskit=no angle=no -j"$(nproc)"
sha256sum bin/godot.windows.template_release.x86_64.exe

View File

@@ -0,0 +1,96 @@
{
"type": "build_profile",
"disabled_classes": [
"AStar2D",
"AStar3D",
"AStarGrid2D",
"AnimatedTexture",
"Animation",
"AnimationLibrary",
"AnimationMixer",
"AnimationNode",
"AnimationNodeStateMachinePlayback",
"AnimationNodeStateMachineTransition",
"AspectRatioContainer",
"AtlasTexture",
"AudioEffect",
"AudioEffectInstance",
"AudioStreamInteractive",
"AudioStreamMP3",
"AudioStreamMicrophone",
"AudioStreamOggVorbis",
"AudioStreamPlaybackInteractive",
"AudioStreamPlaybackOggVorbis",
"AudioStreamPlaybackPlaylist",
"AudioStreamPlaybackPolyphonic",
"AudioStreamPlaybackSynchronized",
"AudioStreamPlaylist",
"AudioStreamPolyphonic",
"AudioStreamRandomizer",
"AudioStreamSynchronized",
"BitMap",
"CenterContainer",
"CheckButton",
"CodeEdit",
"ColorPalette",
"ColorPicker",
"ColorPickerButton",
"Curve2D",
"Curve3D",
"CurveTexture",
"CurveXYZTexture",
"Expression",
"FoldableContainer",
"FoldableGroup",
"GraphEdit",
"GraphElement",
"ImporterMesh",
"ItemList",
"LinkButton",
"MenuBar",
"MenuButton",
"Mesh",
"MeshDataTool",
"MeshLibrary",
"MeshTexture",
"MultiMesh",
"NinePatchRect",
"Node2D",
"Noise",
"NoiseTexture2D",
"OccluderPolygon2D",
"OggPacketSequence",
"OggPacketSequencePlayback",
"PCKPacker",
"PackedDataContainer",
"PackedDataContainerRef",
"PolygonPathFinder",
"ReferenceRect",
"Shape2D",
"SkeletonModification2D",
"SkeletonModificationStack2D",
"SpinBox",
"SplitContainer",
"SpriteFrames",
"SubViewportContainer",
"SurfaceTool",
"SyntaxHighlighter",
"TextureButton",
"TextureProgressBar",
"TextureRect",
"TileData",
"TileMapPattern",
"TileSet",
"TileSetSource",
"Tree",
"TreeItem",
"VideoStream",
"VideoStreamPlayback",
"VideoStreamPlayer",
"VirtualJoystick",
"VisualShader",
"VisualShaderNode",
"ZIPPacker",
"ZIPReader"
]
}

View File

@@ -1 +1 @@
5a3eda63d88b32bd07e6139103232403318ff5c0a8dadc04ea1a8d51bbe7550e
62edba5640db26c21132ea522dcb417c1a9cae6506eb57082efe1e1cd8393ecb

View File

@@ -21,6 +21,11 @@ winrt = "no"
accesskit = "no"
angle = "no"
modules_enabled_by_default = "no"
# unused libraries: ZIP archives, Brotli (WOFF2 fonts), Graphite font shaping
minizip = "no"
brotli = "no"
graphite = "no"
# engine classes the game never uses (2D nodes, animation, extra GUI and audio): template.gdbuild, passed in build_template.sh
# GDScript, fonts (FreeType + HarfBuzz shaping), SVG for the default theme icons, mbedTLS for HTTPS in the updater
module_gdscript_enabled = "yes"
module_freetype_enabled = "yes"