<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Little.ws</title>
	<atom:link href="http://little.ws/feed" rel="self" type="application/rss+xml" />
	<link>http://little.ws</link>
	<description>web制作とかcssとかデザインとか色々～な覚え書き</description>
	<lastBuildDate>Wed, 02 May 2012 07:15:44 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>MTからWordPressへの移行時にCustum Post TypeとCustom Taxonomyを利用する</title>
		<link>http://little.ws/201205/483.html</link>
		<comments>http://little.ws/201205/483.html#comments</comments>
		<pubDate>Wed, 02 May 2012 07:14:53 +0000</pubDate>
		<dc:creator>chibi</dc:creator>
				<category><![CDATA[Feature]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[Wordpress応用]]></category>
		<category><![CDATA[custom post type]]></category>
		<category><![CDATA[Custom Taxonomy]]></category>
		<category><![CDATA[MovableType]]></category>

		<guid isPermaLink="false">http://little.ws/?p=483</guid>
		<description><![CDATA[生きてます。はい。 MovableType（以下MT）からWordpressへ記事などを移すときに、新しいサイトでは、Costom Post Type使いたいんだけどー。とか、Custom Taxonomy使いたいんだけ&#8230;]]></description>
			<content:encoded><![CDATA[<p>生きてます。はい。</p>
<p><strong>MovableType</strong>（以下MT）からWordpressへ記事などを移すときに、新しいサイトでは、<strong>Costom Post Type</strong>使いたいんだけどー。とか、<strong>Custom Taxonomy</strong>使いたいんだけどー。という事態が発生しまして。。</p>
<p>ググっても出なかったので対策法。<br />
<span id="more-483"></span></p>
<p>MTの記事をインポートしようとすると、MT用のImporterみたいなのダウンロードさせられます。</p>
<p>結局プラグインなんですが、いじくってやるのは、そのプラグイン本体。のmovabletype-importer.phpというファイルです。</p>
<h3>Custom Post Typeへの対応</h3>
<p>269行目あたりにあるwp_insert_postってのが、Wordpressに記事を追加する関数で、そのなかの$postのPost typeを書き換えてやれば良いわけで、その$Postを作っているのが、323行目あたりの、process_postsっていう関数です。<br />
なので、その中に、</p>
<pre class="brush: php; title: ; notranslate">$post-&gt;post_type = ここにポストタイプ;</pre>
<p>みたいな一行を追加してあげるだけです。多分、330行目の下と、358行目の下とかに足すのがいいと思いますが、どうせタイトルは必ずあるので、381行目付近につけてしまいます。</p>
<pre class="brush: php; title: ; notranslate">
} else if ( 0 === strpos($line, 'TITLE:') ) {
$post-&gt;post_type = 'custom_post_type';
$title = trim( substr($line, strlen('TITLE:')) );
if ( '' == $context )
$post-&gt;post_title = $title;
else if ( 'ping' == $context )
$ping-&gt;title = $title;
</pre>
<p>ここまでが、Custom Post Typeへの対応。</p>
<h3>Custom Taxonomyを使用する場合</h3>
<p>続いてCustom Taxonomyを使用する場合ですが、とりあえず、なんかありそうなので、Csutom Taxonomyの設定を階層無しにしておきます。</p>
<p>カテゴリを追加する記述は273行目以降</p>
<pre class="brush: php; title: ; notranslate">
// Add categories.
if ( 0 != count($post-&gt;categories) ) {
	wp_create_categories($post-&gt;categories, $post_id);
}
</pre>
<p>ここを、Custom TaxonomyのTermを追加する記述に変えてあげます。</p>
<pre class="brush: php; title: ; notranslate">
// Add Terms.
if ( 0 != count($post-&gt;categories) ) {
	wp_set_post_terms( $post_id, $post-&gt;categories, 'blog_cat',1);
}
</pre>
<p>wp_set_post_termsに関してはリ<a href="http://codex.wordpress.org/Function_Reference/wp_set_post_terms" class="liwp">ファレンス</a>で。<br />
2つ目のパラメーターは、配列に対応してるので、これで勝てます。</p>
<p>以上、何の需要もないただの独り言でした・・。</p>
]]></content:encoded>
			<wfw:commentRss>http://little.ws/201205/483.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Distant Worlds:サヨナラわんこ3</title>
		<link>http://little.ws/201202/473.html</link>
		<comments>http://little.ws/201202/473.html#comments</comments>
		<pubDate>Mon, 20 Feb 2012 16:50:22 +0000</pubDate>
		<dc:creator>chibi</dc:creator>
				<category><![CDATA[Distant Worlds]]></category>
		<category><![CDATA[Feature]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[宇宙ゲー]]></category>

		<guid isPermaLink="false">http://little.ws/?p=473</guid>
		<description><![CDATA[わおーん 伝説の海賊が現れたので、パターン入らないように気をつけないと・・。 と思ってたら、すぐにベース発見。 いやー、良かった。 しかも、防衛基地無い！！ これは勝てるー。気付かれる前に、20隻位で攻めるぞー。というこ&#8230;]]></description>
			<content:encoded><![CDATA[<p>わおーん</p>
<p>伝説の海賊が現れたので、パターン入らないように気をつけないと・・。<br />
と思ってたら、すぐにベース発見。</p>
<p><a href="http://little.ws/wp-content/uploads/2012/02/WS0000071.jpg" rel="fancybox-gallery" class="liimagelink"><img src="http://little.ws/wp-content/uploads/2012/02/WS0000071-450x253.jpg" alt="" title="WS000007" width="450" height="253" class="aligncenter size-medium wp-image-474" /></a></p>
<p>いやー、良かった。<br />
しかも、防衛基地無い！！</p>
<p>これは勝てるー。気付かれる前に、20隻位で攻めるぞー。ということで、1st fleetを組み直して、出発。改造キュー入れてたせいで、改造に手間取り、下の方のガスステーションとかほぼ壊滅・・。</p>
<p>やっぱり計画的に艦隊常駐させとかないと、大変。でも、伝説の海賊規模になると、まずちっちゃい艦隊じゃムリ。<br />
今回は何とかつぶせたけど、艦隊増やすぜー。</p>
<p>と、思ってた矢先。</p>
<p><a href="http://little.ws/wp-content/uploads/2012/02/WS0000031.jpg" rel="fancybox-gallery" class="liimagelink"><img src="http://little.ws/wp-content/uploads/2012/02/WS0000031-450x253.jpg" alt="" title="WS000003" width="450" height="253" class="aligncenter size-medium wp-image-475" /></a></p>
<p>あほか、、、、今一個つぶしたばっかりじゃー<br />
しかも全くの逆方向。上の方。<br />
さらには、さっきのと違ってベースの周りには防衛基地だらけ。</p>
<p>なんとかやる気を出しつつ討伐へ向かう・・約30隻の艦隊。</p>
<p>そして・・・</p>
<p>その隙に黄色帝国たくあんに攻め込まれ、モチベーションは0に・・</p>
<p><strong>さよならわんこ</strong></p>
<p>しばらく、このゲーム寝かせます。といいつつ、やるんだろうなー。気分転換に何か別のゲームすっかー</p>
]]></content:encoded>
			<wfw:commentRss>http://little.ws/201202/473.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Distant Worlds:今日のわんこ2</title>
		<link>http://little.ws/201202/464.html</link>
		<comments>http://little.ws/201202/464.html#comments</comments>
		<pubDate>Sat, 18 Feb 2012 15:19:19 +0000</pubDate>
		<dc:creator>chibi</dc:creator>
				<category><![CDATA[Distant Worlds]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[宇宙ゲー]]></category>

		<guid isPermaLink="false">http://little.ws/?p=464</guid>
		<description><![CDATA[今日もDistant Worlds。。 昨日の続きだけど、おそれていた事態に・・。 とりあえず、上の方にあるリサーチポイントを取りに行くのに建設船を送り込む。 しかし、真ん中の上の方にある青の勢力が気になるので、上の方の&#8230;]]></description>
			<content:encoded><![CDATA[<p>今日も<strong>Distant Worlds</strong>。。<br />
<a href="http://little.ws/201202/458.html" title="Distant Worlds:犬軍団その１" class="liinternal">昨日</a>の続きだけど、おそれていた事態に・・。</p>
<p>とりあえず、上の方にあるリサーチポイントを取りに行くのに建設船を送り込む。</p>
<p><a href="http://little.ws/wp-content/uploads/2012/02/WS000004.jpg" rel="fancybox-gallery" class="liimagelink"><img src="http://little.ws/wp-content/uploads/2012/02/WS000004-450x253.jpg" alt="" title="WS000004" width="450" height="253" class="aligncenter size-medium wp-image-465" /></a></p>
<p>しかし、真ん中の上の方にある青の勢力が気になるので、上の方の取れそうなコロニーは、さっさとコロニー化せないかん。<br />
戦争は極力避けたいし、というか確認したら、戦力一番弱いのうちだったし。むしろ今現在、何をとっても最下位っぽい。<br />
唯一のとりえは、いまのとこテリトリーの広さだけなので、他の勢力にはワイロを渡しつつ、仲良くして貰う。</p>
<p>そう！それが日本男児。</p>
<p><a href="http://little.ws/wp-content/uploads/2012/02/WS000005.jpg" rel="fancybox-gallery" class="liimagelink"><img src="http://little.ws/wp-content/uploads/2012/02/WS000005-450x253.jpg" alt="" title="WS000005" width="450" height="253" class="aligncenter size-medium wp-image-466" /></a></p>
<p>ほら、上の方には、ポテンシャルコロニーが3つもあるじゃないか。<br />
全力でいくぜー。</p>
<p>とりあえず、下の方以外はテリトリーも先が見えつつあるけど、資源に関しては、今のところガス優先で他の資源は必要最低限という感じ。<br />
資源もしっかり確認しとかないと、言葉通り手詰まりになる。AIにまかせてても、手詰まりになる。<br />
基本はAI任せでいいかもしれないけど、こまめにチェックはしないと。</p>
<p>ということで、さっさと上の方のポテンシャルコロニーとりにいく。</p>
<p><a href="http://little.ws/wp-content/uploads/2012/02/WS000006.jpg" rel="fancybox-gallery" class="liimagelink"><img src="http://little.ws/wp-content/uploads/2012/02/WS000006-450x253.jpg" alt="" title="WS000006" width="450" height="253" class="aligncenter size-medium wp-image-467" /></a></p>
<p>しかし、海賊邪魔<br />
お金払ってたけど、調子に乗られても困るし、1st fleetで、上の方の海賊は叩いておく。</p>
<p>と、ここまでは順調。<br />
上の海賊も叩いてコロニー化して、、</p>
<p>ここまでも順調。</p>
<p><a href="http://little.ws/wp-content/uploads/2012/02/dw.jpg" rel="fancybox-gallery" class="liimagelink"><img src="http://little.ws/wp-content/uploads/2012/02/dw-450x253.jpg" alt="" title="dw" width="450" height="253" class="aligncenter size-medium wp-image-469" /></a></p>
<p>そしてついにきた、伝説の海賊。<br />
しつこいけど、腕が伸びたり、刀3本使ったりする人は乗ってません。</p>
<p>ポップした場所は、あまり注目していなかった下の方。fleetを配属しておこうと思ってた矢先のポップ。<br />
伝説の海賊の船の中で、一番でっかい船はサイズ599の様です。</p>
<p>うちのクルーザーはサイズ399。。</p>
<p><a href="http://little.ws/wp-content/uploads/2012/02/dw1.jpg" rel="fancybox-gallery" class="liimagelink"><img src="http://little.ws/wp-content/uploads/2012/02/dw1-450x253.jpg" alt="" title="dw1" width="450" height="253" class="aligncenter size-medium wp-image-470" /></a></p>
<p>どうすっか。。</p>
]]></content:encoded>
			<wfw:commentRss>http://little.ws/201202/464.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Distant Worlds:犬軍団その１</title>
		<link>http://little.ws/201202/458.html</link>
		<comments>http://little.ws/201202/458.html#comments</comments>
		<pubDate>Fri, 17 Feb 2012 16:34:20 +0000</pubDate>
		<dc:creator>chibi</dc:creator>
				<category><![CDATA[Distant Worlds]]></category>
		<category><![CDATA[Feature]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[宇宙ゲー]]></category>

		<guid isPermaLink="false">http://little.ws/?p=458</guid>
		<description><![CDATA[Distant Worlds。 こりもしないで、やってます。このゲーム、日本人でやってるの誰か居るのかな。 おもしろいか、おもしろくないかと聞かれたら、間違いなくこう言う。 とっつきにくい。 要するに、超スルメゲー。 別&#8230;]]></description>
			<content:encoded><![CDATA[<p><strong>Distant Worlds</strong>。<br />
こりもしないで、やってます。このゲーム、日本人でやってるの誰か居るのかな。</p>
<p>おもしろいか、おもしろくないかと聞かれたら、間違いなくこう言う。</p>
<p><strong>とっつきにくい。</strong></p>
<p>要するに、超スルメゲー。<br />
別に、メーカーの回し者でも何でもないけど。</p>
<p>というわけで、<a href="http://little.ws/201202/453.html" title="Distant Worlds：ばかAI" class="liinternal">前回、蛙AIに泣かされて頭きた</a>のでワンコ軍団作った</p>
<p><a href="http://little.ws/wp-content/uploads/2012/02/WS000000.jpg" rel="fancybox-gallery" class="liimagelink"><img src="http://little.ws/wp-content/uploads/2012/02/WS000000-450x252.jpg" alt="" title="WS000000" width="450" height="252" class="aligncenter size-medium wp-image-459" /></a></p>
<p>ランダムスタートだけど、えらい辺境地帯だな。<br />
隣接するシステムも遠い・・。とりあえず、探索船を造れとうるさいAIを黙らせて、探索船のオートOFFにして、探索開始。</p>
<p>今日から使う犬もだし、某蛙も、政治形態は技術大国。<br />
リサーチポイントとりにいくぜー。戦争は嫌いだぜー。あと海賊も嫌いだぜー。<br />
海賊へは、『お金余ってたらおとなしく渡しておこう。』精神でいこう。同盟まではムリだ。毎月の支払いきついｯｽ。</p>
<p><a href="http://little.ws/wp-content/uploads/2012/02/WS0000011.jpg" rel="fancybox-gallery" class="liimagelink"><img src="http://little.ws/wp-content/uploads/2012/02/WS0000011-450x252.jpg" alt="" title="WS000001" width="450" height="252" class="aligncenter size-medium wp-image-460" /></a></p>
<p>早速南の方に、海賊の基地発見。<br />
南東には、コロニー化出来る独立勢力のコロニーも発見＆リサーチポイントも発見。<br />
海賊基地は、序盤なので3~4艇くらいのfleetでつぶしちゃう。</p>
<p>だって、お金無いもん。序盤の海賊なんて、怖くない。</p>
<p>黄色い勢力が左下。しかもノバ星がある・・・。欲しい・・・。<br />
けど戦争反対。困ったらお金を渡そう。長いものには巻かれよう。日本の政治と同じだぜー。だって、犬だもん。<br />
黄色は『たくあん』だな。</p>
<p>しかし、周り資源がガスだらけ。<br />
そしてちょっと離れたとこにはガス無いの。中継ポイントにしたい位のとこにはガス無い。贅沢言ってもしょうがないけど・・。ああ言えば城田優じゃないけど、言い訳はしない。</p>
<p>南に広げると、黄色の勢力で手詰まりになりそうなので、北行くか。</p>
<p><a href="http://little.ws/wp-content/uploads/2012/02/WS0000021.jpg" rel="fancybox-gallery" class="liimagelink"><img src="http://little.ws/wp-content/uploads/2012/02/WS0000021-450x252.jpg" alt="" title="WS000002" width="450" height="252" class="aligncenter size-medium wp-image-461" /></a></p>
<p>北に遺跡付きの素敵コロニーがあったので、とりあえずコロニー化。位置もいい感じ。南にはもう一個独立勢力のコロニーがあったので、これもコロニー化。その近くにリサーチポイントもあったし、ゲットー。</p>
<p>あとは、北にもリサーチポイントあったので、取りに行くかなぁ。<br />
しかし、たくあん、ぐいぐい来るなぁ。邪魔だ。</p>
<p>そして北には海賊だらけ。。むしろ、まみれだな。。腕がのびる奴が居ないことを願う。ホントに伝説の海賊にはこりごりだ。</p>
<p><a href="http://little.ws/wp-content/uploads/2012/02/WS000003.jpg" rel="fancybox-gallery" class="liimagelink"><img src="http://little.ws/wp-content/uploads/2012/02/WS000003-450x252.jpg" alt="" title="WS000003" width="450" height="252" class="aligncenter size-medium wp-image-462" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://little.ws/201202/458.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Distant Worlds：ばかAI</title>
		<link>http://little.ws/201202/453.html</link>
		<comments>http://little.ws/201202/453.html#comments</comments>
		<pubDate>Fri, 17 Feb 2012 13:49:48 +0000</pubDate>
		<dc:creator>chibi</dc:creator>
				<category><![CDATA[Distant Worlds]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[宇宙ゲー]]></category>

		<guid isPermaLink="false">http://little.ws/?p=453</guid>
		<description><![CDATA[隣の芝生は青いよ。 敵のAIは難易度簡単にしてても、めちゃくちゃ手強いのにうちのAIめちゃくちゃ馬鹿。 戦争始めた瞬間、クオリティの低いコロニーでもお構いなしにコロナイズ連発。 まとめて敵のコロニーに艦隊送ったら勝手に分&#8230;]]></description>
			<content:encoded><![CDATA[<p>隣の芝生は青いよ。</p>
<p>敵のAIは難易度簡単にしてても、めちゃくちゃ手強いのにうちのAIめちゃくちゃ馬鹿。<br />
戦争始めた瞬間、クオリティの低いコロニーでもお構いなしにコロナイズ連発。<br />
まとめて敵のコロニーに艦隊送ったら勝手に分解。</p>
<p>挙げ句の果てには全く関係のない場所へfleetを送る。</p>
<p>そして戦地とは真逆の方向にポート建設をおっぱじめる。</p>
<p>最終的にAIは関係ないけど、敵のコロニー一個取った瞬間に『伝説の海賊』と遭遇し、プレイヤー（自分）と一緒にてんぱるAI・・。<br />
ここまでがAIの話し。</p>
<p>そして、何とか敵勢力と停戦して、伝説の海賊討伐に乗り出したらうちの船の3倍の規模の船持ってるし。<br />
研究所もつぶされまくって、キャラクター3人も殺された。<br />
海賊王なんてこんなもんだ。えらく残酷で残忍。腕がのびたりはしない</p>
<p>勝てないよ。こんなの・・</p>
<p>ということで、あえなくやり直す！</p>
<p>ばかAIに学んだこと。<br />
セーブはこまめに。</p>
<div id="attachment_455" class="wp-caption aligncenter" style="width: 460px"><a href="http://little.ws/wp-content/uploads/2012/02/WS000002.jpg" rel="fancybox-gallery" class="liimagelink"><img src="http://little.ws/wp-content/uploads/2012/02/WS000002-450x252.jpg" alt="" title="蛙軍団" width="450" height="252" class="size-medium wp-image-455" /></a><p class="wp-caption-text">さようなら蛙軍団</p></div>
<p>AIのせいじゃない。戦争のタイミングが悪かったんだ。<br />
とは考えない</p>
]]></content:encoded>
			<wfw:commentRss>http://little.ws/201202/453.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Armada 2526ぽちった</title>
		<link>http://little.ws/201202/449.html</link>
		<comments>http://little.ws/201202/449.html#comments</comments>
		<pubDate>Tue, 14 Feb 2012 17:15:14 +0000</pubDate>
		<dc:creator>chibi</dc:creator>
				<category><![CDATA[Feature]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[宇宙ゲー]]></category>
		<category><![CDATA[積みゲー]]></category>
		<category><![CDATA[Armada 2526]]></category>

		<guid isPermaLink="false">http://little.ws/?p=449</guid>
		<description><![CDATA[忙しくてゲームする暇が無い。 StarDriveもアップデート来てたけど、あれ以降やれてない。 こんなブログ書くくらいなら、ゲームやりたいけど、やり出すと止まらない。それに眠い。 GameflyでFifaManager1&#8230;]]></description>
			<content:encoded><![CDATA[<p>忙しくてゲームする暇が無い。</p>
<p>StarDriveもアップデート来てたけど、あれ以降やれてない。<br />
こんなブログ書くくらいなら、ゲームやりたいけど、やり出すと止まらない。それに眠い。</p>
<p><a href="http://www.gamefly.com/Download-FIFA-Manager-12/5000094/" class="liexternal">GameflyでFifaManager12がセール</a>してたけど、もうきっとFifaM12は買わないと思う。<br />
だって、えらい評判悪いし。日本の某歴史ゲームメーカーみたいなコピー商法になってきてるなぁ。<br />
そしてそーいうコピーゲームって、決まって、『昔のシステムの方がよかった』って言われてるし。まさにFifaManager12とかそうっぽいし。むしろ、一昨年くらいからそう言われてたし。</p>
<p>CK2も今日発売だけど、パラドゲーだし、しばらくは様子見で、セール待ち。<br />
『パラドゲーは、これだから発売して間もなくは遊べない。バグばっかりだ。バランス悪い』と言えるのは、発売と同時に買った人の特権だけど、今回は、その特権も見送ります。ごめんなさい。<br />
これ以上積みゲー増やしてもしょうがない。</p>
<p>といいつつポチったArmada 2526とArmada 2526 Supernova。あわせて10ドルくらいだった。<br />
やるぞー！</p>
<p>来月、再来月あたり・・</p>
]]></content:encoded>
			<wfw:commentRss>http://little.ws/201202/449.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>StarDriveに期待ポチ</title>
		<link>http://little.ws/201202/444.html</link>
		<comments>http://little.ws/201202/444.html#comments</comments>
		<pubDate>Thu, 09 Feb 2012 16:56:19 +0000</pubDate>
		<dc:creator>chibi</dc:creator>
				<category><![CDATA[Feature]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[宇宙ゲー]]></category>
		<category><![CDATA[DESURA]]></category>
		<category><![CDATA[StarDrive]]></category>

		<guid isPermaLink="false">http://little.ws/?p=444</guid>
		<description><![CDATA[宇宙ゲームおもしろいー。 男なら誰だって宇宙にあこがれる。 と、勝手に思う。結構マニアックな宇宙ゲームが好きなので、X3も積んでる。SoSEとかいうやつは買ってすらいない。 SpaceRangers2とDistantWo&#8230;]]></description>
			<content:encoded><![CDATA[<p><strong>宇宙ゲーム</strong>おもしろいー。</p>
<p>男なら誰だって宇宙にあこがれる。<br />
と、勝手に思う。結構マニアックな宇宙ゲームが好きなので、X3も積んでる。SoSEとかいうやつは買ってすらいない。</p>
<p><strong>SpaceRangers2</strong>と<strong>DistantWorlds</strong>が面白い。</p>
<p>なんにせよ、X3は、ハマってしまいそうなのでやってないだけ・・。</p>
<p>そんな中、インディー系のデベロッパが<a href="http://stardrivegame.com/" class="liexternal">StarDrive</a>って4xの宇宙ゲーム作ってるらしいので、応援の意味を込めて<a href="http://www.desura.com/games/stardrive" class="liexternal">1500円位でポチった</a>。<br />
といっても、まだこのゲーム、アルファ版なので遊べたもんじゃないけどね！<br />
バグだらけ、未開発の部分しか目立たない、という状態なので買うならアルファもベータも取れてから！です。</p>
<p>でも、やってみたけど、船の設計部分はユニークで面白い。<br />
<a href="http://little.ws/wp-content/uploads/2012/02/stardrive1.jpg" rel="fancybox-gallery" class="liimagelink"><img src="http://little.ws/wp-content/uploads/2012/02/stardrive1-450x253.jpg" alt="" title="stardrive1" width="450" height="253" class="aligncenter size-medium wp-image-445" /></a></p>
<p>戦艦でアクションっぽくコントロールして戦争が出来るらしいけど、操作がわからず色んなキー押してみたら大変な事になった。<br />
<a href="http://little.ws/wp-content/uploads/2012/02/stardrive2.jpg" rel="fancybox-gallery" class="liimagelink"><img src="http://little.ws/wp-content/uploads/2012/02/stardrive2-450x253.jpg" alt="" title="stardrive2" width="450" height="253" class="aligncenter size-medium wp-image-446" /></a></p>
<p>開発中か分からんけど、Cとか押すと敵の戦艦が出てきて、即死した。<br />
youtubeに戦闘動画あったけど、どうやって動かすんじゃろか。<br />
<iframe width="460" height="264" src="http://www.youtube.com/embed/5-wiCnbyzw4?rel=0" frameborder="0" allowfullscreen></iframe></p>
<p>まー、もう寝るしまた今度だな。<br />
フォーラム見ると、ground battleが今日実装されるよーってなってるので、どうなるのか楽しみではあります。<br />
外交なんかもまだ実装されてないし、オプション設定も無いし、ヘルプも無いし、無いものだらけだけど、そこは想像力でカバー</p>
<p>実際、キーコンフィグ無いからどうやってコロニー画面に行くのかすげー迷ったし、コロニー化の仕方も想像力でカバーして出来るようになった。</p>
<p>戦闘の仕方分かればなぁ・・・<br />
また今度。<br />
眠いし</p>
<p><a href="http://little.ws/wp-content/uploads/2012/02/stardrive0.jpg" rel="fancybox-gallery" class="liimagelink"><img src="http://little.ws/wp-content/uploads/2012/02/stardrive0-450x253.jpg" alt="" title="stardrive0" width="450" height="253" class="aligncenter size-medium wp-image-447" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://little.ws/201202/444.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Jagged Alliance 2 Goldを積みゲーに追加した・・</title>
		<link>http://little.ws/201202/439.html</link>
		<comments>http://little.ws/201202/439.html#comments</comments>
		<pubDate>Sat, 04 Feb 2012 07:27:16 +0000</pubDate>
		<dc:creator>chibi</dc:creator>
				<category><![CDATA[Game]]></category>
		<category><![CDATA[積みゲー]]></category>
		<category><![CDATA[gamersgate]]></category>
		<category><![CDATA[Jagged Alliance 2]]></category>

		<guid isPermaLink="false">http://little.ws/?p=439</guid>
		<description><![CDATA[また要らぬ積みゲー増やした。 Jagged Alliance 2 Goldをgamersgateでお買い上げ。 明後日のSBでNFLもシーズン終了だし、まぁやる時間も出来るだろうと思いつつ、そしてセールで400円位だった&#8230;]]></description>
			<content:encoded><![CDATA[<p>また要らぬ積みゲー増やした。<br />
<strong>Jagged Alliance 2 Gold</strong>をgamersgateでお買い上げ。</p>
<p>明後日のSBでNFLもシーズン終了だし、まぁやる時間も出来るだろうと思いつつ、そしてセールで400円位だったし買ってしまった。<br />
積みゲー増えまくってる。</p>
<p>SengokuもShogun2もやりたいけど積んでる。</p>
<p>時間出来たらやるとして、どれからやろうかなぁ。Sengokuの評判があまりにも悪いけど、CK2やる前にやろうかなとも思ってみたり。<br />
とりあえず、Jagged Alliance 2はノートにインストールしておくのです。</p>
<p><a href="http://little.ws/wp-content/uploads/2012/02/ja2.jpg" rel="fancybox-gallery" class="liimagelink"><img src="http://little.ws/wp-content/uploads/2012/02/ja2-450x269.jpg" alt="" title="ja2" width="450" height="269" class="aligncenter size-medium wp-image-440" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://little.ws/201202/439.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress:サイト内コメント一覧ページを作る</title>
		<link>http://little.ws/201202/433.html</link>
		<comments>http://little.ws/201202/433.html#comments</comments>
		<pubDate>Fri, 03 Feb 2012 05:55:43 +0000</pubDate>
		<dc:creator>chibi</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[Wordpress応用]]></category>
		<category><![CDATA[コメント]]></category>

		<guid isPermaLink="false">http://little.ws/?p=433</guid>
		<description><![CDATA[なんちゃーーないぜよ。 前の記事で、道が大きくずれてしまったので、もう一回考え直した。 wp_list_comments使ってどうにか出来るはずと考えた。 ら、すぐ分かった・・。遠回りしすぎた wp_list_comme&#8230;]]></description>
			<content:encoded><![CDATA[<p>なんちゃーーないぜよ。</p>
<p><a href="http://little.ws/201202/430.html" title="WordPress:query_postsでコメントが有る記事だけ出力" class="liinternal">前の記事</a>で、道が大きくずれてしまったので、もう一回考え直した。</p>
<p><strong>wp_list_comments</strong>使ってどうにか出来るはずと考えた。<br />
ら、すぐ分かった・・。遠回りしすぎた</p>
<p>wp_list_commentsは、通常、その記事やページのコメントを引っ張って来ます。<br />
逆に、get_commentsは、コメント情報を取得するということで、制限無く、ブログ内のコメント情報を全部取得できます。</p>
<p>そして、wp_list_commentsのソースを見ると</p>
<pre class="brush: php; title: ; notranslate">function wp_list_comments($args = array(), $comments = null ) { ~~~~ }</pre>
<p>となっていて、2つの引数があるのですが、処理を見てみると$commentsが無いときは、その記事やページのコメントを取得しちゃいなよ。という感じ・・。</p>
<p>ということは、こいつにコメント情報渡しちゃえばいいじゃんということで、以下・・・。</p>
<pre class="brush: php; title: ; notranslate">
&lt;$php
// ここはお好みで。
$arg = array('per_page'=&gt;2, 'type' =&gt; 'comment');
?&gt;
&lt;?php wp_list_comments($arg, get_comments()); ?&gt;
</pre>
<p>すごく単純。<br />
そして、設定でコメントのページ分割にチェック入れてれば、ページネーションも使えちゃうのですよ。</p>
<pre class="brush: php; title: ; notranslate">
&lt;$php
// ここはお好みで。
$arg = array('per_page'=&gt;2, 'type' =&gt; 'comment');
?&gt;
&lt;?php
wp_list_comments($arg, get_comments());
paginate_comments_links();
?&gt;
</pre>
<p>なんちゃーなかった</p>
]]></content:encoded>
			<wfw:commentRss>http://little.ws/201202/433.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress:query_postsでコメントが有る記事だけ出力</title>
		<link>http://little.ws/201202/430.html</link>
		<comments>http://little.ws/201202/430.html#comments</comments>
		<pubDate>Fri, 03 Feb 2012 05:04:54 +0000</pubDate>
		<dc:creator>chibi</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[Wordpress応用]]></category>
		<category><![CDATA[Wordpressフィルタ]]></category>
		<category><![CDATA[コメント]]></category>

		<guid isPermaLink="false">http://little.ws/?p=430</guid>
		<description><![CDATA[コメント一覧ページを作りたかったんだけど、色々やってみた。 まず、新しい記事順にコメントを表示させる方法。 これは、query_postsで記事を新しい順で、尚かつコメントがある記事だけを取得、出力させます。 コメントが&#8230;]]></description>
			<content:encoded><![CDATA[<p>コメント一覧ページを作りたかったんだけど、色々やってみた。</p>
<p>まず、新しい記事順にコメントを表示させる方法。<br />
これは、<strong>query_posts</strong>で記事を新しい順で、尚かつ<strong>コメントがある記事だけ</strong>を取得、出力させます。</p>
<p>コメントが無い記事に関しては不要なので、飛ばしますが、ページネーション使いたいのと、1ページあたり記事5つ分の出力をしたいので、フィルタ<strong>posts_where</strong>を使います。<br />
query_postsで、コメント数で並び替えは出来るけどネ</p>
<pre class="brush: php; title: ; notranslate">
// themeのfunction.phpなんかに書き込む
function has_comment_query($q=''){
  add_filter('posts_where', 'has_comment_where');
  query_posts($q);
  remove_filter('posts_where', 'has_comment_where');
}

 function has_comment_where($where){
 global $wpdb;
 return $where . &quot;
 AND $wpdb-&gt;posts.comment_count &gt;= '1' &quot;; }
</pre>
<p>別にコメントに限らず、色々と対応出来るフィルタです。<br />
その、色々に関してはposts_whereなんかで検索するといいかと思います。</p>
<p>そして、あとは使いたいとこでquery_postsの代わりに使います</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
$arg = array();
$arg = array(
	'post_type' =&gt; 'item_table',
	'paged' =&gt; $paged,
	'orderby' =&gt; 'comment_count',
	'order' =&gt; 'DESC'
);
no_comment_query($arg);
if(have_posts()) : while (have_posts()) : the_post();
?&gt;

ここでごにょごにょ

&lt;?php endwhile; endif; wp_reset_query(); ?&gt;
</pre>
<p>というか、サイト内のコメント一覧を表示したいだけだったし、なんか道が大きくずれてしまったので、この方法は使わずボツということでｗ<br />
<a href="http://little.ws/201202/433.html" title="WordPress:サイト内コメント一覧ページを作る" class="liinternal">次の記事</a>のを採用。</p>
]]></content:encoded>
			<wfw:commentRss>http://little.ws/201202/430.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

