こはね 发表于 2022-9-12 00:10:33

n年前制作的旗手

主要模型是旗杆,然后旗杆附加一个国旗挂件,分三个版本




压缩包里面的是旧版本的单位,不适用于决定版。如有必要,请自行将xml文件修改成决定版


以下全部是旗杆的语句,人物你自己随变找个单位就行,动作用掌旗手的

随国家改变国旗(包括革命旗帜)
<?xml version="1.0" encoding="utf-8"?>

<animfile>
      <definebone>bone_flag_bottom</definebone>
      <attachment>
                flag
                <component>
                        flag
                        <assetreference type="ClothFlag">
                              <flag>
                                        <blending>alphatest_color</blending>
                                        <specialtexture/>
                                        <width>2.00</width>
                                        <height>1.25</height>
                              </flag>
                        </assetreference>
                </component>
                <anim>
                        Idle
                        <component>flag</component>
                </anim>
      </attachment>
      <component>
                pikes
                <logic type="Tech">
                        <none>
                              <assetreference type="GrannyModel">
                                        <file>mods\flag\flagpole</file>
                              </assetreference>
                              <attach a="flag" frombone="flag" tobone="bone_flag_bottom" syncanims="0"/>
                        </none>
                </logic>
      </component>
      <anim>
                Idle
                <component>pikes</component>
      </anim>
</animfile>


玩家色国旗
<?xml version="1.0" encoding="utf-8"?>

<animfile>
      <definebone>bone_flag_bottom</definebone>
      <attachment>
                flag
                <component>
                        flag
                        <assetreference type="ClothFlag">
                              <flag>
                                        <blending>alphatest_color</blending>
                                        <texture>MODS\flag\flagplayer</texture>
                                        <width>2.00</width>
                                        <height>1.25</height>
                              </flag>
                        </assetreference>
                </component>
                <anim>
                        Idle
                        <component>flag</component>
                </anim>
      </attachment>
      <component>
                pikes
                <logic type="Tech">
                        <none>
                              <assetreference type="GrannyModel">
                                        <file>mods\flag\flagpole</file>
                              </assetreference>
                              <attach a="flag" frombone="flag" tobone="bone_flag_bottom" syncanims="0"/>
                        </none>
                </logic>
      </component>
      <anim>
                Idle
                <component>pikes</component>
      </anim>
</animfile>



固定国旗
<?xml version="1.0" encoding="utf-8"?>

<animfile>
      <definebone>bone_flag_bottom</definebone>
      <attachment>
                flag
                <component>
                        flag
                        <assetreference type="ClothFlag">
                              <flag>
                                        <blending>pixelxform</blending>
                                        <texture>MODS\flag\Eighteenstarflag</texture>
                                        <width>2.00</width>
                                        <height>1.25</height>
                              </flag>
                        </assetreference>
                </component>
                <anim>
                        Idle
                        <component>flag</component>
                </anim>
      </attachment>
      <component>
                pikes
                <logic type="Tech">
                        <none>
                              <assetreference type="GrannyModel">
                                        <file>mods\flag\flagpole</file>
                              </assetreference>
                              <attach a="flag" frombone="flag" tobone="bone_flag_bottom" syncanims="0"/>
                        </none>
                </logic>
      </component>
      <anim>
                Idle
                <component>pikes</component>
      </anim>
</animfile>




こはね 发表于 2022-9-12 00:36:01

随玩家国旗很容易就能从其他文件找到
                        <assetreference type="ClothFlag">
                              <flag>
                                        <blending>alphatest_color</blending>
                                        <specialtexture/>
                                        <width>2.00</width>
                                        <height>1.25</height>
                              </flag>
                        </assetreference>


玩家色国旗就是在上面的基础添加了一张贴图


                        <assetreference type="ClothFlag">
                              <flag>
                                        <blending>alphatest_color</blending>
                                        <texture>MODS\flag\flagplayer</texture>
                                        <width>2.00</width>
                                        <height>1.25</height>
                              </flag>
                        </assetreference>


然后当你尝试将贴图改成固定国旗后,无论怎样那张国旗都会附加玩家色,原因在于 <blending>alphatest_color</blending>


找遍了所有bar文件(art.bar、art4.bar、art5.bar)
会发现只有一个garrison_flag.xml存在没有玩家色的设定,将blending修改成<blending>pixelxform</blending>
<!-- converted from XMB to XML -->

<animfile>
      <component>
                ModelComp
                <assetreference type="ClothFlag">
                        <flag>
                              <blending>pixelxform</blending>
                              <texture>ui\garrison_flag\garrison_flag</texture>
                              <width>2.00</width>
                              <height>1.20</height>
                        </flag>
                </assetreference>
      </component>
      <anim>
                Idle
                <component>ModelComp</component>
      </anim>
</animfile>





对于找不同,<specialtexture>与<texture>作用是一样的





以下内容未经测试,有兴趣可用自己尝试



今天翻exe内存字符串,找到一个可用alphatest_nocolor,可能是不带通道颜色,正常贴图?
使用方法
                        <assetreference type="ClothFlag">
                              <flag>
                                        <blending>alphatest_nocolor</blending>
                                        <specialtexture/>
                                        <width>2.00</width>
                                        <height>1.25</height>
                              </flag>
                        </assetreference>

以下内容看看就好,99%无功而返。
可能还有一个GeometryTrail标签,根据翻译是几何轨迹,盲猜是法线贴图之类的??
盲猜使用方法(成功概率0.1%)
                        <assetreference type="ClothFlag">
                              <flag>
                                        <blending>alphatest_nocolor</blending>
                                        <specialtexture/>
                                        <width>2.00</width>
                                        <height>1.25</height>
                                        <GeometryTrail>贴图文件</GeometryTrail>
                              </flag>
                        </assetreference>

也有可能是用于, <assetreference type="GeometryTrail"></assetreference>使用方法不明

klcc741 发表于 2022-9-12 09:46:16

牛牛牛 太牛了{:7_258:}
页: [1]
查看完整版本: n年前制作的旗手