Reb? - Toolbars & Portraits

Any technical questions for Waterloo go here!
Crikey
Reactions:
Posts: 447
Joined: Mon Aug 09, 2010 4:55 pm

Reb? - Toolbars & Portraits

Post 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.

Image

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)
User avatar
RebBugler
Reactions:
Posts: 4252
Joined: Sun Aug 03, 2008 12:51 am
Location: Ouachita Mountains, Arkansas

Re: Reb? - Toolbars & Portraits

Post 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.
Bugles & Flags Gettysburg - Toolbar, Flags, Scenarios, and More...
Crikey
Reactions:
Posts: 447
Joined: Mon Aug 09, 2010 4:55 pm

Re: Reb? - Toolbars & Portraits

Post by Crikey »

Reb - Thanks for coming back so quickly. All a bit puzzling. Hopefully something we'll see at some point. . :)
Last edited by Crikey on Sat Oct 10, 2015 10:18 pm, edited 1 time in total.
Saddletank
Reactions:
Posts: 2171
Joined: Sat Dec 24, 2011 4:49 am

Re: Reb? - Toolbars & Portraits

Post 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.
HITS & Couriers - a different and realistic way to play SoW MP.
Crikey
Reactions:
Posts: 447
Joined: Mon Aug 09, 2010 4:55 pm

Re: Reb? - Toolbars & Portraits

Post 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.
Crikey
Reactions:
Posts: 447
Joined: Mon Aug 09, 2010 4:55 pm

Re: Reb? - Toolbars & Portraits

Post 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.
Jim
Reactions:
Posts: 1082
Joined: Tue Nov 27, 2007 8:53 am

Re: Reb? - Toolbars & Portraits

Post 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
"My God, if we've not got a cool brain and a big one too, to manage this affair, the nation is ruined forever." Unknown private, 14th Vermont, 2 July 1863
Crikey
Reactions:
Posts: 447
Joined: Mon Aug 09, 2010 4:55 pm

Re: Reb? - Toolbars & Portraits

Post 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.
Last edited by Crikey on Sun Oct 11, 2015 9:48 pm, edited 1 time in total.
Jim
Reactions:
Posts: 1082
Joined: Tue Nov 27, 2007 8:53 am

Re: Reb? - Toolbars & Portraits

Post 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
"My God, if we've not got a cool brain and a big one too, to manage this affair, the nation is ruined forever." Unknown private, 14th Vermont, 2 July 1863
Crikey
Reactions:
Posts: 447
Joined: Mon Aug 09, 2010 4:55 pm

Re: Reb? - Toolbars & Portraits

Post by Crikey »

Thanks Jim.

That's helpful info.
Post Reply