Skip to content

Export more entities and entity properties#2822

Open
oznogon wants to merge 5 commits intodaid:masterfrom
oznogon:export-more-entities
Open

Export more entities and entity properties#2822
oznogon wants to merge 5 commits intodaid:masterfrom
oznogon:export-more-entities

Conversation

@oznogon
Copy link
Copy Markdown
Contributor

@oznogon oznogon commented Mar 30, 2026

Expand what's exported by the "Copy scenario"/"Copy selected" buttons on the GM screen.

  • Consolidate common entity properties to export functions.
    • Expand Basic export; add callsign, scan_state changes
    • Expand ship changes export: add propulsion, beam mounts, docking port/bay properties, AI orders
    • Add type-specific exports: API functions to populate properties specific to that type of entity
  • Reimplement utils.lua isObjectType() checks for getEntityExportString().
  • Export Lua API functions for more entity types.
    • VisualAsteroid(): basic export
    • Planet(): type-specific size, textures, distance from plane, spin
    • WormHole(): type-specific gravity, target
    • SupplyDrop(): type-specific energy and weapon supplies
    • WarpJammer(): type-specific range
    • ScanProbe(): type-specific lifetime, move_to speed
    • Artifact(): type-specific spin

Limitations:

  • Doesn't capture internally docked ships

Output before: master.lua

Output after: expand.lua

@oznogon oznogon force-pushed the export-more-entities branch from 7a0e613 to 61cf622 Compare April 1, 2026 04:37
@oznogon oznogon marked this pull request as ready for review April 6, 2026 18:56
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