Oni Central Forum

A forum for the Oni community

You are not logged in.

#26 05/07/13 15:05

s10k
Member
Registered: 01/14/07
Website

Re: XML Patching: questions and discussion

what i'm thinking is .. is it posible to have an xml patch that first deletes Barabas's entire melee section
from <MELE Id="8310"> to first </MELE> after it .. and then re-add the melee profile from Smart Barabas .. it's easy to add but how to remove ? and can it run it in sequence first remove and then add or will it end up removing itself.
or is there a way to apply the replace command to an entire section ... this can be very useful, replace the entire section between 2 parents with another one ...

Sorry for not answering soon and not be able to code for oni in a while but I've been kinda busy.

Can you post the entire old xml and the new xml (if too big post in a .txt as annexe), so I can see if it's already possible to do it now with xmlTools.

Also is this modding to create a final .oni package or .patch package?

Offline

#27 05/07/13 15:05

Samer
Member
From: Lebanon
Registered: 09/04/09
Website

Re: XML Patching: questions and discussion

to create a patch.

what I want to do is have the patch remove Barabas's melee profile .. but the thing is if Brutal AI is installed that section is different than if Brutal AI is not installed
If Brutal AI is installed this is what it should remove

<MELE Id="8310">
            <Header>
                <Flags></Flags>
                <Position>140.253983 -15.2457275 -64.63251</Position>
                <Rotation>0 0 0</Rotation>
            </Header>
            <OSD>
                <MeleeId>25</MeleeId>
                <Name>BARABAS TCTF D</Name>
                <CharacterClass>barabus</CharacterClass>
                <Notice>100</Notice>
                <Dodge>
                    <Base>30</Base>
                    <Extra>25</Extra>
                    <ExtraDamageThreshold>20</ExtraDamageThreshold>
                </Dodge>
                <BlockSkill>
                    <Single>100</Single>
                    <Group>100</Group>
                </BlockSkill>
                <NotBlocked>2</NotBlocked>
                <MustChangeStance>1.2</MustChangeStance>
                <BlockedButUnblockable>1.5</BlockedButUnblockable>
                <BlockedButHasStagger>1.2</BlockedButHasStagger>
                <BlockedButHasBlockstun>0.7</BlockedButHasBlockstun>
                <Blocked>0.9</Blocked>
                <ThrowDanger>10</ThrowDanger>
                <DazedMinFrames>60</DazedMinFrames>
                <DazedMaxFrames>100</DazedMaxFrames>
                <Attacks>
                    <Technique>
                        <Name>GetupAttackForward</Name>
                        <Flags></Flags>
                        <Weight>100</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Attack Type="GETUP_KF" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>GetupBack</Name>
                        <Flags>Interruptible GenerousDir</Flags>
                        <Weight>80</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Maneuver Type="GetUpBackward" Duration="0.5" />
                            <Position Type="StartToCrouch" />
                            <Maneuver Type="BarabasWave" MaxRange="60" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>GetupLeft</Name>
                        <Flags>Interruptible GenerousDir</Flags>
                        <Weight>80</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Maneuver Type="GetUpRollLeft" Duration="0.5" />
                            <Position Type="StartToCrouch" />
                            <Maneuver Type="BarabasWave" MaxRange="60" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>GetupAttackBackward</Name>
                        <Flags></Flags>
                        <Weight>100</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Attack Type="GETUP_KB" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>GetupFront</Name>
                        <Flags>Interruptible GenerousDir</Flags>
                        <Weight>80</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Maneuver Type="GetUpForward" Duration="0.5" />
                            <Position Type="StartToCrouch" />
                            <Maneuver Type="BarabasWave" MaxRange="60" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>GetupRight</Name>
                        <Flags>Interruptible GenerousDir</Flags>
                        <Weight>80</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Maneuver Type="GetUpRollRight" Duration="0.5" />
                            <Position Type="StartToCrouch" />
                            <Maneuver Type="BarabasWave" MaxRange="60" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Throw_Behind_1</Name>
                        <Flags></Flags>
                        <Weight>100</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>60</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="40" ToleranceRange="20" />
                            <Throw Type="P_Behind" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Throw_Behind_2</Name>
                        <Flags></Flags>
                        <Weight>100</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>60</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="40" ToleranceRange="20" />
                            <Throw Type="P_Behind" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Run_Throw_Behind</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>50</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Position Type="RunForward" MinRunInDist="0" MaxRunInDist="10" ToleranceRange="30" />
                            <Throw Type="RP_Behind" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Punch_Bk</Name>
                        <Flags></Flags>
                        <Weight>100</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Position Type="CloseBack" MinRunInDist="0" MaxRunInDist="5" ToleranceRange="0" />
                            <Attack Type="PB" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Punch_Lt</Name>
                        <Flags>GenerousDir</Flags>
                        <Weight>100</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Position Type="CloseLeft" MinRunInDist="0" MaxRunInDist="5" ToleranceRange="5" />
                            <Attack Type="PL" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Punch_Rt</Name>
                        <Flags>GenerousDir</Flags>
                        <Weight>100</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Position Type="CloseRight" MinRunInDist="0" MaxRunInDist="5" ToleranceRange="5" />
                            <Attack Type="PR" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Run_Throw</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>100</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>0</RepeatDelay>
                        <Moves>
                            <Position Type="RunForward" MinRunInDist="0" MaxRunInDist="60" ToleranceRange="40" />
                            <Throw Type="RP_Front" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Throw_Front</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>75</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>180</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="10" ToleranceRange="5" />
                            <Throw Type="P_Front" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Punch_Cmbo</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>50</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>0</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="10" ToleranceRange="0" />
                            <Attack Type="P" />
                            <Attack Type="PP" />
                            <Attack Type="PPP" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Punch_Kick_Feint</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>50</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>0</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="10" ToleranceRange="0" />
                            <Attack Type="P" />
                            <Attack Type="K" />
                            <Position Type="Crouch" />
                            <Attack Type="C_K1" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Punch_Low</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>15</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>60</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="5" ToleranceRange="0" />
                            <Attack Type="PD" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Punch_Special</Name>
                        <Flags>GenerousDir</Flags>
                        <Weight>100</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Maneuver Type="Retreat" Duration="1E-08" MaxRange="15" ThresholdRange="0" />
                            <Maneuver Type="Advance" Duration="1E-08" MinRange="10" ThresholdRange="0" />
                            <Maneuver Type="Pause" Duration="0.1" />
                            <Position Type="StartToCrouch" />
                            <Attack Type="CS_P" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Kick_Special</Name>
                        <Flags>GenerousDir</Flags>
                        <Weight>100</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>120</RepeatDelay>
                        <Moves>
                            <Position Type="StartToCrouch" />
                            <Maneuver Type="BarabasWave" MaxRange="60" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Crouch_Punch_Fw</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>30</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="5" ToleranceRange="0" />
                            <Position Type="Crouch" />
                            <Attack Type="C_PF" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Kick_Fw</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>50</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="10" ToleranceRange="0" />
                            <Attack Type="KF" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Sweep</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>15</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>120</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="5" ToleranceRange="5" />
                            <Position Type="Crouch" />
                            <Attack Type="C_K1" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Crouch_Kick_Fw</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>30</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="5" ToleranceRange="0" />
                            <Position Type="Crouch" />
                            <Attack Type="C_KF" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Kick_Low</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>15</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>120</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="5" ToleranceRange="0" />
                            <Attack Type="KD" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Run_Kick</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>30</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Position Type="RunForward" MinRunInDist="10" MaxRunInDist="60" ToleranceRange="10" />
                            <Attack Type="R_K" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Crouch</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>75</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>120</RepeatDelay>
                        <Moves>
                            <Maneuver Type="Crouch" Duration="0.1" />
                            <Maneuver Type="RandomStop" Chance="30" />
                            <Maneuver Type="Crouch" Duration="0.1" />
                            <Maneuver Type="RandomStop" Chance="60" />
                            <Maneuver Type="Crouch" Duration="0.1" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Taunt</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>100</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>1200</RepeatDelay>
                        <Moves>
                            <Maneuver Type="Advance" Duration="1E-08" MinRange="50" ThresholdRange="0" />
                            <Maneuver Type="Pause" Duration="0.2" />
                            <Maneuver Type="Jump" Duration="0.1" />
                            <Maneuver Type="Pause" Duration="0.7" />
                            <Maneuver Type="Jump" Duration="0.1" />
                            <Maneuver Type="Retreat" Duration="0.9" MaxRange="70" ThresholdRange="0" />
                        </Moves>
                    </Technique>
                </Attacks>
                <Evades>
                    <Technique>
                        <Name>Roll Back</Name>
                        <Flags></Flags>
                        <Weight>80</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>0</RepeatDelay>
                        <Moves>
                            <Evade Type="RollBackward" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Roll Left</Name>
                        <Flags></Flags>
                        <Weight>40</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>0</RepeatDelay>
                        <Moves>
                            <Evade Type="RollLeft" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Roll Right</Name>
                        <Flags></Flags>
                        <Weight>40</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>0</RepeatDelay>
                        <Moves>
                            <Evade Type="RollRight" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Roll Forward</Name>
                        <Flags></Flags>
                        <Weight>40</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>0</RepeatDelay>
                        <Moves>
                            <Evade Type="RollForward" />
                        </Moves>
                    </Technique>
                </Evades>
                <Maneuvers />
            </OSD>
        </MELE>

