SC XML

言語: JP EN DE FR
2010-06-21
New Items
users online
フォーラム » FFXI » Jobs » Ninja » SC XML
SC XML
 Odin.Cindro
Offline
サーバ: Odin
Game: FFXI
user: Cindro
Posts: 66
By Odin.Cindro 2012-11-17 15:44:00  
Is there a better way to discover errors for people who are less experienced like myself? A new error is showing up now with line 313 in this updated xml.
Code
<?xml version="1.0" ?>
<spellcast>
        <config
                Debug="false"
                HideErrors="false"
                ShowGearSwaps="false"
                ShowSpellInfo="false"
        />
  
        <variables>
            <var name="Movement">Danzo Sune-ate</var>
        </variables>
  
            <sets>
                <group name="NIN">
                    <set name="NINGearCollector" load="yes">
                        <main>Kakesu</main>
                        <main>Kamome</main>
                        <head>Iga Zukin +2</head>
                        <head>Thaumas Hat</head>
                        <head>Arhat's Jinpachi +1</head>
                        <neck>Wiglen Gorget</neck>
                        <neck>Twilight Torque</neck>
                        <neck>Magoraga Bead Necklace</neck>
                        <neck>Agasaya's Collar</neck>
                        <neck>Rancor Collar</neck>
                        <neck>Breeze Gorget</neck>
                        <ear>Brutal Earring</ear>
                        <ear>Suppanomimi</ear>
                        <ear>Ethereal Earring</ear>
                        <ear>Ghillie Earring +1</ear>
                        <body>Athos's Tabard</body>
                        <body>Toci's Harness</body>
                        <body>Thaumas Coat</body>
                        <hands>Thaumas Gloves</hands>
                        <hands>Melaco Mittens</hands>
                        <hands>Koga Tekko +2</hands>
                        <ring>Epona's Ring</ring>
                        <ring>Rajas Ring</ring>
                        <ring>Paguroidea Ring</ring>
                        <ring>Sheltered Ring</ring>
                        <back>Atheling Mantle</back>
                        <back>Boxer's Mantle</back>
                        <back>Shadow Mantle</back>
                        <back>Metallon Mantle</back>
                        <waist>Twilight Belt</waist>
                        <waist>Anguinus Belt</waist>
                        <waist>Breeze Belt</waist>
                        <waist>Phasmida Belt</waist>
                        <legs>Byakko's Haidate</legs>
                        <legs>Iga Hakama +2</legs>
                        <legs>Thaumas Kecks</legs>
                        <feet>Thaumas Nails</feet>
                        <feet>Iga Kyahan +2</feet>
                        <feet>Ninja Kyahan</feet>
                        <feet>Danzo Sune-ate</feet>
                        <ammo>Qirmiz Tathlum</ammo>
                        <ammo>Demonry Stone</ammo>
                        <ammo>Thunder Sachet</ammo>
                    </set>
                </group>
                <!-- Abyssea Sets -->
                <group default="yes" name="Abyssea TP">
                    <!-- TP Set -->
                    <set name="Abyssea TP">
                        <head>Iga Zukin +2</head>
                        <neck>Rancor Collar</neck>
                        <rear>Brutal Earring</rear>
                        <lear>Suppanomimi</lear>
                        <body>Thaumas Coat</body>
                        <hands>Koga Tekko +2</hands>
                        <rring>Rajas Ring</rring>
                        <lring>Epona's Ring</lring>
                        <back>Atheling Mantle</back>
                        <waist>Twilight Belt</waist>
                        <legs>Koga Hakama +2</legs>
                        <feet>Iga Kyahan +2</feet>
                        <ammo>Qirmiz Tathlum</ammo>
                    </set>
  
                    <!-- Blade: Jin Set -->
                    <set name="Jin Inside" baseset="Abyssea TP">
                        <head>Iga Zukin +2</head>
                        <body>Toci's Harness</body>
                        <feet>Thaumas Nails</feet>
                        <waist>Wanion Belt</waist>
                        <legs>Byakko's Haidate</legs>
                        <lring>Epona's Ring</lring>
                        <rring>Rajas Ring</rring>
                        <back>Atheling Mantle</back>
                        <neck>Rancor Collar</neck>
                        <rear>Brutal Earring</rear>
                        <lear>Ghillie Earring +1</lear>
                        <hands>Thaumas Gloves</hands>
                    </set>
                          
                <!-- Standard Non-Abyssea Sets -->
  
                    <!-- TP Sets -->
                    <set name="Voidwatch TP">
                        <head>Iga Zukin +2</head>
                        <neck>Rancor Collar</neck>
                        <rear>Brutal Earring</rear>
                        <lear>Suppanomimi</lear>
                        <body>Thaumas Coat</body>
                        <hands>Koga Tekko +2</hands>
                        <rring>Rajas Ring</rring>
                        <lring>Epona's Ring</lring>
                        <back>Atheling Mantle</back>
                        <waist>Twilight Belt</waist>
                        <legs>Koga Hakama +2</legs>
                        <feet>Iga Kyahan +2</feet>
                        <ammo>Qirmiz Tathlum</ammo>
                    </set>
                    <set name="Outside TP">
                        <head>Iga Zukin +2</head>
                        <neck>Rancor Collar</neck>
                        <rear>Brutal Earring</rear>
                        <lear>Suppanomimi</lear>
                        <body>Thaumas Coat</body>
                        <hands>Koga Tekko +2</hands>
                        <rring>Rajas Ring</rring>
                        <lring>Epona's Ring</lring>
                        <back>Atheling Mantle</back>
                        <waist>Twilight Belt</waist>
                        <legs>Koga Hakama +2</legs>
                        <feet>Iga Kyahan +2</feet>
                        <ammo>Qirmiz Tathlum</ammo>
                    </set>
                     
                    <!-- Blade: Jin Set -->
                    <set name="Jin Outside" baseset="Outside TP">
                        <head>Iga Zukin +2</head>
                        <body>Athos's Tabard</body>
                        <feet>Thaumas Nails</feet>
                        <waist>Wanion Belt</waist>
                        <legs>Byakko's Haidate</legs>
                        <lring>Epona's Ring</lring>
                        <rring>Rajas Ring</rring>
                        <back>Atheling Mantle</back>
                        <neck>Rancor Collar</neck>
                        <rear>Brutal Earring</rear>
                        <lear>Ghillie Earring +1</lear>
                        <hands>Thaumas Gloves</hands>
                    </set>
                          
                <!-- Multi-Purpose Misc Sets -->
                     
                    <!-- Idle Set -->
                    <set name="Idle" baseset="Abyssea TP">
                        <head>Arh. Jinpachi +1</head>
                        <neck>Wiglen Gorget</neck>
                        <rear>Brutal Earring</rear>
                        <lear>Suppanomimi</lear>
                        <body>Kirin's Osode</body>
                        <hands>Melaco Mittens</hands>
                        <lring>Sheltered Ring</lring>
                        <rring>Paguroidea Ring</rring>
                        <back>Shadow Mantle</back>
                        <waist>Phasmida Belt</waist>
                        <legs>Koga Hakama +2</legs>
                        <feet>Danzo Sune-Ate</feet>
                        <ammo>Qirmiz Tathlum</ammo>
                    </set>
                     
                    <!-- Haste set - used for casting Utsusemi -->
                    <set name="Haste" baseset="$AbysseaOrOutside TP">
                        <head>Athos's Chapeau</head>
                        <hands>Thaumas Gloves</hands>
                        <neck>Magoraga Beads</neck>
                        <rear>Ethereal Earring</rear>
                        <lear>Loquacious Earring</lear>
                        <rring>Shadow Ring</rring>
                        <lring>Dark Ring</lring>
                        <back>Mujin Mantle</back>
                        <waist>Twilight Belt</waist>
                        <legs>Iga Hakama +2</legs>
                        <feet>Iga Kyahan +2</feet>
                    </set>
  
                    <!-- Evasion Set -->
                    <set name="Evasion">
                        <head>Iga Zukin +2</head>
                        <neck>Iga Erimaki</neck>
                        <lear>Brutal Earring</lear>
                        <rear>Suppanomimi</rear>
                        <body>Athos's Tabard</body>
                        <hands>Koga Tekko +2</hands>
                        <rring>Rajas Ring</rring>
                        <lring>Epona's Ring</lring>
                        <back>Boxer's Mantle</back>
                        <waist>Phasmida Belt</waist>
                        <legs>Koga Hakama +2</legs>
                        <feet>Athos's Boots</feet>
                    </set>     
                     
                    <!-- Damage Taken Sets -->
                    <set name="PDT">
                        <head>Arh. Jinpachi +1</head>
                        <body>Athos's Tabard</body>
                        <back>Metallon Mantle</back>
                        <neck>Wiglen Gorget</neck>
                        <hands>Melaco Mittens</hands>
                        <waist>Phasmida Belt</waist>
                        <lear>Suppanomimi</lear>
                        <rear>Ethereal Earring</rear>
                        <lring>Dark Ring</lring>
                        <rring>Dark Ring</rring>
                        <legs>Koga Hakama +2</legs>
                        <feet>Danzo Sune-Ate</feet>
                   </set>
                </group>
            </sets>
            <rules>
             
                <!-- Abyssea, Voidwatch & Outside -->
                    <if buffactive="Visitant" status="engaged">
                        <equip when="aftercast" set="Abyssea TP" />
                    </if>
                    <elseif buffactive="Voidwatcher" status="engaged">
                        <equip when="aftercast" set="Voidwatch TP" />
                    </elseif>
                    <else>
                        <equip when="aftercast" set="Outside TP" />
                    </else>
                    <action type="equip" when="Idle" set="Idle" />
  
                <!-- Idle Feet -->
                    <if TimeGT="0.00" TimeLT="24.00">
                        <equip when="idle">
                            <feet>Movement</feet>
                        </equip>
  
                <!-- Cancel and Buffs -->
                    <if Spell="Sneak|Invisible">
                        <action type="midcastdelay" delay="1.5" />
                        <if Spell="Sneak" BuffActive="Sneak" advanced='"%SpellTarget"="%PlayerName" OR "%SpellTarget"="<me>" OR ("%target"="%PlayerName" AND "%SpellTarget"="<t>")'>
                            <action type="command" when="midcast">cancel 71</action>
                        </if>
                    </if>
                    <elseif Spell="Spectral Jig">
                        <action Type="Command" When="PreCast">cancel 71</action>
                    </elseif>
  
                <!-- NIN Spells -->
                    <if spell="Utsusemi: Ni">
                        <action type="equip" when="precast" set="Haste" />
                        <action type="castdelay" delay=".1" />
                        <action type="aftercastdelay" delay="2" />
                        <action type="Equip" when="aftercast" set="Abyssea TP" />
                        <if status="NotEngaged">
                            <action type="Equip" set="Idle" />
                        </if>
                    </if>
                <if spell="Utsusemi: Ichi">
                        <action type="Equip" when="precast" set="Haste" />
                                        <action type="castdelay" delay=".1" />
                                <action type="midcastdelay" delay="3" />
                        <action type="aftercastdelay" delay="2" />
                        <action type="Equip" when="aftercast" set="Day Set" />
  
                </if>
                <if spell = "Utsusemi: Ichi" buffactive = "Copy Image*">
                    <if NotBuffActive = "Copy Image (3)|Copy Image (4+)">
                        <midcastdelay delay = "2.5" />
                        <cmd when = "midcast">cancel 66</cmd>
                        <cmd when = "midcast">cancel 444</cmd>
                    </if>
                    <else>
                        <cancelspell />
                        <return />
                    </else>
                </if>
                <elseif spell="Monomi*|Tonko*">
                    <if Spell="Monomi*" BuffActive="Sneak">
                        <action type="midcastdelay" delay="2.5" />
                        <action type="Command" when="midcast">cancel 71</action>
                    </if>
                </elseif>
  
                <if spell="Futae">
                    <equip when="precast">
                        <hands>Thaumas Gloves</hands>
                    </equip>
                </if>
                <if spell="Migawari: Ichi">
                    <equip when="precast">
                        <body>Athos's Tabard</body>
                    </equip>
                </if>
                <if mode="OR" spell="Yonin" Buffactive="Yonin">
                    <equip when = "precast">
                        <legs> lock="true">Iga Hakama +2</legs>
                    </equip>
                </if>
                <elseif mode="OR" spell="Innin" Buffactive="Innin">
                    <equip when = "precast">
                        <head> lock="true">Iga Zukin +1</head>
                    </equip>
                </elseif>
  
                <if spell="Blade: Jin">
                    <if buffactive="Visitant">
                    <equip when="Precast" set="Jin Inside" />
                </if>
                        <elseif buffactive="Voidwatcher">
                            <equip when="Precast" set="Jin Outside" />
                        </elseif>
                        <action type="castdelay" delay=".5" />
                        <action type="aftercastdelay" delay="7" />
                        <action type="Equip" when="aftercast" set="$AbysseaOrOutside TP" />
                </if>
            </rules>
