<?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>ShareItem.org&#187; Game</title>
	<atom:link href="http://shareitem.org/archive/tag/game/feed" rel="self" type="application/rss+xml" />
	<link>http://shareitem.org</link>
	<description>这里记录着我学习 Linux 的点滴</description>
	<lastBuildDate>Fri, 16 Oct 2009 16:03:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>玩Quake4遇到的一些问题及解决方法</title>
		<link>http://shareitem.org/archive/quake4-on-a-number-of-problems-and-solutions.html</link>
		<comments>http://shareitem.org/archive/quake4-on-a-number-of-problems-and-solutions.html#comments</comments>
		<pubDate>Sun, 04 Jan 2009 07:23:34 +0000</pubDate>
		<dc:creator>kaysiness</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Archlinux]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Quake4]]></category>

		<guid isPermaLink="false">http://shareitem.org/?p=641033</guid>
		<description><![CDATA[<p>在Archlinux上玩Quake4有一段时间了。为了免得以后忘记，我把我在玩的时候遇到一些问题写下来做个备忘。

在Archlinux上安装Quake4很方便，AUR上就有人提供PKGBUILD，下回来makepkg之即可，但要确保 /t…</p>]]></description>
			<content:encoded><![CDATA[<p>在Archlinux上玩<a href="http://www.quake4game.com/" title="Quake 4官方网站">Quake4</a>有一段时间了。为了免得以后忘记，我把我在玩的时候遇到一些问题写下来做个备忘。</p>
<p><img src="http://i2.photobucket.com/albums/y3/suzeb2/250px-Quake4box.jpg" alt="Quake4游戏封面"></p>
<p>在Archlinux上安装Quake4很方便，<a href="http://aur.archlinux.org/packages.php?ID=2992">AUR上就有人提供PKGBUILD</a>，下回来makepkg之即可，但要确保 /tmp 有足够的剩余空间来解压程序，如果和我一样 /tmp 目录是挂载到 tmpfs 上的，空间不多的情况下需要自行修改解压的路径，下面是我改好的PKGBUILD（还需要配合AUR里的相应文件）。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Contributor: Andrew Simmons &lt;andrew.simmons {[at]} gmail {[dot]} com&gt;</span>
&nbsp;
<span style="color: #007800;">pkgname</span>=quake4
<span style="color: #007800;">pkgver</span>=1.4.2
<span style="color: #007800;">pkgrel</span>=<span style="color: #000000;">1</span>
<span style="color: #007800;">pkgdesc</span>=<span style="color: #ff0000;">&quot;Quake 4 Engine. You need the retail .pk4 files to play.&quot;</span>
<span style="color: #007800;">url</span>=<span style="color: #ff0000;">&quot;http://www.quake4game.com/&quot;</span>
<span style="color: #007800;">license</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'custom:&quot;Quake 4&quot;'</span> \
         <span style="color: #ff0000;">'custom:&quot;PunkBuster&quot;'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">depends</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'alsa-lib&gt;=1.0.6'</span> <span style="color: #ff0000;">'sdl&gt;=1.2.0'</span> <span style="color: #ff0000;">'libxext'</span> <span style="color: #ff0000;">'libgl'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">arch</span></span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'i686'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;"><span style="color: #c20cb9; font-weight: bold;">install</span></span>=quake4.install
<span style="color: #007800;"><span style="color: #7a0874; font-weight: bold;">source</span></span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.idsoftware.com<span style="color: #000000; font-weight: bold;">/</span>idstuff<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span><span style="color: #000000; font-weight: bold;">/</span>linux<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span>-linux-<span style="color: #007800;">$pkgver</span>.x86.run \
        <span style="color: #007800;">$pkgname</span>.sh <span style="color: #007800;">$pkgname</span>-dedicated.sh <span style="color: #007800;">$pkgname</span>-smp.sh<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">md5sums</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'b186954ab5fbadd57f7ca9519b5b0503'</span>
         <span style="color: #ff0000;">'54f7cdb2aa75c1cee9fcbef2a3af507d'</span>
         <span style="color: #ff0000;">'62137ca958cc8b8d3d42a49a8ada1ec5'</span>
         <span style="color: #ff0000;">'7a70531044dc207a57a3c3cc4ed78336'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
build<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
  <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #007800;">$startdir</span><span style="color: #000000; font-weight: bold;">/</span>src
  <span style="color: #c20cb9; font-weight: bold;">chmod</span> +x <span style="color: #007800;">$pkgname</span>-linux-<span style="color: #007800;">$pkgver</span>.x86.run
  <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #007800;">$startdir</span><span style="color: #000000; font-weight: bold;">/</span>pkg<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span> \
           <span style="color: #007800;">$startdir</span><span style="color: #000000; font-weight: bold;">/</span>pkg<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin \
           <span style="color: #007800;">$startdir</span><span style="color: #000000; font-weight: bold;">/</span>pkg<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>licenses<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span> \
           <span style="color: #007800;">$startdir</span><span style="color: #000000; font-weight: bold;">/</span>pkg<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span><span style="color: #000000; font-weight: bold;">/</span>q4base
  .<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span>-linux-<span style="color: #007800;">$pkgver</span>.x86.run <span style="color: #660033;">--target</span> <span style="color: #007800;">$pkgname</span> <span style="color: #660033;">--</span> <span style="color: #660033;">-i</span> <span style="color: #007800;">$startdir</span><span style="color: #000000; font-weight: bold;">/</span>pkg<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span> <span style="color: #660033;">-b</span> <span style="color: #007800;">$startdir</span><span style="color: #000000; font-weight: bold;">/</span>pkg<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin
  <span style="color: #666666; font-style: italic;"># ncurses &amp; gtk installers don't return 1 when canceled, so check that files are installed</span>
  <span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #007800;">$startdir</span><span style="color: #000000; font-weight: bold;">/</span>pkg<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span><span style="color: #000000; font-weight: bold;">/</span>q4base <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">return</span> <span style="color: #000000;">1</span>
&nbsp;
  <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">-m755</span> <span style="color: #660033;">-D</span> <span style="color: #007800;">$pkgname</span>.sh           <span style="color: #007800;">$startdir</span><span style="color: #000000; font-weight: bold;">/</span>pkg<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span>
  <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">-m755</span> <span style="color: #660033;">-D</span> <span style="color: #007800;">$pkgname</span>-dedicated.sh <span style="color: #007800;">$startdir</span><span style="color: #000000; font-weight: bold;">/</span>pkg<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span>-dedicated
  <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">-m755</span> <span style="color: #660033;">-D</span> <span style="color: #007800;">$pkgname</span>-smp.sh       <span style="color: #007800;">$startdir</span><span style="color: #000000; font-weight: bold;">/</span>pkg<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span>-smp
&nbsp;
  <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-sf</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span>           <span style="color: #007800;">$startdir</span><span style="color: #000000; font-weight: bold;">/</span>pkg<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span>
  <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-sf</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span>-dedicated <span style="color: #007800;">$startdir</span><span style="color: #000000; font-weight: bold;">/</span>pkg<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span>-dedicated
  <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-sf</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span>-smp       <span style="color: #007800;">$startdir</span><span style="color: #000000; font-weight: bold;">/</span>pkg<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span>-smp
  <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-sf</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span><span style="color: #000000; font-weight: bold;">/</span>License.txt        <span style="color: #007800;">$startdir</span><span style="color: #000000; font-weight: bold;">/</span>pkg<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>licenses<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span><span style="color: #000000; font-weight: bold;">/</span>License.txt
  <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-sf</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span><span style="color: #000000; font-weight: bold;">/</span>pb<span style="color: #000000; font-weight: bold;">/</span>PBEULA.txt      <span style="color: #007800;">$startdir</span><span style="color: #000000; font-weight: bold;">/</span>pkg<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>licenses<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$pkgname</span><span style="color: #000000; font-weight: bold;">/</span>PBEULA.txt
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<p>安装完成后需要将游戏DVD里的 pak001.pk4 到 pak012.pk4 和 zpak_english.pk4 这些文件复制到 /opt/quake4/q4base 下，然后在终端运行 quake4 即可进入游戏。</p>
<p>如果喜欢作弊，只要在游戏中按着 Ctrl+Alt+~ 调出控制台，输入作弊码即可。比如输入 god 就是无敌，输入 give all 能得到所有武器和子弹。但每次子弹用完后又要打开控制台从新输入，太麻烦了，这时可以编辑 “/home/YOURNAME/.quake4/q4base/Quake4Config.cfg“ 这个文件，在里面增加快捷键绑定，比如我添加了</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">bind</span> <span style="color: #ff0000;">&quot;KP_HOME&quot;</span> <span style="color: #ff0000;">&quot;testlight&quot;</span>
<span style="color: #7a0874; font-weight: bold;">bind</span> <span style="color: #ff0000;">&quot;KP_END&quot;</span> <span style="color: #ff0000;">&quot;god&quot;</span>
<span style="color: #7a0874; font-weight: bold;">bind</span> <span style="color: #ff0000;">&quot;KP_DOWNARROW&quot;</span> <span style="color: #ff0000;">&quot;notarget&quot;</span>
<span style="color: #7a0874; font-weight: bold;">bind</span> <span style="color: #ff0000;">&quot;KP_PGDN&quot;</span> <span style="color: #ff0000;">&quot;give all&quot;</span>
<span style="color: #7a0874; font-weight: bold;">bind</span> <span style="color: #ff0000;">&quot;KP_5&quot;</span> <span style="color: #ff0000;">&quot;spawn char_marine_tech_armed&quot;</span></pre></div></div>

<p>以后只要按小键盘上对应的键就能实现这些功能了。</p>
<p>最后说一下，比如我想跳到某一关，例如最后一关，网上说的那些命令我试过了，不行的，但可以使用devmap这个命令。方法是在控制台输入“devmap gmae/地图名”，这个好理解，但地图名怎么知道呢？方法也很简单，同样的控制台，用 dir 这个命令，相信用Linux的人对这个命令不是陌生了。</p>
<hr />
文章地址:<a href="http://shareitem.org/archive/quake4-on-a-number-of-problems-and-solutions.html">http://shareitem.org/archive/quake4-on-a-number-of-problems-and-solutions.html</a> <br />
<small>本文内容属于<a href="http://shareitem.org/">ShareItem.org</a>，遵循<a href='http://creativecommons.org/licenses/by-nc-nd/2.5/cn/'> CC </a>协议 | 7e6874b3209cf4276e96802080b61256</small>

<p>没有相关文章</p>]]></content:encoded>
			<wfw:commentRss>http://shareitem.org/archive/quake4-on-a-number-of-problems-and-solutions.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>终于能完整的玩过一次数独了</title>
		<link>http://shareitem.org/archive/sudoku.html</link>
		<comments>http://shareitem.org/archive/sudoku.html#comments</comments>
		<pubDate>Mon, 26 Nov 2007 14:41:08 +0000</pubDate>
		<dc:creator>kaysiness</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.shareitem.org/2007/11/26/sudoku/</guid>
		<description><![CDATA[<p>Q：什么是数独？
A：（日语：数独　すうどく　sudoku）是一种源自18世纪末的瑞士，后在美国发展、并在日本得以发扬光大的数学智力拼图游戏。拼图是九宫格（即3格宽×3格高）的正方形状，…</p>]]></description>
			<content:encoded><![CDATA[<blockquote><p>Q：什么是数独？<br />
A：（日语：数独　すうどく　sudoku）是一种源自18世纪末的瑞士，后在美国发展、并在日本得以发扬光大的数学智力拼图游戏。拼图是九宫格（即3格宽×3格高）的正方形状，每一格又细分为一个九宫格。在每一个小九宫格中，分别填上1至9的数字，让整个大九宫格每一列、每一行的数字都不重复。数独的玩法逻辑简单，数字排列方式千变万化。不少教育者认为数独是锻炼脑筋的好方法。<a href="http://www.sudoku.name/rules/cn">这里有一份详细的游戏规则</a>。</p></blockquote>
<p>Ubuntu 7.10 已经自带了数独游戏了，如果您还在使用 7.04 ，使用下来命令来安装</p>
<blockquote><p>sudo apt-get install gnome-sudoku</p></blockquote>
<p>高兴，发张图纪念。不过难度只是简单（0.34），好了，继续挑战中等难度。</p>
<p style="text-align: center"><a href="http://learn.yo2.cn/wp-content/uploads/121/12133/2007/11/screenshot-sudoku-game-finish-07-11-26.png" title="screenshot-sudoku-game-finish-07-11-26.png"><img src="http://learn.yo2.cn/wp-content/uploads/121/12133/2007/11/screenshot-sudoku-game-finish-07-11-26.thumbnail.png" alt="screenshot-sudoku-game-finish-07-11-26.png" /></a></p>
<hr />
文章地址:<a href="http://shareitem.org/archive/sudoku.html">http://shareitem.org/archive/sudoku.html</a> <br />
<small>本文内容属于<a href="http://shareitem.org/">ShareItem.org</a>，遵循<a href='http://creativecommons.org/licenses/by-nc-nd/2.5/cn/'> CC </a>协议 | 7e6874b3209cf4276e96802080b61256</small>

<p>没有相关文章</p>]]></content:encoded>
			<wfw:commentRss>http://shareitem.org/archive/sudoku.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
