Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
#628352 08/10/17 06:05 PM
Joined: Oct 2017
Location: NW USA
Nashes Offline OP
journeyman
OP Offline
journeyman
Joined: Oct 2017
Location: NW USA
Hey guys & hopefully a Larian emp,

Running into a custom race problem. Everything is working properly, but this custom race has blindfolds by default, but I cannot find a way to change the color of the blindfold.

"ClothColor" is defined in the race code by default, so the values exist, thus I tried using the following attributes in code below to call a color (that would then define the blindfold color):

Code
<attribute id="MaleDefaultClothColor" value="x" type="5" />

<attribute id="MaleDefaultClothingColor" value="x" type="5" />

<attribute id="DefaultClothColor" value="x" type="5" />

<attribute id="DefaultClothingColor" value="x" type="5" />


None of these calls worked successfully. Any ideas? Or, @Larian, did you define "cloth colors" but then decided they were irrelevant since it's generally defined through equipment?


edit: Current workaround is to change VisualSet's first ClothColor to desired clothing color. You cannot delete Cloth Colors in a VisualSet (the editor automatically readds them). Not a viable solution, but until this gets looked into that's the alternative.

Last edited by Nashes; 09/10/17 03:22 AM.
Joined: Oct 2017
Location: NW USA
Nashes Offline OP
journeyman
OP Offline
journeyman
Joined: Oct 2017
Location: NW USA
Bumpeh.

Joined: Sep 2017
Location: Belgium, Ghent
addict
Offline
addict
Joined: Sep 2017
Location: Belgium, Ghent
Hey Nashes,

The bumpeh was noticed smile Let's see if I can get this sorted. A few remarks/questions first to clarify things for me:

On default colors
The default color values refer to the ID value of the ColorDesc nodes lower in the file under ClothColors. You're trying to fill those IDs in where you put 'x', right?

On custom races in general
Be sure to use a "hero" root template with a hero visual set. (Or make your own of course.)
If using a normal npc set you might run into difficulty with properly equipping and using equipment loot.

On changing colors
You can't seem to change the initial color then, according to what I understand. But are you also unable to change the color in character creation? (Also when using a "hero" root template, if this wasn't the case yet).

You can also find some accompanying info on this in our (work in progress) character guide.

Sincerely,
Kevin

Last edited by Larian_KVN; 16/10/17 02:12 PM.

CTRL+K the elf
Joined: Oct 2017
Location: NW USA
Nashes Offline OP
journeyman
OP Offline
journeyman
Joined: Oct 2017
Location: NW USA
Hey Kvn! Sure, let me see if I can clarify and answer.

I'll start by mentioning my custom race has a custom VisualSet, and therefore to get this working I made a copy of the Human_Hero_Male roottemplate and connected the two. The roottemplate calls for HumanMale equipment sets so in-game it automatically uses human equipment styles, which works perfectly. This VisualSet consists of all the _naked attributes like other races, with two exceptions: there are a few hoods/helmets that can be chosen under the hair/helmets to give a lot of flavour, especially for portrait generation. The second exception is in the VisualSet, under Visual8, I added blindfolds.

This all works completely as intended at character creation. Since the game code doesn't define allowing the player to change Visual8, when this race is selected you will have blindfolds no matter what, exactly what I want.

The problems I'm running into are.....
-1) the hood/helmet (if chosen) and blindfolds default to the very first color in the list in the VisualSet cloth colors.
-2) the player cannot change this color (probably not possible) and
-3) since 2 probably isn't possible, I don't know how to choose the cloth color for the race's undergarments/blindfold/hood-helmet in the race file (I tried the above things in the first post to do so, only directly changing the VisualSet's first clothcolor works but this doesn't give player customization).


As a sidenote that may be important for clarification, the character's underwear defaults to the same first color (so on male humans, their underwear is a yellowish color, which is the first ClothColor defined in their visual set; on female humans, this same color is found in their visual set so it applies to their undergarments alongside their hairstyle's ponytail band/etc).

An additional sidenote is that if there is a way to define the clothcolor in the race file, I'm pretty sure that only affects the primary color--so secondary and tertiary colors wouldn't be defined (I'm less concerned about this though).

Does this help? Or is it more confusing? Aha.


Moderated by  Larian_KVN 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5