</spellcast>
 Odin.Registry
Offline
サーバ: Odin
Game: FFXI
user: R3G1STRY
Posts: 430
By Odin.Registry 2012-11-17 15:49:13  
It gives you the line where it parsed the error, not where the error actually happened, meaning it could be any time before that line.

Most errors tend to be something stupid like that, where you won't notice it yourself, which is why it helps to have someone else look at it.

edit: line 294 & 299

<head> lock="true">Iga Zukin +1</head>

should look like

<head lock="true">Iga Zukin +1</head>
 Siren.Thoraeon
Offline
サーバ: Siren
Game: FFXI
user: Thoraeon
Posts: 2215
By Siren.Thoraeon 2012-11-17 15:55:59  
It looks like you might be missing a </if> after your idle feet.

Try
Code
                <!-- Idle Feet -->
                    <if TimeGT="0.00" TimeLT="24.00">
                        <equip when="idle">
                            <feet>Movement</feet>
                        </equip>
                    </if>
   
 Odin.Registry
Offline
サーバ: Odin
Game: FFXI
user: R3G1STRY
Posts: 430
By Odin.Registry 2012-11-17 15:57:09  
Oh, I missed that.
necroskull Necro Bump Detected! [72 days between previous and next post]
Offline
Posts: 43
By Viertel 2013-01-28 19:13:02  
I'm going to post here instead of creating a new topic.

