Skip to content

[Bug] Submarine names > 6 characters are truncated/replaced with garbled characters in Deployable feature (now reproduced on CN Client) #153

@Aizen232503

Description

@Aizen232503

Description:
When using the Deployable feature in AutoRetainer to manage submarines on the CN server, I encountered an issue regarding name length and string matching.

Steps to Reproduce / Problem:

  1. Rename a submarine to a name longer than 6 characters (the CN client allows up to 7 characters for submarines).
  2. Observe the name in the AutoRetainer UI or the setting json file.
  3. The characters exceeding the 6-character limit are replaced by a garbled symbol as the picture below.
Image

Impact:
Because multiple submarines may end up with the same "truncated" name in the UI, the plugin's internal logic—which appears to rely on string matching as is shown for the field "EnabledSubs" below—fails. This causes the automation process (such as the Redeploy loop) to get stuck or fail to recognize the correct target.

Image

Once the submarine names are shortened to 6 characters or fewer, all features function normally. This further indicates that the issue is likely related to character length rather than Chinese character encoding.

This has been reproduced consistently on the CN Server. Due to limited time, I have not yet tested this on the Global (EN) client. In the CN version, submarine names can be up to 7 characters, while retainer and player names are limited to 6. This might be why the Retainer module does not exhibit this issue, as it never exceeds the internal buffer/length limit.

Thank you very much for your help in investigating this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions