Spellcast XML Doesn't Work At All...

Eorzea Time
 
 
 
言語: JP EN FR DE
日本語版のFFXIVPRO利用したい場合は、上記の"JP"を設定して、又はjp.ffxivpro.comを直接に利用してもいいです
users online
フォーラム » Windower » Spellcast Scripting » White Mage » Spellcast XML doesn't work at all...
Spellcast XML doesn't work at all...
Offline
Posts: 48
By bubba37343 2013-12-05 09:37:01  
I created a /dnc spellcast for a melee set to do trials with and named it "myname_whm_dnc", and it loads when SC is loaded, but it does absolutely nothing. I have gone over and over the SC and haven't found anything wrong with it. I'm fairly new to SC, and am not sure if I need <groups> </group> anywhere in it.
Any help trying to resolve this issue would be great.
Code
    <?xml version="1.0" ?>
    <spellcast>
    <config
    Debug="false"
    ShowGearSwaps="false"
    NormalSet="IDLE"
    RestingSet="REST"
    EngagedSet="TP"
    />
     
    <sets>
     
    <set name="REST">
    <ammo>Clarus Stone</ammo>
    <head>Orvail Corona</head>
    <neck>Eidolon Pendant</neck>
    <rear>Antivenom Earring</rear>
    <body>Gendewitha Bliaut</body>
    <hands>Nares Cuffs</hands>
    <legs>Nisse Slacks</legs>
    <waist>Austerity belt</waist>
    <feet>Chelona Boots</feet>
	<back>Vita Cape</back>
	<rring>Star Ring</rring>
    </set>
     
    <set name="CURE">
    <ammo>Clarus Stone</ammo>
    <head>Gendewitha Caubeen</head>
    <neck>Colossus's Torque</neck>
    <lear>Orison Earring</lear>
    <rear>Roundel Earring</rear>
    <body>Gendewitha Bliaut</body>
    <hands>Bokwus Gloves</hands>
    <lring>Ephedra Ring</lring>
    <rring>Ephedra Ring</rring>
    <back>Oretania's Cape</back>
    <waist>Demonry Sash</waist>
    <legs>Orsn. Pantaln. +1</legs>
    <feet>Gendewitha Galoshes</feet>
    </set>
     
    <set name="CURETIME" BaseSet="CURE">
    <head>Nares Cap</head>
    <ammo>Incantor Stone</ammo>
    <neck>Orison Locket</neck>
    <body>Gendewitha Bliaut</body>
	<hands>Gendewitha Gages</hands>
    <waist>Witful Belt</waist>
    <feet>Chelona Boots</feet>
	<legs>Orsn. Pantaln. +1</legs>
    </set>
	
    <set name="MNDENF">
	<head>Gendewitha Caubeen</head>
    <rear>Lifestorm Earring</rear>
    <body>Gendewitha Bliaut</body>
    <hands>Gendewitha Gages</hands>
    <rring>Balrahn's Ring</rring>
    <back>Refraction Cape</back>
    <waist>Demonry Sash</waist>
    <legs>Gendewitha Spats</legs>
    <feet>Marduk's Crackows +1</feet>
    </set>
     
    <set name="DRKMAGIC">
    <head>Gendewitha Caubeen</head>
    <rear>Lifestorm Earring</rear>
    <body>Gendewitha Bliaut</body>
    <hands>Gendewitha Gages</hands>
    <rring>Balrahn's Ring</rring>
    <back>Merciful Cape</back>
    <legs>Gendewitha Spats</legs>
    <feet>Gendewitha Galoshes</feet>	
    </set>
	
	<set name="INTENF" BaseSet="DRKMAGIC">
    <head>Gendewitha Caubeen</head>
    <body>Gendewitha Bliaut</body>
    <hands>Gendewitha Gages</hands>
    <rring>Balrahn's Ring</rring>
    <back>Refraction Cape</back>
    <legs>Gendewitha Spats</legs>
    <feet>Gendewitha Galoshes</feet>
	</set>

    <set name="FAST">
    <head>Nares Cap</head>
    <neck>Orison Locket</neck>
    <lear>Loquac. Earring</lear>
    <body>Anhur Robe</body>
    <hands>Gendewitha Gages</hands>
    <waist>Witful Belt</waist>
    <legs>Orvail Pants</legs>
    <feet>Chelona Boots</feet>
	<ammo>Incantor Stone</ammo>
    </set>

	<set name="HEALING" BaseSet="FAST">
	<legs>Orsn. Pantaln. +1</legs>
	<hands>Healer's Mitts +1</hands>
	<body>Orison Bliaud +2</body>
	<neck>Colossus's Torque</neck>
	<lring>Ephedra Ring</lring>
	<rring>Ephedra Ring</rring>
	</set>

	<set name="NA" BaseSet="HEALING">
	<head>Nares Cap</head>
	</set>

	<set name="REGEN" BaseSet="FAST">
	<body>Cleric's Briault</body>
	<hands>Orison Mitts +2</hands>
	</set>
     
    <set name="ENHSKILL" BaseSet="FAST">
    <neck>Colossus's torque</neck>
    <feet>Orsn. Duckbills +1</feet>
	<waist>Olympus Sash</waist>
	<body>Anhur Robe</body>	
    </set>	
    
	<set name="BAR" BaseSet="FAST">
    <neck>Colossus's torque</neck>
    </set>
     
    <set name="TP">
    <head>Gendewitha Caubeen</head>
    <neck>Asperity Necklace</neck>
    <lear>Steelflash Earring</lear>
    <rear>Bladeborn Earring</rear>
    <body>Gendewitha Bliaut</body>
    <hands>Bokwus Gloves</hands>
    <lring>Defending Ring</lring>
    <rring>Jelly Ring</rring>
    <waist>Ninurta's Sash</waist>
    <legs>Gendewitha Spats</legs>
    <feet>Gendewitha Galoshes</feet>
	<back>Cheviot Cape</back>
    </set>
     
    <set name="WS">
    <head>Gendewitha Caubeen</head>
    <neck>Asperity Necklace</neck>
    <lear>Steelflash Earring</lear>
    <rear>Bladeborn Earring</rear>
    <body>Gendewitha Bliaut</body>
    <hands>Gendewitha Gages</hands>
    <lring>Defending Ring</lring>
    <rring>Rajas Ring</rring>
    <back>Refraction Cape</back>
    <waist>Ninurta's Sash</waist>
    <legs>Gendewitha Spats</legs>
    <feet>Gendewitha Galoshes</feet>
    </set>
	
    </sets>
	
    <rules>
         
    <if status="Engaged">
    <equip when="idle|engaged|resting|precast|midcast|aftercast">
    <main lock="t" />
    <sub lock="t" />
    <range lock="t" />
    </equip>
    </if>
    <if NotStatus="Engaged">
    <if area="*Windurst*|Heavens*|*San d'Oria*|Chateau*|*Bastok*|Metalworks|*Jeuno*|Ru'Lude*|*Whitegate|Al Zahbi|Chocobo*|*Colosseum|Selbina|Mhaura|Kazham|Norg|Tavnazia*|*Adoulin" notarea="Dynamis*|*[S]" notbuffactive="Besieged">
    <action type="Equip" when="idle|engaged|resting|precast|midcast|aftercast" set="TP" />
    </if>
    <else>
    <action type="equip" when="aftercast" set="TP"/>
    </else>
    </if>
    <else>
    <action type="equip" when="aftercast" set="TP"/>
    </else>
     
    <if Area="*Remnants|Periqia|Ilrusi Atoll|Mamool Ja Training Grounds|Lebros Caverns|Leujoaom Sanctum|Nyzul Isle|The Ashu Talif">
    <equip when="idle|engaged|resting|precast|midcast|aftercast">
    <rring lock="t">Balrahn's Ring</rring>
    </equip>
    </if>
     
    <if Skill="HealingMagic">
    <if spell="cure*|cura*">
    <equip when="precast" set="CURETIME" />
    <equip when="midcast" set="CURE" />
    </if>
    <elseif spell="*na">
    <equip when="precast" set="Na" />
    </elseif>
    <elseif spell="raise*|reraise*|arise">
    <equip when="precast" set="FAST" />
    </elseif>
    <else>
    <equip when="precast" set="HEALING" />
    </else>
    </if>
    <elseif Skill="EnhancingMagic">
    <if spell="Stoneskin|Aquaveil|Blink|Boost*|Auspice">
    <equip when="precast" set="ENHSKILL" />
    </if>
    <elseif spell="Bar*">
    <equip when="precast" set="BAR" />
    </elseif>
    <elseif spell="Regen*">
    <equip when="precast" set="Regen" />
    </elseif>
    <else>
    <equip when="precast" set="FAST" />
    <if spell="Sneak" BuffActive="Sneak" advanced='"%target"="<me>"'>
    <command when="precast">cancel 71</command>
    </if>
    </else>
    </elseif>
    <elseif skill="EnfeeblingMagic">
    <if spell="Slow|Paralyze">
    <equip when="precast" set="MNDENF" />
    </if>
    <elseif spell="Sleep*|Blind|Bind">
    <equip when="precast" set="INTENF" />
    </elseif>