if it's not installed it should remove this

<MELE Id="8310">
            <Header>
                <Flags></Flags>
                <Position>140.253983 -15.2457275 -64.63251</Position>
                <Rotation>0 0 0</Rotation>
            </Header>
            <OSD>
                <MeleeId>25</MeleeId>
                <Name>BARABAS TCTF D</Name>
                <CharacterClass>barabus</CharacterClass>
                <Notice>100</Notice>
                <Dodge>
                    <Base>30</Base>
                    <Extra>25</Extra>
                    <ExtraDamageThreshold>20</ExtraDamageThreshold>
                </Dodge>
                <BlockSkill>
                    <Single>75</Single>
                    <Group>75</Group>
                </BlockSkill>
                <NotBlocked>2</NotBlocked>
                <MustChangeStance>1.2</MustChangeStance>
                <BlockedButUnblockable>1.5</BlockedButUnblockable>
                <BlockedButHasStagger>1.2</BlockedButHasStagger>
                <BlockedButHasBlockstun>0.7</BlockedButHasBlockstun>
                <Blocked>0.5</Blocked>
                <ThrowDanger>2</ThrowDanger>
                <DazedMinFrames>60</DazedMinFrames>
                <DazedMaxFrames>100</DazedMaxFrames>
                <Attacks>
                    <Technique>
                        <Name>Getup Kick Front</Name>
                        <Flags></Flags>
                        <Weight>80</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>0</RepeatDelay>
                        <Moves>
                            <Attack Type="GETUP_KF" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Getup Kick Back</Name>
                        <Flags></Flags>
                        <Weight>80</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>0</RepeatDelay>
                        <Moves>
                            <Attack Type="GETUP_KB" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Punch Cmbo</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>70</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>0</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="12" ToleranceRange="2" />
                            <Attack Type="P" />
                            <Attack Type="PP" />
                            <Attack Type="PPP" />
                            <Maneuver Type="Pause" Duration="0.3" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Kick Cmbo</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>70</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>0</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="12" ToleranceRange="2" />
                            <Attack Type="K" />
                            <Attack Type="KK" />
                            <Attack Type="KKK" />
                            <Maneuver Type="Pause" Duration="0.3" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Body Crush</Name>
                        <Flags></Flags>
                        <Weight>60</Weight>
                        <Importance>120</Importance>
                        <RepeatDelay>120</RepeatDelay>
                        <Moves>
                            <Position Type="RunForward" MinRunInDist="4" MaxRunInDist="20" ToleranceRange="4" />
                            <Throw Type="RP_Behind" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Run Shoulder Slam</Name>
                        <Flags></Flags>
                        <Weight>50</Weight>
                        <Importance>120</Importance>
                        <RepeatDelay>120</RepeatDelay>
                        <Moves>
                            <Position Type="RunForward" MinRunInDist="12" MaxRunInDist="20" ToleranceRange="3" />
                            <Attack Type="R_K" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Run Shoulder Left</Name>
                        <Flags></Flags>
                        <Weight>40</Weight>
                        <Importance>120</Importance>
                        <RepeatDelay>120</RepeatDelay>
                        <Moves>
                            <Position Type="RunLeft" MinRunInDist="10" MaxRunInDist="20" ToleranceRange="4.5" />
                            <Attack Type="RL_K" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Run Shoulder Right</Name>
                        <Flags></Flags>
                        <Weight>40</Weight>
                        <Importance>120</Importance>
                        <RepeatDelay>120</RepeatDelay>
                        <Moves>
                            <Position Type="RunRight" MinRunInDist="10" MaxRunInDist="20" ToleranceRange="4.5" />
                            <Attack Type="RR_K" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>run back elbow</Name>
                        <Flags></Flags>
                        <Weight>30</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>120</RepeatDelay>
                        <Moves>
                            <Position Type="RunBack" MinRunInDist="8" MaxRunInDist="15" ToleranceRange="3.5" />
                            <Attack Type="RB_P" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Forward Kick</Name>
                        <Flags></Flags>
                        <Weight>30</Weight>
                        <Importance>120</Importance>
                        <RepeatDelay>120</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="8" ToleranceRange="3.5" />
                            <Attack Type="KF" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Body Throw</Name>
                        <Flags></Flags>
                        <Weight>30</Weight>
                        <Importance>360</Importance>
                        <RepeatDelay>600</RepeatDelay>
                        <Moves>
                            <Position Type="RunForward" MinRunInDist="4" MaxRunInDist="20" ToleranceRange="4" />
                            <Throw Type="RP_Front" />
                            <Maneuver Type="Pause" Duration="0.2" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Disarm</Name>
                        <Flags></Flags>
                        <Weight>30</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>0</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="8" ToleranceRange="3.5" />
                            <Throw Type="P_FrontDisarm" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Stomp</Name>
                        <Flags></Flags>
                        <Weight>20</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>120</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="4" MaxRunInDist="10" ToleranceRange="4" />
                            <Attack Type="KD" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Kick Right</Name>
                        <Flags></Flags>
                        <Weight>10</Weight>
                        <Importance>180</Importance>
                        <RepeatDelay>10</RepeatDelay>
                        <Moves>
                            <Position Type="CloseRight" MinRunInDist="0" MaxRunInDist="8" ToleranceRange="3.5" />
                            <Attack Type="PR" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Kick Left</Name>
                        <Flags></Flags>
                        <Weight>10</Weight>
                        <Importance>180</Importance>
                        <RepeatDelay>10</RepeatDelay>
                        <Moves>
                            <Position Type="CloseLeft" MinRunInDist="0" MaxRunInDist="8" ToleranceRange="3.5" />
                            <Attack Type="KL" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Kick Behind</Name>
                        <Flags></Flags>
                        <Weight>10</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>0</RepeatDelay>
                        <Moves>
                            <Position Type="CloseBack" MinRunInDist="0" MaxRunInDist="8" ToleranceRange="4" />
                            <Attack Type="KB" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Retreat</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>10</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Maneuver Type="Retreat" Duration="1.1" MaxRange="25" ThresholdRange="8" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Disarm Behind</Name>
                        <Flags></Flags>
                        <Weight>10</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>0</RepeatDelay>
                        <Moves>
                            <Throw Type="P_BehindDisarm" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Grab-N-Punch</Name>
                        <Flags></Flags>
                        <Weight>10</Weight>
                        <Importance>360</Importance>
                        <RepeatDelay>360</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="8" ToleranceRange="3.5" />
                            <Throw Type="P_Front" />
                            <Maneuver Type="Pause" Duration="0.5" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Circle Left X</Name>
                        <Flags></Flags>
                        <Weight>10</Weight>
                        <Importance>360</Importance>
                        <RepeatDelay>360</RepeatDelay>
                        <Moves>
                            <Maneuver Type="CircleLeft" Duration="0.7" MinAngle="0" MaxAngle="270" />
                            <Maneuver Type="RandomStop" Chance="50" />
                            <Maneuver Type="CircleLeft" Duration="0.7" MinAngle="0" MaxAngle="270" />
                            <Maneuver Type="RandomStop" Chance="50" />
                            <Maneuver Type="CircleLeft" Duration="0.7" MinAngle="0" MaxAngle="270" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Circle Right X</Name>
                        <Flags></Flags>
                        <Weight>10</Weight>
                        <Importance>360</Importance>
                        <RepeatDelay>360</RepeatDelay>
                        <Moves>
                            <Maneuver Type="CircleRight" Duration="0.7" MinAngle="0" MaxAngle="90" />
                            <Maneuver Type="RandomStop" Chance="50" />
                            <Maneuver Type="CircleRight" Duration="0.7" MinAngle="0" MaxAngle="90" />
                            <Maneuver Type="RandomStop" Chance="50" />
                            <Maneuver Type="CircleRight" Duration="0.7" MinAngle="0" MaxAngle="90" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Sonic Stomp</Name>
                        <Flags></Flags>
                        <Weight>10</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>600</RepeatDelay>
                        <Moves>
                            <Maneuver Type="Crouch" Duration="0.35" />
                            <Position Type="StartToCrouch" />
                            <Maneuver Type="BarabasWave" MaxRange="25" />
                        </Moves>
                    </Technique>
                </Attacks>
                <Evades>
                    <Technique>
                        <Name>Jump Back</Name>
                        <Flags></Flags>
                        <Weight>80</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>0</RepeatDelay>
                        <Moves>
                            <Evade Type="JumpBack" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Jump Left</Name>
                        <Flags></Flags>
                        <Weight>40</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>0</RepeatDelay>
                        <Moves>
                            <Evade Type="JumpLeft" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Jump Right</Name>
                        <Flags></Flags>
                        <Weight>40</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>0</RepeatDelay>
                        <Moves>
                            <Evade Type="JumpRight" />
                        </Moves>
                    </Technique>
                </Evades>
                <Maneuvers />
            </OSD>
        </MELE>