Basically, I haven't bothered with status Idle/Engaged before as I tribox and usually just used a PDT set if I need to run around outside of combat in case of damage, etc. Plus, since I have three characters non-combat movement speed wasn't worth worrying about for me for the most part due to one of the characters doesn't have movement speed anyway.

It equips Idle gear just fine when idle, and equips Engaged when I'm in combat. The problem comes with everything else: no matter if I place these rules at the beginning of my list of rules or at the end it prevents *ALL* other rules from firing off. Also, despite the fact that it clearly states to equip that state's gearset on aftercast it refuses to do so.

I get zero errors upon launch and it shows up clean in Firefox and Chrome when looking at the .xml file. Considering I got tired of trying over four different variations of these rules NOTHING works for me. I've included my code so someone can hopefully take a look at it and tell me what looks wrong, because if I remove the status rules the rest of the document works perfectly like before -- if I put in any variation of it it breaks upon entering combat.
 Phoenix.Wubby
Offline
サーバ: Phoenix
Game: FFXI
user: Xerlic
Posts: 2
By Phoenix.Wubby 2013-01-29 08:14:15  
I don't use spelltargetraw in any of my scripts, but this might be your problem.
Code
<elseif spelltargetraw="<st*">
          <return />
      </elseif>

I'm pretty sure this means anytime you do an action that has <st*> as a target, it's stopping the script which is preventing aftercast from firing.
Offline
Posts: 43
By Viertel 2013-01-29 09:59:37  
Phoenix.Wubby said: »
I don't use spelltargetraw in any of my scripts, but this might be your problem.
Code
<elseif spelltargetraw="<st*">
          <return />
      </elseif>

