<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Replacing Python on a Battlefield 2 server</title>
	<atom:link href="http://blog.garethj.com/2008/05/replacing-python-on-a-battlefield-2-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.garethj.com/2008/05/replacing-python-on-a-battlefield-2-server/</link>
	<description></description>
	<lastBuildDate>Fri, 26 Feb 2010 08:34:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: garethj</title>
		<link>http://blog.garethj.com/2008/05/replacing-python-on-a-battlefield-2-server/comment-page-1/#comment-195</link>
		<dc:creator>garethj</dc:creator>
		<pubDate>Wed, 02 Jul 2008 13:49:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.garethj.com/?p=38#comment-195</guid>
		<description>So sounds like you&#039;ve done everything correctly. I assume you&#039;ve kept the relative locations in the sys.path such as &#039;python&#039;, &#039;mods/bd2/python&#039; and &#039;admin&#039; as these are battlefield specific libraries it will try to load? Failing that, try the 32 bit version - maybe BF2 always runs a 32bit Python regardless of which version the game is running.</description>
		<content:encoded><![CDATA[<p>So sounds like you&#39;ve done everything correctly. I assume you&#39;ve kept the relative locations in the sys.path such as &#39;python&#39;, &#39;mods/bd2/python&#39; and &#39;admin&#39; as these are battlefield specific libraries it will try to load? Failing that, try the 32 bit version &#8211; maybe BF2 always runs a 32bit Python regardless of which version the game is running.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: garethj</title>
		<link>http://blog.garethj.com/2008/05/replacing-python-on-a-battlefield-2-server/comment-page-1/#comment-172</link>
		<dc:creator>garethj</dc:creator>
		<pubDate>Wed, 02 Jul 2008 12:49:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.garethj.com/?p=38#comment-172</guid>
		<description>So sounds like you&#039;ve done everything correctly. I assume you&#039;ve kept the relative locations in the sys.path such as &#039;python&#039;, &#039;mods/bd2/python&#039; and &#039;admin&#039; as these are battlefield specific libraries it will try to load? Failing that, try the 32 bit version - maybe BF2 always runs a 32bit Python regardless of which version the game is running.</description>
		<content:encoded><![CDATA[<p>So sounds like you&#39;ve done everything correctly. I assume you&#39;ve kept the relative locations in the sys.path such as &#39;python&#39;, &#39;mods/bd2/python&#39; and &#39;admin&#39; as these are battlefield specific libraries it will try to load? Failing that, try the 32 bit version &#8211; maybe BF2 always runs a 32bit Python regardless of which version the game is running.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: garethj</title>
		<link>http://blog.garethj.com/2008/05/replacing-python-on-a-battlefield-2-server/comment-page-1/#comment-61</link>
		<dc:creator>garethj</dc:creator>
		<pubDate>Wed, 02 Jul 2008 08:49:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.garethj.com/?p=38#comment-61</guid>
		<description>So sounds like you&#039;ve done everything correctly. I assume you&#039;ve kept the relative locations in the sys.path such as &#039;python&#039;, &#039;mods/bd2/python&#039; and &#039;admin&#039; as these are battlefield specific libraries it will try to load? Failing that, try the 32 bit version - maybe BF2 always runs a 32bit Python regardless of which version the game is running.</description>
		<content:encoded><![CDATA[<p>So sounds like you&#8217;ve done everything correctly. I assume you&#8217;ve kept the relative locations in the sys.path such as &#8216;python&#8217;, &#8216;mods/bd2/python&#8217; and &#8216;admin&#8217; as these are battlefield specific libraries it will try to load? Failing that, try the 32 bit version &#8211; maybe BF2 always runs a 32bit Python regardless of which version the game is running.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cal</title>
		<link>http://blog.garethj.com/2008/05/replacing-python-on-a-battlefield-2-server/comment-page-1/#comment-171</link>
		<dc:creator>Cal</dc:creator>
		<pubDate>Wed, 02 Jul 2008 04:25:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.garethj.com/?p=38#comment-171</guid>
		<description>I   1. Replace the Battlefield 2 Python library (e.g. ‘bf2/bin/ia-32/libdice_py.so’) with the version of your choice. I just linked to my locally installed version ‘/usr/lib/libpython2.5.so’.&lt;br&gt;   2. Replace the Python library path at runtime to use the new libraries, e.g. edit ‘bf2/python/bf2/__init__.py’ and putting the equivalent of ’sys.path = [&#039;/usr/lib/python2.5/&#039;, &#039;/usr/lib/python2.5/lib-dynload/&#039;, &#039;python&#039;, &#039;mods/bf2/python&#039;, &#039;admin&#039;]‘ after the ‘import sys’ line.&lt;br&gt;&lt;br&gt;Is what I did, but I did substitute my version for 2.5.  I used locate to find the directories for python.  I run the 64 bit version of bf2.exe so I figured 64bit libs would be a proper replacement.</description>
		<content:encoded><![CDATA[<p>I   1. Replace the Battlefield 2 Python library (e.g. ‘bf2/bin/ia-32/libdice_py.so’) with the version of your choice. I just linked to my locally installed version ‘/usr/lib/libpython2.5.so’.<br />   2. Replace the Python library path at runtime to use the new libraries, e.g. edit ‘bf2/python/bf2/__init__.py’ and putting the equivalent of ’sys.path = [&#39;/usr/lib/python2.5/&#39;, &#39;/usr/lib/python2.5/lib-dynload/&#39;, &#39;python&#39;, &#39;mods/bf2/python&#39;, &#39;admin&#39;]‘ after the ‘import sys’ line.</p>
<p>Is what I did, but I did substitute my version for 2.5.  I used locate to find the directories for python.  I run the 64 bit version of bf2.exe so I figured 64bit libs would be a proper replacement.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cal</title>
		<link>http://blog.garethj.com/2008/05/replacing-python-on-a-battlefield-2-server/comment-page-1/#comment-62</link>
		<dc:creator>Cal</dc:creator>
		<pubDate>Wed, 02 Jul 2008 00:25:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.garethj.com/?p=38#comment-62</guid>
		<description>I   1. Replace the Battlefield 2 Python library (e.g. ‘bf2/bin/ia-32/libdice_py.so’) with the version of your choice. I just linked to my locally installed version ‘/usr/lib/libpython2.5.so’.&lt;br&gt;   2. Replace the Python library path at runtime to use the new libraries, e.g. edit ‘bf2/python/bf2/__init__.py’ and putting the equivalent of ’sys.path = [&#039;/usr/lib/python2.5/&#039;, &#039;/usr/lib/python2.5/lib-dynload/&#039;, &#039;python&#039;, &#039;mods/bf2/python&#039;, &#039;admin&#039;]‘ after the ‘import sys’ line.&lt;br&gt;&lt;br&gt;Is what I did, but I did substitute my version for 2.5.  I used locate to find the directories for python.  I run the 64 bit version of bf2.exe so I figured 64bit libs would be a proper replacement.</description>
		<content:encoded><![CDATA[<p>I   1. Replace the Battlefield 2 Python library (e.g. ‘bf2/bin/ia-32/libdice_py.so’) with the version of your choice. I just linked to my locally installed version ‘/usr/lib/libpython2.5.so’.<br />   2. Replace the Python library path at runtime to use the new libraries, e.g. edit ‘bf2/python/bf2/__init__.py’ and putting the equivalent of ’sys.path = ['/usr/lib/python2.5/', '/usr/lib/python2.5/lib-dynload/', 'python', 'mods/bf2/python', 'admin']‘ after the ‘import sys’ line.</p>
<p>Is what I did, but I did substitute my version for 2.5.  I used locate to find the directories for python.  I run the 64 bit version of bf2.exe so I figured 64bit libs would be a proper replacement.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: garethj</title>
		<link>http://blog.garethj.com/2008/05/replacing-python-on-a-battlefield-2-server/comment-page-1/#comment-170</link>
		<dc:creator>garethj</dc:creator>
		<pubDate>Mon, 30 Jun 2008 13:16:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.garethj.com/?p=38#comment-170</guid>
		<description>What exactly have you changed? Have you replaced (or linked) the libdice_py.so in the Battlefield directory with your own and editing the __init__.py? If that&#039;s all done, there might be an issue with replacing a 32-bit Python with a 64-bit one (which is what your directory names suggest) so that could be the cause.</description>
		<content:encoded><![CDATA[<p>What exactly have you changed? Have you replaced (or linked) the libdice_py.so in the Battlefield directory with your own and editing the __init__.py? If that&#39;s all done, there might be an issue with replacing a 32-bit Python with a 64-bit one (which is what your directory names suggest) so that could be the cause.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: garethj</title>
		<link>http://blog.garethj.com/2008/05/replacing-python-on-a-battlefield-2-server/comment-page-1/#comment-63</link>
		<dc:creator>garethj</dc:creator>
		<pubDate>Mon, 30 Jun 2008 09:16:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.garethj.com/?p=38#comment-63</guid>
		<description>What exactly have you changed? Have you replaced (or linked) the libdice_py.so in the Battlefield directory with your own and editing the __init__.py? If that&#039;s all done, there might be an issue with replacing a 32-bit Python with a 64-bit one (which is what your directory names suggest) so that could be the cause.</description>
		<content:encoded><![CDATA[<p>What exactly have you changed? Have you replaced (or linked) the libdice_py.so in the Battlefield directory with your own and editing the __init__.py? If that&#8217;s all done, there might be an issue with replacing a 32-bit Python with a 64-bit one (which is what your directory names suggest) so that could be the cause.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cal</title>
		<link>http://blog.garethj.com/2008/05/replacing-python-on-a-battlefield-2-server/comment-page-1/#comment-169</link>
		<dc:creator>Cal</dc:creator>
		<pubDate>Sun, 29 Jun 2008 22:55:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.garethj.com/?p=38#comment-169</guid>
		<description>I tried your method and when the server starts it crashes with &quot;Import Error:&quot; and flashes back to shell.  I am using python2.4 and have changed the usr/lib/python2.5 to usr/lib64/python2.4 any clues?</description>
		<content:encoded><![CDATA[<p>I tried your method and when the server starts it crashes with &#8220;Import Error:&#8221; and flashes back to shell.  I am using python2.4 and have changed the usr/lib/python2.5 to usr/lib64/python2.4 any clues?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cal</title>
		<link>http://blog.garethj.com/2008/05/replacing-python-on-a-battlefield-2-server/comment-page-1/#comment-64</link>
		<dc:creator>Cal</dc:creator>
		<pubDate>Sun, 29 Jun 2008 18:55:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.garethj.com/?p=38#comment-64</guid>
		<description>I tried your method and when the server starts it crashes with &quot;Import Error:&quot; and flashes back to shell.  I am using python2.4 and have changed the usr/lib/python2.5 to usr/lib64/python2.4 any clues?</description>
		<content:encoded><![CDATA[<p>I tried your method and when the server starts it crashes with &#8220;Import Error:&#8221; and flashes back to shell.  I am using python2.4 and have changed the usr/lib/python2.5 to usr/lib64/python2.4 any clues?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cal361</title>
		<link>http://blog.garethj.com/2008/05/replacing-python-on-a-battlefield-2-server/comment-page-1/#comment-168</link>
		<dc:creator>Cal361</dc:creator>
		<pubDate>Sat, 28 Jun 2008 20:17:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.garethj.com/?p=38#comment-168</guid>
		<description>Yes.  Thank you.&lt;br&gt;&lt;br&gt;Originally I wanted to use post methods, but I now think a simple get is more efficent for my level of coding.  It also means that I can use the standard python lib that comes with bf2.  &lt;br&gt;&lt;br&gt;I appreciate the help.</description>
		<content:encoded><![CDATA[<p>Yes.  Thank you.</p>
<p>Originally I wanted to use post methods, but I now think a simple get is more efficent for my level of coding.  It also means that I can use the standard python lib that comes with bf2.  </p>
<p>I appreciate the help.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