then add this (Smart Barabas melee profile)

<MELE Id="8310">
            <Header>
                <Flags></Flags>
                <Position>140.253983 -15.2457275 -64.63251</Position>
                <Rotation>0 0 0</Rotation>
            </Header>
            <OSD>
                <MeleeId>25</MeleeId>
                <Name>BARABAS TCTF D</Name>
                <CharacterClass>barabus</CharacterClass>
                <Notice>100</Notice>
                <Dodge>
                    <Base>100</Base>
                    <Extra>100</Extra>
                    <ExtraDamageThreshold>5</ExtraDamageThreshold>
                </Dodge>
                <BlockSkill>
                    <Single>30</Single>
                    <Group>25</Group>
                </BlockSkill>
                <NotBlocked>2</NotBlocked>
                <MustChangeStance>1.2</MustChangeStance>
                <BlockedButUnblockable>1.5</BlockedButUnblockable>
                <BlockedButHasStagger>1.2</BlockedButHasStagger>
                <BlockedButHasBlockstun>0.7</BlockedButHasBlockstun>
                <Blocked>0.9</Blocked>
                <ThrowDanger>10</ThrowDanger>
                <DazedMinFrames>60</DazedMinFrames>
                <DazedMaxFrames>100</DazedMaxFrames>
                <Attacks>
                    <Technique>
                        <Name>GetupAttackForward</Name>
                        <Flags></Flags>
                        <Weight>100</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Attack Type="GETUP_KF" />
                            <Evade Type="RollBackward" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>GetupBack</Name>
                        <Flags>Interruptible GenerousDir</Flags>
                        <Weight>80</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Maneuver Type="GetUpBackward" Duration="0.1" />
                            <Throw Type="P_Front" />
                            <Evade Type="RollLeft" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>GetupLeft</Name>
                        <Flags>Interruptible GenerousDir</Flags>
                        <Weight>80</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Maneuver Type="GetUpRollLeft" Duration="0.1" />
                            <Throw Type="P_Front" />
                            <Evade Type="RollLeft" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>GetupAttackBackward</Name>
                        <Flags></Flags>
                        <Weight>100</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Attack Type="GETUP_KB" />
                            <Evade Type="RollBackward" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>GetupFront</Name>
                        <Flags>Interruptible GenerousDir</Flags>
                        <Weight>80</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Maneuver Type="GetUpForward" Duration="0.1" />
                            <Throw Type="P_Front" />
                            <Evade Type="RollBackward" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>GetupRight</Name>
                        <Flags>Interruptible GenerousDir</Flags>
                        <Weight>80</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Maneuver Type="GetUpRollRight" Duration="0.1" />
                            <Throw Type="P_Front" />
                            <Evade Type="RollRight" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Throw_Behind</Name>
                        <Flags></Flags>
                        <Weight>100</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>60</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="40" ToleranceRange="20" />
                            <Throw Type="P_Behind" />
                            <Position Type="StartToCrouch" />
                            <Maneuver Type="BarabasWave" MaxRange="60" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Run_Throw_Behind</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>50</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Position Type="RunForward" MinRunInDist="0" MaxRunInDist="10" ToleranceRange="30" />
                            <Throw Type="RP_Behind" />
                            <Position Type="StartToCrouch" />
                            <Maneuver Type="BarabasWave" MaxRange="60" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Punch_Bk</Name>
                        <Flags></Flags>
                        <Weight>100</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Position Type="CloseBack" MinRunInDist="0" MaxRunInDist="5" ToleranceRange="0" />
                            <Attack Type="PB" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Punch_Lt</Name>
                        <Flags>GenerousDir</Flags>
                        <Weight>100</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Position Type="CloseLeft" MinRunInDist="0" MaxRunInDist="5" ToleranceRange="5" />
                            <Attack Type="PL" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Punch_Rt</Name>
                        <Flags>GenerousDir</Flags>
                        <Weight>100</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Position Type="CloseRight" MinRunInDist="0" MaxRunInDist="5" ToleranceRange="5" />
                            <Attack Type="PR" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Run_Throw</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>100</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>0</RepeatDelay>
                        <Moves>
                            <Position Type="RunForward" MinRunInDist="0" MaxRunInDist="60" ToleranceRange="40" />
                            <Throw Type="RP_Front" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Throw_Front</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>100</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>1800</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="10" ToleranceRange="5" />
                            <Throw Type="P_Front" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Punch_Cmbo</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>50</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>0</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="15" ToleranceRange="5" />
                            <Attack Type="P" />
                            <Attack Type="PP" />
                            <Attack Type="PPP" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Punch_Kick_Feint</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>50</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>0</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="10" ToleranceRange="0" />
                            <Attack Type="P" />
                            <Attack Type="K" />
                            <Position Type="Crouch" />
                            <Attack Type="C_K1" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Punch_Low</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>15</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>60</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="5" ToleranceRange="0" />
                            <Attack Type="PD" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Kick_Combo</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>50</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>0</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="15" ToleranceRange="5" />
                            <Attack Type="K" />
                            <Attack Type="KK" />
                            <Attack Type="KF" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Kick_Special</Name>
                        <Flags>GenerousDir</Flags>
                        <Weight>25</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>3600</RepeatDelay>
                        <Moves>
                            <Position Type="StartToCrouch" />
                            <Maneuver Type="BarabasWave" MaxRange="40" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Crouch_Punch_Fw</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>30</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="5" ToleranceRange="0" />
                            <Position Type="Crouch" />
                            <Attack Type="C_PF" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Kick_Fw</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>50</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="10" ToleranceRange="0" />
                            <Attack Type="KF" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Sweep</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>15</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>120</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="5" ToleranceRange="5" />
                            <Position Type="Crouch" />
                            <Attack Type="C_K1" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Crouch_Kick_Fw</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>30</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="5" ToleranceRange="0" />
                            <Position Type="Crouch" />
                            <Attack Type="C_KF" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Kick_Low</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>15</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>120</RepeatDelay>
                        <Moves>
                            <Position Type="CloseForward" MinRunInDist="0" MaxRunInDist="5" ToleranceRange="0" />
                            <Attack Type="KD" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Run_Kick</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>50</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>300</RepeatDelay>
                        <Moves>
                            <Position Type="RunForward" MinRunInDist="10" MaxRunInDist="60" ToleranceRange="10" />
                            <Attack Type="R_K" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Jump_Right</Name>
                        <Flags></Flags>
                        <Weight>75</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>600</RepeatDelay>
                        <Moves>
                            <Maneuver Type="Retreat" Duration="1E-08" MaxRange="25" ThresholdRange="0" />
                            <Maneuver Type="Pause" Duration="0.2" />
                            <Maneuver Type="Jump" Duration="0.1" />
                            <Maneuver Type="CircleRight" Duration="1" MinAngle="0" MaxAngle="360" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Jump_Back</Name>
                        <Flags></Flags>
                        <Weight>50</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>600</RepeatDelay>
                        <Moves>
                            <Maneuver Type="Retreat" Duration="1E-08" MaxRange="25" ThresholdRange="0" />
                            <Maneuver Type="Pause" Duration="0.2" />
                            <Maneuver Type="Jump" Duration="0.1" />
                            <Maneuver Type="Retreat" Duration="1" MaxRange="70" ThresholdRange="0" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Jump_Left</Name>
                        <Flags></Flags>
                        <Weight>75</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>600</RepeatDelay>
                        <Moves>
                            <Maneuver Type="Retreat" Duration="1E-08" MaxRange="25" ThresholdRange="0" />
                            <Maneuver Type="Pause" Duration="0.2" />
                            <Maneuver Type="Jump" Duration="0.1" />
                            <Maneuver Type="CircleLeft" Duration="1" MinAngle="0" MaxAngle="360" />
                        </Moves>
                    </Technique>
                </Attacks>
                <Evades>
                    <Technique>
                        <Name>Roll Back</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>100</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>0</RepeatDelay>
                        <Moves>
                            <Evade Type="RollBackward" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Roll Left</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>100</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>0</RepeatDelay>
                        <Moves>
                            <Evade Type="RollLeft" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Roll Right</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>100</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>0</RepeatDelay>
                        <Moves>
                            <Evade Type="RollRight" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Roll Forward</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>10</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>0</RepeatDelay>
                        <Moves>
                            <Evade Type="RollForward" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Jump Forward</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>10</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>600</RepeatDelay>
                        <Moves>
                            <Evade Type="JumpForward" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Jump Back</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>10</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>600</RepeatDelay>
                        <Moves>
                            <Evade Type="JumpBack" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Jump Left</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>10</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>600</RepeatDelay>
                        <Moves>
                            <Evade Type="JumpLeft" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Jump Right</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>10</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>600</RepeatDelay>
                        <Moves>
                            <Evade Type="JumpRight" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Run Jump Forward</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>10</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>600</RepeatDelay>
                        <Moves>
                            <Evade Type="RunJumpForward" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Run Jump Back</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>10</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>600</RepeatDelay>
                        <Moves>
                            <Evade Type="RunJumpBack" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Run Jump Left</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>10</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>600</RepeatDelay>
                        <Moves>
                            <Evade Type="RunJumpLeft" />
                        </Moves>
                    </Technique>
                    <Technique>
                        <Name>Run Jump Right</Name>
                        <Flags>Interruptible</Flags>
                        <Weight>10</Weight>
                        <Importance>10</Importance>
                        <RepeatDelay>600</RepeatDelay>
                        <Moves>
                            <Evade Type="RunJumpRight" />
                        </Moves>
                    </Technique>
                </Evades>
                <Maneuvers />
            </OSD>
        </MELE>