I'm pretty sure this means anytime you do an action that has <st*> as a target, it's stopping the script which is preventing aftercast from firing.


Nope, took it out and nothing changes. It does as before -- it'll change into engaged gear when entering combat/drawn weapon and then refuses to change into any other sets while healing/debuffing/buffing/etc.

Granted, it was for throwing weapon behaviors (which was a waste of inventory slots and I needed to get rid of it anyway), but this behavior is preset on all three characters -- a WHM, a NIN, and a BRD. I try to keep the XMLs fairly simple so I'm not sure why this isn't working correctly.

Is there some register I need to have in AutoExec for this? I was under the assumption that SpellCast dealt with Engaged/Idle innately.
 Phoenix.Wubby
Offline
サーバ: Phoenix
Game: FFXI
user: Xerlic
Posts: 2
By Phoenix.Wubby 2013-01-30 08:09:45  
You definitely don't need autoexec to handle engage/idle.

I just noticed that your xml is one long chain of elseif conditionals. I think what's happening is when you hit your /ra or /ws, spellcast executes and sees that you're engaged so it equips your tp set. Then, it ignores the rest of the xml since they're all elseif conditionals. Change the elseif on spectral dance to just if and see if that helps? eg:

Code
<!-- JOB ABILITIES JOB ABILITIES JOB ABILITIES JOB ABILITIES JOB ABILITIES -->
 
        <if spell="Spectral Jig" BuffActive="Sneak">
            <command when="precast" delay="0.3">cancel 71</command>            
        </if>
Offline
Posts: 43
By Viertel 2013-01-30 09:53:18  
I'll test it out. I was always under the impression (and it was harped constantly) that it's bad form to use a bunch of if statements and instead only have one and the rest elseif. I'll test it out in a second and see if that's what's wrong.

EDIT: That was it. Thank you very much. If you get a chance, take a look over the refined and let me know if you see anything severely out of place?
Log in to post.