「SpellCastを日本語環境で使う」の編集履歴(バックアップ)一覧はこちら
追加された行は緑色になります。
削除された行は赤色になります。
<p>2008.4.12現在、SpellCastを日本語環境で利用するには次の問題があります。<br />
以下の手順は、その問題を回避してSpellCastを利用する手順です。</p>
<p>※このテキストは、Windowerの基本的な操作方法を理解している方を対象としてします。</p>
<p> ・プラグインのロード、アンロード<br />
・Windowerスクリプト</p>
<p> </p>
<ul><li><a href="#problem"><font size="3">日本語環境での問題</font></a></li>
<li><a href="#setup"><font size="3">準備</font></a></li>
<li><a href="#programing"><font size="3">設定ファイル、スクリプトの作成</font></a></li>
<li><a href="#start"><font size="3">起動と設定ファイルの読み込み</font></a></li>
<li><a href="#chuui"><font size="3">注意点</font></a></li>
</ul><p> </p>
<p> </p>
<hr width="100%" size="2" /><p><font size="2"><strong><a name="problem" id="problem"></a><日本語FFXi環境上での問題><br /></strong></font></p>
<hr width="100%" size="2" /><p> </p>
<blockquote>日本語版FFXiは文字コードをShiftJisとして扱っています。<br />
しかし、SpellCastの設定ファイル(.xml)内に記載したShiftJisの2byte文字を正しくFFXiに送ることができません。<br />
これはSpellCastではTinyXMLを利用してXMLへのアクセスを行っており、TinyXMLはShiftJISを扱うことができないためです。<br />
参考:<a href="http://forums.windower.net/index.php?s=2afdffa922686452a43ae69073222c27&showtopic=11758">http://forums.windower.net/index.php?s=2afdffa922686452a43ae69073222c27&showtopic=11758<br /></a><br />
この解決方法として、<u>2byte文字を含むコマンドは別のスクリプトファイルに記述し、SpellCastよりスクリプトを呼び出す</u>ことで回避します。</blockquote>
<p> </p>
<hr width="100%" size="2" /><p><strong><font size="2"><a name="setup" id="setup"></a><準備><br /></font></strong></p>
<hr width="100%" size="2" /><p> </p>
<blockquote>1.SpellCast 2.14以降をプラグインフォルダへダウンロード<br />
2.プラグインフォルダのresouce.xmlの編集<br />
・resouce.xml先頭行を次のように書き換える。
<blockquote>
<table width="656" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td><?xml version="1.0" encoding="shift-jis"?></td>
</tr></tbody></table>
※resource.xmlがない場合は、一度loadしてみてください。</blockquote>
・文字コードをShift-Jisにして上書き保存<a href="http://www.google.co.jp/search?hl=ja&client=firefox%20-a&rls=org.mozilla%3Aja%3Aofficial&hs=nNE&q=%E3%82%B5%E3%82%AF%E3%83%A9%E3%82%A8%E3%83%87%E3%82%A3%E3%82%BF+%E6%96%87%E5%AD%97%E3%82%B3%E3%83%BC%E3%83%89%E5%A4%89%E6%8F%9B&btnG=%E6%A4%9C%E7%B4%A2&lr=lang_ja">
参考:文字コードを変更</a></blockquote>
<p> </p>
<p> </p>
<hr width="100%" size="2" /><p><font size="2"><strong><a name="programing" id="programing"></a><SpellCast設定ファイル、及びスクリプトファイルの作成><br /></strong></font></p>
<hr width="100%" size="2" /><p> </p>
<blockquote>参考に筆者のフォルダ構成は次のようにしています。<br /><br />
└Windower<br />
├ plugins<br />
│└ spellcast<br />
│ └ blm.xml ・・・・・・SpellCast設定ファイル(1)<br />
└ scripts<br />
└ blm ・・・・・・ジョブ別にスクリプトフォルダを分けると便利<br />
└ sc ・・・・・・・・スクリプトファイル置き場<br />
├ Standard51 ・・・・・・・・スクリプトファイル(2)<br />
├ rest50<br />
├ rest51<br />
├ IceStaff<br />
├ ・・・<br /><br />
1.SpellCast設定ファイルを作成する<br /><br />
・全ての装備変更をスクリプトで行うため、<set>は利用しません。<br />
・<rule>及び、<if>等で条件判定を行った後に<br />
<Action type="Command" when="タイミング"> コマンド </Action><br />
を利用して装備変更スクリプトを呼び出します。<br />
タイミングは主に次の3つで、ヒット直前に装備を変えてヒット後に戻す、などが可能です。<br />
Precast:魔法詠唱前<br />
midcast:魔法詠唱後<br />
Aftercast:魔法発動後<br />
その他にも秒数を指定したりも可能です。詳細は<a href="http://wiki.windower.net/plugins/spellcast/spellcast2.11/rules">本家:ruleの説明</a>をご参照ください。<br /><br /><blockquote>次の例は、次の2つの行動を行う設定ファイルです。<br />
・精霊、暗黒、強化、神聖魔法を詠唱した際に<br />
メインレベルが50を超えている場合に<br />
1.基本装備セットを装備し ・・・・・ 10行目 blm/sc/standard51 を呼び出し<br />
2.詠唱した魔法の属性に合わせて属性杖を装備する。 ・・・・・・ 11~27行目<br /><br />
・ヒーリングした際に、レベルに応じて装備を変更する。 ・・・・・31~40行目<br />
メインレベルが50を超えている場合は、 blm/sc/rest51を実行<br />
それ以外の場合は、 blm/sc/rest50を実行<br /><br />
plugins/spellcast/blm.xml<br /><table width="600" cellspacing="1" cellpadding="1" border="1"><tbody><tr><td><?xml version="1.0" encoding="Shift-Jis"?><br />
<spellcast><br />
<config Debug="false" HideErrors="false" ShowGearSwaps="False" /><br />
<sets><br />
</sets><br />
<rules><br />
<!-- 魔法発動中の着替え、属性杖の変更 --><br />
<rule
Skill="ElementalMagic|DarkMagic|EnfeeblingMagic|DivineMagic"><br />
<if MLvlGT=50><br />
<Action type="Command" when="midcast">exec
blm/sc/Standard51</Action> <br />
<if Element="Fire"><br />
</if><br />
<elseif Element="Earth"><br />
<Action type="Command" when="midcast">exec
blm/sc/EarthStaff</Action><br />
</elseif><br />
<elseif Element="Wind"><br />
<Action type="Command" when="midcast">exec
blm/sc/WindStaff</Action><br />
</elseif><br />
<elseif Element="Dark"><br />
<Action type="Command" when="midcast">exec
blm/sc/DarkStaff</Action><br />
</elseif><br />
<elseif Element="Light"><br />
<Action type="Command" when="midcast">exec
blm/sc/LightStaff</Action><br />
</elseif><br />
<else><br />
<Action type="Command" when="midcast">exec
blm/sc/IceStaff</Action><br />
</else><br />
</if><br />
</rule> <br />
<!-- ヒーリング時の処理 --><br />
<rule spell="Autoset"><br />
<if status="Resting"><br />
<if MLvlGT=50><br />
<Action type="Command" when="Resting">exec
blm/sc/rest51</Action><br />
</if><br />
<else><br />
<Action type="Command" when="Resting">exec
blm/sc/rest50</Action><br />
</else><br />
</if><br />
</rule><br />
</rules><br />
</spellcast></td>
</tr></tbody></table><br /></blockquote>
<br />
2.SpellCastから呼び出すWindowerスクリプトファイルを作成する<br /><br />
SpellCastから呼び出す着替えスクリプトを用意します。<br />
このスクリプトファイルはWindower標準のスクリプトファイルとなります。<br /><br />
例として、次に上記のblm.xmlから呼び出すスクリプトファイルを以下に示します。<br /><blockquote>scripts/blm/sc/rest50
<table width="450" cellspacing="1" cellpadding="1" border="1"><tbody><tr><td>input /equip body シアーチュニック<br />
input /equip waist モブワサッシュ+1<br />
input /equip legs バロンスロップス<br />
input /equip ear1 防毒のピアス<br />
input /echo ##### ヒーリング装備(黒50) #####</td>
</tr></tbody></table><br />
scripts/blm/sc/rest51<br /><table width="450" cellspacing="1" cellpadding="1" border="1"><tbody><tr><td>input /equip main ダークスタッフ<br />
input /equip ear1 防毒のピアス<br />
input /equip body シアーチュニック<br />
input /equip waist モブワサッシュ+1<br />
input /equip legs バロンスロップス<br />
input /echo ##### ヒーリング装備(黒51以上) #####</td>
</tr></tbody></table><br />
scripts/blm/sc/standard51<br /><table width="450" cellspacing="1" cellpadding="1" border="1"><tbody><tr><td>input /equip Ammo モリオンタスラム<br />
input /equip Head シアークラウン+1<br />
input /equip Neck モブワスカーフ+1<br />
input /equip Ear1 カンニングピアス<br />
input /equip Ear2 モルダバイトピアス<br />
input /equip body カスタムベスト<br />
input /equip hands カスタムFグローブ<br />
input /equip Ring1 賢明の指輪<br />
input /equip Ring2 賢明の指輪<br />
input /equip Back ブラックケープ+1<br />
input /equip waist フォレストストーン<br />
input /equip legs マジックズボン<br />
input /equip feet カスタムFブーツ<br />
input /echo ##### 通常装備(黒51) #####</td>
</tr></tbody></table><br />
scripts/blm/sc/earthstaff<br /><table width="450" cellspacing="1" cellpadding="1" border="1"><tbody><tr><td>input /equip main ライトスタッフ</td>
</tr></tbody></table><br />
scripts/blm/sc/icestaff<br /><table width="450" cellspacing="1" cellpadding="1" border="1"><tbody><tr><td>input /equip main アクィロスタッフ</td>
</tr></tbody></table><br />
scripts/blm/sc/darkstaff<br /><table width="450" cellspacing="1" cellpadding="1" border="1"><tbody><tr><td>input /equip main ダークスタッフ</td>
</tr></tbody></table><br />
scripts/blm/sc/Lightstaff<br /><table width="450" cellspacing="1" cellpadding="1" border="1"><tbody><tr><td>input /equip main ライトスタッフ</td>
</tr></tbody></table><br />
scripts/blm/sc/Windstaff<br /><table width="450" cellspacing="1" cellpadding="1" border="1"><tbody><tr><td>input /equip main ウィンドスタッフ</td>
</tr></tbody></table></blockquote>
</blockquote>
<p> </p>
<hr width="100%" size="2" /><p><font size="2"><strong><a name="start" id="start"></a><SpellCastの起動、及び設定ファイルの読み込み><br /></strong></font></p>
<hr width="100%" size="2" /><p>SpellCastの簡単な利用方法を示します。詳細は、<a href="http://wiki.windower.net/plugins/spellcast">本家:Spellcast
command</a>をご参照ください。<br />
1.spellcastのロード<br />
最初に読み込まれる設定ファイルは「plugins/spellcast/default.xml」となります。<br />
2.設定ファイルの読み込み<br />
例の場合では、Windowerコンソールにて「spellcast file blm.xml」として読み込んでください。</p>
<p> </p>
<hr width="100%" size="2" /><p><font size="2"><strong><a name="chuui" id="chuui"></a><注意点><br /></strong></font></p>
<hr width="100%" size="2" /><p> ・SpellCastのバージョンは<strong><font color="#FF0000">2.14以降が必須</font></strong>です。2.11以前のバージョンでは日本語魔法・アビ名を認識しません。<br />
・SpellCast設定ファイルの<rule>で、<font color="#FF0000"><strong>魔法・アビ名を指定する場合は、英語名で指定</strong></font>してください。<br />
(例) ブリザドを指定したい場合<br />
○ <rule Spell="Blizzard"> や <rule
Spell="Blizzar*"><br />
× <rule
JSpell="ブリザド"> ・・・ 本来はこの指定で認識させたい意図で作られていますが、認識しません。(文字コードの問題?)</p>
<p> </p>
<p>2008.4.12現在、SpellCastを日本語環境で利用するには次の問題があります。<br />
以下の手順は、その問題を回避してSpellCastを利用する手順です。</p>
<p>※このテキストは、Windowerの基本的な操作方法を理解している方を対象としてします。</p>
<p> ・プラグインのロード、アンロード<br />
・Windowerスクリプト</p>
<p> </p>
<ul><li><a href="#problem"><font size="3">日本語環境での問題</font></a></li>
<li><a href="#setup"><font size="3">準備</font></a></li>
<li><a href="#programing"><font size="3">設定ファイル、スクリプトの作成</font></a></li>
<li><a href="#start"><font size="3">起動と設定ファイルの読み込み</font></a></li>
<li><a href="#chuui"><font size="3">注意点</font></a></li>
</ul><p> </p>
<p> </p>
<hr width="100%" size="2" /><p><font size="2"><strong><a id="problem" name="problem"></a><日本語FFXi環境上での問題><br /></strong></font></p>
<hr width="100%" size="2" /><p> </p>
<blockquote>日本語版FFXiは文字コードをShiftJisとして扱っています。<br />
しかし、SpellCastの設定ファイル(.xml)内に記載したShiftJisの2byte文字を正しくFFXiに送ることができません。<br />
これはSpellCastではTinyXMLを利用してXMLへのアクセスを行っており、TinyXMLはShiftJISを扱うことができないためです。<br />
参考:<a href="http://forums.windower.net/index.php?s=2afdffa922686452a43ae69073222c27&showtopic=11758">http://forums.windower.net/index.php?s=2afdffa922686452a43ae69073222c27&showtopic=11758<br /></a><br />
この解決方法として、<u>2byte文字を含むコマンドは別のスクリプトファイルに記述し、SpellCastよりスクリプトを呼び出す</u>ことで回避します。</blockquote>
<p> </p>
<hr width="100%" size="2" /><p><strong><font size="2"><a id="setup" name="setup"></a><準備><br /></font></strong></p>
<hr width="100%" size="2" /><p> </p>
<blockquote>1.SpellCast 2.14以降をプラグインフォルダへダウンロード<br />
2.プラグインフォルダのresouce.xmlの編集<br />
・resouce.xml先頭行を次のように書き換える。
<blockquote>
<table width="656" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td><?xml version="1.0" encoding="shift-jis"?></td>
</tr></tbody></table>
※resource.xmlがない場合は、一度loadしてみてください。</blockquote>
・文字コードをShift-Jisにして上書き保存<a href="http://www.google.co.jp/search?hl=ja&client=firefox%20-a&rls=org.mozilla%3Aja%3Aofficial&hs=nNE&q=%E3%82%B5%E3%82%AF%E3%83%A9%E3%82%A8%E3%83%87%E3%82%A3%E3%82%BF+%E6%96%87%E5%AD%97%E3%82%B3%E3%83%BC%E3%83%89%E5%A4%89%E6%8F%9B&btnG=%E6%A4%9C%E7%B4%A2&lr=lang_ja">
参考:文字コードを変更</a></blockquote>
<p> </p>
<p> </p>
<hr width="100%" size="2" /><p><font size="2"><strong><a id="programing" name="programing"></a><SpellCast設定ファイル、及びスクリプトファイルの作成><br /></strong></font></p>
<hr width="100%" size="2" /><p> </p>
<blockquote>参考に筆者のフォルダ構成は次のようにしています。<br /><br />
└Windower<br />
├ plugins<br />
│└ spellcast<br />
│ └ blm.xml ・・・・・・SpellCast設定ファイル(1)<br />
└ scripts<br />
└ blm ・・・・・・ジョブ別にスクリプトフォルダを分けると便利<br />
└ sc ・・・・・・・・スクリプトファイル置き場<br />
├ Standard51 ・・・・・・・・スクリプトファイル(2)<br />
├ rest50<br />
├ rest51<br />
├ IceStaff<br />
├ ・・・<br /><br />
1.SpellCast設定ファイルを作成する<br /><br />
・全ての装備変更をスクリプトで行うため、<set>は利用しません。<br />
・<rule>及び、<if>等で条件判定を行った後に<br />
<Action type="Command" when="タイミング"> コマンド </Action><br />
を利用して装備変更スクリプトを呼び出します。<br />
タイミングは主に次の3つで、ヒット直前に装備を変えてヒット後に戻す、などが可能です。<br />
Precast:魔法詠唱前<br />
midcast:魔法詠唱後<br />
Aftercast:魔法発動後<br />
その他にも秒数を指定したりも可能です。詳細は<a href="http://wiki.windower.net/plugins/spellcast/spellcast2.11/rules">本家:ruleの説明</a>をご参照ください。<br /><br /><blockquote>次の例は、次の2つの行動を行う設定ファイルです。<br />
・精霊、暗黒、強化、神聖魔法を詠唱した際に<br />
メインレベルが50を超えている場合に<br />
1.基本装備セットを装備し ・・・・・ 10行目 blm/sc/standard51 を呼び出し<br />
2.詠唱した魔法の属性に合わせて属性杖を装備する。 ・・・・・・ 11~27行目<br /><br />
・ヒーリングした際に、レベルに応じて装備を変更する。 ・・・・・31~40行目<br />
メインレベルが50を超えている場合は、 blm/sc/rest51を実行<br />
それ以外の場合は、 blm/sc/rest50を実行<br /><br />
plugins/spellcast/blm.xml<br /><table width="600" cellspacing="1" cellpadding="1" border="1"><tbody><tr><td><?xml version="1.0" encoding="Shift-Jis"?><br />
<spellcast><br />
<config Debug="false" HideErrors="false" ShowGearSwaps="False" /><br />
<sets><br />
</sets><br />
<rules><br />
<!-- 魔法発動中の着替え、属性杖の変更 --><br />
<rule
Skill="ElementalMagic|DarkMagic|EnfeeblingMagic|DivineMagic"><br />
<if MLvlGT=50><br />
<Action type="Command" when="midcast">exec
blm/sc/Standard51</Action> <br />
<if Element="Fire"><br />
</if><br />
<elseif Element="Earth"><br />
<Action type="Command" when="midcast">exec
blm/sc/EarthStaff</Action><br />
</elseif><br />
<elseif Element="Wind"><br />
<Action type="Command" when="midcast">exec
blm/sc/WindStaff</Action><br />
</elseif><br />
<elseif Element="Dark"><br />
<Action type="Command" when="midcast">exec
blm/sc/DarkStaff</Action><br />
</elseif><br />
<elseif Element="Light"><br />
<Action type="Command" when="midcast">exec
blm/sc/LightStaff</Action><br />
</elseif><br />
<else><br />
<Action type="Command" when="midcast">exec
blm/sc/IceStaff</Action><br />
</else><br />
</if><br />
</rule> <br />
<!-- ヒーリング時の処理 --><br />
<rule spell="Autoset"><br />
<if status="Resting"><br />
<if MLvlGT=50><br />
<Action type="Command" when="Resting">exec
blm/sc/rest51</Action><br />
</if><br />
<else><br />
<Action type="Command" when="Resting">exec
blm/sc/rest50</Action><br />
</else><br />
</if><br />
</rule><br />
</rules><br />
</spellcast></td>
</tr></tbody></table><br /></blockquote>
<br />
2.SpellCastから呼び出すWindowerスクリプトファイルを作成する<br /><br />
SpellCastから呼び出す着替えスクリプトを用意します。<br />
このスクリプトファイルはWindower標準のスクリプトファイルとなります。<br /><br />
例として、次に上記のblm.xmlから呼び出すスクリプトファイルを以下に示します。<br /><blockquote>scripts/blm/sc/rest50
<table width="450" cellspacing="1" cellpadding="1" border="1"><tbody><tr><td>input /equip body シアーチュニック<br />
input /equip waist モブワサッシュ+1<br />
input /equip legs バロンスロップス<br />
input /equip ear1 防毒のピアス<br />
input /echo ##### ヒーリング装備(黒50) #####</td>
</tr></tbody></table><br />
scripts/blm/sc/rest51<br /><table width="450" cellspacing="1" cellpadding="1" border="1"><tbody><tr><td>input /equip main ダークスタッフ<br />
input /equip ear1 防毒のピアス<br />
input /equip body シアーチュニック<br />
input /equip waist モブワサッシュ+1<br />
input /equip legs バロンスロップス<br />
input /echo ##### ヒーリング装備(黒51以上) #####</td>
</tr></tbody></table><br />
scripts/blm/sc/standard51<br /><table width="450" cellspacing="1" cellpadding="1" border="1"><tbody><tr><td>input /equip Ammo モリオンタスラム<br />
input /equip Head シアークラウン+1<br />
input /equip Neck モブワスカーフ+1<br />
input /equip Ear1 カンニングピアス<br />
input /equip Ear2 モルダバイトピアス<br />
input /equip body カスタムベスト<br />
input /equip hands カスタムFグローブ<br />
input /equip Ring1 賢明の指輪<br />
input /equip Ring2 賢明の指輪<br />
input /equip Back ブラックケープ+1<br />
input /equip waist フォレストストーン<br />
input /equip legs マジックズボン<br />
input /equip feet カスタムFブーツ<br />
input /echo ##### 通常装備(黒51) #####</td>
</tr></tbody></table><br />
scripts/blm/sc/earthstaff<br /><table width="450" cellspacing="1" cellpadding="1" border="1"><tbody><tr><td>input /equip main ライトスタッフ</td>
</tr></tbody></table><br />
scripts/blm/sc/icestaff<br /><table width="450" cellspacing="1" cellpadding="1" border="1"><tbody><tr><td>input /equip main アクィロスタッフ</td>
</tr></tbody></table><br />
scripts/blm/sc/darkstaff<br /><table width="450" cellspacing="1" cellpadding="1" border="1"><tbody><tr><td>input /equip main ダークスタッフ</td>
</tr></tbody></table><br />
scripts/blm/sc/Lightstaff<br /><table width="450" cellspacing="1" cellpadding="1" border="1"><tbody><tr><td>input /equip main ライトスタッフ</td>
</tr></tbody></table><br />
scripts/blm/sc/Windstaff<br /><table width="450" cellspacing="1" cellpadding="1" border="1"><tbody><tr><td>input /equip main ウィンドスタッフ</td>
</tr></tbody></table></blockquote>
</blockquote>
<p> </p>
<hr width="100%" size="2" /><p><font size="2"><strong><a id="start" name="start"></a><SpellCastの起動、及び設定ファイルの読み込み><br /></strong></font></p>
<hr width="100%" size="2" /><p>SpellCastの簡単な利用方法を示します。詳細は、<a href="http://wiki.windower.net/plugins/spellcast">本家:Spellcast
command</a>をご参照ください。<br />
1.spellcastのロード<br />
最初に読み込まれる設定ファイルは「plugins/spellcast/default.xml」となります。<br />
2.設定ファイルの読み込み<br />
例の場合では、Windowerコンソールにて「spellcast file blm.xml」として読み込んでください。</p>
<p> </p>
<hr width="100%" size="2" /><p><font size="2"><strong><a id="chuui" name="chuui"></a><注意点><br /></strong></font></p>
<hr width="100%" size="2" /><p> ・SpellCastのバージョンは<strong><font color="#FF0000">2.14以降が必須</font></strong>です。2.11以前のバージョンでは日本語魔法・アビ名を認識しません。<br />
・SpellCast設定ファイルの<rule>で、<font color="#FF0000"><strong>魔法・アビ名を指定する場合は、英語名で指定</strong></font>してください。<br />
(例) ブリザドを指定したい場合<br />
○ <rule Spell="Blizzard"> や <rule
Spell="Blizzar*"><br />
× <rule
JSpell="ブリザド"> ・・・ 本来はこの指定で認識させたい意図で作られていますが、認識しません。(文字コードの問題?)</p>
<p> </p>
<hr width="100%" size="2" />