From c0037693a837884eef874fe6b1897e228f8dcb3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ki=C3=ABd=20Llaentenn?= Date: Fri, 6 Oct 2023 16:01:24 -0400 Subject: [PATCH] feat: analysis stuff --- Justfile | 10 +++++++++- tools/{json-wrangler-prefabs.lua => analyzer-fabs.lua} | 0 tools/{json-wrangler-items.lua => analyzer-items.lua} | 0 tools/{json-wrangler-mobs.lua => analyzer-mobs.lua} | 0 4 files changed, 9 insertions(+), 1 deletion(-) rename tools/{json-wrangler-prefabs.lua => analyzer-fabs.lua} (100%) rename tools/{json-wrangler-items.lua => analyzer-items.lua} (100%) rename tools/{json-wrangler-mobs.lua => analyzer-mobs.lua} (100%) diff --git a/Justfile b/Justfile index 2aa19d13..0f397732 100644 --- a/Justfile +++ b/Justfile @@ -1,4 +1,5 @@ -seed := "3849171" +seed := "3849171" +iters := "30" b: zig build -Duse-sdl=true @@ -17,3 +18,10 @@ brunvg: brun-term: zig build -Duse-sdl=false && (RL_NO_SENTRY=1 RL_SEED={{seed}} RL_MODE=normal zig-out/bin/rl 2>| log || less log) + +an: + RL_AN_ITERS={{iters}} RL_MODE=analyzer zig-out/bin/rl >| zig-out/output.json + lua5.3 tools/analyzer-items.lua < zig-out/output.json >| zig-out/output-items.csv + lua5.3 tools/analyzer-fabs.lua total < zig-out/output.json >| zig-out/output-fabs.csv + lua5.3 tools/analyzer-fabs.lua occurred < zig-out/output.json >| zig-out/output-fabs-occurred.csv + lua5.3 tools/analyzer-mobs.lua < zig-out/output.json >| zig-out/output-mobs.csv diff --git a/tools/json-wrangler-prefabs.lua b/tools/analyzer-fabs.lua similarity index 100% rename from tools/json-wrangler-prefabs.lua rename to tools/analyzer-fabs.lua diff --git a/tools/json-wrangler-items.lua b/tools/analyzer-items.lua similarity index 100% rename from tools/json-wrangler-items.lua rename to tools/analyzer-items.lua diff --git a/tools/json-wrangler-mobs.lua b/tools/analyzer-mobs.lua similarity index 100% rename from tools/json-wrangler-mobs.lua rename to tools/analyzer-mobs.lua