Spellcast Help

Eorzea Time
 
 
 
言語: JP EN FR DE
日本語版のFFXIVPRO利用したい場合は、上記の"JP"を設定して、又はjp.ffxivpro.comを直接に利用してもいいです
users online
フォーラム » FFXI » Jobs » Warrior » Spellcast help
Spellcast help
 Cerberus.Hiryo
Offline
サーバ: Cerberus
Game: FFXI
user: Hiryo
Posts: 278
By Cerberus.Hiryo 2011-07-12 05:51:38  
I seem to be doing something wrong, basically I've always used windower macros and decided to start using spellcast, now the file actually loads up and says it has in game, but when i come to do an action such engage a mob or ws, it doesn't swap my gear. x.x
If I do /sc set idle etc it works then, am i missing something?


[11:44:49] 2520:<0> Checking for Required Version
[11:44:49] 2520:<0> Writing to Console: SpellCast: Hiryo_WAR.xml Loaded Successfully


Just to prove it's loading lol

and here's the actual XML, its probably basic, but I don't understand why it doesn't work. =/

I've done a search and couldn't really find anything, is there some other command Im meant to be typing ingame, or something i've missed in the .XML?
 Lakshmi.Greggles
Offline
サーバ: Lakshmi
Game: FFXI
user: Greggles
Posts: 728
By Lakshmi.Greggles 2011-07-12 06:19:36  
Maybe you should enable debug. I've had to do that when stuff wasn't working right but it still loaded and it eventually showed me the problems. But as it looks, your xml should work fine.

What version of spellcast are you using by chance?
 Lakshmi.Greggles
Offline
サーバ: Lakshmi
Game: FFXI
user: Greggles
Posts: 728
By Lakshmi.Greggles 2011-07-12 06:20:24  
Hm, actually, is there a <? xml version="1.0" ?> line at the top of your xml? I don't see it in the spoiler.
 Cerberus.Hiryo
Offline
サーバ: Cerberus
Game: FFXI
user: Hiryo
Posts: 278
By Cerberus.Hiryo 2011-07-12 06:24:33  
Uhh no there isnt D:
 Lakshmi.Greggles
Offline
サーバ: Lakshmi
Game: FFXI
user: Greggles
Posts: 728
By Lakshmi.Greggles 2011-07-12 06:25:24  
I dunno why it loads then. Put that at the very top and try reloading it. I don't know if that'll fix it...

**edit** accidentally double posted.

But anyways, I don't even know if that line is required. I only put it there because I've always had that line there.
 Cerberus.Hiryo
Offline
サーバ: Cerberus
Game: FFXI
user: Hiryo
Posts: 278
By Cerberus.Hiryo 2011-07-12 06:28:50  
Put that line in, nothing changed, it appears to be working, but it just doesn't swap sets at all x.x im really confused.
 Lakshmi.Greggles
Offline
サーバ: Lakshmi
Game: FFXI
user: Greggles
Posts: 728
By Lakshmi.Greggles 2011-07-12 06:31:38  
I dunno...That's odd. It looks like it should work. >.<; Let me test it a little
 Cerberus.Hiryo
Offline
サーバ: Cerberus
Game: FFXI
user: Hiryo
Posts: 278
By Cerberus.Hiryo 2011-07-12 06:34:40  
Alright, thank you!
 Lakshmi.Greggles
Offline
サーバ: Lakshmi
Game: FFXI
user: Greggles
Posts: 728
By Lakshmi.Greggles 2011-07-12 06:35:04  
You need a closing tag for Ukko's Fury at line

<if Spell="Ukko's Fury">
<if buffactive="Berserk">
<equip when="PreCast" set="Ukkos" />
</if>
<elseif notbuffactive="Berserk">
<equip when="Precast" set="UkkosAtk" />
</elseif>
</if>

Then you'll have an extra /if somewhere you need to delete.

The only reason it loaded is because you have a proper /if for this rule somewhere in the xml.

*edit* if you don't use it, get NotePad++ for doing SpellCast. It makes it a lot more managable as it'll highlight the closing brackets etc, makes for easier troubleshooting.
 Phoenix.Novaria
Offline
サーバ: Phoenix
Game: FFXI
user: Novaria
Posts: 776
By Phoenix.Novaria 2011-07-12 06:35:43  
Here I kinda re-wrote it, cleaned up a little, easier to read see if it works now...

I tested it out a bit on mine, and seemed to work, but I don't have all this gear so not sure.
 Shiva.Msthief
Offline
サーバ: Shiva
Game: FFXI
user: Msthief
Posts: 513
By Shiva.Msthief 2011-07-12 06:37:38  
I'm really tired and lazy, but I know the pain of spellcast not working. The following is my stupid simple war spellcast.

