Skip to content

feat: the log names a mod's sprite shape that is cut short - #1329

Merged
vdmkenny merged 1 commit into
mainfrom
feat/log-cut-short-shapes
Oct 23, 2026
Merged

vdmkenny merged 1 commit into
mainfrom
feat/log-cut-short-shapes

Conversation

@vdmkenny

Copy link
Copy Markdown
Collaborator

A shape whose rows run past its block, as a broken set from a mod can hold, reads as a placeholder and draws nothing. Nothing said so, so a mod's author saw a piece of the display go missing with no hint why.

  • spr.Sprite.cutShort tells such a shape from the game's own placeholders by its header's sane bounds.
  • hud.warnCutShort logs each one as a set is opened: the display's set, the front end's and the dialogs' sets, the ship schematics and the scripts' own sets.
  • The sprite format docs and the modding guide's log messages say so.

Checked: none of the 325 shipped sets has a cut-short shape (144 placeholders, all with nonsense bounds), so the game's own sets stay quiet. A mod with a HUDHARD.SPR cut short by two bytes logs HUDHARD.SPR: shape 410 is cut short: its rows run past the end of its block, so it draws nothing.

Closes #1079

A shape whose rows run past its block, as a broken set from a mod can
hold, reads as a placeholder and draws nothing, and nothing said so, so a
mod's author saw a piece of the display go missing with no hint why.

The sprite reader now tells such a shape from the game's own placeholders
by its sane bounds (spr.Sprite.cutShort), and wherever OpenReliant opens
a set, the log names each one: the display's set, the front end's and the
dialogs' sets, the ship schematics and the scripts' own sets. None of the
325 shipped sets has one.
@vdmkenny
vdmkenny merged commit 99ff9a2 into main Oct 23, 2026
4 checks passed
@vdmkenny
vdmkenny deleted the feat/log-cut-short-shapes branch October 23, 2026 18:30
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.

Log a shape in a mod's sprite set whose rows run past its block

1 participant