<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Maratis Chess]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=750&amp;type=atom"/>
	<updated>2013-12-13T21:22:49Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=750</id>
		<entry>
			<title type="html"><![CDATA[Re: Maratis Chess]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6079#p6079"/>
			<content type="html"><![CDATA[<p>Here we are again! <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Working now on graphics... here is draft ( to improve )<br /><span class="postimg"><img src="http://www.misadev.com/p/maratisChess/screens/test3.jpg" alt="http://www.misadev.com/p/maratisChess/screens/test3.jpg" /></span></p>]]></content>
			<author>
				<name><![CDATA[SadWolf]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1268</uri>
			</author>
			<updated>2013-12-13T21:22:49Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6079#p6079</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Maratis Chess]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6073#p6073"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>SadWolf wrote:</cite><blockquote><p>Hey <img src="http://forum.maratis3d.com/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /> it looks very good! I&#039;d like to add something like animated pieces <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></blockquote></div><p>That is the thing about Maratis, Marstis meshes can&#039;t be edited directly. Id have to have the original 3d files, and then open them in blender. Also, each one would have to be rigged because Maratis only accepts armature animation and not key frame animation. </p><p>I thought about using ASSIMP, but I have not been able to get an animated collada file out of Blender (I think the ASSIMP importer can handle animated collada files, but I&#039;m not sure if Maratis can).</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2013-12-09T19:45:03Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6073#p6073</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Maratis Chess]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6072#p6072"/>
			<content type="html"><![CDATA[<p>Hey <img src="http://forum.maratis3d.com/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /> it looks very good! I&#039;d like to add something like animated pieces <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[SadWolf]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1268</uri>
			</author>
			<updated>2013-12-09T12:07:17Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6072#p6072</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Maratis Chess]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6065#p6065"/>
			<content type="html"><![CDATA[<p>I am going to play around with this and add another board style (maybe several) and perhaps an environment? We will see.</p><p>First one:<br /><span class="postimg"><img src="https://sites.google.com/site/maratisfiles/files/Screenshot%20%28917%29.png" alt="https://sites.google.com/site/maratisfiles/files/Screenshot%20%28917%29.png" /></span><br />Need to get my normal map working though.</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2013-12-07T04:24:18Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6065#p6065</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Maratis Chess]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4894#p4894"/>
			<content type="html"><![CDATA[<p>@Tutorial doctor thanks!</p><p>Updated with the last game version,<br />I disabled UCI for now , and enabled a simple LUA based AI<br />enjoy</p><p>still missing a menu and a decent graphics <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[SadWolf]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1268</uri>
			</author>
			<updated>2013-09-01T18:27:10Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4894#p4894</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Maratis Chess]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4883#p4883"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>heartseed wrote:</cite><blockquote><p>Cube 2 is pretty decent overall actually, though the &#039;editing&#039; in some ways leaves alot to be desired, but overall the editing is pretty amazing in what you can do. Never tried just cube engine itself per se, but platinum arts sandbox engine isn&#039;t half bad actually in some ways and they are actually working on improving it.</p></blockquote></div><p>It was a long time ago when I used it. Hopefully it is much better. It looked like Doom 95 then. hehe</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2013-08-30T05:14:20Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4883#p4883</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Maratis Chess]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4880#p4880"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>SadWolf wrote:</cite><blockquote><p>Actually I love maratis cause you can do more with less...<br />If you use complex libraries, it&#039;s painfull to learn everything, even simple things takes a lot of work...<br />maratis is very easy and usually most common things has a lua function, <br />and anyway having a tool like the maratis editor makes the job done faster.</p><p>All libraries in maratis are already togheter: audio, graphics and physics... this make it a complete game engine</p><p>So why do I like maratis? <br />-cause is _easy_ , <br />-is fast for _prototyping ideas_ <br />-no complex setup, just download the zip e start lua code<br />-perfectly compatible with blender ( which works good on linux )<br />-easy plugin system to extend the game engine with new funcitons<br />-good builtin editor</p><p><img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></blockquote></div><p>I agree! I have been through hundreds of software, even old software no one probably knows of. I think the first game engine I messed around with some time ago was the cube engine with a game named Saubraten or something. It was terrible. </p><p>Anyhow, all the things you have mentioned are the reason I like this engine so much. BTW, nice job!.</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2013-08-30T03:51:23Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4880#p4880</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Maratis Chess]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4873#p4873"/>
			<content type="html"><![CDATA[<p>Actually I love maratis cause you can do more with less...<br />If you use complex libraries, it&#039;s painfull to learn everything, even simple things takes a lot of work...<br />maratis is very easy and usually most common things has a lua function, <br />and anyway having a tool like the maratis editor makes the job done faster.</p><p>All libraries in maratis are already togheter: audio, graphics and physics... this make it a complete game engine</p><p>So why do I like maratis? <br />-cause is _easy_ , <br />-is fast for _prototyping ideas_ <br />-no complex setup, just download the zip e start lua code<br />-perfectly compatible with blender ( which works good on linux )<br />-easy plugin system to extend the game engine with new funcitons<br />-good builtin editor</p><p><img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[SadWolf]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1268</uri>
			</author>
			<updated>2013-08-29T20:34:49Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4873#p4873</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Maratis Chess]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4871#p4871"/>
			<content type="html"><![CDATA[<p>OK gotcha <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>Yes, big projects and being alone is bad combo..dream big , aim reasonable I guess <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>Sounds good, look fwd to it.</p><p>AS a case study, what have you found kewl in maratis that you left behind in other engines..</p><p>Like ogre3d as a comparison, often I hear its difficult to integrate other libraries..</p><p>cheers<br />hs</p>]]></content>
			<author>
				<name><![CDATA[VeganDev]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=18</uri>
			</author>
			<updated>2013-08-29T20:24:52Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4871#p4871</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Maratis Chess]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4870#p4870"/>
			<content type="html"><![CDATA[<p>Hi heartseed! <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /> <br />Thanks for the consideration !!!</p><p>(You re an artist! So you can help me with graphics!!! XD)</p><p>Thanks for trying the game! At the moment it works only on linux, bring it to windows and macosx soon...<br />Actually I&#039;m a coder and I&#039;m pretty confident with maratis system. <br />Before of maratis I used many other engines <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /> so I&#039;m not so new to game ambient...<br />At the state of art the game took me about 12 hours.</p><p>I haven&#039;t uploaded yet the latest version, cause it works only on linux at the moment.<br />I will finish it on linux, then port it to windows and then to macosx.</p><p>The pre-pre-pre-alpha version haven&#039;t the AI integrated yet.<br />Lua based AI are too weak beacuse lua is a bit slow for intensive computation.<br />So I have integrated C based strong AIs with UCI.</p><p>I will upload tonight the 0.1 version I&#039;ll try to port it on windows.<br />I haven&#039;t done it yet on windows cause I have to compile C plugin on windows, <br />I&#039;m not sure if windows has all the library that I used in C<br />or if they are linux-specific libraries.</p><p>The problem of making a game is that we always overthink about what to do <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /><br /> we are atracted by big titles and we want to make big-title-games too...<br />in the end we finish with too much work to do and... give up...<br />I think that you should go with simple projects espacially if you are all alone to work on it...</p><p>Anyway hope you&#039;lll give a try to my game soon <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />I&#039;ll upload it asap!</p>]]></content>
			<author>
				<name><![CDATA[SadWolf]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1268</uri>
			</author>
			<updated>2013-08-29T19:53:31Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4870#p4870</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Maratis Chess]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4858#p4858"/>
			<content type="html"><![CDATA[<p>So milestone!</p><p>Beta UCI protocol interaction completed!<br />Now you can play a match as white aganist an uci engine that plays as black!!!</p>]]></content>
			<author>
				<name><![CDATA[SadWolf]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1268</uri>
			</author>
			<updated>2013-08-28T21:53:29Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4858#p4858</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Maratis Chess]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4847#p4847"/>
			<content type="html"><![CDATA[<p>after a lot of work between nigth and morning I have created a plugin that can interact with an external program throught the stdin/stdout</p><p>here is the code...<br />The tricky part was finding a way to create a fullduplex communication system between two process throught stdin/stdout</p><p>Hope this helps someone <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><div class="codebox"><pre><code>#include &quot;ChessEngineInterfacePlugin.h&quot;
#include &lt;MEngine.h&gt;
#include &lt;sys/types.h&gt;
#include &lt;fcntl.h&gt;
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;unistd.h&gt;
#include &lt;poll.h&gt;

#define READ 0
#define WRITE 1

int infp, outfp;
char buf[4096];
struct pollfd ufds;

/** Interprocess comunication throught stdin/stdout */
pid_t
popen2(const char *command, int *infp, int *outfp)
{
    int p_stdin[2], p_stdout[2];
    pid_t pid;

    if (pipe(p_stdin) != 0 || pipe(p_stdout) != 0)
        return -1;

    pid = fork();

    if (pid &lt; 0)
        return pid;
    else if (pid == 0)
    {
        close(p_stdin[WRITE]);
        dup2(p_stdin[READ], READ);
        close(p_stdout[READ]);
        dup2(p_stdout[WRITE], WRITE);

        execl(command, command, NULL);
        perror(&quot;execvp&quot;);
        exit(1);
    }

    if (infp == NULL)
        close(p_stdin[WRITE]);
    else
        *infp = p_stdin[WRITE];

    if (outfp == NULL)
        close(p_stdout[READ]);
    else
        *outfp = p_stdout[READ];

    return pid;
}

int readChessEngineOutput(){
    int rv;
    rv = poll(&amp;ufds, 1, 1);
    if (  rv &gt; 0 ){
        read(outfp, buf, 4096);
        printf(&quot;%s&quot;,buf);
    }
    return 0;    
}

int sendCmdToChessEngine()
{
    printf( &quot;write to chess engine&quot; );
    write(infp, &quot;uci\n&quot;, 4);
    return 0;    
}

int initChessEngine()
{
    if (popen2(&quot;./Linux/rodent-32-ja&quot;, &amp;infp, &amp;outfp) &lt;= 0)
    {
        printf(&quot;Unable to exec sort\n&quot;);
    return -1;
    }
    *buf = &#039;\0&#039;;    
   ufds.fd = outfp;
   ufds.events = POLLIN | POLLPRI;

   printf(&quot;Chess engine link started&quot;);
   return 0;
}

void StartPlugin(void)
{
   MEngine * engine = MEngine::getInstance();
   MScriptContext* script = engine-&gt;getScriptContext();

   initChessEngine();

   script-&gt;addFunction(&quot;initChessEngine&quot;, initChessEngine);
   script-&gt;addFunction(&quot;readChessEngine&quot;, readChessEngineOutput);
   script-&gt;addFunction(&quot;commandChessEngine&quot;, sendCmdToChessEngine);
}

void EndPlugin(void)
{
    close(infp);
    close(outfp);
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[SadWolf]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1268</uri>
			</author>
			<updated>2013-08-28T11:18:09Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4847#p4847</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Maratis Chess]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4841#p4841"/>
			<content type="html"><![CDATA[<p>@argoon: thanks! my first goal is to make a simple playable version using external professional chess engines <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /> <br />second goal is to make it usefull for learning adavanced tecniques and openings, with supports and hints</p><p>@anael: I&#039;m trying to create a plugin, I have started with a simple helloworld, it worked!</p><div class="codebox"><pre><code>/////////////////////////////////////////////////////////////////////////////////////////////////////////
// SimpleGamePlugin.cpp
/////////////////////////////////////////////////////////////////////////////////////////////////////////

#include &lt;MEngine.h&gt;
#include &quot;SimpleGamePlugin.h&quot;
#include &lt;iostream&gt;

int helloworld()
{
    std::cout &lt;&lt; &quot;hello world&quot; &lt;&lt;std::endl;
    return 0;
}

void StartPlugin(void)
{
    // get engine
    std::cout &lt;&lt; &quot;hello world plugin started&quot; &lt;&lt;std::endl;
    MEngine * engine = MEngine::getInstance();
    MScriptContext* script = engine-&gt;getScriptContext();

    script-&gt;addFunction(&quot;helloworld&quot;, helloworld);
}

void EndPlugin(void)
{

}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[SadWolf]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1268</uri>
			</author>
			<updated>2013-08-27T22:52:35Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4841#p4841</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Maratis Chess]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4840#p4840"/>
			<content type="html"><![CDATA[<p>it should not be too complicated.<br />you can add a function using the script context.</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-08-27T22:42:29Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4840#p4840</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Maratis Chess]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4838#p4838"/>
			<content type="html"><![CDATA[<p>Looks very good it could be made into a full game easily and thanks for the project. <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[Argoon]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2618</uri>
			</author>
			<updated>2013-08-27T20:38:16Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4838#p4838</id>
		</entry>
</feed>
