<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://bf2tech.uturista.pt/index.php?action=history&amp;feed=atom&amp;title=Quick_Tips</id>
	<title>Quick Tips - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://bf2tech.uturista.pt/index.php?action=history&amp;feed=atom&amp;title=Quick_Tips"/>
	<link rel="alternate" type="text/html" href="https://bf2tech.uturista.pt/index.php?title=Quick_Tips&amp;action=history"/>
	<updated>2026-08-06T00:00:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://bf2tech.uturista.pt/index.php?title=Quick_Tips&amp;diff=80&amp;oldid=prev</id>
		<title>Pireax: Created page with &quot;== Prevent Commander and Squad Leaders from being autobalanced  ==  In the file &lt;tt&gt;admin/standard_admin/autobalance.py&lt;/tt&gt; find line 34:  &lt;pre&gt; # dont use autobalance when i...&quot;</title>
		<link rel="alternate" type="text/html" href="https://bf2tech.uturista.pt/index.php?title=Quick_Tips&amp;diff=80&amp;oldid=prev"/>
		<updated>2018-06-21T19:20:47Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Prevent Commander and Squad Leaders from being autobalanced  ==  In the file &amp;lt;tt&amp;gt;admin/standard_admin/autobalance.py&amp;lt;/tt&amp;gt; find line 34:  &amp;lt;pre&amp;gt; # dont use autobalance when i...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Prevent Commander and Squad Leaders from being autobalanced  ==&lt;br /&gt;
&lt;br /&gt;
In the file &amp;lt;tt&amp;gt;admin/standard_admin/autobalance.py&amp;lt;/tt&amp;gt; find line 34:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; # dont use autobalance when its suicide/changes team &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and before it, add:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
if p.isCommander(): return None&lt;br /&gt;
if p.isSquadLeader(): return None&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(from metac0m at pixel-war dot de)&lt;br /&gt;
&lt;br /&gt;
For a way to do this without changing any of the original BF2 files, see [[Cookbook:Dynamically_Changing_an_Event_Handler|Dynamically Changing an Event Handler]].&lt;br /&gt;
&lt;br /&gt;
==  Remove 12-minute time limit from demo server  ==&lt;br /&gt;
&lt;br /&gt;
Find the line&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; host.registerHandler(&amp;#039;TimeLimitReached&amp;#039;, onTimeLimitReached, 1) &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
in &amp;lt;tt&amp;gt;/mods/bf2/python/game\/gamemodes/gpm_cq.py&amp;lt;/tt&amp;gt; and comment it out (add a &amp;quot;#&amp;quot; in front of it). The game will still display a running timer, but once time runs out the timer will disappear and gameplay will continue until all tickets are gone for one side.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;WARNING&amp;#039;&amp;#039;&amp;#039;: EA [http://www.eagames.com/official/battlefield/battlefield2/us/editorial.jsp?src=communityupdate_061405 has said] that they consider this modification to be &amp;quot;hacking&amp;quot;, and will delist any server that uses it from GameSpy.&lt;br /&gt;
&lt;br /&gt;
==  Unlock all weapons on server  ==&lt;br /&gt;
&lt;br /&gt;
In &amp;lt;tt&amp;gt;python\bf2\stats\unlocks.py&amp;lt;/tt&amp;gt;, change the line&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; defaultUnlocks = [0, 0, 0, 0, 0, 0, 0] &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt; defaultUnlocks = [1, 1, 1, 1, 1, 1, 1] &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;WARNING&amp;#039;&amp;#039;&amp;#039;: EA [http://www.eagames.com/official/battlefield/battlefield2/us/editorial.jsp?src=communityupdate_061405 has said] that they consider this modification to be &amp;quot;hacking&amp;quot;, and will delist any server that uses it from GameSpy.&lt;br /&gt;
&lt;br /&gt;
NOTE - This method only works on the demo and version 1.0. In later patches EA has hardcoded the weapon unlocks into the game engine to stop this modification from working.&lt;br /&gt;
&lt;br /&gt;
Here are another way to do it in 1.02: [http://forums.totalbf2.com/showthread.php?t=17633&amp;amp;page=1 http://forums.totalbf2.com/showthread.php?t=17633&amp;amp;page=1]&lt;br /&gt;
&lt;br /&gt;
==  Skipping / Disabling the intro movies  ==&lt;br /&gt;
&lt;br /&gt;
In the file &amp;lt;tt&amp;gt;mods/bf2/Init.con&amp;lt;/tt&amp;gt; at the end of the file is a list of each of the intro movies:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
bf2Engine.playMovie Movies\EA.bik 1&lt;br /&gt;
bf2Engine.playMovie Movies\dice.bik 1&lt;br /&gt;
bf2Engine.playMovie Movies\legal.bik 1&lt;br /&gt;
bf2Engine.playMovie Movies\intro.bik 0&lt;br /&gt;
bf2Engine.playMovie Movies\welcome.bik 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you change the 1s at the end of each line to a 0, then you&amp;#039;ll be able to skip the movie by pressing escape. Alternatively, you can add the text &amp;#039;&amp;#039;&amp;#039;rem &amp;#039;&amp;#039;&amp;#039; to the begining of each line to disable the movie completely.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;WARNING&amp;#039;&amp;#039;&amp;#039;: This modification appears to cause problems with the punkbuster sanity check on the game, which makes it impossible to connect to a punkbuster enabled server. So it&amp;#039;s only really useful if you&amp;#039;re playing single player. In that case, you&amp;#039;ll want to rename the movies folder instead. Find this in mods/bf2&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;*ADDITION*&amp;#039;&amp;#039;&amp;#039; Rather than edit the script, which PunkBuster won&amp;#039;t like, just rename the following movies.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap&amp;quot;&amp;gt;&lt;br /&gt;
...path.to.game..\mods\bf2\Movies\EA.bik &amp;gt; ...path.to.game..\mods\bf2\Movies\noEA.bik&lt;br /&gt;
...path.to.game..\mods\bf2\Movies\dice.bik &amp;gt; ...path.to.game..\mods\bf2\Movies\nodice.bik&lt;br /&gt;
...path.to.game..\mods\bf2\Movies\legal.bik &amp;gt; ...path.to.game..\mods\bf2\Movies\nolegal.bik&lt;br /&gt;
...path.to.game..\mods\bf2\Movies\intro.bik &amp;gt; ...path.to.game..\mods\bf2\Movies\nointro.bik&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Put Line breaks in MOTD  ==&lt;br /&gt;
&lt;br /&gt;
The pipe character | acts as a line break in sv.welcomeMessage&lt;br /&gt;
&lt;br /&gt;
Another way to do the same function is to use the line break command /n The command is generally in most programming languages.&lt;br /&gt;
&lt;br /&gt;
Up to eight lines are allowed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Use stock Python modules not included in BF2 pylib  ==&lt;br /&gt;
&lt;br /&gt;
Some stock Python modules (such as binascii) aren&amp;#039;t included in the embedded interpreter with BF2. PyPy is a useful project that is implementing a Python interpreter in Python itself, so the code from there is useful:&lt;br /&gt;
&lt;br /&gt;
* [http://codespeak.net/pypy PyPy home page]&lt;br /&gt;
* [http://codespeak.net/download/pypy/ Download PyPy]&lt;/div&gt;</summary>
		<author><name>Pireax</name></author>
	</entry>
</feed>