8000 Faces: not hardcoding number of items in image · Issue #77 · leethomason/unflobtactical · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Faces: not hardcoding number of items in image #77
Open
@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0