Discuss Campaign Dialog Portrait Fix
Hello!
I made this mod because the mismatching portraits in dialog annoyed me for many reasons:
- Some named characters were given the wrong portraits in some instances. Ka:nien and Chayton being the worst offenders.
- Generic characters either were just given Crossbow/Skirmisher portraits regardless of the unit flashing during the dialog, or were given no portraits at all. I did my best to make them fit the context of each situation.
- Some portraits went unused and buried in the files, despite there being multiple chances to use them. Neamaltha and Mototada are examples of this. I took this chance to give them a chance to shine.
I also did a bit of text editing for some redundancies in the dialog, as well as naming some “generic” characters (Young Chilche, Neamaltha, some Daimyos in Sekigahara).
Unfortunately, additive modding wouldn’t allow me to make an additive mod with portrait changes. Unless this changes, I’m forced to use the stringtabley.xml file directly. This might cause issues with other strings mods in English.
Let me know your thoughts!
I’m also annoyed by the inconsistency of the portraits. Once upon a time I created a list (not entirely relevant for today)
Custom character portraits in AoE3 DE dialogs: how I got it working
If you’ve tried showing a portrait with Send Chat or Play Dialogue, you’ve probably hit a wall. Send Chat has no portrait at all, and Play Dialogue (with “ue”) has Character/Portrait fields that do nothing, because it only uses the subtitle string ID.
The trick is to use the effect Play Dialog (without “ue”). Its Portrait field is just text, so you can type a path to any image:
resources/art/units/<file>.png
Use forward slashes and include the folder and the .png extension. If you write only the file name, the box comes out empty, and if you skip the extension you get a pink/black texture. There’s no name field, so I just put the character’s name in the subtitle.
One thing to know: the box has no duration and stays on screen until another Play Dialog replaces it. The only way I found to close it is Cinematic Mode (Enter true, Letterbox false, in a separate trigger with a Timer, then Enter false one second later). It locks the player’s controls while it’s on, so I only use it for back-to-back conversations.
Also, effects in the same trigger run at the same time, so use one trigger per line, each with its own Timer.
Hope it saves someone a few hours, it costed me a lot!