Forum rules - please read before posting.

Translation of objectives

edited February 2022 in Technical Q&A

Small question:
I have tons of objectives in my game, but the only string that is display to players is the description. When I gather texts though, I also get the name of the objective + all the states like Started & Completed duplicated for every objective. Is it possible to specify somewhere that at least the objective states doesn't need to be translated?

Thanks

Comments

  • The Speech Manager's "Translatable text types" dropdown allows you to filter out certain text types from being included in translations, but objective states and their descriptions are grouped together.

  • I see, might I suggest an event be added to EventManager to allow folks to intercept the export process? Something like:

    EventManager.BeforeTextExported += exportInfo =>
    {
    exportInfo.SpeechLinesToExport = exportInfo.SpeechLinesToExport
        .Where(o => o.textType == AC_TextType.Objective && !descriptions.Contains(o.text))
    .ToList();
    };
    

    Could be helpful for anyone wanting to filter (or in other way) process the lines before they get exported.

  • "descriptions" being a separate list of description strings to check against?

  • edited March 2022
    Exactly, I can get those from querying the description of all objectives.

    Another solution might be to add an excludeFromExport member to SpeechLine itself, that you could just check when exporting.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.