<?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>Libre Things &#187; NetHack</title>
	<atom:link href="http://positon.org/tag/nethack/feed" rel="self" type="application/rss+xml" />
	<link>http://positon.org</link>
	<description></description>
	<lastBuildDate>Tue, 23 Feb 2016 20:01:11 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.7.1</generator>
	<item>
		<title>Change NetHack tiles (xnethack)</title>
		<link>http://positon.org/change-nethack-tiles-xnethack</link>
		<comments>http://positon.org/change-nethack-tiles-xnethack#comments</comments>
		<pubDate>Mon, 05 Jul 2010 21:19:00 +0000</pubDate>
		<dc:creator><![CDATA[dooblem]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[NetHack]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[XPM]]></category>

		<guid isPermaLink="false">http://positon.org:81/?p=99</guid>
		<description><![CDATA[NetHack: one of the best games ever. I find xnethack default tileset rather ugly. Under Debian/Ubuntu (nethack-x11 package), the tileset file must be in XPM format. It&#8217;s configuration is in the /etc/X11/app-defaults/NetHack file with the default xpm: /usr/share/pixmaps/nethack/x11tiles. The file must be in XPM format, with a limited size and different color number, otherwise Nethack [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.nethack.org/">NetHack</a>: one of the best games ever.</p>
<p>I find <a href="http://nethackwiki.com/wiki/File:Vanilla_tiles.png">xnethack default tileset</a> rather ugly. Under Debian/Ubuntu (<code>nethack-x11</code> package), the tileset file must be in <a href="http://en.wikipedia.org/wiki/X_PixMap">XPM</a> format. It&#8217;s configuration is in the <code>/etc/X11/app-defaults/NetHack</code> file with the default xpm: <code>/usr/share/pixmaps/nethack/x11tiles</code>.</p>
<p>The file must be in <a href="http://fr.wikipedia.org/wiki/X_PixMap">XPM</a> format, with a limited size and different color number, otherwise Nethack loading time explodes (several minutes).</p>
<p>Here is how to change it on Debian / Ubuntu:</p>
<ol>
<li>Example: on <a href="http://www.multifoliate.com/nh/" title="http://www.multifoliate.com/nh/">http://www.multifoliate.com/nh/</a>, get the <code>chozo32b.zip</code> file (link: <em>NetHack 3.4.2 (32&#215;32) (modified by me)</em>). Extract it to get <code>chozo32b.bmp</code>.</li>
<li>Open it with <a href="http://www.gimp.org/">Gimp</a>, cut it to 1280&#215;864 (to delete the black at the bottom). You can then convert it to 256 colors, then save it as XPM. It works but it&#8217;s ugly.</li>
<li>To get a better result, save it to <a href="http://en.wikipedia.org/wiki/Portable_Network_Graphics">PNG</a>.</li>
<li>Install <code>imagemagick</code> package, then <code>convert -depth 5 chozo32b.png chozo5.png</code></li>
<li>Open chozo5.png with Gimp. Then save it to XPM format.</li>
<li>Edit <code>/etc/X11/app-defaults/NetHack</code> and replace <code>/usr/share/pixmaps/nethack/x11tiles</code> with the path to <code>chozo5.xpm</code>.</li>
<li>Then, reload X ressources: <code>xrdb -merge /etc/X11/app-defaults/NetHack</code></li>
<li>Start your favorite game: <code>xnethack</code></li>
</ol>
<p>The final gzipped file: <a href="/wp-content/uploads/dotclearold/chozo5.xpm.gz">chozo5.xpm.gz</a></p>
<p><ins>Notes</ins>:</p>
<ul>
<li><code>convert</code> always saves xpms in 256 colors. I don&#8217;t know why.</li>
<li><code>head image.xpm</code> gives you the first lines of the XPM file, with number of different colors.</li>
<li>Abigada tileset is by default in NetHack iPhone version.</li>
</ul>
<p><ins>Links</ins>:</p>
<ul>
<li><a href="http://www.multifoliate.com/nh/">Abigada tiles</a></li>
<li><a href="http://nethackwiki.com/wiki/Tileset">Tilesets on Nethack wiki</a></li>
<li><a href="http://www.wotsit.org/list.asp?search=XPM">XPM Format Specification</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://positon.org/change-nethack-tiles-xnethack/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
