<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - scripting dofile error]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=285</link>
		<description><![CDATA[The most recent posts in scripting dofile error.]]></description>
		<lastBuildDate>Sun, 15 Jul 2012 09:19:02 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: scripting dofile error]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=2143#p2143</link>
			<description><![CDATA[<p>Hi, sorry, I didn&#039;t see this post,<br />dofile normally don&#039;t execute the code inside it,<br />write a function inside scriptc.lua where you do &quot;print(&quot;test&quot;)&quot; and call this function in scripta.lua</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Sun, 15 Jul 2012 09:19:02 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=2143#p2143</guid>
		</item>
		<item>
			<title><![CDATA[scripting dofile error]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=1305#p1305</link>
			<description><![CDATA[<p>Hi<br />I have some scene that each of them have a script,<br />in every script, there&#039;s several function that is same each other, so I move them and make a new lua file, then call it with dofile(&quot;function.lua&quot;) in every script that needed this function.<br />But it&#039;s failed, the function never being called.</p><p>A simple test case,<br />I have 2 scene, let&#039;s call them scene A and B,<br />and I have 3 script, script A for scene A, script B for scene B, and script C is called by script A and B.</p><p>for example:</p><div class="quotebox"><cite>script A wrote:</cite><blockquote><p>...<br />dofile(&quot;scriptc.lua&quot;)<br />...</p></blockquote></div><div class="quotebox"><cite>script C wrote:</cite><blockquote><p>print(&quot;test&quot;)</p></blockquote></div><p>The result should be print &quot;test&quot;, but it&#039;s not happen.<br />Is this a bug?</p>]]></description>
			<author><![CDATA[dummy@example.com (jurgel)]]></author>
			<pubDate>Wed, 25 Jan 2012 08:27:19 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=1305#p1305</guid>
		</item>
	</channel>
</rss>
