Какие шаги нужно выполнить, чтобы изменить 1 файл эмулятора? - PullRequest
0 голосов
/ 06 сентября 2018

Я пытаюсь разработать эмулятор, который уже был создан. С новыми патчами конечно же, новые файлы, вещи ... и т. Д. Должны быть добавлены в файлы эмулятора. Просто для примера и чтобы иметь возможность иметь представление.

Оригинальное название игры: Aion

Допустим, я изменю текущие навыки на новые обновленные. но версии разные. старый эмулятор использует кодировку UTF-8, а новый - UTF-16.

XML-файл старых навыков:

<skill_data>
    <skill_template skill_id="1" name="Transformation: White Tiger" nameId="4571867" name_desc="RA_Light_WhiteTiger_G1" cooldownId="792" stack="SKILLN_RA_LIGHT_WHITETIGER" skill_group="RA_WhiteTiger" lvl="1" skilltype="MAGICAL" skillsubtype="BUFF" tslot="BUFF" dispel_category="BUFF" req_dispel_level="2" activation="ACTIVE" cooldown="100" duration="0" cancel_rate="20">
        <properties first_target="ME" first_target_range="1" target_relation="FRIEND" target_type="ONLYONE"/>
        <startconditions>
            <dp value="2000"/>
        </startconditions>
        <endconditions>
            <chargeweapon value="10"/>
            <chargearmor value="11"/>
            <polishchargeweapon value="77"/>
        </endconditions>
        <effects>
            <shapechange model="202641" type="PC" duration2="120000" effectid="175" e="1" basiclvl="100" noresist="true" hoptype="SKILLLV" hopb="248"/>
            <statup duration2="120000" effectid="107922" e="2" basiclvl="100" noresist="true" preeffect="1">
                <change stat="PHYSICAL_ATTACK" func="PERCENT" value="10"/>
            </statup>
            <statup duration2="120000" effectid="107923" e="3" basiclvl="100" noresist="true" preeffect="1">
                <change stat="ATTACK_SPEED" func="PERCENT" value="-30"/>
            </statup>
            <statup duration2="120000" effectid="107924" e="4" basiclvl="100" noresist="true" preeffect="1">
                <change stat="SPEED" func="PERCENT" value="30"/>
            </statup>
        </effects>
        <actions>
            <dpuse value="2000"/>
        </actions>
        <motion name="phburst"/>
    </skill_template>

новый:

