Skip to content

Migrate rocket info gui to scenario and fix for Space Age#420

Open
bbassie wants to merge 2 commits into
explosivegaming:mainfrom
bbassie:feature/rocket-info-gui
Open

Migrate rocket info gui to scenario and fix for Space Age#420
bbassie wants to merge 2 commits into
explosivegaming:mainfrom
bbassie:feature/rocket-info-gui

Conversation

@bbassie

@bbassie bbassie commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Migrates the rocket info gui out of exp_legacy into the modern exp_scenario module and fixes it for Factorio 2.0 / Space Age.

  • New exp_scenario/module/gui/rocket_info.lua built on the current exp_gui element API, matching the style of the other scenario guis (autofill, research_milestones, player_stats). The per-force stats, launch times and silo tracking from the legacy modules/control/rockets are folded into the gui module.
  • Space Age fixes: dropped the auto/remote launch controls (auto_launch was removed from the 2.0 api) and count launches via on_cargo_pod_finished_ascending instead of the old launch event. Build progress still uses rocket_parts / waiting_to_launch_rocket.
  • Added the exp-gui_rocket-info locale section to exp_scenario/module/locale/en.cfg.
  • Disabled the legacy module in the file loader and re-enabled the gui/rocket-info role permission.

Notes

  • Chinese locale strings were not added; missing keys fall back to English.
  • The now-orphaned legacy files (exp_legacy/.../modules/gui/rocket-info.lua and .../modules/control/rockets.lua) are left in place but disabled via the file loader.

Testing

image

🤖 Generated with Claude Code

bbassie and others added 2 commits June 18, 2026 00:18
Port modules/gui/rocket-info into exp_scenario/gui/rocket_info using the
new exp_gui element API, matching the other scenario guis. The per-force
stats, launch times and silo tracking from the legacy control module are
folded into the gui module.

- Drop the removed auto/remote launch controls and count launches via
  on_cargo_pod_finished_ascending instead of the old launch event
- Add the exp-gui_rocket-info locale section
- Disable the legacy module in the file loader and re-enable the
  gui/rocket-info role permission

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Address review feedback: store the per-force rocket stats, launch times
and silos on the container's force data instead of a separate storage
registration, and rebuild the stats, milestone and progress tables with
add_row/refresh_row helpers that update label references in place.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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