Modding, Mission Design, and Coding > FS2 Open Coding - The Source Code Project (SCP)

Global Name Spoofing

(1/2) > >>

Trivial Psychic:
So a few times I've used combinations of 'Hide Ship Name' and 'Callsign' to allow one ship to appear with a different display name.  It's often useful in scenarios when, "Oh, here comes ship X.  It's friendly.  WAIT a MINUTE, that's not ship X, that's ship Y!  Its an enemy!  FIRE!"  Unfortunately, things like the escort list and the status of other ships related to it, (like if they're docked to it, or are given orders that pertain to it) will still display the REAL name, regardless of my use of flags.  Is there any way (short of LUA) to solve this?  If not, is such a change trivial enough for coders to implement a simple work-around, such as "when 'hide ship name' and 'callsign' are both enabled, use the 'callsign' name for all data pertaining to that ship that is displayed to the player."?

Or, to put it in FRED code:

when
-and
--is flag enabled
---hide-ship-name
--is flag enabled
---callsign
-escort name shows
--callsign
-docked-to name shows
--callsign
-orders for other ships regarding name show
--callsign
-any other places where the player might see this that I can't think about right now name show
--callsign

How does that sound?

Mobius:
Just my two cents here, perhaps all of this could be solved by adding a third and optional argument to the add-remove-escort SEXP.

Said extra argument would manage dynamically the name by which the ship should appear in the escort list itself.

Novachen:
There exists also a 'Display Name' ($Display Name in mission files) that was introduced for my localization effort and that was a desired feature to offer the possibility to translate ship names or the name of Waypoints properly.

But actually it should be possible to get this string to create a LUA-SEXP that enables the changing of the used Display Name during a mission.

Trivial Psychic:

--- Quote from: Mobius on December 10, 2022, 11:12:24 am ---Just my two cents here, perhaps all of this could be solved by adding a third and optional argument to the add-remove-escort SEXP.

Said extra argument would manage dynamically the name by which the ship should appear in the escort list itself.
--- End quote ---

That might not solve the issue where other ships are interacting with it.  For example, if you order a ship to attack something that has the 'hide name+callsign' combination, its orders will still say that its attacking the true name of the ship, and not the one listed in callsign.

EatThePath:
that sounds like an engine oversight that should be fixed rather than worked around

Navigation

[0] Message Index

[#] Next page

Go to full version