<skill_base_clients>   <skill_base_client>
    <id>1</id>
    <name>RA_Light_WhiteTiger_G1</name>
    <desc>STR_SKILLN_RA_Light_WhiteTiger</desc>
    <desc_long>STR_SKILLN_RA_Light_WhiteTiger_DESC</desc_long>
    <desc_abnormal>STR_SKILLN_RA_Light_WhiteTiger_Abnormal</desc_abnormal>
    <skill_tag>STR_SKILLTAG_Buff</skill_tag>
    <type>Magical</type>
    <sub_type>Buff</sub_type>
    <skill_category>SKILLCTG_NONE</skill_category>
    <ultra_skill>0</ultra_skill>
    <ultra_transfer>0</ultra_transfer>
    <chain_category_level>1</chain_category_level>
    <skill_group_name>RA_WhiteTiger</skill_group_name>
    <skillicon_name>CBT_RA_WildRoar_G1</skillicon_name>
    <delay_id>792</delay_id>
    <activation_attribute>Active</activation_attribute>
    <cost_dp>2000</cost_dp>
    <cost_charge_weapon>10</cost_charge_weapon>
    <cost_charge_armor>11</cost_charge_armor>
    <polish_charge_weapon>77</polish_charge_weapon>
    <dispel_category>Buff</dispel_category>
    <required_dispel_level>2</required_dispel_level>
    <target_slot>buff</target_slot>
    <target_stop>1</target_stop>
    <hostile_type>Indirect</hostile_type>
    <delay_type>0</delay_type>
    <delay_time>10000</delay_time>
    <first_target>Me</first_target>
    <first_target_valid_distance>1</first_target_valid_distance>
    <target_range>OnlyOne</target_range>
    <target_species_restriction>All</target_species_restriction>
    <target_relation_restriction>Friend</target_relation_restriction>
    <cancel_rate>20</cancel_rate>
    <obstacle>4</obstacle>
    <add_wpn_range>0</add_wpn_range>
    <move_casting>1</move_casting>
    <auto_attack>stop</auto_attack>
    <motion_name>PHBurst</motion_name>
    <target_marker_radius>0</target_marker_radius>
    <show_weapon>1</show_weapon>
    <fire_fx>FC_F_RA_Powerbow.Powerbow.fire</fire_fx>
    <fire_fx_bone>bip01 spine1_fix</fire_fx_bone>
    <effect1_type>ShapeChange</effect1_type>
    <effect1_noresist>1</effect1_noresist>
    <effect1_remain1>0</effect1_remain1>
    <effect1_remain2>120000</effect1_remain2>
    <effect1_effectid>175</effect1_effectid>
    <effect1_basiclv>100</effect1_basiclv>
    <effect1_target_type>Target_Only</effect1_target_type>
    <effect1_reserved7>0</effect1_reserved7>
    <effect1_reserved8>PC</effect1_reserved8>
    <effect1_reserved9>RA_N_WhiteTigerL</effect1_reserved9>
    <effect1_reserved16>100</effect1_reserved16>
    <effect1_hop_type>SkillLV</effect1_hop_type>
    <effect1_hop_b>248</effect1_hop_b>
    <effect2_type>StatUp</effect2_type>
    <effect2_noresist>1</effect2_noresist>
    <effect2_checkforchain>0</effect2_checkforchain>
    <effect2_remain1>0</effect2_remain1>
    <effect2_remain2>120000</effect2_remain2>
    <effect2_effectid>107922</effect2_effectid>
    <effect2_basiclv>100</effect2_basiclv>
    <effect2_target_type>Target_Only</effect2_target_type>
    <effect2_cond_preeffect>e1</effect2_cond_preeffect>
    <effect2_cond_preeffect_prob1>0</effect2_cond_preeffect_prob1>
    <effect2_cond_preeffect_prob2>100</effect2_cond_preeffect_prob2>
    <effect2_reserved1>0</effect2_reserved1>
    <effect2_reserved2>10</effect2_reserved2>
    <effect2_reserved6>1</effect2_reserved6>
    <effect2_reserved13>PhyAttack</effect2_reserved13>
    <effect2_reserved16>100</effect2_reserved16>
    <effect3_type>StatUp</effect3_type>
    <effect3_noresist>1</effect3_noresist>
    <effect3_checkforchain>0</effect3_checkforchain>
    <effect3_remain1>0</effect3_remain1>
    <effect3_remain2>120000</effect3_remain2>
    <effect3_effectid>107923</effect3_effectid>
    <effect3_basiclv>100</effect3_basiclv>
    <effect3_target_type>Target_Only</effect3_target_type>
    <effect3_cond_preeffect>e1</effect3_cond_preeffect>
    <effect3_cond_preeffect_prob1>0</effect3_cond_preeffect_prob1>
    <effect3_cond_preeffect_prob2>100</effect3_cond_preeffect_prob2>
    <effect3_reserved1>0</effect3_reserved1>
    <effect3_reserved2>30</effect3_reserved2>
    <effect3_reserved6>1</effect3_reserved6>
    <effect3_reserved13>AttackDelay</effect3_reserved13>
    <effect3_reserved16>100</effect3_reserved16>
    <effect4_type>StatUp</effect4_type>
    <effect4_noresist>1</effect4_noresist>
    <effect4_checkforchain>0</effect4_checkforchain>
    <effect4_remain1>0</effect4_remain1>
    <effect4_remain2>120000</effect4_remain2>
    <effect4_effectid>107924</effect4_effectid>
    <effect4_basiclv>100</effect4_basiclv>
    <effect4_target_type>Target_Only</effect4_target_type>
    <effect4_cond_preeffect>e1</effect4_cond_preeffect>
    <effect4_cond_preeffect_prob1>0</effect4_cond_preeffect_prob1>
    <effect4_cond_preeffect_prob2>100</effect4_cond_preeffect_prob2>
    <effect4_reserved1>0</effect4_reserved1>
    <effect4_reserved2>30</effect4_reserved2>
    <effect4_reserved6>1</effect4_reserved6>
    <effect4_reserved13>Speed</effect4_reserved13>
    <effect4_reserved16>100</effect4_reserved16>   </skill_base_client>

Можете ли вы просто показать мне руководство, чтобы понять смысл. какие файлы должны быть полностью обновлены. Я создал XML-файл и преобразовал его в XSD. какие другие меры мне нужны?

...