Dialogues for new pilots added in Advanced Edition are defined via the new translation system added in ITB 1.2 (localization/Pilots_ae.csv), and do not get processed by personalities/personalities.lua script. Because of this, these new pilots do not have corresponding PilotPersonality instances in the global lua scope. This makes it difficult to add/modify dialogues for these pilots using existing methods.
In this discord message, tosx simply created new global instances for the new AE pilots, and that seems to work, since the game falls back on the old, deprecated texts system when it cannot find a matching text.
Long term, we should probably add a modApi function to add dialogue lines like this.
Dialogues for new pilots added in Advanced Edition are defined via the new translation system added in ITB 1.2 (
localization/Pilots_ae.csv
), and do not get processed bypersonalities/personalities.lua
script. Because of this, these new pilots do not have correspondingPilotPersonality
instances in the global lua scope. This makes it difficult to add/modify dialogues for these pilots using existing methods.In this discord message, tosx simply created new global instances for the new AE pilots, and that seems to work, since the game falls back on the old, deprecated texts system when it cannot find a matching text.
Long term, we should probably add a modApi function to add dialogue lines like this.