X Tutup
Skip to content

Fix lots of missing ship labels#5842

Merged
sturnclaw merged 2 commits intopioneerspacesim:masterfrom
sturnclaw:fix-missing-label
Jun 26, 2024
Merged

Fix lots of missing ship labels#5842
sturnclaw merged 2 commits intopioneerspacesim:masterfrom
sturnclaw:fix-missing-label

Conversation

@sturnclaw
Copy link
Member

@sturnclaw sturnclaw commented Jun 18, 2024

This PR fixes #5838, and in the process fixes a number of spots where ship labels either were not appearing or may have been incorrect prior.

  • Ship labels now display and update in the new game start window. Modifying the ship label adjusts it on the craft as well, if the craft has a properly-named label node.
  • Ships on sale in a space station now display their labels on the craft if the craft model supports labels.
  • The paint shop technically appeared correct but would have resulted in the same missing label bug when saving and loading after applying the paint.
  • SearchRescue spawned ships will continue to show labels (they technically were painting a label on the ship hull and then attempting-but-failing to clear it).

CC @Gliese852 - I've made minor changes to the new game window widget API and hooked a few things up to get labels to update in sync with the model spinner; just want to double check I haven't inadvertently introduced new bugs 😄
CC @bszlrd - the Coronatrix at the very least has improperly named label nodes, causing them to be picked up as tags instead. Label nodes need to be named label_*; tag_label_* results in a tag instead. There is no need to address this immediately, but if you get five minutes it might be worth a quick fix.

- If a model skin is applied to a model which replaces a valid text string with an empty string, the old string would continue to render because the text mesh was still valid.
- Player ship skin was created (and subsequently serialized) without a label.
- Labels were not visible on ships in the new game window.
- Labels also not visible in the ship market.
- Labels should correctly be visible in the paint shop now.
- SearchRescue target ships should now display labels on their skins as well (setting the label on the ship mutates the set skin object).
- Adjusted new game window inputText widget API to support returning a changed value from the randomize function.
@sturnclaw
Copy link
Member Author

Picture!
image

@sturnclaw sturnclaw merged commit 935a3a5 into pioneerspacesim:master Jun 26, 2024
@sturnclaw sturnclaw deleted the fix-missing-label branch June 26, 2024 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ship registration number disappearing after loading saved game

1 participant

X Tutup