the purpose is if player only wants Smart Barabas but the other AI not affected he can install this patch .. the patch will then remove the barabas vanilla melee and then add the Smart Barabas section instead. will also work if he installs Brutal Konoko mod which has vanilla melee profiles for all characters including barabas except konoko.
if the player wants Smart Barabas + brutal AI (affecting other characters) he will install brutal AI pack the patch then will also remove Brutal Barabas's section add add Smart Barabas instead.

so what I want is to be able to remove all lines between <MELE Id="8310"> and first </MELE> flag regardless of what the lines are or how many they are, because the lines in between are different between Brutal Konoko\Vanilla Melee and Brutal AI.

the files : https://dl.dropboxusercontent.com/u/226 … ofiles.zip the file in question is BINACJBOMelee Profile

Last edited by Samer (05/07/13 16:05)


Join our Oni Facebook Group
Check My YouTube Channel for my Oni Videos.
Check My Wiki page for all my stuff

Offline

#28 05/07/13 16:05

Iritscen
Moderator
From: NC, USA
Registered: 10/22/07

Re: XML Patching: questions and discussion

Well, the question on removing the MELE section is a good one; though just to clarify, @REMOVE doesn't remove a "value", it removes an "element", which is an XML tag of any length.  The question is just how to name the MELE section's tag when normally we would place the tag name in quotes.  Is it @REMOVE "MELE Id=\"8310\""?  I don't have the ability to test this now.  Unfortunately I think only s10k is familiar enough with his program to answer this one, so you might want to reach out to him.

