1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

What is the deal with Unit model scales?

Discussion in 'Civ5 - Creation & Customization' started by Frossa, Apr 9, 2020.

  1. Frossa

    Frossa Prince

    Joined:
    Apr 29, 2012
    Messages:
    410
    Gender:
    Male
    Location:
    Sweden
    I'm currently tearing my hair at the nonsense that is Scale row of the ArtDefine_UnitMemberInfos column. I previously had a simple XML code halve the scale of all UnitMembers, in a blanket fashion similar to this:
    Code:
    <ArtDefine_UnitMemberInfos>
            <Update>
                <Where Scale="0.119999997317791"/>
                <Set Scale="‭‭0.0599999986588955‬"/>
            </Update>
    </ArtDefine_UnitMemberInfos>
    
    (0.119999997317791 is the scale of most constituents of the Settler, among other Units)

    And that worked fine. But recently, I decided to cut the scales even further, down to a third of their original values, like so:
    Code:
        
    <ArtDefine_UnitMemberInfos>    
            <Update>
                <Where Scale="0.119999997317791"/>
                <Set Scale="‭0.0399999991059303"/>
            </Update>
    </ArtDefine_UnitMemberInfos>
    
    Now all of a sudden, the number doesn't seem to register in the game at all, resulting in enormous models for all affected Units instead. The most nonsensical part of it all though is that if I pain-stakingly change the scale value for each individual UnitMember that I want to scale down, it works. Like this:
    Code:
            
    <ArtDefine_UnitMemberInfos>
            <Update>
                <Where Type="ART_DEF_UNIT_MEMBER_EURODONKEY"/>"
                <Set Scale="0.0399999991059303‬"/>
            </Update>
            <Update>
                <Where Type="ART_DEF_UNIT_MEMBER_EUROFEMALE18"/>"
                <Set Scale="0.0399999991059303‬"/>
            </Update>
            <Update>
                <Where Type="ART_DEF_UNIT_MEMBER_EUROFEMALE25"/>"
                <Set Scale="0.0399999991059303‬"/>
            </Update>
            <Update>
                <Where Type="ART_DEF_UNIT_MEMBER_EUROFEMALE35"/>"
                <Set Scale="0.0399999991059303‬"/>
            </Update>
            <Update>
                <Where Type="ART_DEF_UNIT_MEMBER_EUROFEMALE40"/>"
                <Set Scale="0.0399999991059303‬"/>
            </Update>
            <Update>
                <Where Type="ART_DEF_UNIT_MEMBER_EUROMALE20"/>"
                <Set Scale="0.0399999991059303‬"/>
            </Update>
            <Update>
                <Where Type="ART_DEF_UNIT_MEMBER_EUROMALE25"/>"
                <Set Scale="0.0399999991059303‬"/>
            </Update>
            <Update>
                <Where Type="ART_DEF_UNIT_MEMBER_EUROMALE35"/>"
                <Set Scale="0.0399999991059303‬"/>
            </Update>
            <Update>
                <Where Type="ART_DEF_UNIT_MEMBER_EUROMALE45"/>"
                <Set Scale="0.0399999991059303‬"/>
            </Update>
    </ArtDefine_UnitMemberInfos>
    
    The image to the left is what was successfully achieved with the individual UnitMember approach, while the image to the right is the result of the blanket approach.
    Spoiler :


    Even stranger, the individual UnitMember modification does not work for some Units, such as Workers and Missionaries, to name a few.

    A side problem that I've run into while using the individual approach is that it crashes the game when accessing Strategic View, presumably due to an overflow of ArtDefines or something (as was discussed in this topic). It is therefore not possible to adjust the Scale of every individual UnitMember of every Unit even if I wanted to.

    Does anybody know anything about the intricacies of Scale numbers that might bring clarity to this nonsense?
     

Share This Page