<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://pybullet.org/Bullet/phpBB3/app.php/feed/topic/1252" />

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2008-07-17T18:12:29+00:00</updated>

	<author><name><![CDATA[Real-Time Physics Simulation Forum]]></name></author>
	<id>https://pybullet.org/Bullet/phpBB3/app.php/feed/topic/1252</id>

		<entry>
		<author><name><![CDATA[YB_Info]]></name></author>
		<updated>2008-07-17T18:12:29+00:00</updated>

		<published>2008-07-17T18:12:29+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=9365#p9365</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=9365#p9365"/>
		<title type="html"><![CDATA[Re: problem import GameLogic]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=9365#p9365"><![CDATA[
To answer to your question, I believe that you have a Python version too new.<br>I would suggest that you switch to Blender 2.46, newest Python.<br><br>When testing your script, you should use the Text Editor. Then Run is as a Python script.<br><br>Try this and you shouldn't get any errors.<blockquote class="uncited"><div># Some line of Test<br><br>import GameLogic #Import what ever, only takes ressources :p<br><br>print "I Am GOD!"</div></blockquote>With 2.46, while I looked at your script, 1 error was found. You will get an error for getCurrentController() <br>because it need to be associated in the Logic Bricks (Where the basic Game Engine sensors all begins) since <br>it needs to return something to associate to the variable. If it doesn't exist, the returned value is not NULL <br>but an error <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>Sensor - Controller - Attribute<br>Obj - Python - Movement<br><br>Hope this basic info helps.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2602">YB_Info</a> — Thu Jul 17, 2008 6:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Littlebob]]></name></author>
		<updated>2007-06-27T19:04:56+00:00</updated>

		<published>2007-06-27T19:04:56+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=4611#p4611</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=4611#p4611"/>
		<title type="html"><![CDATA[problem import GameLogic]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=4611#p4611"><![CDATA[
GameLogic only works in the game engine not in the blender editor.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=1473">Littlebob</a> — Wed Jun 27, 2007 7:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[doramonman]]></name></author>
		<updated>2007-06-25T10:42:52+00:00</updated>

		<published>2007-06-25T10:42:52+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=4581#p4581</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=4581#p4581"/>
		<title type="html"><![CDATA[problem import GameLogic]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=4581#p4581"><![CDATA[
I havd to installed Blender 2.44 and Python 2.5.1 On WinXP sp2.<br>When Run python Script (Alt+P) Blender cannot import gamelogic in all file.<br><br><br><img src="http://images.forstudent.com/ie/41error.jpg" class="postimage" alt="Image"><br><a href="http://images.forstudent.com/show.php?id=85a00dbf0e59c82f18d2d16c7d962037" class="postlink">http://images.forstudent.com/show.php?i ... 6c7d962037</a><br><br>1.py<div class="codebox"><p>Code: </p><pre><code># first gamePython script# gets the position of the owning object# and prints it on the consoleimport GameLogiccontroller = GameLogic.getCurrentController()owner = controller.getOwner()print owner.getPosition()</code></pre></div>If I try to "print 'Helloworld' " without line "import"  it has no problem<br><br>How to Fix this problem?<br>I must have to install other program?<br>or how to set path?<br><br><br> <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad">  <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad">  <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=1807">doramonman</a> — Mon Jun 25, 2007 10:42 am</p><hr />
]]></content>
	</entry>
	</feed>
