Page 1 of 2
Reb? - Toolbars & Portraits
Posted: Sat Oct 10, 2015 9:00 pm
by Crikey
Appreciate it if Reb or someone familiar with the above can help. I'll try and explain this the best I can.....
There seems to be 3
default officer portraits. One for each Army where a name isn't allocated in SoWWL_Portraits.xml, unless I'm misreading things.
What controls how this default portrait is allocated to a unit?
Is it merely the OOB portrait entry? Doesn't seem so.
Is it unitglobal? - in SoWGB you could amend cols W & X to point individual units at a particular friendly or enemy GUI, and its associated portraits.I'm struggling to find something similar in SoWWL.
Or another xml file?
I've worked out how to point an OOB_Name entry at a portrait by amending SoWWL_portraits.xml & the OOB.
However, I'm struggling with these defaults. For example I want new entries in unitglobal to use the default French officer portrait but they still use the British default officer portrait (not even the Prussian one) which made me think I needed to tweak unitglobal or the new xml that replaces the friendly GUI facility. However, I'm struggling to locate it.
I assume it's something tucked away in the csvs or more likely MyGUI but rather than stumble around for a few more hours I'd appreciate a steer.
I expect it's something obvious I've missed B)
Re: Reb? - Toolbars & Portraits
Posted: Sat Oct 10, 2015 10:06 pm
by RebBugler
Presently there's no 'show condition' to differentiate nationalities or officer unit types. Requests for these functions has been submitted. Otherwise, I know of no way to solve this issue of generic portraits.
I've worked out how to point an OOB_Name entry at a portrait by amending SoWWL_portraits.xml & the OOB.
You're ahead of me with this. Jim's the guy to ask concerning portrait entries, he built the latest configuration.
Re: Reb? - Toolbars & Portraits
Posted: Sat Oct 10, 2015 10:15 pm
by Crikey
Reb - Thanks for coming back so quickly. All a bit puzzling. Hopefully something we'll see at some point. .

Re: Reb? - Toolbars & Portraits
Posted: Sat Oct 10, 2015 11:26 pm
by Saddletank
I've worked out how to point an OOB_Name entry at a portrait by amending SoWWL_portraits.xml & the OOB.
I would like to know more about this please. Re-linking the commander portraits to the OOB entry is something the KS mod desperately needs.
Re: Reb? - Toolbars & Portraits
Posted: Sun Oct 11, 2015 1:14 am
by Crikey
Tank...I'll try and work up some advice for you once I've explored further. I suspect what I've found so far may not do everything that you want given the scope of the KS mod.
Re: Reb? - Toolbars & Portraits
Posted: Sun Oct 11, 2015 7:35 pm
by Crikey
I think I've found the problem that was affecting my efforts.
Unless Col B of the OOB.csv (and therefore the OOBnames.xml) uses _Fr, _Br or _Pr in the naming profile the portraits & default portraits(governed by SoWWL_Portraits.xml and the PNG) act oddly even tho you have entered the modded profile in each of the relevant files.
I suspect there's a file within MYGUI that can be amended to extend the range of OOB naming profiles that can used in game and linked to portraits but in the meantime I'll amend the OOBs I'm working with to adhere to the existing naming system.
Re: Reb? - Toolbars & Portraits
Posted: Sun Oct 11, 2015 8:38 pm
by Jim
The portraits are linked directly to the OOB ID in column B of the OOB file. This linkage occurs in the file 'SOWWL_Images.xml' which is in the directory '\Base\Layout\Media\SOWWL_Media'. For each name in the file there is a pointer to an X,Y location in the file 'Portraits 2048 grid.png' in the same directory. The X,Y location is the top left of the 90 x 116 pixel portrait. The index to the portraits shipped with the game is in the file 'Portrait coords Waterloo.xlsx 'which is also in the same directory. The current image file is about 1/2 full so there is significant room for expansion. The generic portraits are in the image file but are not in the index.
-Jim
Re: Reb? - Toolbars & Portraits
Posted: Sun Oct 11, 2015 9:40 pm
by Crikey
Thanks Jim
I'll take a look at that extra file. What you've said matches up with what I've discovered. Just a couple of extra questions... B)
1. The generic and other portraits appear to be linked to the naming conventions I mention in prev post. Is this correct and can it be modified?
2. I assume you can only have 1 portrait png, albeit it has extra spaces pending a future expansion?
Appreciate your time.
Re: Reb? - Toolbars & Portraits
Posted: Sun Oct 11, 2015 10:27 pm
by Jim
1. The assignment of the generic portraits is handled in the code. Norb or possibly Pakfront might be able to look up how that is done. Alternately, experimenting with a copy might be faster though.
2. Yes only one portraits file is allowed for as things are currently laid out. It would be hard to find enough portraits to fill up the page unless you are trying to cover the entire NW era in one mod.
-Jim
Re: Reb? - Toolbars & Portraits
Posted: Sun Oct 11, 2015 10:32 pm
by Crikey
Thanks Jim.
That's helpful info.