Edit: Wow, I must be new to this forum.  I didn't see s10k's reply and yours to him when I wrote my post.


Check out the Anniversary Edition Seven at ae.oni2.net!

Offline

#29 05/07/13 17:05

s10k
Member
Registered: 01/14/07
Website

Re: XML Patching: questions and discussion

Right now is not possible to remove elements with the same name (with same parent element). Which is the case (multiple elements with the name "MELE" and parent "Objects").

I'm planning as Iritsceen said to give total freedom to modders to edit the xml files using some script language. That will solve this problem and anothers. The problem with this is that I may give too much freedom, not only as security problem but I can also imagine multiple patch files removing sections which they shouldn't making them incompatible with each other.

This advanced xml editing using a script language still needs some more brainstorming, feel free to give your ideas at bugs.oni2.net.

Offline

#30 05/07/13 17:05

Samer
Member
From: Lebanon
Registered: 09/04/09
Website

Re: XML Patching: questions and discussion

Ok thanks for the reply smile keep up the great work.


Join our Oni Facebook Group
Check My YouTube Channel for my Oni Videos.
Check My Wiki page for all my stuff

Offline

#31 05/25/13 12:05

s10k
Member
Registered: 01/14/07
Website

Re: XML Patching: questions and discussion

You can now write javacript patches for complex xml editing.

