John's NAS

From Era Wiki
Revision as of 18:53, 2 December 2026 by Johnera (talk | contribs)
Jump to: navigation, search
Era toho tw title full.png
erajohNAS
Genre: Sandbox / Dating Sim / Tactical RPG
Developer(s): lep2kk & John Artificial (fork of eraNAS by mrpopsalot / AnonTW)
Base Version: eraNAS 4.972
Status: Actively developed
Translation Status: English (Base game 99.7%; full Kojo English translation in active progress)
Repository link (GitGud)
Latest Build (ZIP)

erajohNAS is an opinionated, performance-fixed fork of eraNAS (based on 4.972, itself a heavy sandbox fork of AnonTW / EraToho TheWorld) focused on turning Gensokyo into a fast, reactive living world with stabilized Tactical Grid Combat and a deep social simulation engine.

Content Policy: There are zero excretion/diaper feature updates in this fork (upstream settings remain untouched and can be disabled as usual). Development is focused strictly on engine performance, combat, AI, living-world social mechanics, factions, and crime systems.

Overview

Upstream eraNAS adds massive RimWorld-style systems (body parts, hediffs, firearms, factions, raids, tactical combat) on top of AnonTW, but suffers from severe per-turn lag (~3 seconds per turn, 1–2 minutes sleeping) and unfinished/abandoned subsystems.

erajohNAS fixes the engine bottlenecks (10–18× faster turns and sleep) while keeping 100% save compatibility with existing eraNAS 4.972 saves, promotes stabilized Tactical Grid Combat (TGC) to the default combat engine, and introduces a full Dwarf Fortress / RimWorld-inspired Living World social engine.

Major Changes & Features

Performance & Engine (10–18× Faster)

  • Single-Pass Hediff Index & Fast Cripple Path (PerfMod): Eliminates ~800–1,200 redundant DT_SELECT("Hediff", ...) scans and 100-part recalculations per turn for unchanged NPCs, cutting @CHARA_MOVEMENT from ~3,000 ms down to ~170–330 ms.
  • O(N²) Bottleneck Removal: Fixed O(CHARANUM²) dead-body scans in @PASSIVE_ACTIONS, O(CHARANUM²) insemination loops in @InitializeBeforeTrain, dead room shuffles in @NAS_FORCEMOVE, and 100×100 empty-faction loops in hourly/daily ticks.
  • Throttled Sleep Redraws: Removed excessive WinForms AWAIT UI stalls during sleep and loading.
  • Save Compatibility: Persistent fork data uses Emuera.NET binary-serialized DataTables with zero new SAVEDATA arrays — existing eraNAS 4.972 saves work out of the box.

Living World & Social Engine

A lightweight, reactive social simulation layer where Gensokyo remembers events, shifts moods and loyalties, and continues living off-screen (~3–6 ms per 15-minute background tick across ~187 NPCs):

  • Event Snapshot Bus: Kills, knockouts, Danmaku duels, surrenders, rescues/resurrections, thefts, romances, requests, hate marks, and social clashes are captured as 16-field snapshots (actors, helper, location, witnesses, weapon, factions, context, severity) that spread organically by word of mouth.
  • Short & Long-Term Moods: RimWorld-style timed thoughts and memories (up to 24 per NPC) across 8 emotional channels (Joy, Anger, Grief, Fear, Shame, Comfort, Arousal, Neutral) synced with vanilla Depression/Terror, plus a live Mind & Memory Inspector.
  • Dynamic Relationships & Vendettas: Learning about events dynamically shifts RELATION, sparks blood vendettas over slain friends, builds gratitude toward rescuers and avengers, and changes subjective/public Reputation.
  • Interactive Talk Menu ([9901]): Standalone command (leaving vanilla Conversation / COM300 100% intact for Kojo compatibility) featuring 10+ social actions (Small Talk, Flirt, Joke, Comfort, Compliment, Gossip, Tell About Event, Intimidate, Provoke, Apologize, Fabricate Rumor/Lie) × 8 delivery tones (Friendly, Playful, Flirty, Empathetic, Serious, Cold, Dark, Mocking), anti-repetition saturation, and topic-variety synergy.
  • Deception, Slander & Exposure (Player & NPC-to-NPC): Fabricate rumors or frame someone for real events with realistic alibi checks (lying about the death of someone standing alive in the room is an instant bust). Lies can shatter later if a believer meets the "dead" victim alive, broadcasting an EXPOSED_LIE event that tanks trust and future persuasion odds.
  • NPC-Initiated Talk & Crowd-Talk: NPCs proactively approach the player (jokes, flirts, breaking news, angry confrontations, seeking comfort, offering favors, or trying to feed you a lie) with 4–5 interactive replies and a live Reply Tone selector. With 2+ awake NPCs in a room, Crowd Talk lets you entertain, rally, broadcast news/lies, mediate between two NPCs, or stir up drama — alongside live bystander jealousy, friend intervention, and overhearing.
  • Expanded Requests & Autonomous NPC-to-NPC Contracts: Adds 6 Living World request types (Mediate a Dispute, Settle a Score, Deliver Urgent Word, Check Up on a Friend, Field Aid & Supplies, Gather Intel). In the background, NPCs also offer requests to each other, accept or refuse based on relationship/mood/reputation, and resolve them over time.
  • Achievement & Trait 【Read the Room】: Claimable under Achievements → Social (Speech Lv.3 or 50 Conversation EXP) — reveals color-coded live % success odds for every Talk, Crowd-Talk, and NPC Reply option under your currently selected Tone.

