Custom AI has stretched portrait

I've been making my favourite science fiction races as custom opponents, using custom portraits. But if I use a 256x256 portrait, I get a stretched picture on the diplomacy screen, and if I use a 392x256 portrait, the race portait is squished. Is there a way (without modding) to assign both a trade portrait and a normal portrait to a custom opponent?
2,991 views 2 replies
Reply #1 Top
You cannot set separate images in-game, but it's quite easy to change them manually. Simply open the custom race's file (My Documents\My Games\GC2DarkAvatar\RACENAME.customracexml) in a text editor, and change the following lines:

        <Portrait>Gfx\Race\RaceImage_Korath.png</Portrait>
        <DefaultTradePortrait>Gfx\Race\RaceImage_Korath.png</DefaultTradePortrait>

Set Portrait to the location of the 256x256 image, and DefaultTradePortrait to the 392x256 image.
Reply #2 Top
Okay, thanks. Is it safe to edit the custom race in-game afterwards, or will that reset the race image?

edit: Hmm, I noticed the XML does have an entry for the trade image: [filename]_Trade.png. I'll try renaming my trade images to that format.

edit: It works!