<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Datafile Questions</title>
		<link>http://www.allegro.cc/forums/view/587293</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 29 Aug 2006 03:20:27 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>1. Is it possible to store bitmaps into a datafile that have different pallettes? It&#39;d be cool if I could store all my images in one file, but my variety has caused me to use different pallettes for them.</p><p>2. Is is possible to load a datafile object as a FILE*, or should I just go ahead and define a custom type?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Jeff Bernard)</author>
		<pubDate>Tue, 29 Aug 2006 02:54:09 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>1. Yes.<br />2. Not entirely sure, but probably yes too.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Michael Faerber)</author>
		<pubDate>Tue, 29 Aug 2006 03:01:52 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
2. Is is possible to load a datafile object as a FILE*, or should I just go ahead and define a custom type?
</p></div></div><p>Yes, but you&#39;d have to parse the data file yourself to get anything out of it.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Tue, 29 Aug 2006 03:03:50 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Ha, maybe I should&#39;ve elaborated a bit on the questions, but thanks for answering them. Ok, so let&#39;s go into a little more detail:</p><p>1. Maybe I&#39;m just doing something wrong, but I try loading a bitmap into a datafile using grabber.exe. I do &#39;Read Bitmap&#39; and then grab it. I create another bitmap in the datafile, &#39;Read Bitmap&#39; and grab it. However, it changes what the first bitmap looked like (the colors and such). Did the first one actually not change, or what&#39;s going on with that? </p><p>2. Ok, I&#39;m satisfied with this. I&#39;ll just write my custom routine then.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Jeff Bernard)</author>
		<pubDate>Tue, 29 Aug 2006 03:04:52 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You need to import the images as a PALETTE entry as well as a BITMAP, bitmaps arnt stored with their palette&#39;s in a datafile.</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
2. Ok, I&#39;m satisfied with this. I&#39;ll just write my custom routine then.
</p></div></div><p>Why bother?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Tue, 29 Aug 2006 03:05:50 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Why bother?
</p></div></div><p>
Because I read your answer wrong.:P</p><p>Thanks a lot guys, this is all I need.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Jeff Bernard)</author>
		<pubDate>Tue, 29 Aug 2006 03:13:02 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m sorry, what did you mean by &quot;datafile object&quot;? the entire datafile? or just a single item in the datafile? Because the latter is possible, <span class="source-code"><a href="http://www.allegro.cc/manual/pack_fopen" target="_blank"><span class="a">pack_fopen</span></a><span class="k2">(</span><span class="s">"datafile.dat#objectname"</span>, <span class="s">"r"</span><span class="k2">)</span><span class="k2">;</span></span>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Tue, 29 Aug 2006 03:16:21 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Yes, that&#39;s exactly what I meant.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Jeff Bernard)</author>
		<pubDate>Tue, 29 Aug 2006 03:20:27 +0000</pubDate>
	</item>
</rss>