Combat Overhaul (TGC + AI + Controls)

  • Tactical Grid Combat (TGC) by Default: Rescued from debug-only status, stabilized across 40+ 1:1 in-engine simulations, and enabled by default for standard battles (with an instant runtime toggle back to Classic anytime).
  • Real Directional Cover & Fixed Accuracy: Fixed vanilla X/Y cover bugs, added directional cover penalties, eliminated the double accuracy roll bug, and added proper out-of-range cutoffs.
  • Pure Danmaku Mode: Fixed Danmaku fights being overwritten by fists or gun attachments; displays live [Lives: X] counters and cleanly restores stamina and equipment after sparring.
  • Aimed Shots & Timeskip Move Toggle: Body-part targeting (Auto / Head / Thorax / Stomach / Crotch / Arms / Legs) with live hit % previews, free normal walking (0 TSP), and an on-demand Timeskip Move toggle for Time Stop users.
  • Keyboard QTE & Low-Mouse-Travel QoL: Pure-keyboard WASD Dodge QTE, TSP Auto-Dodge / 2× Crit prompts (toggleable), Quick Attack, keyboard hotkeys, and double-click-to-attack on the grid.
  • Lethal / Non-Lethal Toggle & Smart AI: Switch between Lethal and Non-Lethal combat without spending a turn; NPC lethality respects personality, vendettas, and hostility; rewritten TGC AI and bugfixed Classic AI properly handle cover, healing, buffs, and elemental resistances.

QoL & Polish

  • Ongoing Full English Translation: Using a syntax-safe ERB extraction and validation pipeline, core non-Kojo gameplay has reached 99.7% English, with continuous character Kojo translation waves aiming for a 100% English build.
  • Ask for Request ([9900]): Proactively ask awake, non-hostile NPCs for a request instead of fighting morning RNG.
  • No Broken Self-Study Minigames: Youjutsu study books (including Flight and the Danmaku exam) complete cleanly without softlocking behind broken minigames.
  • Male Mob Placeholders: Procedurally generated male mob NPCs render with a proper male silhouette instead of female portraits.

AI Disclosure & Credits

AI assistance (John Artificial) is used throughout this fork for code overhauls, optimization, new systems, and the ongoing Japanese-to-English translation effort.

How to Install & Run

  1. Clone the repository from GitGud (make sure Git LFS assets are pulled with git lfs pull) or download the latest archive.
  2. Run LazyLoadingV26.exe (fast startup) or Emuera.exe (full eager load).
  3. Existing eraNAS 4.972 saves placed in sav/ load directly without starting a new game.

Roadmap

  • Full English Translation: Completing English localization across all remaining character Kojo.
  • Living Factions: Real ways to earn FactionFame / FactionExperience and meaningful world consequences when territories change hands.
  • Crime, Heat & Police for Everyone: Extending CrimeAndPunishment so wanted levels and law enforcement apply dynamically to both the player and NPCs.

Base Game Reference

For core Touhou / eraTW mechanics, characters, and locations inherited from upstream:

eraTheWorld
Touhou Fate
eraTohoTW eraTW-FGO
Pedy's TW
AnonTW
eraNAS
eraTohoLiG