<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - scripting dofile error]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=285&amp;type=atom"/>
	<updated>2012-07-15T09:19:02Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=285</id>
		<entry>
			<title type="html"><![CDATA[Re: scripting dofile error]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=2143#p2143"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2012-07-15T09:19:02Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=2143#p2143</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[scripting dofile error]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=1305#p1305"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jurgel]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=522</uri>
			</author>
			<updated>2012-01-25T08:27:19Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=1305#p1305</id>
		</entry>
</feed>