I'd recommend you get rid of any extra "funny" stuff and see if it works as a bare-bones only one set swap for ukko's first (like mine). If that works, then slowly integrate the rest of your stuff until it stops working. If it doesn't, then there's a problem outside of your "rules". It sounds like your problem has to do with "rules" so it's safe to start there.

Unfortunately when it comes to spellcast, nobody can fix it as fast or efficiently as you.
 Shiva.Msthief
Offline
サーバ: Shiva
Game: FFXI
user: Msthief
Posts: 513
By Shiva.Msthief 2011-07-12 06:38:52  
Greggles caught it I think.
 Cerberus.Hiryo
Offline
サーバ: Cerberus
Game: FFXI
user: Hiryo
Posts: 278
By Cerberus.Hiryo 2011-07-12 06:40:57  
Phoenix.Novaria said:
Here I kinda re-wrote it, cleaned up a little, easier to read see if it works now...

I tested it out a bit on mine, and seemed to work, but I don't have all this gear so not sure.

[12:38:55] 2520:<0> Loading filename: Hiryo_WAR.xml
[12:38:55] 2520:<0> [ERROR] XML Parsing Error line 169 - Error reading end tag.
[12:38:55] 2520:<0> Writing to Console: SpellCast: XML Parsing Error: line 169 - Error reading end tag.
[12:38:55] 2520:<0> [ERROR] Document is not valid.
[12:38:55] 2520:<0> Writing to Console: SpellCast: Your document failed to load. Please view the error above, and once it is corrected type /sc reload



Lakshmi.Greggles said:
You need a closing tag for Ukko's Fury at line

<if Spell="Ukko's Fury">
<if buffactive="Berserk">
<equip when="PreCast" set="Ukkos" />
</if>
<elseif notbuffactive="Berserk">
<equip when="Precast" set="UkkosAtk" />
</elseif>
</if>

Then you'll have an extra /if somewhere you need to delete.

The only reason it loaded is because you have a proper /if for this rule somewhere in the xml.

*edit* if you don't use it, get NotePad++ for doing SpellCast. It makes it a lot more managable as it'll highlight the closing brackets etc, makes for easier troubleshooting.


Okay lemmie try that D:
 Lakshmi.Greggles
Offline
サーバ: Lakshmi
Game: FFXI
user: Greggles
Posts: 728
By Lakshmi.Greggles 2011-07-12 06:42:45  
The rogue /if will be the third line from the end:

</elseif>
</if> <----
</rules>
</spellcast>

Delete that, add the /if where I said and it -should- load just fine and work.
 Cerberus.Hiryo
Offline
サーバ: Cerberus
Game: FFXI
user: Hiryo
Posts: 278
By Cerberus.Hiryo 2011-07-12 06:45:31  
Lakshmi.Greggles said:
The rogue /if will be the third line from the end:

</elseif>
</if> <----
</rules>
</spellcast>

Delete that, add the /if where I said and it -should- load just fine and work.

You legend, it worked! Had to delete the </if> in line 154 as well, thanks so much! and thanks everyone else who tried! :D

Only problem now, when i provoke it's swapping me into one of my WS sets lol D:
 Sylph.Charandi
Offline
サーバ: Sylph
Game: FFXI
user: Fyrestorm
Posts: 27
By Sylph.Charandi 2011-07-12 06:49:44  
Seems you're not closing your rules.

<if spell="Ukko's Fury">
<if buffactive="Berserk">
<action type="equip" when="Precast" set="Ukkos" />
<action type="equip" when="aftercast" set="Idle" />
</if>
<elseif notbuffactive="Berserk">
<action type="equip" when="Precast" set="UkkosAtk" />
<action type="equip" when="aftercast" set="Idle" />
</elseif>
</if>

The last /if closes the Fury WS rule. I'm not 100% sure on spellcast but all of my scripts work and that's the only difference. As mentioned above, get Notepad++, it's incredible at helping to ferret out problems such as these.
 Cerberus.Hiryo
Offline
サーバ: Cerberus
Game: FFXI
user: Hiryo
Posts: 278
By Cerberus.Hiryo 2011-07-12 06:53:47  
Yeah, im using Notepad++, obviously just blind lol, that completely fixed everything now, no longer swaps when i voke or use a JA, thank you ^^
 Lakshmi.Greggles
Offline
サーバ: Lakshmi
Game: FFXI
user: Greggles
Posts: 728
By Lakshmi.Greggles 2011-07-12 06:55:23  
I really have no idea why it was doing that from reading your XML unless you switched over to Novaria's copy. I haven't looked at that one at all lol.
 Bismarck.Nevill