More info here:
http://wiki.oni2.net/XmlTools

Offline

#32 05/25/13 13:05

Samer
Member
From: Lebanon
Registered: 09/04/09
Website

Re: XML Patching: questions and discussion

nice ... though I have no idea what I read on the wiki tongue
again I hope someone dumbs it down further with examples when they have the time, if it's meant to be used by other modders.


Join our Oni Facebook Group
Check My YouTube Channel for my Oni Videos.
Check My Wiki page for all my stuff

Offline

#33 05/25/13 13:05

s10k
Member
Registered: 01/14/07
Website

Re: XML Patching: questions and discussion

There's one example at the wiki page (and sample files at the executable zip). But this method requires a bit knowledge of programming (it isn't simple commands), plus know javascript and read a bit of the documentation of the XML library.

Last edited by s10k (05/25/13 13:05)

Offline

#34 05/25/13 15:05

Iritscen
Moderator
From: NC, USA
Registered: 10/22/07

Re: XML Patching: questions and discussion

I might polish the wording a bit (working on OniSplit right now), but as s10k said, there's really no way to dumb down information related to programming, so don't expect much of a difference.


Check out the Anniversary Edition Seven at ae.oni2.net!

Offline

#35 05/25/13 16:05

Samer
Member
From: Lebanon
Registered: 09/04/09
Website

