Hi,<br><br>again 2 Euro-cent from me :-)<br><br>If I understood Tom correctly, there is only one file per tar-file. Is this correct?<br>In this case, I don&#39;t think tar makes any sense, because it was build to store a collection of files for backup.<br>
If it is about compression, using gzip or bzip2 would be enough. Since it would also reduce the overhead of tar, the files were even smaller, and I think there is no version problem with gzip and bzip2: They are identical on nearly any system (if installed, which is the case for nearly every Unix derivate, including Linux, but not necessarily on Windows or Max OS X). Maybe there is even a library interface for gzip or bzip2, so that calling an external program is not necessary at all.<br>
<br>And another question to Tom:<br>You are using xpm files for the levels? This is perfectly the choice if you want to integrate the levels into your code (since xpm is indeed compilable C code), but since you seem to load them dynamically, I would suggest using PNG.<br>
<br>Cheers,<br>Burkhard<br><br><div class="gmail_quote">2008/5/14 Christian Ehrlicher &lt;<a href="mailto:Ch.Ehrlicher@gmx.de">Ch.Ehrlicher@gmx.de</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt; Von: &quot;Tom Vollerthun&quot;<br>
&gt; Hi Ian,<br>
&gt;<br>
&gt; I&#39;m glad you pointed out the problems with tar-files. I think I will go<br>
&gt; back to subdirectories with plain files. But that _will_ result in one file<br>
&gt; per level, since I (currently) use image files (p.e. xbm) as game data. I<br>
&gt; don&#39;t really care about that, but since you said I wouldn&#39;t want it: what&#39;s<br>
&gt; the downside of having three hundret small files instead of one large<br>
&gt; (except of using more I-Nodes in the file system and causing a small amount of<br>
&gt; fragmentation) ?<br>
&gt;<br>
I wrote a small QIODevice-Wrapper for tar which can read and write files from/to tar files. It can be found here: <a href="http://websvn.kde.org/trunk/kdesupport/kdewin-installer/3rdparty/filters/" target="_blank">http://websvn.kde.org/trunk/kdesupport/kdewin-installer/3rdparty/filters/</a><br>

<br>
We use it in our kdewin-installer to unpack .tar.bz2 and it works fine. I must say that this class only a small subset of tar - it can read tar files created by linux tar but don&#39;t know about others (imho there are more than five slightly different tar formats). But this can be fixed if needed.<br>

<br>
<br>
Christian<br>
<font color="#888888">--<br>
249 Spiele für nur 1 Preis. Die GMX Spieleflatrate schon ab 9,90 Euro.<br>
Neu: Asterix bei den Olympischen Spielen: <a href="http://flat.games.gmx.de" target="_blank">http://flat.games.gmx.de</a><br>
_______________________________________________<br>
kde-games-devel mailing list<br>
<a href="mailto:kde-games-devel@kde.org">kde-games-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kde-games-devel" target="_blank">https://mail.kde.org/mailman/listinfo/kde-games-devel</a><br>
<br>
</font></blockquote></div><br>