<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Creating a data package]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=277&amp;type=atom"/>
	<updated>2012-08-12T16:36:33Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=277</id>
		<entry>
			<title type="html"><![CDATA[Re: Creating a data package]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=2379#p2379"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2012-08-12T16:36:33Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=2379#p2379</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Creating a data package]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=2377#p2377"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alinor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=64</uri>
			</author>
			<updated>2012-08-12T14:13:52Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=2377#p2377</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Creating a data package]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=2138#p2138"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Nistur]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=500</uri>
			</author>
			<updated>2012-07-14T14:47:03Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=2138#p2138</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Creating a data package]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=2134#p2134"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[saiko]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1016</uri>
			</author>
			<updated>2012-07-14T06:40:37Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=2134#p2134</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Creating a data package]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=1113#p1113"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Nistur]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=500</uri>
			</author>
			<updated>2012-01-14T22:02:59Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=1113#p1113</id>
		</entry>
</feed>