Offline
サーバ: Bismarck
Game: FFXI
user: Nevill
Posts: 2420
By Bismarck.Nevill 2011-07-12 06:56:12  
Yeah, something I always do is anytime I make an if statement, I immediately drop down and put the </if>, then fill in everything inbetween. very rarely have a closing statement problem.
 Cerberus.Hiryo
Offline
サーバ: Cerberus
Game: FFXI
user: Hiryo
Posts: 278
By Cerberus.Hiryo 2011-07-12 06:57:21  
Lakshmi.Greggles said:
I really have no idea why it was doing that from reading your XML unless you switched over to Novaria's copy. I haven't looked at that one at all lol.


Nope using my one still! Charandi was right, missed a </if> which obviously meant it was changing when I used the JA's lol
 Sylph.Charandi
Offline
サーバ: Sylph
Game: FFXI
user: Fyrestorm
Posts: 27
By Sylph.Charandi 2011-07-12 06:59:29  
Shouldn't be switching for voke. You also don't need the blood rage rule there, you idle/tp1/tp2 in Lorica +2.
 Cerberus.Hiryo
Offline
サーバ: Cerberus
Game: FFXI
user: Hiryo
Posts: 278
By Cerberus.Hiryo 2011-07-12 07:03:27  
For the moment I do yeah, but should be getting a Adaberk soon, so just gonna leave that rule there for now
Offline
Posts: 46
By karolann 2011-07-31 00:40:56  
Lakshmi.Greggles said:
The rogue /if will be the third line from the end:

</elseif>
</if> <----
</rules>
</spellcast>

Delete that, add the /if where I said and it -should- load just fine and work.



anything wrong with mine here?

</if>
<else>
<if status="Engaged">
<equip when="Engaged" set="TP" />
</if>
<else>
<equip when="aftercast|idle" set="Idle" />
</else>
</else>
</rules>
</spellcast>
 Bismarck.Faelar
Offline
サーバ: Bismarck
Game: FFXI
user: Faelar
Posts: 4108
By Bismarck.Faelar 2011-07-31 00:42:59  
karolann said:
Lakshmi.Greggles said:
The rogue /if will be the third line from the end: </elseif> </if> <---- </rules> </spellcast> Delete that, add the /if where I said and it -should- load just fine and work.
anything wrong with mine here? </if> <else> <if status="Engaged"> <equip when="Engaged" set="TP" /> </if> <else> <equip when="aftercast|idle" set="Idle" /> </else> </else> </rules> </spellcast>


highlighted.
Offline
Posts: 46
By karolann 2011-07-31 00:49:08  
Bismarck.Faelar said:
karolann said:
Lakshmi.Greggles said:
The rogue /if will be the third line from the end: </elseif> </if> <---- </rules> </spellcast> Delete that, add the /if where I said and it -should- load just fine and work.
anything wrong with mine here? </if> <else> <if status="Engaged"> <equip when="Engaged" set="TP" /> </if> <else> <equip when="aftercast|idle" set="Idle" /> </else> </else> </rules> </spellcast>


highlighted.



http://pastebin.com/1K2EC29q

Took out what i think you mean but not working still

i am getting spellcast: Invalid XML. No <spellcast>?
 Bahamut.Bekisa
Offline
サーバ: Bahamut
Game: FFXI
Posts: 596
By Bahamut.Bekisa 2011-07-31 01:15:27  
make sure you have the entire file surrounded by

<spellcast>
...
</spellcast>
Offline
Posts: 46
By karolann 2011-07-31 01:21:22  
Bahamut.Bekisa said:
make sure you have the entire file surrounded by

<spellcast>
...
</spellcast>


THANK YOU!!!!!!!! :)

Now to figure out how to do the rest lol

Laphine was helping me but he left in a hurry and i was left stumped well i still am as to what everything means. we were on skype through chat and i shared my screen lol
 Asura.Nalath
Offline
サーバ: Asura
Game: FFXI
user: Nalath
Posts: 13
By Asura.Nalath 2011-07-31 01:55:24  
A lil late but...
For this bit of code:
Code
<if Spell="Ukko's Fury">
<if buffactive="Berserk">
<equip when="PreCast" set="Ukkos" />
</if>
<elseif notbuffactive="Berserk">
<equip when="Precast" set="UkkosAtk" />
</elseif>
</if>


Im pretty sure you could just do...
Code

<if Spell="Ukko's Fury">
<if buffactive="Berserk">
<equip when="PreCast" set="Ukkos" />
</if>
<else>
<equip when="Precast" set="UkkosAtk" />
</else>
</if>


The else implies the ' buffnotactive="berserk" ' part so its redundant to have.

Also.. elseif are supposed to be used for list of 3 or more... for just 2 you just need if and else...

Not saying that what they wrote to begin with won't work... its just bad form for coding....