</elseif>
    <elseif skill="DivineMagic">
    <equip when="precast" set="Fast" />
    <if spell="Repose">
    <equip when="precast" set="MNDENF" />
    </if>
    </elseif>	
    <elseif skill="DarkMagic">
    <equip when="precast" set="Fast" />
    </elseif>

     
     
	<if type="weaponskill">
		<castdelay delay="$Delay-JA" />
		<if spell="Hexa Strike">
        <equip when="precast" set="WS"/> 
	</if>
		<if type="weaponskill">
		<castdelay delay="$Delay-JA" />
		<if spell="Mystic Boon">
        <equip when="precast" set="WS"/> 
	</if>
		<if type="weaponskill">
		<castdelay delay="$Delay-JA" />
		<if spell="Realmrazer">
        <equip when="precast" set="WS"/> 
	</if>
		<if type="weaponskill">
		<castdelay delay="$Delay-JA" />
		<if spell="Black Halo">
        <equip when="precast" set="WS"/> 
	</if>
	</if>
	</if>
		</if>
			</if>
	</rules>
    </spellcast>
Offline
Posts: 48
By bubba37343 2013-12-05 09:45:27  
Also, when SC does load this, it says:

File: Myname_WHM_DNC.xml - Group: INIT_LOAD

I'm not sure what it means, which is why I referred to the "<group></group>" in OP.
 Valefor.Omnys
