<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - Creating a data package]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=277</link>
		<description><![CDATA[The most recent posts in Creating a data package.]]></description>
		<lastBuildDate>Sun, 12 Aug 2012 16:36:33 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Creating a data package]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=2379#p2379</link>
			<description><![CDATA[<p>The screen resolution and the full screen is not done in the package, it&#039;s a command line information, for example you can run the game from a .bat file, the system is :</p><p>for windows : MaratisPlayer.exe &quot;projectName&quot; width height fullscreen<br />for unix : ./MaratisPlayer &quot;projectName&quot; width height fullscreen</p><p>exemple for embeded project 1024x768 with fullscreen : MaratisPlayer.exe &quot;&quot; 1024 768 1</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Sun, 12 Aug 2012 16:36:33 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=2379#p2379</guid>
		</item>
		<item>
			<title><![CDATA[Re: Creating a data package]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=2377#p2377</link>
			<description><![CDATA[<p>First, congratulation for the new package option available on the new maratis update, it works great <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>I have one question : how can we settle the screen resolution ?</p>]]></description>
			<author><![CDATA[dummy@example.com (Alinor)]]></author>
			<pubDate>Sun, 12 Aug 2012 14:13:52 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=2377#p2377</guid>
		</item>
		<item>
			<title><![CDATA[Re: Creating a data package]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=2138#p2138</link>
			<description><![CDATA[<p>Hi,<br />I have no problem with you translating this. I would suggest that it&#039;s a little out of date though, as we&#039;ve now added the packaging functionality into Maratis Editor and the above usually isn&#039;t necessary</p>]]></description>
			<author><![CDATA[dummy@example.com (Nistur)]]></author>
			<pubDate>Sat, 14 Jul 2012 14:47:03 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=2138#p2138</guid>
		</item>
		<item>
			<title><![CDATA[Re: Creating a data package]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=2134#p2134</link>
			<description><![CDATA[<p>Hello! I want translate thise tutorial to Russian<br />it is need me to post it in <a href="http://make-games.ru/.">http://make-games.ru/.</a> <br />I&nbsp; do it absolutely free but i need your allows to do it.</p><p>p.s. If there is Russian speak people, i will be glad to take their help in evaluation of translation.</p>]]></description>
			<author><![CDATA[dummy@example.com (saiko)]]></author>
			<pubDate>Sat, 14 Jul 2012 06:40:37 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=2134#p2134</guid>
		</item>
		<item>
			<title><![CDATA[Creating a data package]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=1113#p1113</link>
			<description><![CDATA[<p>As I&#039;m about to submit the package file code, I think it might be best to explain how to use it. After all, I need testers to tell me that it&#039;s working, right?</p><p>So, unfortunately, at time of writing, there&#039;s no automagic way of doing this, although I&#039;m planning on adding a publish button which will do just that, still, you might want to create automated build scripts to deploy or some such nonsense. But you&#039;re going to have to use the npk command line executable. There&#039;s a gui version, but it required wxwidgets, which I didn&#039;t have installed. Sorry. I&#039;ve added the executables to the 3rdparty/npk/bin/{win32/linux} folder in svn (assuming Anael has submitted it there) and I will upload it somewhere and link it at the bottom of the post, if you don&#039;t fancy checking out the whole svn repository.</p><p>So, fire up your favourite command line and head to wherever your project is. It&#039;s also easiest if you add npk somewhere in your PATH where your OS can find it. Then repeat after me.</p><p><em>Doing Linux example first, I&#039;ll write a Windows one later</em><br />First add npk to the path<br /></p><div class="codebox"><pre><code>Nistur@DRAKE ~/maratis/3rdparty/npk/bin/linux $ ls
npk

Nistur@DRAKE ~/maratis/3rdparty/npk/bin/linux $ export PATH=`pwd`:$PATH</code></pre></div><p>Then in your project directory, first create the package file<br /></p><div class="codebox"><pre><code>Nistur@DRAKE ~/maratis/trunk/dev/Examples/YoFrankie $ ls
Credits.txt  YoFrankie.mproj  levels  maps  meshs  scripts

Nistur@DRAKE ~/maratis/trunk/dev/Examples/YoFrankie $ npk YoFrankie.npk -create

Nistur@DRAKE ~/maratis/trunk/dev/Examples/YoFrankie $ ls
Credits.txt  YoFrankie.mproj  YoFrankie.npk  levels  maps  meshs  scripts</code></pre></div><p>Then, let&#039;s add some files. For now only images, scripts and sounds will work from the package<br /></p><div class="codebox"><pre><code>Nistur@DRAKE ~/maratis/trunk/dev/Examples/YoFrankie $ npk YoFrankie.npk -add maps/char_ram_col.jpg@maps/char_ram_col.jpg

Nistur@DRAKE ~/maratis/trunk/dev/Examples/YoFrankie $ npk YoFrankie.npk -list
Package      : YoFrankie.npk
Version      : 27
Total entity : 1
Timestamp    : 2012-01-14 21:50:24
-------------------------------------------------------------------------------
       size    original flag    date      time   name
-------------------------------------------------------------------------------
    539,749     539,749      2012-01-14 21:21:38 maps/char_ram_col.jpg
-------------------------------------------------------------------------------</code></pre></div><p>Note: you need to add the files with the same entity name, including the full path, otherwise Maratis might not find it.</p><p>You can always just add all the files together:<br /></p><div class="codebox"><pre><code>Nistur@DRAKE ~/maratis/trunk/dev/Examples/YoFrankie $ for dir in scripts maps ; do for file in $dir/* ; do npk YoFrankie.npk -add $file@$file; done; done</code></pre></div><p>Hope that helps at least somebody</p><p>DOWNLOADS:<br /><a href="http://nistur.com/maratis/npk/win32/npk.exe">Windows</a><br /><a href="http://nistur.com/maratis/npk/linux/npk">Linux</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Nistur)]]></author>
			<pubDate>Sat, 14 Jan 2012 22:02:59 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=1113#p1113</guid>
		</item>
	</channel>
</rss>
