Life & Legacy [v0.1.02] [XlanderXXX]
Life & Legacy — a deep life and dynasty simulator that mixes the year-by-year chaos of BitLife with multi-generational houses, a living economy, and an interactive AI Game Master.
See More
See More
See More
2. OR in online version, just click and play.
See More
See More
(“· v0.1.02”), MCP `initialize` server info, `src/README.md` title, `src/docs/ARCHITECTURE.md` title.
– Save format untouched — no migration bump, all old saves load as before.
– Fixed **Director Mode defect 1**: opening it with no live life silently did nothing — now toasts
“✨ Start or load a life first — Director needs a soul to direct.”
– Fixed **Director Mode defect 2**: unbounded AI waits wedged the modal for up to ~300s — staging
is now bounded (scene ~90s + repair ~45s, then deterministic fallback), narration capped at 25s,
with an elapsed ticker and an honest “~90s max” label.
– Added **✖ Cancel** to Director staging: a run-token (`directorRunId`) drops late AI results and
restores the UI, plus a token bump drops late-arriving art.
– Added **Director minor safety**: a MINOR RULE sentence is appended to all 4 Director AI tasks when
the soul is under 18 (non-graphic/implied, mechanics intact).
– `paintScene` now **skips sexual-scene art for minors** (keyword-tested; dates, kisses and romance
are unaffected) and the loader says so honestly.
– Added **FTUE**: a first-life-only birth-log orientation tip (`ll_ftue_v1` flag, never repeats) plus
a pulsing gold ring on the Age+ button while under age 3 (reduced-motion safe).
– Fixed the **stale-face portrait bug**: changing identity (new life / load / heir / growTo) now
clears the old portrait instantly and shows the new life’s avatar until the fresh paint lands —
previously the previous face lingered 8–120s and read as “my choices were ignored”.
– **Pro audio compression**: music re-encoded to 128k MP3 and the 12-file SFX bank to 80k mono MP3
(~35% smaller: 7.2MB → 4.7MB), with per-file gapless-trim offsets measured at encode time.
– Swapped the favicon to a permanent PNG (`src/images/favicon.png` → uploads URL), wired into
`$meta icon`, render-time favicon, static `rel=icon` and `apple-touch-icon`.
– Trimmed the `#app` bottom blank band (110px → 48px) and the footer to a single line.
– Shipped 6 marketing screenshots (3 desktop + 3 mobile) + a separate adult-gated Director scene shot.
– Verified: migration-test 36/36, validate-content 781/0, parity 266/0/0, typo-scan clean, bootOK true,
full 5-year playtest with save/load round-trip, 0 console errors.
v0.1.01:
See More
cached queries, named systems — market tickers and NPCs run as entities.
– Added **EDA + CQRS-lite bus** (`bus.js`): `dispatch({type})` commands (act/age with timing),
append-only event journal, pure `query()` reads, projection read-model (acts/ages/ticks/births/deaths).
– Added **WASM RNG** (`wasm/rng.wasm` + loader): xorshift + gaussian, validated over 20k draws,
reseeded per soul at birth; central `rnd()` routes through it with a Math.random fallback.
– Added **WebGPU compute** (`compute.js`): WGSL `gbmBatch` + `lerpBatch` kernels with typed-array CPU
fallback; fixed 3 real GPU bugs live (float-corrupted u32 uniform, stripped `vol` binding breaking
auto-layout, STORAGE buffers missing COPY_DST) — GPU now bit-matches CPU.
– Added **CG-WFC year-rhythm + LLM guidance** (`pcg.js`): 12-month transition ring modulated by life
context, deterministic per life+year, one log line per year; `modifiersFor` (income/stress/health/
mood/GDP) wired into work/body/money; `eventWeightMult` (0.35–2x, never suppresses key events)
wired into event selection; plan lines feed AI prompts and the Director STAGING PLAN.
– Added **MCP JSON-RPC 2.0** (`mcp.js`): 14 tools (life.new/act/actMany/age/status, market.status/tick,
world.news, npc.list, pcg.guide/plan, bus.journal/projection, log.tail) + 6 resources + prompt
templates; fixed a self-echo storm (replies re-processed as requests) by handling method-calls only.
– Drove the architecture into the sim (no new files): NPC aging/economics as ECS systems, social
drift as one compute batch, ageUp/endYear on the bus, rhythm line in every AI prompt tail.
– Added the **AI provider registry** (`ai-providers.js`): Perchance built-in default + optional
OpenAI-compatible BYOK endpoint (key in localStorage only, test-both button, third-party notice),
auto-fallback chain, stoppable, vision-Blob support — all 19 `aiText` call sites behave identically.
– Added **offline support**: `#offlineBar` + online/offline listeners, Help copy, ARCHITECTURE §7,
and a 10-year offline drill in the perf harness (0 throws, 0 stuck).
– Wrote the **ARCHITECTURE.md** one-page contract (load order, save contract, tick order, testing
rules) and **perf-test.js** budgets: newLife ~30ms, ageUp ~22ms median, fire-pick ~0.04ms.
– **Audio overhaul**: replaced the flaky embedded-radio player with shipped MP3s — cinematic
ambient score + intro/auth/loader legs with crossfades — plus a 12-file synthesized offline SFX
bank, a stall watchdog (frozen-clock retry), and a fixed loader-poison bug.
– Built the **cold-open prelude**: ember canvas + drawing crown intro, staggered title reveal,
auth screen (device-local accounts with salted hashes + lockout, guest mode, sessions), ~6s
cinematic loader with staged captions; music follows every leg.
– Added **500 new events** (281 → 781 unique, 0 validator errors; under-18 batches carry zero adult
tags) and the **dedup `mature` pack layout** (content v3 → v4: buckets carry only exclusives,
everything else 18+ lives once in `mature`, lazy-loaded at 18) with a brute-force 0-orphan proof.
– Shipped the **mod system** (`mods.js`, `MOD_SCHEMA = 1`): repo mods + player pasted-JSON (pure data,
400KB cap), 5 surfaces (bucket events, tab verbs, yearly twists, AI flavor, repo-script hooks),
quarantine-first validation, Help UI with enable/disable/remove, `validate-mods.js` harness;
core-colliding verb ids are rejected at registration and by the validator.
v0.1.00:
See More
`EVENT_SCHEMA`, ordered idempotent steps (never edited in place), downgrade/”newer” guards,
corrupt-save gate, per-event schema upgrades, `migration-test.js` (36/36); validator and
build-events derive versions from `migrate.js` instead of hardcoding.
– Fixed **image generation end-to-end**: basic-leg-first race (advanced joins as backup), per-attempt
timeouts, prompt caps, null-safe fallbacks, tap-to-retry loaders, avatar fallback for portraits,
and a Art toggle for fully offline text-only play.
– Fixed the **passive death spiral**: unemployed adults earn day-labor food money, homelessness
quarters living costs and freezes debt interest, stray negatives fold into debt at year start,
and /health/stress warnings name the remedy (Jobs / Side hustle / Doctor) — neglect now kills
slowly with notice instead of silently at 27.
– Made **senior risk frailty-scaled** (fit 75-year-olds resist like fit 75-year-olds): natural lives
land ~80–95, engine proven alive to 105 with save round-trip at 100.
– Added the **company war**: rival firm per company (growth, poaching, price wars, hit pieces),
hostile buyout bids at 1.25x when dwarfed (accept premium sale / snub +hostility),
gang-heat raids on company cash (security halves), buyout achievement.
– Added **gestation/custody**: conception → 3 trimesters → delivery (miscarry risk, 12% twins),
legitimacy + affair scandal/karma, divorce per-kid custody rolls (money/prestige/karma/luck),
sue-back verb, prenatal care, $3k yearly support.
– Added **16 achievements** (localStorage store, toast + milestone log, dynasty-grid rendering with
top-4 collapsed view) and the **nemesis arc** (heat 0–100, yearly beats, 3 endings: bury/expose/ruin).
– Added the **death ledger** (peak net worth, lovers, corruption, nemesis outcome, milestones) with
Copy, plus **typewriter event streaming** (click-to-complete, reduced-motion instant).
– Made chat **epic multi-bubble**: fast first message, per-leg bubbles, dynamic length
(standard ~900 words / `/long` 2000+ / `/short` brief / `/medium`), Continue appends, Retry
regenerates, `/world` narrator chapters, `/img`, `/clear`, `/help`, autocomplete dropdown.
– Fixed **event portraits**: composition-first prompts (wide shot, everyone visible, never a
close-up) with fresh per-call seeds for scenes/events; portraits keep the locked identity seed.
– Expanded **appearance DNA v2**: 20 skins, 18 eyes (incl. heterochromia), 12 builds, 7 heights,
10 figures, 24 hairstyles, 22 hair colors, 8 lengths, 12 faces, 11 facial-hair, 19 marks,
14 styles, 12 voices — heritage-correlated pools, stat weights with live modal preview.
– Set the **portrait repaint cadence**: refresh on age-gap ≥3, every developmental tier change,
job/partner/kids/house change, or after any failed generation (retry next year, never 5 frozen years).
– Hardened **saves for sandboxed iframes**: 4-tier chain (kv-plugin → native IndexedDB mirror →
localStorage → in-memory) with 8s-raced newer-wins adoption, so a blocked store degrades to
“Download save” instead of losing lives.
– Gave **every AI call a timeout** with stop-first semantics (fixed a plugin quirk where `.stop()`
resolves instead of rejecting) and reachable deterministic fallbacks for biography, obituary,
NPC chat and Director custom scenes.
– Added **bug-watch**: console/error/rejection capture, 5-year auto-report toasts, topbar badge
(hidden at rest) + error-log modal, Help entry point, auto-mode that skips open modals.
– Added the **boot health check**: 40+ files, key globals, versions and load sequence verified with
`__LL_BOOT_OK` / `__LL_BOOT_MISSING` and a recovery banner that names what’s missing.
– Adopted **remember-plugin** (tab + fate realm survive reloads), **mermaid dynasty/divergence
charts**, lazy **community guestbook**, and **Wikipedia grounding** (≤280-char cached summaries,
fictional worlds labeled inspiration-only).
– Hardened **load order** (I18N null-guards, live FX binding, sequence check, every file registers
last so half-loaded files read as missing) and added **S-typo tripwires** (`checkS` warn-only +
`typo-scan.js` over all 40+ engine files).
– Removed the confusing chapters stage, hid the AI pill from the topbar, made crimson the default
theme, fixed the 640px music-iframe overflow and the forced-dark-controls bug.
v0.1.00:
See More
careers → love/weddings/twins → feasts, hunts, elections, startups → fame, prestige, dynasty,
heirs → ribbon + AI obituary.
– **Yearly pipeline**: world tick → jail short-circuit → calendar → body/work/money → social/family/
fate → events → endYear (story, ambition, burnout, history, autosave, render).
– **Event engine**: age-bucketed packs with weighted picks, preconditions, multi-choice outcomes,
once-per-life and yearly budgets, anti-repeat rotation.
– **7 save slots + autosave** (localStorage) with download/import and byte-identical round-trips.
– **AI biographer** (life story, yearly beats, obituary) + **photorealistic AI portraits** on a
locked seed with appearance DNA for consistency + cinematic event stills.
– Start screen (random + custom lives, quick-start presets, theme picker, “How a life goes” card),
**8 game tabs** (activities, education, money, health, social, family, crown, world), create-a-life
modal with 205 countries and heritage picks.
– Jail + underworld + crime sprees, stock market (10 tickers, dividends, analyst outlook) +
companies, NPC life sim (jobs, marriages, babies, deaths, rivalry, rumors), world timeline with
divergence tracking, Anya help guide.
– Dark/light themes, EN/ES i18n beginnings, music + SFX, full birth-to-death playtests green.
See More
IMPORTANT:
See More
The full online version is built heavily around Perchance plugins — that’s what powers the free AI text engine (Director Mode, NPC chat, living biographies, obituaries, timeline analysis), AI portrait/scene generation, visual charts, and browser storage without paywalls or API keys.
If you prefer playing without AI or internet: an offline version is also playable with 700+ handcrafted offline events, the full school/career/business/market/dynasty simulation, family trees, and saves — just without AI image generation and AI NPC chat.
See More
– **Era-Accurate Character Creation:** Pick any Date of Birth first — countries, regions, and cities unlock based on the historical year. Customize 13 appearance attributes, family background, stats, and life ambition, or jump straight in with Peasant, Royal, or Chaos quick starts.
– **School to Senate (or Prison):** Childhood grades decide college admission and scholarships, with college majors, grad school, 40+ careers, startups you can grow to IPO, fame & followers, weddings, parenting, and a full underworld/prison track.
– **A Living World & Historical Timeline:** A macro economy ticks every year (GDP, inflation, interest rates, booms/recessions, housing, and tradable stocks). Family members and rivals get jobs, marry, and age on their own. Open the searchable World Timeline to see how your world diverges from real history (inevitable, diverted, averted, or hypothetical future).
– **Director Mode (Type Anything — With Real Mechanics):** Describe any twist, windfall, betrayal, or disaster. The AI stages it as an illustrated scene and applies grounded game mechanics — showing the exact stat, money, prestige, relationship, or jail effects on every choice before you pick. You can also type custom responses to any regular event.
– **NPC Chat With Persistent Memory:** Chat directly with anyone in your life (parents, spouses, rivals, kids). They remember past gifts, insults, and conversations — and you can view/edit their memory, generate their portraits, or use `/` chat commands.
– **Quality of Life:** Auto-play mode, 7 save slots + automatic yearly autosave + JSON save export/import, 5 visual themes (Midnight, Ivory, Parchment, Crimson, Abyss), 7 UI languages, ambient soundtrack & SFX, persistent cross-life Achievements, an in-game AI guide, and a one-click Art toggle if you want fast text-only runs.