Offline
サーバ: Valefor
Game: FFXI
user: omnys
Posts: 1759
By Valefor.Omnys 2013-12-05 10:02:11  
Oh, you didn't group your sets. I've never tried an sc without groups but maybe that's the problem.

I also changed line 215 from
Code
<if spell="Sneak" BuffActive="Sneak" advanced='"%target"="<me>"'>


to
Code
<if spell="Sneak" BuffActive="Sneak" spelltargettype="self">


Because my xml validator was tripping on that line (errantly, I'm sure)
Code
<?xml version="1.0" ?>
<spellcast>
	<config
    Debug="false"
    ShowGearSwaps="false"
    NormalSet="IDLE"
    RestingSet="REST"
    EngagedSet="TP"
    />

	<sets>
		<group name="melee" default="yes">
		<set name="REST">
			<ammo>Clarus Stone</ammo>
			<head>Orvail Corona</head>
			<neck>Eidolon Pendant</neck>
			<rear>Antivenom Earring</rear>
			<body>Gendewitha Bliaut</body>
			<hands>Nares Cuffs</hands>
			<legs>Nisse Slacks</legs>
			<waist>Austerity belt</waist>
			<feet>Chelona Boots</feet>
			<back>Vita Cape</back>
			<rring>Star Ring</rring>
		</set>

		<set name="CURE">
			<ammo>Clarus Stone</ammo>
			<head>Gendewitha Caubeen</head>
			<neck>Colossus's Torque</neck>
			<lear>Orison Earring</lear>
			<rear>Roundel Earring</rear>
			<body>Gendewitha Bliaut</body>
			<hands>Bokwus Gloves</hands>
			<lring>Ephedra Ring</lring>
			<rring>Ephedra Ring</rring>
			<back>Oretania's Cape</back>
			<waist>Demonry Sash</waist>
			<legs>Orsn. Pantaln. +1</legs>
			<feet>Gendewitha Galoshes</feet>
		</set>

		<set name="CURETIME" BaseSet="CURE">
			<head>Nares Cap</head>
			<ammo>Incantor Stone</ammo>
			<neck>Orison Locket</neck>
			<body>Gendewitha Bliaut</body>
			<hands>Gendewitha Gages</hands>
			<waist>Witful Belt</waist>
			<feet>Chelona Boots</feet>
			<legs>Orsn. Pantaln. +1</legs>
		</set>

		<set name="MNDENF">
			<head>Gendewitha Caubeen</head>
			<rear>Lifestorm Earring</rear>
			<body>Gendewitha Bliaut</body>
			<hands>Gendewitha Gages</hands>
			<rring>Balrahn's Ring</rring>
			<back>Refraction Cape</back>
			<waist>Demonry Sash</waist>
			<legs>Gendewitha Spats</legs>
			<feet>Marduk's Crackows +1</feet>
		</set>

		<set name="DRKMAGIC">
			<head>Gendewitha Caubeen</head>
			<rear>Lifestorm Earring</rear>
			<body>Gendewitha Bliaut</body>
			<hands>Gendewitha Gages</hands>
			<rring>Balrahn's Ring</rring>
			<back>Merciful Cape</back>
			<legs>Gendewitha Spats</legs>
			<feet>Gendewitha Galoshes</feet>    
		</set>

		<set name="INTENF" BaseSet="DRKMAGIC">
			<head>Gendewitha Caubeen</head>
			<body>Gendewitha Bliaut</body>
			<hands>Gendewitha Gages</hands>
			<rring>Balrahn's Ring</rring>
			<back>Refraction Cape</back>
			<legs>Gendewitha Spats</legs>
			<feet>Gendewitha Galoshes</feet>
		</set>

		<set name="FAST">
			<head>Nares Cap</head>
			<neck>Orison Locket</neck>
			<lear>Loquac. Earring</lear>
			<body>Anhur Robe</body>
			<hands>Gendewitha Gages</hands>
			<waist>Witful Belt</waist>
			<legs>Orvail Pants</legs>
			<feet>Chelona Boots</feet>
			<ammo>Incantor Stone</ammo>
		</set>

		<set name="HEALING" BaseSet="FAST">
			<legs>Orsn. Pantaln. +1</legs>
			<hands>Healer's Mitts +1</hands>
			<body>Orison Bliaud +2</body>
			<neck>Colossus's Torque</neck>
			<lring>Ephedra Ring</lring>
			<rring>Ephedra Ring</rring>
		</set>

		<set name="NA" BaseSet="HEALING">
			<head>Nares Cap</head>
		</set>

		<set name="REGEN" BaseSet="FAST">
			<body>Cleric's Briault</body>
			<hands>Orison Mitts +2</hands>
		</set>

		<set name="ENHSKILL" BaseSet="FAST">
			<neck>Colossus's torque</neck>
			<feet>Orsn. Duckbills +1</feet>
			<waist>Olympus Sash</waist>
			<body>Anhur Robe</body> 
		</set>    

		<set name="BAR" BaseSet="FAST">
			<neck>Colossus's torque</neck>
		</set>

		<set name="TP">
			<head>Gendewitha Caubeen</head>
			<neck>Asperity Necklace</neck>
			<lear>Steelflash Earring</lear>
			<rear>Bladeborn Earring</rear>
			<body>Gendewitha Bliaut</body>
			<hands>Bokwus Gloves</hands>
			<lring>Defending Ring</lring>
			<rring>Jelly Ring</rring>
			<waist>Ninurta's Sash</waist>
			<legs>Gendewitha Spats</legs>
			<feet>Gendewitha Galoshes</feet>
			<back>Cheviot Cape</back>
		</set>

		<set name="WS">
			<head>Gendewitha Caubeen</head>
			<neck>Asperity Necklace</neck>
			<lear>Steelflash Earring</lear>
			<rear>Bladeborn Earring</rear>
			<body>Gendewitha Bliaut</body>
			<hands>Gendewitha Gages</hands>
			<lring>Defending Ring</lring>
			<rring>Rajas Ring</rring>
			<back>Refraction Cape</back>
			<waist>Ninurta's Sash</waist>
			<legs>Gendewitha Spats</legs>
			<feet>Gendewitha Galoshes</feet>
		</set>
	</group>
	</sets>

	<rules>

		<if status="Engaged">
			<equip when="idle|engaged|resting|precast|midcast|aftercast">
				<main lock="t" />
				<sub lock="t" />
				<range lock="t" />
			</equip>
		</if>
		<if NotStatus="Engaged">
			<if area="*Windurst*|Heavens*|*San d'Oria*|Chateau*|*Bastok*|Metalworks|*Jeuno*|Ru'Lude*|*Whitegate|Al Zahbi|Chocobo*|*Colosseum|Selbina|Mhaura|Kazham|Norg|Tavnazia*|*Adoulin" notarea="Dynamis*|*[S]" notbuffactive="Besieged">
				<action type="Equip" when="idle|engaged|resting|precast|midcast|aftercast" set="TP" />
			</if>
			<else>
				<action type="equip" when="aftercast" set="TP"/>
			</else>
		</if>
		<else>
			<action type="equip" when="aftercast" set="TP"/>
		</else>

		<if Area="*Remnants|Periqia|Ilrusi Atoll|Mamool Ja Training Grounds|Lebros Caverns|Leujoaom Sanctum|Nyzul Isle|The Ashu Talif">
			<equip when="idle|engaged|resting|precast|midcast|aftercast">
				<rring lock="t">Balrahn's Ring</rring>
			</equip>
		</if>

		<if Skill="HealingMagic">
			<if spell="cure*|cura*">
				<equip when="precast" set="CURETIME" />
				<equip when="midcast" set="CURE" />
			</if>
			<elseif spell="*na">
				<equip when="precast" set="Na" />
			</elseif>
			<elseif spell="raise*|reraise*|arise">
				<equip when="precast" set="FAST" />
			</elseif>
			<else>
				<equip when="precast" set="HEALING" />
			</else>
		</if>
		<elseif Skill="EnhancingMagic">
			<if spell="Stoneskin|Aquaveil|Blink|Boost*|Auspice">
				<equip when="precast" set="ENHSKILL" />
			</if>
			<elseif spell="Bar*">
				<equip when="precast" set="BAR" />
			</elseif>
			<elseif spell="Regen*">
				<equip when="precast" set="Regen" />
			</elseif>
			<else>
				<equip when="precast" set="FAST" />
				<if spell="Sneak" BuffActive="Sneak" spelltargettype="self">
					<command when="precast">cancel 71</command>
				</if>
			</else>
		</elseif>
		<elseif skill="EnfeeblingMagic">
			<if spell="Slow|Paralyze">
				<equip when="precast" set="MNDENF" />
			</if>
			<elseif spell="Sleep*|Blind|Bind">
				<equip when="precast" set="INTENF" />
			</elseif>
		</elseif>
		<elseif skill="DivineMagic">
			<equip when="precast" set="Fast" />
			<if spell="Repose">
				<equip when="precast" set="MNDENF" />
			</if>
		</elseif> 
		<elseif skill="DarkMagic">
			<equip when="precast" set="Fast" />
		</elseif>



		<if type="weaponskill">
			<castdelay delay="$Delay-JA" />
			<if spell="Hexa Strike">
				<equip when="precast" set="WS"/> 
			</if>
			<if type="weaponskill">
				<castdelay delay="$Delay-JA" />
				<if spell="Mystic Boon">
					<equip when="precast" set="WS"/> 
				</if>
				<if type="weaponskill">
					<castdelay delay="$Delay-JA" />
					<if spell="Realmrazer">
						<equip when="precast" set="WS"/> 
					</if>
					<if type="weaponskill">
						<castdelay delay="$Delay-JA" />
						<if spell="Black Halo">
							<equip when="precast" set="WS"/> 
						</if>
					</if>
				</if>
			</if>
		</if>
	</rules>
</spellcast>
Offline
Posts: 48
By bubba37343 2013-12-05 10:07:03  
Thank you for the response. How exactly do I "group" them and where do I begin/end the grouping? I've only used SC for ~a week, and just for shorthand casting abilities.

Thanks for the assistance.
 Cerberus.Toknherb
Offline
サーバ: Cerberus
Game: FFXI
user: Toknherb
Posts: 104
By Cerberus.Toknherb 2013-12-05 11:20:16  
He had already modified your file and grouped them to show you, just check under the first <sets> tag there in his response, and it ends after the </sets> tag designated by where it says <group> and </group> respectively.
Offline
Posts: 48
By bubba37343 2013-12-05 11:26:29  
Thank you Toknherb. I got it working now. TY!!
Offline
Posts: 48
By bubba37343 2013-12-05 11:40:30  
Ok, now I have a problem with precast not coming on until AFTER the spell starts. How do I fix this?
Offline
Posts: 48
By bubba37343 2013-12-05 12:04:28  
Nevermind the last question. I found another XML that had the answer.

Under "<rules>, I placed this:
Code
		<if Spell="Cur*">
            <action type="precastdelay" delay=".3" />
            <action type="equip" when="precast" set="CURETIME"/>
            <action type="midcastdelay" delay=".3"/>
            <action type="equip" when="midcast" set="Cure"/>
        </if>


Works perfectly.
 Carbuncle.Divinite
Offline
サーバ: Carbuncle
Game: FFXI
user: Divinite
Posts: 26
By Carbuncle.Divinite 2013-12-06 08:40:36  
I think what you want is a castdelay instead of a precastdelay.

Here is my understanding:

  • precastdelay: delay before equipping your precast set

  • castdelay: delay before casting your spell



In my testing, the castdelay gives you a small window of time between equipping the gear and the start of the spell cast. You can test this yourself with large values for the delays (like 5 seconds or something) and see what happens when.

Although... now that I've tested it again, I'm not seeing any difference in behavior between precastdelay and castdelay. Both equip gear first and then delay the casting of the spell.

Maybe someone can confirm whether or not that is the case? I've not found much documentation on how this stuff works yet other than other people's xml's.

I have a similar post on this topic here for reference: http://www.ffxiah.com/forum/topic/38694/equip-grip-error-and-spellcast-help/