fs2open.github.com icon indicating copy to clipboard operation
fs2open.github.com copied to clipboard

FR: change-ship-display-name

Open BMagnu opened this issue 3 years ago • 5 comments

Sometimes, a ship might want to change its name. Turns out, scripting can do that already. Buuut, caveat: You need to refer to the ship in question through when-argument SEXPs going forward, as you need to call it by its new name, but the SEXP error checker will refuse the new name as no such ship exists at parse time.

One solution to that problem is to have a name change SEXP that'll iterate through the SEXP tree, each ship's / parse_objects AI goal target names, arrival/warpout conditions and so on and update the references accordingly. But that's brittle, as we see with ship-change-class which reaches less far than change-name would.

The suggestion is thus to introduce a display-name which is used for all user-facing display, but for no internal addressing. This could then be freely changed by SEXP without concerns.

BMagnu avatar May 25 '22 19:05 BMagnu

Seems like an idea that's about 20 years overdue, really

EatThePath avatar May 25 '22 20:05 EatThePath

A ship display name feature already exists. The only thing needed is the change-display-name SEXP.

Goober5000 avatar May 28 '22 05:05 Goober5000

Axem already created a lua sexp for me a little while back that does just this, and I'd be happy to redist it. Certainly wouldn't be a bad idea to create a real sexp though.

Durandal-Thoth avatar Jun 21 '22 17:06 Durandal-Thoth

Seems like this sexp already exists in ship-change-alt-name unless alt names and display names are specifically different?

MjnMixael avatar Feb 10 '23 20:02 MjnMixael

Dark Visor is working on this.

Goober5000 avatar Aug 10 '24 19:08 Goober5000