Skip to content

Weapon Designer: a kept launcher design opens again (brief L0) - #1207

Merged
TwitchTheSniper merged 1 commit into
mainfrom
claude/project-thread-15454d
Dec 6, 2026
Merged

TwitchTheSniper merged 1 commit into
mainfrom
claude/project-thread-15454d

Conversation

@TwitchTheSniper

Copy link
Copy Markdown
Owner

Requested by Sean · project thread

Fixed mounts brief L0: a kept launcher design crashed the game when read again.

  • A launcher's file writes no "gun"; FromJson left Gun as "" and About() called AnA("") before its mount switch (IndexOutOfRangeException).
  • A missing or empty gun now reads as its mount's default (WeaponDesign.New(mount).Gun), so a later mount switch has one.
  • AnA takes an empty word; About() returns a launcher's words first (WeaponDesign.Launch.cs, the new partial for the launcher briefs) without reading the gun.
  • Checked the other fields a mount doesn't write (size, gunhouse, box, missile, hoist, magazine): each has a safe default.

Tried: Box, Cells and Pylon files without "gun" through --weapon-design (main exits 134 on the crash; this branch builds and passes all three), and through the designer window (--weapon-designer + wdesign for each, every step): no crash.


Generated by Claude Code

A launcher's file writes no "gun", so FromJson left Gun empty and About()
threw in AnA before its mount switch: the game exited on --weapon-design and
on reopening the design in the designer. A missing gun now reads as its
mount's default, AnA takes an empty word, and a launcher's words come from
WeaponDesign.Launch.cs without reading the gun.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016kahHyxvoUKzzxLRDHTcYc
@TwitchTheSniper TwitchTheSniper self-assigned this Dec 6, 2026
@TwitchTheSniper
TwitchTheSniper merged commit 2460521 into main Dec 6, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant