Open
Description
I've been looking through the code, mainly in order to play around with the
face generator. As far as I can see, the number of items in each source image
(e.g. hairs_64b.png) is hardcoded in game.cpp (e.g. as faceGen.nHairs = 17).
It would be a lot more flexible to have this number as a field in the mod XML
input, e.g.:
<image assetName="faceHairs" filename="hairs_64b.png" number="17"
dither="false"/>
The builder might even check that the file height is actually evenly divisible
by the number.
Is there a reason not to change these numbers, e.g. for saved game
compatibili
539F
ty or whatever? If the soldier faces are just kept in a FaceParam, I
think it should not matter if the number of elements increases, as long as the
original images stay in the same order, right? The new images would only be
used in the randomizer, to make new soldiers with extra variation...
Original issue reported on code.google.com by johan.fo...@gmail.com
on 23 Oct 2011 at 4:05