<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Functions request]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=152&amp;type=atom"/>
	<updated>2014-07-29T20:28:07Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=152</id>
		<entry>
			<title type="html"><![CDATA[Re: Functions request]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=7053#p7053"/>
			<content type="html"><![CDATA[<p>My Lua functions request:<br />-&gt;SendMessage()<br />-&gt;Material.color(r,g,b) - To add highlights on selected objects or when mouseover them.</p>]]></content>
			<author>
				<name><![CDATA[Akira_san]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2764</uri>
			</author>
			<updated>2014-07-29T20:28:07Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=7053#p7053</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Functions request]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6711#p6711"/>
			<content type="html"><![CDATA[<p>Hey ReubenUnicruz!</p><p>I think all logic and physics runs at 60Hz so getting the framerate would be quite useless.<br />What in fact is useful is the average frame rate of the graphics.</p><p>I already implemented this feature in my game plugin and will port it to the standard engine.</p><p>Sponk</p>]]></content>
			<author>
				<name><![CDATA[Sponk]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1316</uri>
			</author>
			<updated>2014-04-14T18:44:32Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6711#p6711</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Functions request]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6709#p6709"/>
			<content type="html"><![CDATA[<p>My requested functions would be (adopted from the Blender Game Engine):</p><p>&nbsp; &nbsp; 1.) getAverageFrameRate() -&gt; framerate<br />&nbsp; &nbsp; 2.) getMaxLogicTic() -&gt; ticrate<br />&nbsp; &nbsp; 3.) getMaxPhysicsTic() -&gt; ticrate<br />&nbsp; &nbsp; 4.) getMaxLogicFrame() -&gt; framerate<br />&nbsp; &nbsp; 5.) getMaxPhysicsFrame() -&gt; framerate<br />&nbsp; &nbsp; 6.) setMaxLogicTic( ticrate )<br />&nbsp; &nbsp; 7.) setMaxPhysicsTic( ticrate )<br />&nbsp; &nbsp; 8.) setMaxLogicFrame( framerate )<br />&nbsp; &nbsp; 9.) setMaxPhysicsFrame( framerate )</p>]]></content>
			<author>
				<name><![CDATA[ReubenUnicruz]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2789</uri>
			</author>
			<updated>2014-04-14T14:48:55Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6709#p6709</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Functions request]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6577#p6577"/>
			<content type="html"><![CDATA[<p>I posted a link to LuaSQL in the General category, which is a Lua-based persistent store that can utilize multiple database types.</p><p>You would simply write the needed data to the database and then load it in your next scene. This would supplement the modular design paradigm that the engine currently uses.</p><p>------</p><p>LuaSQL post: <a href="http://forum.maratis3d.com/viewtopic.php?id=945">http://forum.maratis3d.com/viewtopic.php?id=945</a></p>]]></content>
			<author>
				<name><![CDATA[sunnystormy]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2708</uri>
			</author>
			<updated>2014-03-06T20:23:26Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6577#p6577</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Functions request]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6575#p6575"/>
			<content type="html"><![CDATA[<p>That would be an important function.</p>]]></content>
			<author>
				<name><![CDATA[Akira_san]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2764</uri>
			</author>
			<updated>2014-03-06T04:07:29Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6575#p6575</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Functions request]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6569#p6569"/>
			<content type="html"><![CDATA[<p>Can&#039;t you duplicate the level file and change the name? This would be a temporary fix. A good way for this to be added is to have a groping system.</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2014-03-05T15:22:55Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6569#p6569</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Functions request]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6568#p6568"/>
			<content type="html"><![CDATA[<p>A suggestion for scene switching :</p><p>Right now i don&#039;t see a good way to make use of scene switching or level switching as <br />you can&#039;t import/keep objects from the previous scene/level.</p><p>while i was searching on the subject, i found this :<br /><strong>DontDestroyOnLoad</strong> from unity, which is preserving the objects you want for the next scene</p><p>Something similiar would be great !</p>]]></content>
			<author>
				<name><![CDATA[Vegas]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=53</uri>
			</author>
			<updated>2014-03-05T09:17:34Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6568#p6568</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Functions request]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6095#p6095"/>
			<content type="html"><![CDATA[<p>1. debug (text) - write &quot;text&quot; on screen/console. If lua file contains errors then error text display on same place.<br />2. dostring (str) - execute lua string, e.g. dostring(&quot;On&quot;..&lt;getObjectUnderCursorName&gt;..&quot;Click()&quot;)<br />3. I think that GetSystemTick is not necessary function and can be replaced by os.clock() (standard lua function).<br />4. timer(msDelay, AfterDelay_LuaStringToDo). It&#039;s can be realized as lua-library throught &quot;dostring&quot;.<br />5. if &lt;smth&gt;.lua is not-correct then dofile(&lt;smth&gt;.lua) must return error.&nbsp; <br />In MScript.cpp -&gt; doFile change <strong>luaL_dostring(L, text);</strong> to<br /></p><div class="codebox"><pre><code>int result = luaL_dostring(L, text);
if (result != 0)
         printf(lua_tostring(L, -1));</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Aikon]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2730</uri>
			</author>
			<updated>2013-12-17T16:59:08Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6095#p6095</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Functions request]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5577#p5577"/>
			<content type="html"><![CDATA[<p>An isSoundOver() function would be useful to me right now, hehe. Also, just more sound functions in general (lua side). Or even being able to adjust the pitch of the sound or all the other parameters that are in the editor through script. This really goes for all editor parameters really.</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2013-10-17T15:50:32Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5577#p5577</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Functions request]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5573#p5573"/>
			<content type="html"><![CDATA[<p>So I do. But it&#039;s not comfortable.</p>]]></content>
			<author>
				<name><![CDATA[ant0n]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1562</uri>
			</author>
			<updated>2013-10-17T03:42:30Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5573#p5573</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Functions request]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5563#p5563"/>
			<content type="html"><![CDATA[<p>Well, if you want to spawn an entity, make a single instance of the entity you want to spawn (with all the properties) and create a table for all the clones. Then use getClone(parent), which will create a clone of the parent entity and return it, and just put that in the table. Then you can just use a for loop to cycle through all the clones and make them do stuff.</p>]]></content>
			<author>
				<name><![CDATA[X54321]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2701</uri>
			</author>
			<updated>2013-10-16T15:52:26Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5563#p5563</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Functions request]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5558#p5558"/>
			<content type="html"><![CDATA[<p>Add already function spawn! Is it so difficult??? Something like these:<br />spawnEntity(&quot;file path&quot;) or loadMesh(&quot;file path&quot;)<br />Pleeeease!</p>]]></content>
			<author>
				<name><![CDATA[ant0n]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1562</uri>
			</author>
			<updated>2013-10-16T03:38:26Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5558#p5558</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Functions request]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4793#p4793"/>
			<content type="html"><![CDATA[<p>yes, sorry it&#039;s &quot;relative&quot;</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-08-27T09:58:09Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4793#p4793</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Functions request]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4782#p4782"/>
			<content type="html"><![CDATA[<p>Thanks anael that will do.</p><p>Now is it possible to tag objects ( is different from the name, objects with different names can have the same tag), if not something like getObjectTag() would be helpful.</p><p>anael i can&#039;t seam to find the local option that you talk about on the sound properties, thres only a relative option is that what you are referring to?</p>]]></content>
			<author>
				<name><![CDATA[Argoon]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2618</uri>
			</author>
			<updated>2013-08-26T23:20:51Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4782#p4782</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Functions request]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=4772#p4772"/>
			<content type="html"><![CDATA[<p>Argoon :<br />for global sounds, you can use a stereo sound (only mono sounds are 3d)<br />or select the &quot;local&quot; option in the sound property and the sound position will be local to the camera (the global effect you want) &gt; set the position to &quot;0 0 0&quot; for a centered sound</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-08-26T20:18:42Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=4772#p4772</id>
		</entry>
</feed>
