Bots: env reporting, TFIL movement, gun selector and docs refresh
DevControlBot DevControlBot.sh env-file handling and defines, tfil.nim
survival-movement rework, README
ModularBot .env.example, ModularBot.nim, env_report.nim, vbullet_draw.nim
PPO_Bot enemy_tracker.nim
common_libs gun_harness/selector.nim
tests env_report, lead_gain_legacy, rack_membership,
rack_stat_width, tm_pattern_registration adjustments
docs env_reference.md, goto-controller-algorithm.md
This commit is contained in:
@@ -226,6 +226,8 @@ TR_RACK_TMSELECT=off # Tsetlin machine used as the shot selector
|
||||
TR_RACK_TMPATTERN=off # Tsetlin machine used as a pattern matcher
|
||||
TR_RACK_TMHORIZON=off # horizon Tsetlin automata gun
|
||||
TR_RACK_LEADGAIN=off # per-range-band learned lead-gain corrector
|
||||
TR_RACK_KNOWLEDGE=off # learned angular-residual corrector on the lead forecast
|
||||
TR_RACK_WAVEELM=off # online-ELM learned (x,y) offset on the analytic intercept
|
||||
# Give every named gun a fixed share of the turns instead of ranking them.
|
||||
# e.g. TR_RACK_SHARE=PATTERN:60%,HEADON:40% (GUN:weight, comma separated,
|
||||
# the % sign is optional). Empty = the ranking selector. GOTCHA: every gun you
|
||||
@@ -236,8 +238,9 @@ TR_RACK_SHARE=
|
||||
# Drop whole guns by rack id (comma separated, e.g. 16). Empty = keep them all.
|
||||
# Ids: 0 HEADON 1 LINEAR 2 TSETLIN 3 CIRCULAR 4 GUESSFACTOR 5 PATTERN
|
||||
# 6 WALLBOUNCE 7 ACCEL 8 STOPSHOT 9 DISPLACE 10 AVGLEAD 11 DECAYGF 12 KNN
|
||||
# 13 TMSELECT 14 TMPATTERN 15 TMHORIZON 16 LEADGAIN. A disabled gun never even
|
||||
# spawns a virtual bullet, so its fitness stays empty and it cannot be picked.
|
||||
# 13 TMSELECT 14 TMPATTERN 15 TMHORIZON 16 LEADGAIN 17 KNOWLEDGE 18 WAVEELM.
|
||||
# A disabled gun never even spawns a virtual bullet, so its fitness stays empty
|
||||
# and it cannot be picked.
|
||||
GUN_RACK_DISABLE=
|
||||
|
||||
# ── gun selector (which admitted gun fires this tick) ───────────────────────
|
||||
@@ -667,6 +670,35 @@ TR_LEADGAIN_ADAPT=32 # NO-OP: the old adapt interval, no longer used
|
||||
TR_LEADGAIN_CALIB=512 # NO-OP: the old calibration interval, no longer used
|
||||
TR_LEADGAIN_SEED=20240921 # NO-OP: the old seed, no longer used
|
||||
|
||||
# KNOWLEDGE (rack id 17) — the learned additive angular residual on top of the
|
||||
# self-consistent lead forecast. It answers only the aim angle: no power, no
|
||||
# fire decision, no target picking.
|
||||
TR_KNOWLEDGE_MEM= # path of the learned table; EMPTY = memory only
|
||||
# (nothing is ever written to disk). Set to e.g.
|
||||
# /tmp/gun_knowledge.bin to persist across battles.
|
||||
|
||||
# WAVEELM (rack id 18) — the online-ELM gun. Analytic bullet/target intercept
|
||||
# (self-consistent flight time) plus a learned (x, y) offset from a recursive
|
||||
# least-squares ELM trained on the real-shot feedback. Admitted by the rack line
|
||||
# above only; this gun has NO env knobs of its own — see below.
|
||||
#
|
||||
# OFF BY DEFAULT (shipped, like every gun except PATTERN). To enable:
|
||||
# TR_RACK_WAVEELM=both (also: 1v1 | melee; aliases any/empty->both,
|
||||
# single/lock->1v1, only1v1->1v1,
|
||||
# multi/onlymelee->melee, none/disabled/disable->off)
|
||||
# UNRECOGNISED value warns on stderr and falls back to `both` (GOTCHA: a typo
|
||||
# ADDS the gun to the rack, it never turns it off).
|
||||
# FORCED SHARE: TR_RACK_SHARE=WAVEELM:50,PATTERN:50 works, but only if
|
||||
# WAVEELM is admitted above — a share naming an `off` gun is refused.
|
||||
# NOTHING TO TUNE FROM HERE: WaveLambda (0.1 ridge), WaveRho (1.02 forgetting),
|
||||
# WaveIters (20 intercept iterations), WaveMaxResidual, WaveMaxOffset,
|
||||
# WaveTraceSlots and the ELM seed (42) are `const`s in
|
||||
# common_libs/guns/waveelm.nim — changing them needs a REBUILD, not an env var.
|
||||
# No TR_WAVEELME_* variable exists; there is no persisted memory path either
|
||||
# (the ELM is rebuilt from scratch every battle, unlike KNOWLEDGE).
|
||||
# Per-shot behaviour for every admitted gun is logged by the shared stats writer
|
||||
# (GUN_STATS_PATH below).
|
||||
|
||||
# PATTERN — the shipped gun, the only one the rack admits.
|
||||
TR_PATTERN_LEN=10 # ticks of movement history used as the search key
|
||||
TR_PATTERN_DEPTH=500 # how far back the history scan may reach
|
||||
|
||||
Reference in New Issue
Block a user