Re: XML Patching: questions and discussion

ok then I'll avoid that type of modding in my mods, just seems too complicated for me ^_^ but I hope if I have a question on how to do some mod for the community (TRAMS and Melee ID for example) using the patches that you guys will help :$ when you have the time that is.

Last edited by Samer (05/25/13 16:05)


Join our Oni Facebook Group
Check My YouTube Channel for my Oni Videos.
Check My Wiki page for all my stuff

Offline

#36 05/25/13 16:05

Iritscen
Moderator
From: NC, USA
Registered: 10/22/07

Re: XML Patching: questions and discussion

Sure, we're glad to help.  And once you see a couple working samples (i.e., the patch mods I'm going to be making), you might find that they make enough sense as templates that you can reuse the code for similar mods of your own.


Check out the Anniversary Edition Seven at ae.oni2.net!

Offline

#37 05/25/13 16:05

s10k
Member
Registered: 01/14/07
Website

Re: XML Patching: questions and discussion

Yes we can help you if some mod requires this kind of patching. smile

Offline

#38 05/29/13 04:05

Samer
Member
From: Lebanon
Registered: 09/04/09
Website

Re: XML Patching: questions and discussion

Now that xml tools is updated with javascript patches .. does this mean that the glass mod will be set on the right track ? (when there's time to work on it of course) or does it still require something else ? .. if not can we just re-release it as it was, I kinda miss it tongue


Join our Oni Facebook Group
Check My YouTube Channel for my Oni Videos.
Check My Wiki page for all my stuff

Offline

#39 05/29/13 07:05

Iritscen
Moderator
From: NC, USA
Registered: 10/22/07

Re: XML Patching: questions and discussion

I did start work on the first JS patch, but I ran into a snag and have a "support request" pending with s10k smile  So I'll get to glass-breaking after I do a couple simpler patches.


Check out the Anniversary Edition Seven at ae.oni2.net!

Offline

#40 05/30/13 16:05

Samer
Member
From: Lebanon
Registered: 09/04/09
Website

Re: XML Patching: questions and discussion

s10k wrote:

Right now is not possible to remove elements with the same name (with same parent element). Which is the case (multiple elements with the name "MELE" and parent "Objects").

is it possible now ? if so can you please re-answer my post number 27 ? (when you get the time)
purpose is to make Smart Barabas melee replace that of the vanilla or the brutal AI one. currently smart barabas melee profile section is built on the modified AI melee profile so if you install it you get Brutal AI too whether you want it or not, if it were made into a patch then only barabas's section would be applied to either vanilla melee profile or if player installs Brutal AI then it applies to Brutal AI melee profile

Last edited by Samer (05/30/13 16:05)


Join our Oni Facebook Group
Check My YouTube Channel for my Oni Videos.
Check My Wiki page for all my stuff

Offline

#41 05/30/13 17:05

Iritscen
Moderator
From: NC, USA
Registered: 10/22/07

Re: XML Patching: questions and discussion

Yes, it is possible to affect those individual MELE tags using the JS method.  We did something very similar yesterday in our tests.  However, we ran into some real performance issues.  I'm not sure at the moment if s10k is still planning to use the currently planned method for JS XML patches, so right now I'm not making patches until I'm sure I won't have to redo my work later.


Check out the Anniversary Edition Seven at ae.oni2.net!

Offline

Board footer

Powered by FluxBB