


<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://bitfighter.org/wiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://bitfighter.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kaen</id>
		<title>Bitfighter - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://bitfighter.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kaen"/>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Special:Contributions/Kaen"/>
		<updated>2026-11-28T12:30:06Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.15</generator>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Building_Bitfighter</id>
		<title>Building Bitfighter</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Building_Bitfighter"/>
				<updated>2013-11-18T20:28:02Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* Shortcut for Debian Users */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
This page is dedicated to getting Bitfighter to build on your system of choice.  Some useful links:&lt;br /&gt;
*[http://code.google.com/p/bitfighter/source/list Changelog]&lt;br /&gt;
*[http://code.google.com/p/bitfighter/source/browse Browse source]&lt;br /&gt;
&lt;br /&gt;
Also, please see the README.txt included in the source.&lt;br /&gt;
&lt;br /&gt;
===Source Code===&lt;br /&gt;
Bitfighter uses Mercurial (hg) to manage the source code.  Here is some useful Mercurial information:&lt;br /&gt;
*[[Contribute_using_Mercurial]]&lt;br /&gt;
&lt;br /&gt;
The Bitfighter code can be found here:&lt;br /&gt;
*[http://code.google.com/p/bitfighter/source/checkout Source Checkout]&lt;br /&gt;
&lt;br /&gt;
If you have Mercurial installed, you can easily check out a copy of the source code by running this command in a terminal in a folder of your chosing:&lt;br /&gt;
 hg clone https://code.google.com/p/bitfighter/&lt;br /&gt;
&lt;br /&gt;
After checking out the code, if you don't want to compile the current development version, you can update to a specific released version.  To see a list of released versions, type in:&lt;br /&gt;
 hg tags&lt;br /&gt;
&lt;br /&gt;
We recommend to always chose the latest release as the build instructions for older releases will be different that what is shown here on this wiki page.  Update to a release that you want:&lt;br /&gt;
 hg up bitfighter-018a&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Windows===&lt;br /&gt;
====018a and earlier====&lt;br /&gt;
Bitfighter is built with MS Visual C++ 2010 Express Edition for versions 018a and earlier.  See the solution file at the root of the code tree.&lt;br /&gt;
&lt;br /&gt;
====019 (development) and later====&lt;br /&gt;
We have migrated to [CMake http://www.cmake.org/] for Windows builds in version 019 and later (and currently in the most recent development code). Note that we recommend using Visual Studio 2010 for the building environment on Windows.  To build:&lt;br /&gt;
&lt;br /&gt;
# Install CMake from http://www.cmake.org/&lt;br /&gt;
# In a terminal, change to the 'build' directory in the bitfighter source code tree.&lt;br /&gt;
# Run the following command (A list of CMake 'generators' for different build environments can be found [here http://www.cmake.org/cmake/help/v2.8.10/cmake.html#section_Generators]):  &lt;br /&gt;
#* cmake ..  &lt;br /&gt;
# Open the resulting Visual Studio solution file&lt;br /&gt;
&lt;br /&gt;
===Linux===&lt;br /&gt;
&lt;br /&gt;
====Shortcut for Debian Users====&lt;br /&gt;
Users of Debian-based distributions can run the following command to automatically build the latest revision of bitfighter from the Mercurial repository:&lt;br /&gt;
  wget -O- https://gist.github.com/kaen/6393623/raw | sh&lt;br /&gt;
&lt;br /&gt;
You will be prompted for your root password in order to install the build dependencies. This script executes the commands described below.&lt;br /&gt;
&lt;br /&gt;
====Detailed Instructions====&lt;br /&gt;
Bitfighter should build on any major flavor of Linux.  It has been tested and is known to work on Ubuntu, LinuxMint, Centos, Fedora, Debian, Mandriva and openSUSE. If you can not get it to work, you can try running it in wine: [http://www.winehq.org/]  &lt;br /&gt;
&lt;br /&gt;
Bitfighter has several common, open source dependencies:&lt;br /&gt;
* SDL&lt;br /&gt;
* zlib&lt;br /&gt;
* libpng&lt;br /&gt;
* openal&lt;br /&gt;
* libvorbis&lt;br /&gt;
* libspeex&lt;br /&gt;
* libmodplug&lt;br /&gt;
&lt;br /&gt;
You must install these '''and their development headers''' using your distribution's preferred method.  The development headers for these libraries have similar names with a suffix, for example:&lt;br /&gt;
* libvorbis-dev or vorbis-devel&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will also need the following to compile:&lt;br /&gt;
* cmake&lt;br /&gt;
* make&lt;br /&gt;
* gcc / g++&lt;br /&gt;
&lt;br /&gt;
Once your dependencies are installed, you can build bitfighter with these steps:&lt;br /&gt;
# cd build&lt;br /&gt;
# cmake ..&lt;br /&gt;
# make&lt;br /&gt;
&lt;br /&gt;
If you want to build a dedicated server (with no GUI), replace the 'make' step above with:&lt;br /&gt;
# make dedicated&lt;br /&gt;
&lt;br /&gt;
Next, you'll need to copy the resources to where the executable was built:&lt;br /&gt;
# cd ../exe&lt;br /&gt;
# cp -r ../resource/* .&lt;br /&gt;
&lt;br /&gt;
And if you wish to run in standalone mode, create a standalone.txt file in the 'exe' folder to trigger this mode:&lt;br /&gt;
# touch standalone.txt&lt;br /&gt;
&lt;br /&gt;
====Centos Dedicated Instructions====&lt;br /&gt;
'''Building a dedicated server on a typical clean Centos 5 or 6 virtual server instance'''&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# We recommend that you install and run a dedicated bitfighter server with a special user account &lt;br /&gt;
# used only for this purpose, that does not have root access.&lt;br /&gt;
&lt;br /&gt;
# These instructions are unusually long and complex due to the fact we were transitioning to a new&lt;br /&gt;
# build system when 018a was released.  019 will be easier!&lt;br /&gt;
&lt;br /&gt;
# Here we create a bitfighter user; you can skip this step if you want to use an existing account&lt;br /&gt;
useradd bitfighter       # Create the account&lt;br /&gt;
passwd bitfighter        # Set the password.  Pick a good one!&lt;br /&gt;
&lt;br /&gt;
# Do the following as a user that has sudo privileges&lt;br /&gt;
&lt;br /&gt;
sudo yum update    # system should be up to date&lt;br /&gt;
&lt;br /&gt;
# The following sets up the EPEL repository for extra packages (needed for mercurial)&lt;br /&gt;
# Choose one based on your server architecture&lt;br /&gt;
# 32 bit:&lt;br /&gt;
sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm&lt;br /&gt;
# 64 bit:&lt;br /&gt;
sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm&lt;br /&gt;
&lt;br /&gt;
sudo yum install mercurial gcc gcc-c++ zip ncurses-devel readline-devel patch cmake screen&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Do the following as the bitfighter user&lt;br /&gt;
su bitfighter&lt;br /&gt;
cd ~&lt;br /&gt;
&lt;br /&gt;
# Get the source code -- this will create a folder called bitfighter in your current location&lt;br /&gt;
# This may take a couple of minutes&lt;br /&gt;
hg clone https://code.google.com/p/bitfighter/&lt;br /&gt;
&lt;br /&gt;
# Update to the tag/revision you want&lt;br /&gt;
cd bitfighter&lt;br /&gt;
hg up bitfighter-018a&lt;br /&gt;
&lt;br /&gt;
# Apply some special patches to the build system for 018a&lt;br /&gt;
wget -O patch1.diff http://pastebin.com/raw.php?i=GKn4qbuC&lt;br /&gt;
wget -O patch2.diff http://pastebin.com/raw.php?i=wUzsxVp2&lt;br /&gt;
patch -p1 &amp;lt; patch1.diff&lt;br /&gt;
patch -p1 &amp;lt; patch2.diff&lt;br /&gt;
&lt;br /&gt;
# Delete a file added by the patches above that isn't acutally needed&lt;br /&gt;
rm cmake/Modules/FindZLIB.cmake&lt;br /&gt;
&lt;br /&gt;
# Build the dedicated server (called bitfighterd)&lt;br /&gt;
cd build&lt;br /&gt;
cmake ..          # This creates a Makefile for the next step; may emit warnings about PNG and ZLIB&lt;br /&gt;
make bitfighterd&lt;br /&gt;
&lt;br /&gt;
# Copy required files into exe folder (found at the root of the code tree):&lt;br /&gt;
cd ../exe&lt;br /&gt;
cp -r ../resource/* .&lt;br /&gt;
touch standalone.txt     # Tell bitfighterd to run in portable mode&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===OS X===&lt;br /&gt;
Bitfighter builds on OS X using Xcode 3 (3.1 or greater) but *not* Xcode 4 (yet).  You must have developer tools installed to build bitfighter on OS X!&lt;br /&gt;
(You can get them [http://developer.apple.com/technologies/tools/xcode.html from Apple].)&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If you don't wish to download Xcode with iOS integration (saves about 2GB off of downloading) you can get older versions on the [http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wo/5.1.17.2.1.3.3.1.0.1.1.0.3.3.3.3.1 developer downloads page].  Xcode 3.2.2 is the latest without iOS built in.&lt;br /&gt;
&lt;br /&gt;
To build in Xcode:&lt;br /&gt;
# Navigate through bitfighter &amp;gt; build &amp;gt; osx &amp;gt; Xcode &amp;gt; Bitfighter.xcodeproj&lt;br /&gt;
# Open Bitfighter.xcodeproj with Xcode.&lt;br /&gt;
# Click 'Build and Go' at the top.  Bitfighter should compile successfully and attempt to launch.&lt;br /&gt;
#*'''Note:''' building from trunk may NOT complete successfully and/or the launch may fail.&lt;br /&gt;
#Your new build will be found at Bitfighter &amp;gt; build &amp;gt; osx &amp;gt; build &amp;gt; Debug / release &amp;gt; *&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Notes====&lt;br /&gt;
# The bitfighter project also builds the tnl and libtomcrypt frameworks automatically before compiling the bitfighter source itself.&lt;br /&gt;
# The following frameworks are added automatically to the bundle:&lt;br /&gt;
#*libtomcrypt.framework&lt;br /&gt;
#*tnl.framework&lt;br /&gt;
#*Openal-Soft.framework&lt;br /&gt;
# Settings are found in $HOME/Library/Application Support/Bitfighter&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Building_Bitfighter</id>
		<title>Building Bitfighter</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Building_Bitfighter"/>
				<updated>2013-11-18T20:24:23Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* Linux */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
This page is dedicated to getting Bitfighter to build on your system of choice.  Some useful links:&lt;br /&gt;
*[http://code.google.com/p/bitfighter/source/list Changelog]&lt;br /&gt;
*[http://code.google.com/p/bitfighter/source/browse Browse source]&lt;br /&gt;
&lt;br /&gt;
Also, please see the README.txt included in the source.&lt;br /&gt;
&lt;br /&gt;
===Source Code===&lt;br /&gt;
Bitfighter uses Mercurial (hg) to manage the source code.  Here is some useful Mercurial information:&lt;br /&gt;
*[[Contribute_using_Mercurial]]&lt;br /&gt;
&lt;br /&gt;
The Bitfighter code can be found here:&lt;br /&gt;
*[http://code.google.com/p/bitfighter/source/checkout Source Checkout]&lt;br /&gt;
&lt;br /&gt;
If you have Mercurial installed, you can easily check out a copy of the source code by running this command in a terminal in a folder of your chosing:&lt;br /&gt;
 hg clone https://code.google.com/p/bitfighter/&lt;br /&gt;
&lt;br /&gt;
After checking out the code, if you don't want to compile the current development version, you can update to a specific released version.  To see a list of released versions, type in:&lt;br /&gt;
 hg tags&lt;br /&gt;
&lt;br /&gt;
We recommend to always chose the latest release as the build instructions for older releases will be different that what is shown here on this wiki page.  Update to a release that you want:&lt;br /&gt;
 hg up bitfighter-018a&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Windows===&lt;br /&gt;
====018a and earlier====&lt;br /&gt;
Bitfighter is built with MS Visual C++ 2010 Express Edition for versions 018a and earlier.  See the solution file at the root of the code tree.&lt;br /&gt;
&lt;br /&gt;
====019 (development) and later====&lt;br /&gt;
We have migrated to [CMake http://www.cmake.org/] for Windows builds in version 019 and later (and currently in the most recent development code). Note that we recommend using Visual Studio 2010 for the building environment on Windows.  To build:&lt;br /&gt;
&lt;br /&gt;
# Install CMake from http://www.cmake.org/&lt;br /&gt;
# In a terminal, change to the 'build' directory in the bitfighter source code tree.&lt;br /&gt;
# Run the following command (A list of CMake 'generators' for different build environments can be found [here http://www.cmake.org/cmake/help/v2.8.10/cmake.html#section_Generators]):  &lt;br /&gt;
#* cmake ..  &lt;br /&gt;
# Open the resulting Visual Studio solution file&lt;br /&gt;
&lt;br /&gt;
===Linux===&lt;br /&gt;
&lt;br /&gt;
====Shortcut for Debian Users====&lt;br /&gt;
Users of Debian-based distributions can run the following command to automatically build the latest revision of bitfighter from the Mercurial repository:&lt;br /&gt;
  wget -O- https://gist.github.com/kaen/6393623/raw | sh&lt;br /&gt;
&lt;br /&gt;
This executes the commands described below.&lt;br /&gt;
&lt;br /&gt;
====Detailed Instructions====&lt;br /&gt;
Bitfighter should build on any major flavor of Linux.  It has been tested and is known to work on Ubuntu, LinuxMint, Centos, Fedora, Debian, Mandriva and openSUSE. If you can not get it to work, you can try running it in wine: [http://www.winehq.org/]  &lt;br /&gt;
&lt;br /&gt;
Bitfighter has several common, open source dependencies:&lt;br /&gt;
* SDL&lt;br /&gt;
* zlib&lt;br /&gt;
* libpng&lt;br /&gt;
* openal&lt;br /&gt;
* libvorbis&lt;br /&gt;
* libspeex&lt;br /&gt;
* libmodplug&lt;br /&gt;
&lt;br /&gt;
You must install these '''and their development headers''' using your distribution's preferred method.  The development headers for these libraries have similar names with a suffix, for example:&lt;br /&gt;
* libvorbis-dev or vorbis-devel&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will also need the following to compile:&lt;br /&gt;
* cmake&lt;br /&gt;
* make&lt;br /&gt;
* gcc / g++&lt;br /&gt;
&lt;br /&gt;
Once your dependencies are installed, you can build bitfighter with these steps:&lt;br /&gt;
# cd build&lt;br /&gt;
# cmake ..&lt;br /&gt;
# make&lt;br /&gt;
&lt;br /&gt;
If you want to build a dedicated server (with no GUI), replace the 'make' step above with:&lt;br /&gt;
# make dedicated&lt;br /&gt;
&lt;br /&gt;
Next, you'll need to copy the resources to where the executable was built:&lt;br /&gt;
# cd ../exe&lt;br /&gt;
# cp -r ../resource/* .&lt;br /&gt;
&lt;br /&gt;
And if you wish to run in standalone mode, create a standalone.txt file in the 'exe' folder to trigger this mode:&lt;br /&gt;
# touch standalone.txt&lt;br /&gt;
&lt;br /&gt;
====Centos Dedicated Instructions====&lt;br /&gt;
'''Building a dedicated server on a typical clean Centos 5 or 6 virtual server instance'''&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# We recommend that you install and run a dedicated bitfighter server with a special user account &lt;br /&gt;
# used only for this purpose, that does not have root access.&lt;br /&gt;
&lt;br /&gt;
# These instructions are unusually long and complex due to the fact we were transitioning to a new&lt;br /&gt;
# build system when 018a was released.  019 will be easier!&lt;br /&gt;
&lt;br /&gt;
# Here we create a bitfighter user; you can skip this step if you want to use an existing account&lt;br /&gt;
useradd bitfighter       # Create the account&lt;br /&gt;
passwd bitfighter        # Set the password.  Pick a good one!&lt;br /&gt;
&lt;br /&gt;
# Do the following as a user that has sudo privileges&lt;br /&gt;
&lt;br /&gt;
sudo yum update    # system should be up to date&lt;br /&gt;
&lt;br /&gt;
# The following sets up the EPEL repository for extra packages (needed for mercurial)&lt;br /&gt;
# Choose one based on your server architecture&lt;br /&gt;
# 32 bit:&lt;br /&gt;
sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm&lt;br /&gt;
# 64 bit:&lt;br /&gt;
sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm&lt;br /&gt;
&lt;br /&gt;
sudo yum install mercurial gcc gcc-c++ zip ncurses-devel readline-devel patch cmake screen&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Do the following as the bitfighter user&lt;br /&gt;
su bitfighter&lt;br /&gt;
cd ~&lt;br /&gt;
&lt;br /&gt;
# Get the source code -- this will create a folder called bitfighter in your current location&lt;br /&gt;
# This may take a couple of minutes&lt;br /&gt;
hg clone https://code.google.com/p/bitfighter/&lt;br /&gt;
&lt;br /&gt;
# Update to the tag/revision you want&lt;br /&gt;
cd bitfighter&lt;br /&gt;
hg up bitfighter-018a&lt;br /&gt;
&lt;br /&gt;
# Apply some special patches to the build system for 018a&lt;br /&gt;
wget -O patch1.diff http://pastebin.com/raw.php?i=GKn4qbuC&lt;br /&gt;
wget -O patch2.diff http://pastebin.com/raw.php?i=wUzsxVp2&lt;br /&gt;
patch -p1 &amp;lt; patch1.diff&lt;br /&gt;
patch -p1 &amp;lt; patch2.diff&lt;br /&gt;
&lt;br /&gt;
# Delete a file added by the patches above that isn't acutally needed&lt;br /&gt;
rm cmake/Modules/FindZLIB.cmake&lt;br /&gt;
&lt;br /&gt;
# Build the dedicated server (called bitfighterd)&lt;br /&gt;
cd build&lt;br /&gt;
cmake ..          # This creates a Makefile for the next step; may emit warnings about PNG and ZLIB&lt;br /&gt;
make bitfighterd&lt;br /&gt;
&lt;br /&gt;
# Copy required files into exe folder (found at the root of the code tree):&lt;br /&gt;
cd ../exe&lt;br /&gt;
cp -r ../resource/* .&lt;br /&gt;
touch standalone.txt     # Tell bitfighterd to run in portable mode&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===OS X===&lt;br /&gt;
Bitfighter builds on OS X using Xcode 3 (3.1 or greater) but *not* Xcode 4 (yet).  You must have developer tools installed to build bitfighter on OS X!&lt;br /&gt;
(You can get them [http://developer.apple.com/technologies/tools/xcode.html from Apple].)&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If you don't wish to download Xcode with iOS integration (saves about 2GB off of downloading) you can get older versions on the [http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wo/5.1.17.2.1.3.3.1.0.1.1.0.3.3.3.3.1 developer downloads page].  Xcode 3.2.2 is the latest without iOS built in.&lt;br /&gt;
&lt;br /&gt;
To build in Xcode:&lt;br /&gt;
# Navigate through bitfighter &amp;gt; build &amp;gt; osx &amp;gt; Xcode &amp;gt; Bitfighter.xcodeproj&lt;br /&gt;
# Open Bitfighter.xcodeproj with Xcode.&lt;br /&gt;
# Click 'Build and Go' at the top.  Bitfighter should compile successfully and attempt to launch.&lt;br /&gt;
#*'''Note:''' building from trunk may NOT complete successfully and/or the launch may fail.&lt;br /&gt;
#Your new build will be found at Bitfighter &amp;gt; build &amp;gt; osx &amp;gt; build &amp;gt; Debug / release &amp;gt; *&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Notes====&lt;br /&gt;
# The bitfighter project also builds the tnl and libtomcrypt frameworks automatically before compiling the bitfighter source itself.&lt;br /&gt;
# The following frameworks are added automatically to the bundle:&lt;br /&gt;
#*libtomcrypt.framework&lt;br /&gt;
#*tnl.framework&lt;br /&gt;
#*Openal-Soft.framework&lt;br /&gt;
# Settings are found in $HOME/Library/Application Support/Bitfighter&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Building_Bitfighter</id>
		<title>Building Bitfighter</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Building_Bitfighter"/>
				<updated>2013-11-18T20:23:25Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
This page is dedicated to getting Bitfighter to build on your system of choice.  Some useful links:&lt;br /&gt;
*[http://code.google.com/p/bitfighter/source/list Changelog]&lt;br /&gt;
*[http://code.google.com/p/bitfighter/source/browse Browse source]&lt;br /&gt;
&lt;br /&gt;
Also, please see the README.txt included in the source.&lt;br /&gt;
&lt;br /&gt;
===Source Code===&lt;br /&gt;
Bitfighter uses Mercurial (hg) to manage the source code.  Here is some useful Mercurial information:&lt;br /&gt;
*[[Contribute_using_Mercurial]]&lt;br /&gt;
&lt;br /&gt;
The Bitfighter code can be found here:&lt;br /&gt;
*[http://code.google.com/p/bitfighter/source/checkout Source Checkout]&lt;br /&gt;
&lt;br /&gt;
If you have Mercurial installed, you can easily check out a copy of the source code by running this command in a terminal in a folder of your chosing:&lt;br /&gt;
 hg clone https://code.google.com/p/bitfighter/&lt;br /&gt;
&lt;br /&gt;
After checking out the code, if you don't want to compile the current development version, you can update to a specific released version.  To see a list of released versions, type in:&lt;br /&gt;
 hg tags&lt;br /&gt;
&lt;br /&gt;
We recommend to always chose the latest release as the build instructions for older releases will be different that what is shown here on this wiki page.  Update to a release that you want:&lt;br /&gt;
 hg up bitfighter-018a&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Windows===&lt;br /&gt;
====018a and earlier====&lt;br /&gt;
Bitfighter is built with MS Visual C++ 2010 Express Edition for versions 018a and earlier.  See the solution file at the root of the code tree.&lt;br /&gt;
&lt;br /&gt;
====019 (development) and later====&lt;br /&gt;
We have migrated to [CMake http://www.cmake.org/] for Windows builds in version 019 and later (and currently in the most recent development code). Note that we recommend using Visual Studio 2010 for the building environment on Windows.  To build:&lt;br /&gt;
&lt;br /&gt;
# Install CMake from http://www.cmake.org/&lt;br /&gt;
# In a terminal, change to the 'build' directory in the bitfighter source code tree.&lt;br /&gt;
# Run the following command (A list of CMake 'generators' for different build environments can be found [here http://www.cmake.org/cmake/help/v2.8.10/cmake.html#section_Generators]):  &lt;br /&gt;
#* cmake ..  &lt;br /&gt;
# Open the resulting Visual Studio solution file&lt;br /&gt;
&lt;br /&gt;
===Linux===&lt;br /&gt;
Users of Debian-based distributions can run the following command to automatically build the latest revision of bitfighter from the Mercurial repository:&lt;br /&gt;
  wget -O- https://gist.github.com/kaen/6393623/raw | sh&lt;br /&gt;
&lt;br /&gt;
This executes the commands described below.&lt;br /&gt;
&lt;br /&gt;
Bitfighter should build on any major flavor of Linux.  It has been tested and is known to work on Ubuntu, LinuxMint, Centos, Fedora, Debian, Mandriva and openSUSE. If you can not get it to work, you can try running it in wine: [http://www.winehq.org/]  &lt;br /&gt;
&lt;br /&gt;
Bitfighter has several common, open source dependencies:&lt;br /&gt;
* SDL&lt;br /&gt;
* zlib&lt;br /&gt;
* libpng&lt;br /&gt;
* openal&lt;br /&gt;
* libvorbis&lt;br /&gt;
* libspeex&lt;br /&gt;
* libmodplug&lt;br /&gt;
&lt;br /&gt;
You must install these '''and their development headers''' using your distribution's preferred method.  The development headers for these libraries have similar names with a suffix, for example:&lt;br /&gt;
* libvorbis-dev or vorbis-devel&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will also need the following to compile:&lt;br /&gt;
* cmake&lt;br /&gt;
* make&lt;br /&gt;
* gcc / g++&lt;br /&gt;
&lt;br /&gt;
Once your dependencies are installed, you can build bitfighter with these steps:&lt;br /&gt;
# cd build&lt;br /&gt;
# cmake ..&lt;br /&gt;
# make&lt;br /&gt;
&lt;br /&gt;
If you want to build a dedicated server (with no GUI), replace the 'make' step above with:&lt;br /&gt;
# make dedicated&lt;br /&gt;
&lt;br /&gt;
Next, you'll need to copy the resources to where the executable was built:&lt;br /&gt;
# cd ../exe&lt;br /&gt;
# cp -r ../resource/* .&lt;br /&gt;
&lt;br /&gt;
And if you wish to run in standalone mode, create a standalone.txt file in the 'exe' folder to trigger this mode:&lt;br /&gt;
# touch standalone.txt&lt;br /&gt;
&lt;br /&gt;
====Centos Dedicated Instructions====&lt;br /&gt;
'''Building a dedicated server on a typical clean Centos 5 or 6 virtual server instance'''&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# We recommend that you install and run a dedicated bitfighter server with a special user account &lt;br /&gt;
# used only for this purpose, that does not have root access.&lt;br /&gt;
&lt;br /&gt;
# These instructions are unusually long and complex due to the fact we were transitioning to a new&lt;br /&gt;
# build system when 018a was released.  019 will be easier!&lt;br /&gt;
&lt;br /&gt;
# Here we create a bitfighter user; you can skip this step if you want to use an existing account&lt;br /&gt;
useradd bitfighter       # Create the account&lt;br /&gt;
passwd bitfighter        # Set the password.  Pick a good one!&lt;br /&gt;
&lt;br /&gt;
# Do the following as a user that has sudo privileges&lt;br /&gt;
&lt;br /&gt;
sudo yum update    # system should be up to date&lt;br /&gt;
&lt;br /&gt;
# The following sets up the EPEL repository for extra packages (needed for mercurial)&lt;br /&gt;
# Choose one based on your server architecture&lt;br /&gt;
# 32 bit:&lt;br /&gt;
sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm&lt;br /&gt;
# 64 bit:&lt;br /&gt;
sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm&lt;br /&gt;
&lt;br /&gt;
sudo yum install mercurial gcc gcc-c++ zip ncurses-devel readline-devel patch cmake screen&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Do the following as the bitfighter user&lt;br /&gt;
su bitfighter&lt;br /&gt;
cd ~&lt;br /&gt;
&lt;br /&gt;
# Get the source code -- this will create a folder called bitfighter in your current location&lt;br /&gt;
# This may take a couple of minutes&lt;br /&gt;
hg clone https://code.google.com/p/bitfighter/&lt;br /&gt;
&lt;br /&gt;
# Update to the tag/revision you want&lt;br /&gt;
cd bitfighter&lt;br /&gt;
hg up bitfighter-018a&lt;br /&gt;
&lt;br /&gt;
# Apply some special patches to the build system for 018a&lt;br /&gt;
wget -O patch1.diff http://pastebin.com/raw.php?i=GKn4qbuC&lt;br /&gt;
wget -O patch2.diff http://pastebin.com/raw.php?i=wUzsxVp2&lt;br /&gt;
patch -p1 &amp;lt; patch1.diff&lt;br /&gt;
patch -p1 &amp;lt; patch2.diff&lt;br /&gt;
&lt;br /&gt;
# Delete a file added by the patches above that isn't acutally needed&lt;br /&gt;
rm cmake/Modules/FindZLIB.cmake&lt;br /&gt;
&lt;br /&gt;
# Build the dedicated server (called bitfighterd)&lt;br /&gt;
cd build&lt;br /&gt;
cmake ..          # This creates a Makefile for the next step; may emit warnings about PNG and ZLIB&lt;br /&gt;
make bitfighterd&lt;br /&gt;
&lt;br /&gt;
# Copy required files into exe folder (found at the root of the code tree):&lt;br /&gt;
cd ../exe&lt;br /&gt;
cp -r ../resource/* .&lt;br /&gt;
touch standalone.txt     # Tell bitfighterd to run in portable mode&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===OS X===&lt;br /&gt;
Bitfighter builds on OS X using Xcode 3 (3.1 or greater) but *not* Xcode 4 (yet).  You must have developer tools installed to build bitfighter on OS X!&lt;br /&gt;
(You can get them [http://developer.apple.com/technologies/tools/xcode.html from Apple].)&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If you don't wish to download Xcode with iOS integration (saves about 2GB off of downloading) you can get older versions on the [http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wo/5.1.17.2.1.3.3.1.0.1.1.0.3.3.3.3.1 developer downloads page].  Xcode 3.2.2 is the latest without iOS built in.&lt;br /&gt;
&lt;br /&gt;
To build in Xcode:&lt;br /&gt;
# Navigate through bitfighter &amp;gt; build &amp;gt; osx &amp;gt; Xcode &amp;gt; Bitfighter.xcodeproj&lt;br /&gt;
# Open Bitfighter.xcodeproj with Xcode.&lt;br /&gt;
# Click 'Build and Go' at the top.  Bitfighter should compile successfully and attempt to launch.&lt;br /&gt;
#*'''Note:''' building from trunk may NOT complete successfully and/or the launch may fail.&lt;br /&gt;
#Your new build will be found at Bitfighter &amp;gt; build &amp;gt; osx &amp;gt; build &amp;gt; Debug / release &amp;gt; *&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Notes====&lt;br /&gt;
# The bitfighter project also builds the tnl and libtomcrypt frameworks automatically before compiling the bitfighter source itself.&lt;br /&gt;
# The following frameworks are added automatically to the bundle:&lt;br /&gt;
#*libtomcrypt.framework&lt;br /&gt;
#*tnl.framework&lt;br /&gt;
#*Openal-Soft.framework&lt;br /&gt;
# Settings are found in $HOME/Library/Application Support/Bitfighter&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_03</id>
		<title>Levelgen Tutorial 03</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_03"/>
				<updated>2013-10-10T22:30:18Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: Add tutorial 03 stub&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripting]]&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
Welcome to Part 03 of the Levelgen Tutorial. In this lesson, we will learn about &amp;quot;events&amp;quot; in Bitfighter, and how to perform an action when an event occurs.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
You should have completed [[Levelgen Tutorial 02]]. Specifically, you should know:&lt;br /&gt;
* All of the prerequesites for Tutorial 02.&lt;br /&gt;
* How to create a new game object and add it to the game.&lt;br /&gt;
* How to set the text of a &amp;lt;tt&amp;gt;TextItem&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Outcomes ==&lt;br /&gt;
When finished with this tutorial, you should know:&lt;br /&gt;
* How to subscribe to an event&lt;br /&gt;
* How to use the information Bitfighter provides about an event&lt;br /&gt;
&lt;br /&gt;
= Conclusion =&lt;br /&gt;
If you understand everything mentioned in the Outcomes section above, you are ready for [[Levelgen Tutorial 04]].&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_02</id>
		<title>Levelgen Tutorial 02</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_02"/>
				<updated>2013-10-10T22:22:47Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: levelgen -&amp;gt; bf&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripting]]&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
Welcome to Part 02 of the Levelgen Tutorial. In this lesson, we will learn how to create new game objects, and add them to the level.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
You should have completed [[Levelgen Tutorial 01]]. Specifically, you should know:&lt;br /&gt;
* How to create levelgen scripts and use them in a file.&lt;br /&gt;
* What the &amp;lt;tt&amp;gt;main()&amp;lt;/tt&amp;gt; function is for.&lt;br /&gt;
&lt;br /&gt;
== Outcomes ==&lt;br /&gt;
When finished with this tutorial, you should know:&lt;br /&gt;
* How to create a new &amp;lt;tt&amp;gt;TextItem&amp;lt;/tt&amp;gt; and add it to the game.&lt;br /&gt;
* How to set the text of a &amp;lt;tt&amp;gt;TextItem&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
= Code =&lt;br /&gt;
&lt;br /&gt;
Save the following code as a .levelgen file, and create an empty level which uses it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&lt;br /&gt;
  local myTextItem = TextItem.new()&lt;br /&gt;
  myTextItem:setText(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
  bf:addItem(myTextItem)&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now test the level. If everything went well you should see a text item that says &amp;quot;Hello World!&amp;quot; right in the center of your empty level. Behold, the magic of levelgens!&lt;br /&gt;
&lt;br /&gt;
If it didn't work, check the [[Troubleshooting]] page of the wiki.&lt;br /&gt;
&lt;br /&gt;
= How It Works =&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
As in every levelgen, we put the main chunk of code in the &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; function.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  local myTextItem = TextItem.new()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Here we are creating a new TextItem and storing it into the variable &amp;lt;tt&amp;gt;myTextItem&amp;lt;/tt&amp;gt; for later use. Remember that variables can refer to anything in Lua, whether it be a number, a string of text, a game object, or &amp;quot;nothing&amp;quot;. Here, it's referring to our new TextItem, which is a game object.&lt;br /&gt;
&lt;br /&gt;
Now we will set the text of this TextItem to say hello:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  myTextItem:setText(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This line means &amp;quot;set the text of &amp;lt;tt&amp;gt;myTextItem&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;Hello, world!&amp;lt;/tt&amp;gt;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The part before the colon (the &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt; sign) is our variable name (&amp;lt;tt&amp;gt;myTextItem&amp;lt;/tt&amp;gt;). The part after it is the function we're calling (&amp;lt;tt&amp;gt;setText&amp;lt;/tt&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
Again, we are passing some text as the argument to a function. This time, it is &amp;lt;tt&amp;gt;setText&amp;lt;/tt&amp;gt; instead of &amp;lt;tt&amp;gt;print&amp;lt;/tt&amp;gt;, but as you can see there is not much of a difference in how we write it.&lt;br /&gt;
&lt;br /&gt;
Next, we must actually add our TextItem to the game:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  bf:addItem(myTextItem)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
After creating our TextItem and setting it up as we'd like, we must add it to the game. To do this, we call &amp;lt;tt&amp;gt;bf:addItem&amp;lt;/tt&amp;gt;. &amp;lt;tt&amp;gt;bf&amp;lt;/tt&amp;gt; is a variable which is predefined by Bitfighter when it runs a lua script. This variable represents the currently running script, and provides functions for doing things to the game. &amp;lt;tt&amp;gt;bf:addItem&amp;lt;/tt&amp;gt; takes one argument, the object to add to the game. In this case, it is our TextItem instace, &amp;lt;tt&amp;gt;myTextItem&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
''Note:'' If you do not call &amp;lt;tt&amp;gt;bf:addItem&amp;lt;/tt&amp;gt; on objects you create with &amp;lt;tt&amp;gt;.new()&amp;lt;/tt&amp;gt;, they will not appear in-game.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
And again, we end our &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; function.&lt;br /&gt;
&lt;br /&gt;
= Conclusion =&lt;br /&gt;
If you understand everything mentioned in the Outcomes section above, you are ready for [[Levelgen Tutorial 03]].&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_02</id>
		<title>Levelgen Tutorial 02</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_02"/>
				<updated>2013-08-11T19:26:59Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* How It Works */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripting]]&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
Welcome to Part 02 of the Levelgen Tutorial. In this lesson, we will learn how to create new game objects, and add them to the level.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
You should have completed [[Levelgen Tutorial 01]]. Specifically, you should know:&lt;br /&gt;
* How to create levelgen scripts and use them in a file.&lt;br /&gt;
* What the &amp;lt;tt&amp;gt;main()&amp;lt;/tt&amp;gt; function is for.&lt;br /&gt;
&lt;br /&gt;
== Outcomes ==&lt;br /&gt;
When finished with this tutorial, you should know:&lt;br /&gt;
* How to create a new &amp;lt;tt&amp;gt;TextItem&amp;lt;/tt&amp;gt; and add it to the game.&lt;br /&gt;
* How to set the text of a &amp;lt;tt&amp;gt;TextItem&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
= Code =&lt;br /&gt;
&lt;br /&gt;
Save the following code as a .levelgen file, and create an empty level which uses it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&lt;br /&gt;
  local myTextItem = TextItem.new()&lt;br /&gt;
  myTextItem:setText(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
  levelgen:addItem(myTextItem)&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now test the level. If everything went well you should see a text item that says &amp;quot;Hello World!&amp;quot; right in the center of your empty level. Behold, the magic of levelgens!&lt;br /&gt;
&lt;br /&gt;
If it didn't work, check the [[Troubleshooting]] page of the wiki.&lt;br /&gt;
&lt;br /&gt;
= How It Works =&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
As in every levelgen, we put the main chunk of code in the &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; function.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  local myTextItem = TextItem.new()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Here we are creating a new TextItem and storing it into the variable &amp;lt;tt&amp;gt;myTextItem&amp;lt;/tt&amp;gt; for later use. Remember that variables can refer to anything in Lua, whether it be a number, a string of text, a game object, or &amp;quot;nothing&amp;quot;. Here, it's referring to our new TextItem, which is a game object.&lt;br /&gt;
&lt;br /&gt;
Now we will set the text of this TextItem to say hello:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  myTextItem:setText(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This line means &amp;quot;set the text of &amp;lt;tt&amp;gt;myTextItem&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;Hello, world!&amp;lt;/tt&amp;gt;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The part before the colon (the &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt; sign) is our variable name (&amp;lt;tt&amp;gt;myTextItem&amp;lt;/tt&amp;gt;). The part after it is the function we're calling (&amp;lt;tt&amp;gt;setText&amp;lt;/tt&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
Again, we are passing some text as the argument to a function. This time, it is &amp;lt;tt&amp;gt;setText&amp;lt;/tt&amp;gt; instead of &amp;lt;tt&amp;gt;print&amp;lt;/tt&amp;gt;, but as you can see there is not much of a difference in how we write it.&lt;br /&gt;
&lt;br /&gt;
Next, we must actually add our TextItem to the game:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  levelgen:addItem(myTextItem)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
After creating our TextItem and setting it up as we'd like, we must add it to the game. To do this, we call &amp;lt;tt&amp;gt;levelgen:addItem&amp;lt;/tt&amp;gt;. &amp;lt;tt&amp;gt;levelgen&amp;lt;/tt&amp;gt; is a variable which is predefined by Bitfighter when it runs a levelgen script. This variable represents the currently running script, and provides functions for doing things to the game. &amp;lt;tt&amp;gt;levelgen:addItem&amp;lt;/tt&amp;gt; takes one argument, the object to add to the game. In this case, it is our TextItem instace, &amp;lt;tt&amp;gt;myTextItem&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
''Note:'' If you do not call &amp;lt;tt&amp;gt;levelgen:addItem&amp;lt;/tt&amp;gt; on objects you create with &amp;lt;tt&amp;gt;.new()&amp;lt;/tt&amp;gt;, they will not appear in-game.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
And again, we end our &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; function.&lt;br /&gt;
&lt;br /&gt;
= Conclusion =&lt;br /&gt;
If you understand everything mentioned in the Outcomes section above, you are ready for [[Levelgen Tutorial 03]].&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_02</id>
		<title>Levelgen Tutorial 02</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_02"/>
				<updated>2013-08-11T19:25:47Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* Prerequisites */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripting]]&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
Welcome to Part 02 of the Levelgen Tutorial. In this lesson, we will learn how to create new game objects, and add them to the level.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
You should have completed [[Levelgen Tutorial 01]]. Specifically, you should know:&lt;br /&gt;
* How to create levelgen scripts and use them in a file.&lt;br /&gt;
* What the &amp;lt;tt&amp;gt;main()&amp;lt;/tt&amp;gt; function is for.&lt;br /&gt;
&lt;br /&gt;
== Outcomes ==&lt;br /&gt;
When finished with this tutorial, you should know:&lt;br /&gt;
* How to create a new &amp;lt;tt&amp;gt;TextItem&amp;lt;/tt&amp;gt; and add it to the game.&lt;br /&gt;
* How to set the text of a &amp;lt;tt&amp;gt;TextItem&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
= Code =&lt;br /&gt;
&lt;br /&gt;
Save the following code as a .levelgen file, and create an empty level which uses it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&lt;br /&gt;
  local myTextItem = TextItem.new()&lt;br /&gt;
  myTextItem:setText(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
  levelgen:addItem(myTextItem)&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now test the level. If everything went well you should see a text item that says &amp;quot;Hello World!&amp;quot; right in the center of your empty level. Behold, the magic of levelgens!&lt;br /&gt;
&lt;br /&gt;
If it didn't work, check the [[Troubleshooting]] page of the wiki.&lt;br /&gt;
&lt;br /&gt;
= How It Works =&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
As in every levelgen, we put the main chunk of code in the &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; function.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  local myTextItem = TextItem.new()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Here we are creating a new TextItem and storing it into the variable &amp;lt;tt&amp;gt;myTextItem&amp;lt;/tt&amp;gt; for later use. Remember that variables can refer to anything in Lua, whether it be a number, a string of text, a game object, or &amp;quot;nothing&amp;quot;. Here, it's referring to our new TextItem, which is a game object.&lt;br /&gt;
&lt;br /&gt;
Now we will set the text of this TextItem to say hello:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  myTextItem:setText(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This line means &amp;quot;set the text of &amp;lt;tt&amp;gt;myTextItem&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;Hello, world!&amp;lt;/tt&amp;gt;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The part before the colon (the &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt; sign) is our variable name (&amp;lt;tt&amp;gt;myTextItem&amp;lt;/tt&amp;gt;). The part after it is the function we're calling (&amp;lt;tt&amp;gt;setText&amp;lt;/tt&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
Again, we are passing some text as the argument to a function. This time, it is &amp;lt;tt&amp;gt;setText&amp;lt;/tt&amp;gt; instead of &amp;lt;tt&amp;gt;print&amp;lt;/tt&amp;gt;, but as you can see there is not much of a difference in how we write it.&lt;br /&gt;
&lt;br /&gt;
Next, we must actually add our TextItem to the game:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  levelgen:addItem(myTextItem)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
After creating our TextItem and setting it up as we'd like, we must add it to the game. To do this, we call &amp;lt;tt&amp;gt;levelgen:addItem&amp;lt;/tt&amp;gt;. &amp;lt;tt&amp;gt;levelgen&amp;lt;/tt&amp;gt; is a variable which is predefined by Bitfighter when it runs a levelgen script. This variable represents the currently running script, and provides functions for doing things to the game. &amp;lt;tt&amp;gt;levelgen:addItem&amp;lt;/tt&amp;gt; takes one argument, the object to add to the game. In this case, it is our TextItem instace, `myTextItem`.&lt;br /&gt;
&lt;br /&gt;
''Note:'' If you do not call &amp;lt;tt&amp;gt;addItem&amp;lt;/tt&amp;gt; on objects you create with &amp;lt;tt&amp;gt;.new()&amp;lt;/tt&amp;gt;, they will not appear in-game.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
And again, we end our &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; function.&lt;br /&gt;
&lt;br /&gt;
= Conclusion =&lt;br /&gt;
If you understand everything mentioned in the Outcomes section above, you are ready for [[Levelgen Tutorial 03]].&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_02</id>
		<title>Levelgen Tutorial 02</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_02"/>
				<updated>2013-08-09T12:27:45Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: textItem -&amp;gt; myTextItem&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripting]]&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
Welcome to Part 02 of the Levelgen Tutorial. In this lesson, we will learn how to create new game objects, and add them to the level.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
You should have completed [[Levelgen Tutorial 01]]. Specifically, you should know:&lt;br /&gt;
* How to create and use levelgen files in a level.&lt;br /&gt;
* What the &amp;lt;tt&amp;gt;main()&amp;lt;/tt&amp;gt; function is for.&lt;br /&gt;
&lt;br /&gt;
== Outcomes ==&lt;br /&gt;
When finished with this tutorial, you should know:&lt;br /&gt;
* How to create a new &amp;lt;tt&amp;gt;TextItem&amp;lt;/tt&amp;gt; and add it to the game.&lt;br /&gt;
* How to set the text of a &amp;lt;tt&amp;gt;TextItem&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
= Code =&lt;br /&gt;
&lt;br /&gt;
Save the following code as a .levelgen file, and create an empty level which uses it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&lt;br /&gt;
  local myTextItem = TextItem.new()&lt;br /&gt;
  myTextItem:setText(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
  levelgen:addItem(myTextItem)&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now test the level. If everything went well you should see a text item that says &amp;quot;Hello World!&amp;quot; right in the center of your empty level. Behold, the magic of levelgens!&lt;br /&gt;
&lt;br /&gt;
If it didn't work, check the [[Troubleshooting]] page of the wiki.&lt;br /&gt;
&lt;br /&gt;
= How It Works =&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
As in every levelgen, we put the main chunk of code in the &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; function.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  local myTextItem = TextItem.new()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Here we are creating a new TextItem and storing it into the variable &amp;lt;tt&amp;gt;myTextItem&amp;lt;/tt&amp;gt; for later use. Remember that variables can refer to anything in Lua, whether it be a number, a string of text, a game object, or &amp;quot;nothing&amp;quot;. Here, it's referring to our new TextItem, which is a game object.&lt;br /&gt;
&lt;br /&gt;
Now we will set the text of this TextItem to say hello:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  myTextItem:setText(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This line means &amp;quot;set the text of &amp;lt;tt&amp;gt;myTextItem&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;Hello, world!&amp;lt;/tt&amp;gt;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The part before the colon (the &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt; sign) is our variable name (&amp;lt;tt&amp;gt;myTextItem&amp;lt;/tt&amp;gt;). The part after it is the function we're calling (&amp;lt;tt&amp;gt;setText&amp;lt;/tt&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
Again, we are passing some text as the argument to a function. This time, it is &amp;lt;tt&amp;gt;setText&amp;lt;/tt&amp;gt; instead of &amp;lt;tt&amp;gt;print&amp;lt;/tt&amp;gt;, but as you can see there is not much of a difference in how we write it.&lt;br /&gt;
&lt;br /&gt;
Next, we must actually add our TextItem to the game:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  levelgen:addItem(myTextItem)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
After creating our TextItem and setting it up as we'd like, we must add it to the game. To do this, we call &amp;lt;tt&amp;gt;levelgen:addItem&amp;lt;/tt&amp;gt;. &amp;lt;tt&amp;gt;levelgen&amp;lt;/tt&amp;gt; is a variable which is predefined by Bitfighter when it runs a levelgen script. This variable represents the currently running script, and provides functions for doing things to the game. &amp;lt;tt&amp;gt;levelgen:addItem&amp;lt;/tt&amp;gt; takes one argument, the object to add to the game. In this case, it is our TextItem instace, `myTextItem`.&lt;br /&gt;
&lt;br /&gt;
''Note:'' If you do not call &amp;lt;tt&amp;gt;addItem&amp;lt;/tt&amp;gt; on objects you create with &amp;lt;tt&amp;gt;.new()&amp;lt;/tt&amp;gt;, they will not appear in-game.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
And again, we end our &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; function.&lt;br /&gt;
&lt;br /&gt;
= Conclusion =&lt;br /&gt;
If you understand everything mentioned in the Outcomes section above, you are ready for [[Levelgen Tutorial 03]].&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Programming_Crash_Course</id>
		<title>Programming Crash Course</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Programming_Crash_Course"/>
				<updated>2013-08-09T11:52:01Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* Functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripting]]&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
While scripting in Bitfighter is meant to be as simple as possible, one can not escape the fact that you are writing a computer program. In order to learn, read, or speak about programming, you have to understand the basic concepts and vocabulary that all programmers use.&lt;br /&gt;
&lt;br /&gt;
This page is meant to be a light introduction to programming concepts as they apply to Bitfighter scripting.&lt;br /&gt;
&lt;br /&gt;
= What is a Program? =&lt;br /&gt;
People say that computers &amp;quot;speak in ones and zeroes&amp;quot;. This is only half true. Humans don't speak ones and zeroes, and computers can only do what a human has told them how to do. For that reason we need a language that both humans and computers can understand, somewhere in between human languages like English and the computer languages of zeroes and ones. We call these &amp;quot;programming languages&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;program&amp;quot; or &amp;quot;script&amp;quot; is a file written in a programming language by a human, and which is meant to be run by a computer.&lt;br /&gt;
&lt;br /&gt;
A script is run from top to bottom, just like humans normally read. The computer reads one line at a time, and runs each line as it comes to it.&lt;br /&gt;
&lt;br /&gt;
= Variables =&lt;br /&gt;
A variable in programming is related to variables in math. They are used to hold values. Here is a simple example of creating a variable called &amp;lt;tt&amp;gt;x&amp;lt;/tt&amp;gt; and &amp;quot;assigning&amp;quot; it a value of 1:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
x = 1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Like in math, we can perform arithmetic on variables, and use them to set the value of other variables:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
x = 1&lt;br /&gt;
y = x + 2&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After this program has run, &amp;lt;tt&amp;gt;y&amp;lt;/tt&amp;gt; will have a value of 3, which is equal to &amp;lt;tt&amp;gt;1 + 2&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unlike in math, variables in programming can hold things other than numbers. They can hold pieces of text, which are called &amp;quot;strings&amp;quot;. In Bitfighter, they can also hold objects, such as a Flag or a Ship. These topics are discussed more in the tutorials.&lt;br /&gt;
&lt;br /&gt;
= Functions =&lt;br /&gt;
If you think of variables as the &amp;quot;nouns&amp;quot; of programming languages, then functions are the &amp;quot;verbs&amp;quot;. Lets expand on our example above:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
x = 1&lt;br /&gt;
y = x + 2&lt;br /&gt;
print(x)&lt;br /&gt;
print(y)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;print&amp;lt;/tt&amp;gt; is a function. When we say &amp;lt;tt&amp;gt;print(x)&amp;lt;/tt&amp;gt; we're saying to the computer &amp;quot;print the value of &amp;lt;tt&amp;gt;x&amp;lt;/tt&amp;gt;&amp;quot;. In Bitfighter, this will show up on the [[Console]] (press Ctrl+/ in-game to see it).&lt;br /&gt;
&lt;br /&gt;
TODO: function definitions, arguments, return values&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Programming_Crash_Course</id>
		<title>Programming Crash Course</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Programming_Crash_Course"/>
				<updated>2013-08-09T11:50:34Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* Variables */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripting]]&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
While scripting in Bitfighter is meant to be as simple as possible, one can not escape the fact that you are writing a computer program. In order to learn, read, or speak about programming, you have to understand the basic concepts and vocabulary that all programmers use.&lt;br /&gt;
&lt;br /&gt;
This page is meant to be a light introduction to programming concepts as they apply to Bitfighter scripting.&lt;br /&gt;
&lt;br /&gt;
= What is a Program? =&lt;br /&gt;
People say that computers &amp;quot;speak in ones and zeroes&amp;quot;. This is only half true. Humans don't speak ones and zeroes, and computers can only do what a human has told them how to do. For that reason we need a language that both humans and computers can understand, somewhere in between human languages like English and the computer languages of zeroes and ones. We call these &amp;quot;programming languages&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;program&amp;quot; or &amp;quot;script&amp;quot; is a file written in a programming language by a human, and which is meant to be run by a computer.&lt;br /&gt;
&lt;br /&gt;
A script is run from top to bottom, just like humans normally read. The computer reads one line at a time, and runs each line as it comes to it.&lt;br /&gt;
&lt;br /&gt;
= Variables =&lt;br /&gt;
A variable in programming is related to variables in math. They are used to hold values. Here is a simple example of creating a variable called &amp;lt;tt&amp;gt;x&amp;lt;/tt&amp;gt; and &amp;quot;assigning&amp;quot; it a value of 1:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
x = 1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Like in math, we can perform arithmetic on variables, and use them to set the value of other variables:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
x = 1&lt;br /&gt;
y = x + 2&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After this program has run, &amp;lt;tt&amp;gt;y&amp;lt;/tt&amp;gt; will have a value of 3, which is equal to &amp;lt;tt&amp;gt;1 + 2&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unlike in math, variables in programming can hold things other than numbers. They can hold pieces of text, which are called &amp;quot;strings&amp;quot;. In Bitfighter, they can also hold objects, such as a Flag or a Ship. These topics are discussed more in the tutorials.&lt;br /&gt;
&lt;br /&gt;
= Functions =&lt;br /&gt;
If you think of variables as the &amp;quot;nouns&amp;quot; of programming languages, then functions are the &amp;quot;verbs&amp;quot;. Lets expand on our example above:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
x = 1&lt;br /&gt;
y = x + 2&lt;br /&gt;
print(x)&lt;br /&gt;
print(y)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;print&amp;lt;/tt&amp;gt; is a function. When we say &amp;lt;tt&amp;gt;print(x)&amp;lt;/tt&amp;gt; we're telling the computer to print the value of &amp;lt;tt&amp;gt;x&amp;lt;/tt&amp;gt;. In Bitfighter, this will show up on the console (press Ctrl+/ in-game to see it).&lt;br /&gt;
&lt;br /&gt;
TODO: function definitions, arguments, return values&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_02</id>
		<title>Levelgen Tutorial 02</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_02"/>
				<updated>2013-08-09T11:44:19Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripting]]&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
Welcome to Part 02 of the Levelgen Tutorial. In this lesson, we will learn how to create new game objects, and add them to the level.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
You should have completed [[Levelgen Tutorial 01]]. Specifically, you should know:&lt;br /&gt;
* How to create and use levelgen files in a level.&lt;br /&gt;
* What the &amp;lt;tt&amp;gt;main()&amp;lt;/tt&amp;gt; function is for.&lt;br /&gt;
&lt;br /&gt;
== Outcomes ==&lt;br /&gt;
When finished with this tutorial, you should know:&lt;br /&gt;
* How to create a new &amp;lt;tt&amp;gt;TextItem&amp;lt;/tt&amp;gt; and add it to the game.&lt;br /&gt;
* How to set the text of a &amp;lt;tt&amp;gt;TextItem&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
= Code =&lt;br /&gt;
&lt;br /&gt;
Save the following code as a .levelgen file, and create an empty level which uses it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&lt;br /&gt;
  local textItem = TextItem.new()&lt;br /&gt;
  textItem:setText(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
  levelgen:addItem(textItem)&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now test the level. If everything went well you should see a text item that says &amp;quot;Hello World!&amp;quot; right in the center of your empty level. Behold, the magic of levelgens!&lt;br /&gt;
&lt;br /&gt;
If it didn't work, check the [[Troubleshooting]] page of the wiki.&lt;br /&gt;
&lt;br /&gt;
= How It Works =&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
As in every levelgen, we put the main chunk of code in the &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; function.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  local textItem = TextItem.new()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Here we are creating a new TextItem and storing it into the variable &amp;lt;tt&amp;gt;textItem&amp;lt;/tt&amp;gt; for later use. Remember that variables can refer to anything in Lua, whether it be a number, a string of text, a game object, or &amp;quot;nothing&amp;quot;. Here, it's referring to our new TextItem, which is a game object.&lt;br /&gt;
&lt;br /&gt;
Now we will set the text of this TextItem to say hello:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  textItem:setText(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This line means &amp;quot;set the text of &amp;lt;tt&amp;gt;textItem&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;Hello, world!&amp;lt;/tt&amp;gt;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The part before the colon (the &amp;lt;tt&amp;gt;:&amp;lt;/tt&amp;gt; sign) is our variable name (&amp;lt;tt&amp;gt;textItem&amp;lt;/tt&amp;gt;). The part after it is the function we're calling (&amp;lt;tt&amp;gt;setText&amp;lt;/tt&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
Again, we are passing some text as the argument to a function. This time, it is &amp;lt;tt&amp;gt;setText&amp;lt;/tt&amp;gt; instead of &amp;lt;tt&amp;gt;print&amp;lt;/tt&amp;gt;, but as you can see there is not much of a difference in how we write it.&lt;br /&gt;
&lt;br /&gt;
Next, we must actually add our TextItem to the game:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  levelgen:addItem(textItem)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
After creating our TextItem and setting it up as we'd like, we must add it to the game. To do this, we call &amp;lt;tt&amp;gt;levelgen:addItem&amp;lt;/tt&amp;gt;. &amp;lt;tt&amp;gt;levelgen&amp;lt;/tt&amp;gt; is a variable which is predefined by Bitfighter when it runs a levelgen script. This variable represents the currently running script, and provides functions for doing things to the game. &amp;lt;tt&amp;gt;levelgen:addItem&amp;lt;/tt&amp;gt; takes one argument, the object to add to the game. In this case, it is our TextItem instace, `textItem`.&lt;br /&gt;
&lt;br /&gt;
''Note:'' If you do not call &amp;lt;tt&amp;gt;addItem&amp;lt;/tt&amp;gt; on objects you create with &amp;lt;tt&amp;gt;.new()&amp;lt;/tt&amp;gt;, they will not appear in-game.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
And again, we end our &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; function.&lt;br /&gt;
&lt;br /&gt;
= Conclusion =&lt;br /&gt;
If you understand everything mentioned in the Outcomes section above, you are ready for [[Levelgen Tutorial 03]].&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_01</id>
		<title>Levelgen Tutorial 01</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_01"/>
				<updated>2013-08-09T11:24:21Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: Simplify to print(&amp;quot;Hello, world!&amp;quot;)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripting]]&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
Welcome to the Bitfighter levelgen tutorial. Before we get started, here is a list of things you should know, and things you will learn:&lt;br /&gt;
&lt;br /&gt;
== Assumed Knowledge ==&lt;br /&gt;
This tutorial assumes you have read [[Programming Crash Course]], and know what &amp;quot;variables&amp;quot; and &amp;quot;functions&amp;quot; are. It also assumes that you have basic to intermediate computer knowledge.&lt;br /&gt;
&lt;br /&gt;
== Outcomes ==&lt;br /&gt;
When finished with this tutorial, you should know:&lt;br /&gt;
* How to create and edit levelgen files.&lt;br /&gt;
* How to use levelgen files in levels you create.&lt;br /&gt;
* What the &amp;lt;tt&amp;gt;main()&amp;lt;/tt&amp;gt; function is, and what you should put there.&lt;br /&gt;
&lt;br /&gt;
= Getting Started =&lt;br /&gt;
&lt;br /&gt;
== Finding the Level Folder ==&lt;br /&gt;
The first step to writing levelgens is knowing where to put your .levelgen files. These files go in the &amp;quot;levels&amp;quot; directory of the Bitfighter install directory. To find out where this directory is, host a game or test a level, then hit F7 twice while in-game. This will take you to the Diagnostics screen. The line labeled &amp;quot;Level Dir:&amp;quot; will show the folder that you must put your .levelgen files in.&lt;br /&gt;
&lt;br /&gt;
== Editing .levelgen Files ==&lt;br /&gt;
You can edit .levelgen files in many text editors. A .levelgen file is just a normal .txt file with a special file extension. To open one with Notepad, right click the file, choose &amp;quot;Open With...&amp;quot; and select Notepad from the list. You can also open it from within Notepad if you choose &amp;quot;All Files (*.*)&amp;quot; from the dropdown in the Open dialog.&lt;br /&gt;
&lt;br /&gt;
Notepad will work okay for your first few scripts, but eventually you will want to upgrade to an editor with more advanced features. Some good choices are [http://notepad-plus-plus.org/download/ Notepad++] for Windows, and [http://projects.gnome.org/gedit/ GEdit] or [http://www.activestate.com/komodo-edit/downloads Komodo] for Linux or Mac. This is the last time we will mention any specific editor.&lt;br /&gt;
&lt;br /&gt;
Once you've chosen an editor, you're ready to begin!&lt;br /&gt;
&lt;br /&gt;
= Your First Levelgen =&lt;br /&gt;
Now, create a new file in the Levels Folder and save it as &amp;lt;tt&amp;gt;tutorial.levelgen&amp;lt;/tt&amp;gt;. Then, copy and paste the following code into your file, and save it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&lt;br /&gt;
   print(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, open Bitfighter and start a new level in the editor (call it whatever you like). Press Escape to bring up the menu, choose Level Parameters, then scroll down to the &amp;quot;Levelgen Script&amp;quot; line. Type in &amp;lt;tt&amp;gt;tutorial&amp;lt;/tt&amp;gt; then hit Escape and save the level. Now test the level.&lt;br /&gt;
&lt;br /&gt;
If you followed directions exactly, you should be on a completely empty level with no company but the endless void of inner space. To see if your levelgen is being run by Bitfighter, you must open the [[Console]]. To do this in-game, press Ctrl+/ (Control and forward slash). A green console will drop down from the top of the screen. On the very bottom line you should see the phrase &amp;lt;tt&amp;gt;Hello, world!&amp;lt;/tt&amp;gt;. If so, then congratulations on writing your first levelgen!&lt;br /&gt;
&lt;br /&gt;
''Note:'' You can close the console by pressing Ctrl+/ again.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
If you didn't see the phrase in the console, here are some things to double check:&lt;br /&gt;
* You created &amp;lt;tt&amp;gt;tutorial.levelgen&amp;lt;/tt&amp;gt; in the Level Folder&lt;br /&gt;
* You typed &amp;lt;tt&amp;gt;tutorial&amp;lt;/tt&amp;gt; in the Levelgen Script line of the Level Parameters screen&lt;br /&gt;
* You copied and pasted the code above exactly&lt;br /&gt;
* Your text editor is saving the file as &amp;quot;plain text&amp;quot; (if available)&lt;br /&gt;
&lt;br /&gt;
If you still need help, check the [[Troubleshooting]] page of the wiki&lt;br /&gt;
&lt;br /&gt;
= How It Works =&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Remember that functions are just named pieces of code which are meant to be used by other parts of a script or program. This first line defines a function called &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; which Bitfighter will call right before the level begins. Every levelgen you write should define a &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; function (it ''must'' be exactly called &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; -- it is case-sensitive). You should put all of your &amp;quot;start-up&amp;quot; code in this function, which we will do on the next line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
   print(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here we are calling a function named &amp;lt;tt&amp;gt;print&amp;lt;/tt&amp;gt;. This function will display a value in the [[Console]]. We want to say hello to the world (Hello, world!), so we pass that as an &amp;quot;argument&amp;quot; to the function. The quotes will not be shown, they are just a way of telling the computer where our text begins and ends. Everything ''between'' the quotes will be printed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Finally, we must end the &amp;lt;tt&amp;gt;main()&amp;lt;/tt&amp;gt; function. If we do not add this line, the script will not run at all.&lt;br /&gt;
&lt;br /&gt;
= Conclusion =&lt;br /&gt;
If you understand everything mentioned in the Outcomes section above, you are ready for [[Levelgen Tutorial 02]].&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_02</id>
		<title>Levelgen Tutorial 02</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_02"/>
				<updated>2013-08-09T10:58:05Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: Created page with &amp;quot;Category:Scripting  = Introduction = Welcome to the Bitfighter levelgen tutorial. Before we get started, here is a list of things you should know, and things you will lear...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripting]]&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
Welcome to the Bitfighter levelgen tutorial. Before we get started, here is a list of things you should know, and things you will learn:&lt;br /&gt;
&lt;br /&gt;
== Assumed Knowledge ==&lt;br /&gt;
This tutorial assumes you have read [[Programming Crash Course]], and know what &amp;quot;variables&amp;quot; and &amp;quot;functions&amp;quot; are. It also assumes that you have basic to intermediate computer knowledge.&lt;br /&gt;
&lt;br /&gt;
== Outcomes ==&lt;br /&gt;
When finished with this tutorial, you should know:&lt;br /&gt;
* How to create and edit levelgen files.&lt;br /&gt;
* How to use levelgen files in levels you create.&lt;br /&gt;
* How to write a simple levelgen.&lt;br /&gt;
* How to create new TextItem and add it to the game.&lt;br /&gt;
&lt;br /&gt;
= Getting Started =&lt;br /&gt;
&lt;br /&gt;
== Finding the Level Folder ==&lt;br /&gt;
The first step to writing levelgens is knowing where to put your .levelgen files. These files go in the &amp;quot;levels&amp;quot; directory of the Bitfighter install directory. To find out where this directory is, host a game or test a level, then hit F7 twice while in-game. This will take you to the Diagnostics screen. The line labeled &amp;quot;Level Dir:&amp;quot; will show the folder that you must put your .levelgen files in.&lt;br /&gt;
&lt;br /&gt;
== Editing .levelgen Files ==&lt;br /&gt;
You can edit .levelgen files in many text editors. A .levelgen file is just a normal .txt file with a special file extension. To open one with Notepad, right click the file, choose &amp;quot;Open With...&amp;quot; and select Notepad from the list. You can also open it from within Notepad if you choose &amp;quot;All Files (*.*)&amp;quot; from the dropdown in the Open dialog.&lt;br /&gt;
&lt;br /&gt;
Notepad will work okay for your first few scripts, but eventually you will want to upgrade to an editor with more advanced features. Some good choices are [http://notepad-plus-plus.org/download/ Notepad++] for Windows, and [http://projects.gnome.org/gedit/ GEdit] or [http://www.activestate.com/komodo-edit/downloads Komodo] for Linux or Mac. This is the last time we will mention any specific editor.&lt;br /&gt;
&lt;br /&gt;
Once you've chosen an editor, you're ready to begin!&lt;br /&gt;
&lt;br /&gt;
= Your First Levelgen =&lt;br /&gt;
Now, create a new file in the Levels Folder and save it as &amp;lt;tt&amp;gt;tutorial.levelgen&amp;lt;/tt&amp;gt;. Then, copy and paste the following code into your file, and save it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&lt;br /&gt;
  -- First, create a new TextItem and name it `textItem`&lt;br /&gt;
  local textItem = TextItem.new()&lt;br /&gt;
&lt;br /&gt;
  -- Then set textItem's text so that it says &amp;quot;Hello, World!&amp;quot;&lt;br /&gt;
  -- (it doesn't show the quotes)&lt;br /&gt;
  textItem:setText(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
  -- This step is important: any item created in a levelgen must then be added&lt;br /&gt;
  -- to the game using `addItem`&lt;br /&gt;
  levelgen:addItem(textItem)&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, open Bitfighter and start a new level in the editor (call it whatever you like). Press Escape to bring up the menu, choose Level Parameters, then scroll down to the &amp;quot;Levelgen Script&amp;quot; line. Type in &amp;lt;tt&amp;gt;tutorial&amp;lt;/tt&amp;gt; then hit Escape and save the level. Now test the level.&lt;br /&gt;
&lt;br /&gt;
If everything went well you should see a text item that says &amp;quot;Hello World!&amp;quot; right in the center of your empty level. Behold, the magic of levelgens!&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
If you didn't see the TextItem, here are some things to double check:&lt;br /&gt;
* You created &amp;lt;tt&amp;gt;tutorial.levelgen&amp;lt;/tt&amp;gt; in the Level Folder&lt;br /&gt;
* You typed &amp;lt;tt&amp;gt;tutorial&amp;lt;/tt&amp;gt; in the Levelgen Script line of the Level Parameters screen&lt;br /&gt;
* You copied and pasted the code above exactly&lt;br /&gt;
* Your text editor is saving the file as &amp;quot;plain text&amp;quot; (if available)&lt;br /&gt;
&lt;br /&gt;
If you still need help, check the [[Troubleshooting]] page of the wiki&lt;br /&gt;
&lt;br /&gt;
= How It Works =&lt;br /&gt;
Lines beginning with &amp;lt;tt&amp;gt;--&amp;lt;/tt&amp;gt; (two dashes) are comments, which are ignored by the computer, so we will skip those lines here.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Remember that functions are just named pieces of code which are meant to be used by other code. This first line defines a function called &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; which Bitfighter will call right before the level begins. Every levelgen you write should define a &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; function (it ''must'' be exactly called &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; -- it is case-sensitive). You should put all of your &amp;quot;start-up&amp;quot; code in this function.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  local textItem = TextItem.new()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Here we are creating a new TextItem and storing it into the variable &amp;lt;tt&amp;gt;textItem&amp;lt;/tt&amp;gt; for later use.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  textItem:setText(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This line sets the text displayed by &amp;lt;tt&amp;gt;textItem&amp;lt;/tt&amp;gt;. The part before the colon (the : sign) is our variable name. The part after it is the function we're calling on it. Anything between the parentheses is called an argument. &amp;lt;tt&amp;gt;setText&amp;lt;/tt&amp;gt; only takes one argument: a string to set the displayed text to.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  levelgen:addItem(textItem)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
After creating our TextItem and setting it up as we'd like, we must add it to the game. To do this, we call &amp;lt;tt&amp;gt;levelgen:addItem&amp;lt;/tt&amp;gt;. &amp;lt;tt&amp;gt;levelgen&amp;lt;/tt&amp;gt; is a variable which is predefined by Bitfighter when it runs a levelgen script. This variable represents the currently running script, and provides functions for doing things to the game. &amp;lt;tt&amp;gt;levelgen:addItem&amp;lt;/tt&amp;gt; takes one argument, the object to add to the game. In this case, it is our `textItem`.&lt;br /&gt;
&lt;br /&gt;
''Note:'' If you do not call &amp;lt;tt&amp;gt;addItem&amp;lt;/tt&amp;gt; on objects you create with &amp;lt;tt&amp;gt;.new()&amp;lt;/tt&amp;gt;, they will not appear in-game.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Finally, we must end the &amp;lt;tt&amp;gt;main()&amp;lt;/tt&amp;gt; function. If we do not add this line, the script will not run at all.&lt;br /&gt;
&lt;br /&gt;
= Conclusion =&lt;br /&gt;
If you understand everything mentioned in the Outcomes section above, you are ready for [[Levelgen Tutorial 02]].&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_01</id>
		<title>Levelgen Tutorial 01</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_01"/>
				<updated>2013-08-09T00:59:10Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* Outcomes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripting]]&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
Welcome to the Bitfighter levelgen tutorial. Before we get started, here is a list of things you should know, and things you will learn:&lt;br /&gt;
&lt;br /&gt;
== Assumed Knowledge ==&lt;br /&gt;
This tutorial assumes you have read [[Programming Crash Course]], and know what &amp;quot;variables&amp;quot; and &amp;quot;functions&amp;quot; are. It also assumes that you have basic to intermediate computer knowledge.&lt;br /&gt;
&lt;br /&gt;
== Outcomes ==&lt;br /&gt;
When finished with this tutorial, you should know:&lt;br /&gt;
* How to create and edit levelgen files.&lt;br /&gt;
* How to use levelgen files in levels you create.&lt;br /&gt;
* How to write a simple levelgen.&lt;br /&gt;
* How to create new TextItem and add it to the game.&lt;br /&gt;
&lt;br /&gt;
= Getting Started =&lt;br /&gt;
&lt;br /&gt;
== Finding the Level Folder ==&lt;br /&gt;
The first step to writing levelgens is knowing where to put your .levelgen files. These files go in the &amp;quot;levels&amp;quot; directory of the Bitfighter install directory. To find out where this directory is, host a game or test a level, then hit F7 twice while in-game. This will take you to the Diagnostics screen. The line labeled &amp;quot;Level Dir:&amp;quot; will show the folder that you must put your .levelgen files in.&lt;br /&gt;
&lt;br /&gt;
== Editing .levelgen Files ==&lt;br /&gt;
You can edit .levelgen files in many text editors. A .levelgen file is just a normal .txt file with a special file extension. To open one with Notepad, right click the file, choose &amp;quot;Open With...&amp;quot; and select Notepad from the list. You can also open it from within Notepad if you choose &amp;quot;All Files (*.*)&amp;quot; from the dropdown in the Open dialog.&lt;br /&gt;
&lt;br /&gt;
Notepad will work okay for your first few scripts, but eventually you will want to upgrade to an editor with more advanced features. Some good choices are [http://notepad-plus-plus.org/download/ Notepad++] for Windows, and [http://projects.gnome.org/gedit/ GEdit] or [http://www.activestate.com/komodo-edit/downloads Komodo] for Linux or Mac. This is the last time we will mention any specific editor.&lt;br /&gt;
&lt;br /&gt;
Once you've chosen an editor, you're ready to begin!&lt;br /&gt;
&lt;br /&gt;
= Your First Levelgen =&lt;br /&gt;
Now, create a new file in the Levels Folder and save it as &amp;lt;tt&amp;gt;tutorial.levelgen&amp;lt;/tt&amp;gt;. Then, copy and paste the following code into your file, and save it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&lt;br /&gt;
  -- First, create a new TextItem and name it `textItem`&lt;br /&gt;
  local textItem = TextItem.new()&lt;br /&gt;
&lt;br /&gt;
  -- Then set textItem's text so that it says &amp;quot;Hello, World!&amp;quot;&lt;br /&gt;
  -- (it doesn't show the quotes)&lt;br /&gt;
  textItem:setText(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
  -- This step is important: any item created in a levelgen must then be added&lt;br /&gt;
  -- to the game using `addItem`&lt;br /&gt;
  levelgen:addItem(textItem)&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, open Bitfighter and start a new level in the editor (call it whatever you like). Press Escape to bring up the menu, choose Level Parameters, then scroll down to the &amp;quot;Levelgen Script&amp;quot; line. Type in &amp;lt;tt&amp;gt;tutorial&amp;lt;/tt&amp;gt; then hit Escape and save the level. Now test the level.&lt;br /&gt;
&lt;br /&gt;
If everything went well you should see a text item that says &amp;quot;Hello World!&amp;quot; right in the center of your empty level. Behold, the magic of levelgens!&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
If you didn't see the TextItem, here are some things to double check:&lt;br /&gt;
* You created &amp;lt;tt&amp;gt;tutorial.levelgen&amp;lt;/tt&amp;gt; in the Level Folder&lt;br /&gt;
* You typed &amp;lt;tt&amp;gt;tutorial&amp;lt;/tt&amp;gt; in the Levelgen Script line of the Level Parameters screen&lt;br /&gt;
* You copied and pasted the code above exactly&lt;br /&gt;
* Your text editor is saving the file as &amp;quot;plain text&amp;quot; (if available)&lt;br /&gt;
&lt;br /&gt;
If you still need help, check the [[Troubleshooting]] page of the wiki&lt;br /&gt;
&lt;br /&gt;
= How It Works =&lt;br /&gt;
Lines beginning with &amp;lt;tt&amp;gt;--&amp;lt;/tt&amp;gt; (two dashes) are comments, which are ignored by the computer, so we will skip those lines here.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Remember that functions are just named pieces of code which are meant to be used by other code. This first line defines a function called &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; which Bitfighter will call right before the level begins. Every levelgen you write should define a &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; function (it ''must'' be exactly called &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; -- it is case-sensitive). You should put all of your &amp;quot;start-up&amp;quot; code in this function.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  local textItem = TextItem.new()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Here we are creating a new TextItem and storing it into the variable &amp;lt;tt&amp;gt;textItem&amp;lt;/tt&amp;gt; for later use.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  textItem:setText(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This line sets the text displayed by &amp;lt;tt&amp;gt;textItem&amp;lt;/tt&amp;gt;. The part before the colon (the : sign) is our variable name. The part after it is the function we're calling on it. Anything between the parentheses is called an argument. &amp;lt;tt&amp;gt;setText&amp;lt;/tt&amp;gt; only takes one argument: a string to set the displayed text to.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  levelgen:addItem(textItem)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
After creating our TextItem and setting it up as we'd like, we must add it to the game. To do this, we call &amp;lt;tt&amp;gt;levelgen:addItem&amp;lt;/tt&amp;gt;. &amp;lt;tt&amp;gt;levelgen&amp;lt;/tt&amp;gt; is a variable which is predefined by Bitfighter when it runs a levelgen script. This variable represents the currently running script, and provides functions for doing things to the game. &amp;lt;tt&amp;gt;levelgen:addItem&amp;lt;/tt&amp;gt; takes one argument, the object to add to the game. In this case, it is our `textItem`.&lt;br /&gt;
&lt;br /&gt;
''Note:'' If you do not call &amp;lt;tt&amp;gt;addItem&amp;lt;/tt&amp;gt; on objects you create with &amp;lt;tt&amp;gt;.new()&amp;lt;/tt&amp;gt;, they will not appear in-game.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Finally, we must end the &amp;lt;tt&amp;gt;main()&amp;lt;/tt&amp;gt; function. If we do not add this line, the script will not run at all.&lt;br /&gt;
&lt;br /&gt;
= Conclusion =&lt;br /&gt;
If you understand everything mentioned in the Outcomes section above, you are ready for [[Levelgen Tutorial 02]].&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_01</id>
		<title>Levelgen Tutorial 01</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_01"/>
				<updated>2013-08-09T00:58:18Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* How It Works */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripting]]&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
Welcome to the Bitfighter levelgen tutorial. Before we get started, here is a list of things you should know, and things you will learn:&lt;br /&gt;
&lt;br /&gt;
== Assumed Knowledge ==&lt;br /&gt;
This tutorial assumes you have read [[Programming Crash Course]], and know what &amp;quot;variables&amp;quot; and &amp;quot;functions&amp;quot; are. It also assumes that you have basic to intermediate computer knowledge.&lt;br /&gt;
&lt;br /&gt;
== Outcomes ==&lt;br /&gt;
When finished with this tutorial, you should know:&lt;br /&gt;
* How to create and edit levelgen files.&lt;br /&gt;
* How to use levelgen files in levels you create.&lt;br /&gt;
* How to write a simple levelgen.&lt;br /&gt;
* How to create and add a TextItem to the game.&lt;br /&gt;
&lt;br /&gt;
= Getting Started =&lt;br /&gt;
&lt;br /&gt;
== Finding the Level Folder ==&lt;br /&gt;
The first step to writing levelgens is knowing where to put your .levelgen files. These files go in the &amp;quot;levels&amp;quot; directory of the Bitfighter install directory. To find out where this directory is, host a game or test a level, then hit F7 twice while in-game. This will take you to the Diagnostics screen. The line labeled &amp;quot;Level Dir:&amp;quot; will show the folder that you must put your .levelgen files in.&lt;br /&gt;
&lt;br /&gt;
== Editing .levelgen Files ==&lt;br /&gt;
You can edit .levelgen files in many text editors. A .levelgen file is just a normal .txt file with a special file extension. To open one with Notepad, right click the file, choose &amp;quot;Open With...&amp;quot; and select Notepad from the list. You can also open it from within Notepad if you choose &amp;quot;All Files (*.*)&amp;quot; from the dropdown in the Open dialog.&lt;br /&gt;
&lt;br /&gt;
Notepad will work okay for your first few scripts, but eventually you will want to upgrade to an editor with more advanced features. Some good choices are [http://notepad-plus-plus.org/download/ Notepad++] for Windows, and [http://projects.gnome.org/gedit/ GEdit] or [http://www.activestate.com/komodo-edit/downloads Komodo] for Linux or Mac. This is the last time we will mention any specific editor.&lt;br /&gt;
&lt;br /&gt;
Once you've chosen an editor, you're ready to begin!&lt;br /&gt;
&lt;br /&gt;
= Your First Levelgen =&lt;br /&gt;
Now, create a new file in the Levels Folder and save it as &amp;lt;tt&amp;gt;tutorial.levelgen&amp;lt;/tt&amp;gt;. Then, copy and paste the following code into your file, and save it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&lt;br /&gt;
  -- First, create a new TextItem and name it `textItem`&lt;br /&gt;
  local textItem = TextItem.new()&lt;br /&gt;
&lt;br /&gt;
  -- Then set textItem's text so that it says &amp;quot;Hello, World!&amp;quot;&lt;br /&gt;
  -- (it doesn't show the quotes)&lt;br /&gt;
  textItem:setText(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
  -- This step is important: any item created in a levelgen must then be added&lt;br /&gt;
  -- to the game using `addItem`&lt;br /&gt;
  levelgen:addItem(textItem)&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, open Bitfighter and start a new level in the editor (call it whatever you like). Press Escape to bring up the menu, choose Level Parameters, then scroll down to the &amp;quot;Levelgen Script&amp;quot; line. Type in &amp;lt;tt&amp;gt;tutorial&amp;lt;/tt&amp;gt; then hit Escape and save the level. Now test the level.&lt;br /&gt;
&lt;br /&gt;
If everything went well you should see a text item that says &amp;quot;Hello World!&amp;quot; right in the center of your empty level. Behold, the magic of levelgens!&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
If you didn't see the TextItem, here are some things to double check:&lt;br /&gt;
* You created &amp;lt;tt&amp;gt;tutorial.levelgen&amp;lt;/tt&amp;gt; in the Level Folder&lt;br /&gt;
* You typed &amp;lt;tt&amp;gt;tutorial&amp;lt;/tt&amp;gt; in the Levelgen Script line of the Level Parameters screen&lt;br /&gt;
* You copied and pasted the code above exactly&lt;br /&gt;
* Your text editor is saving the file as &amp;quot;plain text&amp;quot; (if available)&lt;br /&gt;
&lt;br /&gt;
If you still need help, check the [[Troubleshooting]] page of the wiki&lt;br /&gt;
&lt;br /&gt;
= How It Works =&lt;br /&gt;
Lines beginning with &amp;lt;tt&amp;gt;--&amp;lt;/tt&amp;gt; (two dashes) are comments, which are ignored by the computer, so we will skip those lines here.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Remember that functions are just named pieces of code which are meant to be used by other code. This first line defines a function called &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; which Bitfighter will call right before the level begins. Every levelgen you write should define a &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; function (it ''must'' be exactly called &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; -- it is case-sensitive). You should put all of your &amp;quot;start-up&amp;quot; code in this function.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  local textItem = TextItem.new()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Here we are creating a new TextItem and storing it into the variable &amp;lt;tt&amp;gt;textItem&amp;lt;/tt&amp;gt; for later use.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  textItem:setText(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This line sets the text displayed by &amp;lt;tt&amp;gt;textItem&amp;lt;/tt&amp;gt;. The part before the colon (the : sign) is our variable name. The part after it is the function we're calling on it. Anything between the parentheses is called an argument. &amp;lt;tt&amp;gt;setText&amp;lt;/tt&amp;gt; only takes one argument: a string to set the displayed text to.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  levelgen:addItem(textItem)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
After creating our TextItem and setting it up as we'd like, we must add it to the game. To do this, we call &amp;lt;tt&amp;gt;levelgen:addItem&amp;lt;/tt&amp;gt;. &amp;lt;tt&amp;gt;levelgen&amp;lt;/tt&amp;gt; is a variable which is predefined by Bitfighter when it runs a levelgen script. This variable represents the currently running script, and provides functions for doing things to the game. &amp;lt;tt&amp;gt;levelgen:addItem&amp;lt;/tt&amp;gt; takes one argument, the object to add to the game. In this case, it is our `textItem`.&lt;br /&gt;
&lt;br /&gt;
''Note:'' If you do not call &amp;lt;tt&amp;gt;addItem&amp;lt;/tt&amp;gt; on objects you create with &amp;lt;tt&amp;gt;.new()&amp;lt;/tt&amp;gt;, they will not appear in-game.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Finally, we must end the &amp;lt;tt&amp;gt;main()&amp;lt;/tt&amp;gt; function. If we do not add this line, the script will not run at all.&lt;br /&gt;
&lt;br /&gt;
= Conclusion =&lt;br /&gt;
If you understand everything mentioned in the Outcomes section above, you are ready for [[Levelgen Tutorial 02]].&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_01</id>
		<title>Levelgen Tutorial 01</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_01"/>
				<updated>2013-08-09T00:57:45Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* Troubleshooting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripting]]&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
Welcome to the Bitfighter levelgen tutorial. Before we get started, here is a list of things you should know, and things you will learn:&lt;br /&gt;
&lt;br /&gt;
== Assumed Knowledge ==&lt;br /&gt;
This tutorial assumes you have read [[Programming Crash Course]], and know what &amp;quot;variables&amp;quot; and &amp;quot;functions&amp;quot; are. It also assumes that you have basic to intermediate computer knowledge.&lt;br /&gt;
&lt;br /&gt;
== Outcomes ==&lt;br /&gt;
When finished with this tutorial, you should know:&lt;br /&gt;
* How to create and edit levelgen files.&lt;br /&gt;
* How to use levelgen files in levels you create.&lt;br /&gt;
* How to write a simple levelgen.&lt;br /&gt;
* How to create and add a TextItem to the game.&lt;br /&gt;
&lt;br /&gt;
= Getting Started =&lt;br /&gt;
&lt;br /&gt;
== Finding the Level Folder ==&lt;br /&gt;
The first step to writing levelgens is knowing where to put your .levelgen files. These files go in the &amp;quot;levels&amp;quot; directory of the Bitfighter install directory. To find out where this directory is, host a game or test a level, then hit F7 twice while in-game. This will take you to the Diagnostics screen. The line labeled &amp;quot;Level Dir:&amp;quot; will show the folder that you must put your .levelgen files in.&lt;br /&gt;
&lt;br /&gt;
== Editing .levelgen Files ==&lt;br /&gt;
You can edit .levelgen files in many text editors. A .levelgen file is just a normal .txt file with a special file extension. To open one with Notepad, right click the file, choose &amp;quot;Open With...&amp;quot; and select Notepad from the list. You can also open it from within Notepad if you choose &amp;quot;All Files (*.*)&amp;quot; from the dropdown in the Open dialog.&lt;br /&gt;
&lt;br /&gt;
Notepad will work okay for your first few scripts, but eventually you will want to upgrade to an editor with more advanced features. Some good choices are [http://notepad-plus-plus.org/download/ Notepad++] for Windows, and [http://projects.gnome.org/gedit/ GEdit] or [http://www.activestate.com/komodo-edit/downloads Komodo] for Linux or Mac. This is the last time we will mention any specific editor.&lt;br /&gt;
&lt;br /&gt;
Once you've chosen an editor, you're ready to begin!&lt;br /&gt;
&lt;br /&gt;
= Your First Levelgen =&lt;br /&gt;
Now, create a new file in the Levels Folder and save it as &amp;lt;tt&amp;gt;tutorial.levelgen&amp;lt;/tt&amp;gt;. Then, copy and paste the following code into your file, and save it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&lt;br /&gt;
  -- First, create a new TextItem and name it `textItem`&lt;br /&gt;
  local textItem = TextItem.new()&lt;br /&gt;
&lt;br /&gt;
  -- Then set textItem's text so that it says &amp;quot;Hello, World!&amp;quot;&lt;br /&gt;
  -- (it doesn't show the quotes)&lt;br /&gt;
  textItem:setText(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
  -- This step is important: any item created in a levelgen must then be added&lt;br /&gt;
  -- to the game using `addItem`&lt;br /&gt;
  levelgen:addItem(textItem)&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, open Bitfighter and start a new level in the editor (call it whatever you like). Press Escape to bring up the menu, choose Level Parameters, then scroll down to the &amp;quot;Levelgen Script&amp;quot; line. Type in &amp;lt;tt&amp;gt;tutorial&amp;lt;/tt&amp;gt; then hit Escape and save the level. Now test the level.&lt;br /&gt;
&lt;br /&gt;
If everything went well you should see a text item that says &amp;quot;Hello World!&amp;quot; right in the center of your empty level. Behold, the magic of levelgens!&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
If you didn't see the TextItem, here are some things to double check:&lt;br /&gt;
* You created &amp;lt;tt&amp;gt;tutorial.levelgen&amp;lt;/tt&amp;gt; in the Level Folder&lt;br /&gt;
* You typed &amp;lt;tt&amp;gt;tutorial&amp;lt;/tt&amp;gt; in the Levelgen Script line of the Level Parameters screen&lt;br /&gt;
* You copied and pasted the code above exactly&lt;br /&gt;
* Your text editor is saving the file as &amp;quot;plain text&amp;quot; (if available)&lt;br /&gt;
&lt;br /&gt;
If you still need help, check the [[Troubleshooting]] page of the wiki&lt;br /&gt;
&lt;br /&gt;
= How It Works =&lt;br /&gt;
Remember that lines beginning with &amp;lt;tt&amp;gt;--&amp;lt;/tt&amp;gt; (two dashes) are comments, which are ignored by the computer, so we will skip those lines here.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Remember that functions are just named pieces of code which are meant to be used by other code. This first line defines a function called &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; which Bitfighter will call right before the level begins. Every levelgen you write should define a &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; function (it ''must'' be exactly called &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; -- it is case-sensitive). You should put all of your &amp;quot;start-up&amp;quot; code in this function.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  local textItem = TextItem.new()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Here we are creating a new TextItem and storing it into the variable &amp;lt;tt&amp;gt;textItem&amp;lt;/tt&amp;gt; for later use.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  textItem:setText(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This line sets the text displayed by &amp;lt;tt&amp;gt;textItem&amp;lt;/tt&amp;gt;. The part before the colon (the : sign) is our variable name. The part after it is the function we're calling on it. Anything between the parentheses is called an argument. &amp;lt;tt&amp;gt;setText&amp;lt;/tt&amp;gt; only takes one argument: a string to set the displayed text to.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  levelgen:addItem(textItem)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
After creating our TextItem and setting it up as we'd like, we must add it to the game. To do this, we call &amp;lt;tt&amp;gt;levelgen:addItem&amp;lt;/tt&amp;gt;. &amp;lt;tt&amp;gt;levelgen&amp;lt;/tt&amp;gt; is a variable which is predefined by Bitfighter when it runs a levelgen script. This variable represents the currently running script, and provides functions for doing things to the game. &amp;lt;tt&amp;gt;levelgen:addItem&amp;lt;/tt&amp;gt; takes one argument, the object to add to the game. In this case, it is our `textItem`.&lt;br /&gt;
&lt;br /&gt;
''Note:'' If you do not call &amp;lt;tt&amp;gt;addItem&amp;lt;/tt&amp;gt; on objects you create with &amp;lt;tt&amp;gt;.new()&amp;lt;/tt&amp;gt;, they will not appear in-game.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Finally, we must end the &amp;lt;tt&amp;gt;main()&amp;lt;/tt&amp;gt; function. If we do not add this line, the script will not run at all.&lt;br /&gt;
&lt;br /&gt;
= Conclusion =&lt;br /&gt;
If you understand everything mentioned in the Outcomes section above, you are ready for [[Levelgen Tutorial 02]].&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_01</id>
		<title>Levelgen Tutorial 01</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_01"/>
				<updated>2013-08-09T00:57:18Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* How It Works */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripting]]&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
Welcome to the Bitfighter levelgen tutorial. Before we get started, here is a list of things you should know, and things you will learn:&lt;br /&gt;
&lt;br /&gt;
== Assumed Knowledge ==&lt;br /&gt;
This tutorial assumes you have read [[Programming Crash Course]], and know what &amp;quot;variables&amp;quot; and &amp;quot;functions&amp;quot; are. It also assumes that you have basic to intermediate computer knowledge.&lt;br /&gt;
&lt;br /&gt;
== Outcomes ==&lt;br /&gt;
When finished with this tutorial, you should know:&lt;br /&gt;
* How to create and edit levelgen files.&lt;br /&gt;
* How to use levelgen files in levels you create.&lt;br /&gt;
* How to write a simple levelgen.&lt;br /&gt;
* How to create and add a TextItem to the game.&lt;br /&gt;
&lt;br /&gt;
= Getting Started =&lt;br /&gt;
&lt;br /&gt;
== Finding the Level Folder ==&lt;br /&gt;
The first step to writing levelgens is knowing where to put your .levelgen files. These files go in the &amp;quot;levels&amp;quot; directory of the Bitfighter install directory. To find out where this directory is, host a game or test a level, then hit F7 twice while in-game. This will take you to the Diagnostics screen. The line labeled &amp;quot;Level Dir:&amp;quot; will show the folder that you must put your .levelgen files in.&lt;br /&gt;
&lt;br /&gt;
== Editing .levelgen Files ==&lt;br /&gt;
You can edit .levelgen files in many text editors. A .levelgen file is just a normal .txt file with a special file extension. To open one with Notepad, right click the file, choose &amp;quot;Open With...&amp;quot; and select Notepad from the list. You can also open it from within Notepad if you choose &amp;quot;All Files (*.*)&amp;quot; from the dropdown in the Open dialog.&lt;br /&gt;
&lt;br /&gt;
Notepad will work okay for your first few scripts, but eventually you will want to upgrade to an editor with more advanced features. Some good choices are [http://notepad-plus-plus.org/download/ Notepad++] for Windows, and [http://projects.gnome.org/gedit/ GEdit] or [http://www.activestate.com/komodo-edit/downloads Komodo] for Linux or Mac. This is the last time we will mention any specific editor.&lt;br /&gt;
&lt;br /&gt;
Once you've chosen an editor, you're ready to begin!&lt;br /&gt;
&lt;br /&gt;
= Your First Levelgen =&lt;br /&gt;
Now, create a new file in the Levels Folder and save it as &amp;lt;tt&amp;gt;tutorial.levelgen&amp;lt;/tt&amp;gt;. Then, copy and paste the following code into your file, and save it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&lt;br /&gt;
  -- First, create a new TextItem and name it `textItem`&lt;br /&gt;
  local textItem = TextItem.new()&lt;br /&gt;
&lt;br /&gt;
  -- Then set textItem's text so that it says &amp;quot;Hello, World!&amp;quot;&lt;br /&gt;
  -- (it doesn't show the quotes)&lt;br /&gt;
  textItem:setText(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
  -- This step is important: any item created in a levelgen must then be added&lt;br /&gt;
  -- to the game using `addItem`&lt;br /&gt;
  levelgen:addItem(textItem)&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, open Bitfighter and start a new level in the editor (call it whatever you like). Press Escape to bring up the menu, choose Level Parameters, then scroll down to the &amp;quot;Levelgen Script&amp;quot; line. Type in &amp;lt;tt&amp;gt;tutorial&amp;lt;/tt&amp;gt; then hit Escape and save the level. Now test the level.&lt;br /&gt;
&lt;br /&gt;
If everything went well you should see a text item that says &amp;quot;Hello World!&amp;quot; right in the center of your empty level. Behold, the magic of levelgens!&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
If you didn't see the TextItem, here are some things to double check:&lt;br /&gt;
* You created &amp;lt;tt&amp;gt;tutorial.levelgen&amp;lt;/tt&amp;gt; in the Level Folder&amp;lt;/li&amp;gt;&lt;br /&gt;
* You typed &amp;lt;tt&amp;gt;tutorial&amp;lt;/tt&amp;gt; in the Levelgen Script line of the Level Parameters screen&lt;br /&gt;
* You copied and pasted the code above exactly&lt;br /&gt;
* Your text editor is saving the file as &amp;quot;plain text&amp;quot; (if available)&lt;br /&gt;
&lt;br /&gt;
If you still need help, check the [[Troubleshooting]] page of the wiki&lt;br /&gt;
&lt;br /&gt;
= How It Works =&lt;br /&gt;
Remember that lines beginning with &amp;lt;tt&amp;gt;--&amp;lt;/tt&amp;gt; (two dashes) are comments, which are ignored by the computer, so we will skip those lines here.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Remember that functions are just named pieces of code which are meant to be used by other code. This first line defines a function called &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; which Bitfighter will call right before the level begins. Every levelgen you write should define a &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; function (it ''must'' be exactly called &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; -- it is case-sensitive). You should put all of your &amp;quot;start-up&amp;quot; code in this function.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  local textItem = TextItem.new()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Here we are creating a new TextItem and storing it into the variable &amp;lt;tt&amp;gt;textItem&amp;lt;/tt&amp;gt; for later use.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  textItem:setText(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This line sets the text displayed by &amp;lt;tt&amp;gt;textItem&amp;lt;/tt&amp;gt;. The part before the colon (the : sign) is our variable name. The part after it is the function we're calling on it. Anything between the parentheses is called an argument. &amp;lt;tt&amp;gt;setText&amp;lt;/tt&amp;gt; only takes one argument: a string to set the displayed text to.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  levelgen:addItem(textItem)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
After creating our TextItem and setting it up as we'd like, we must add it to the game. To do this, we call &amp;lt;tt&amp;gt;levelgen:addItem&amp;lt;/tt&amp;gt;. &amp;lt;tt&amp;gt;levelgen&amp;lt;/tt&amp;gt; is a variable which is predefined by Bitfighter when it runs a levelgen script. This variable represents the currently running script, and provides functions for doing things to the game. &amp;lt;tt&amp;gt;levelgen:addItem&amp;lt;/tt&amp;gt; takes one argument, the object to add to the game. In this case, it is our `textItem`.&lt;br /&gt;
&lt;br /&gt;
''Note:'' If you do not call &amp;lt;tt&amp;gt;addItem&amp;lt;/tt&amp;gt; on objects you create with &amp;lt;tt&amp;gt;.new()&amp;lt;/tt&amp;gt;, they will not appear in-game.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Finally, we must end the &amp;lt;tt&amp;gt;main()&amp;lt;/tt&amp;gt; function. If we do not add this line, the script will not run at all.&lt;br /&gt;
&lt;br /&gt;
= Conclusion =&lt;br /&gt;
If you understand everything mentioned in the Outcomes section above, you are ready for [[Levelgen Tutorial 02]].&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_01</id>
		<title>Levelgen Tutorial 01</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_01"/>
				<updated>2013-08-09T00:54:38Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: add category&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripting]]&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
Welcome to the Bitfighter levelgen tutorial. Before we get started, here is a list of things you should know, and things you will learn:&lt;br /&gt;
&lt;br /&gt;
== Assumed Knowledge ==&lt;br /&gt;
This tutorial assumes you have read [[Programming Crash Course]], and know what &amp;quot;variables&amp;quot; and &amp;quot;functions&amp;quot; are. It also assumes that you have basic to intermediate computer knowledge.&lt;br /&gt;
&lt;br /&gt;
== Outcomes ==&lt;br /&gt;
When finished with this tutorial, you should know:&lt;br /&gt;
* How to create and edit levelgen files.&lt;br /&gt;
* How to use levelgen files in levels you create.&lt;br /&gt;
* How to write a simple levelgen.&lt;br /&gt;
* How to create and add a TextItem to the game.&lt;br /&gt;
&lt;br /&gt;
= Getting Started =&lt;br /&gt;
&lt;br /&gt;
== Finding the Level Folder ==&lt;br /&gt;
The first step to writing levelgens is knowing where to put your .levelgen files. These files go in the &amp;quot;levels&amp;quot; directory of the Bitfighter install directory. To find out where this directory is, host a game or test a level, then hit F7 twice while in-game. This will take you to the Diagnostics screen. The line labeled &amp;quot;Level Dir:&amp;quot; will show the folder that you must put your .levelgen files in.&lt;br /&gt;
&lt;br /&gt;
== Editing .levelgen Files ==&lt;br /&gt;
You can edit .levelgen files in many text editors. A .levelgen file is just a normal .txt file with a special file extension. To open one with Notepad, right click the file, choose &amp;quot;Open With...&amp;quot; and select Notepad from the list. You can also open it from within Notepad if you choose &amp;quot;All Files (*.*)&amp;quot; from the dropdown in the Open dialog.&lt;br /&gt;
&lt;br /&gt;
Notepad will work okay for your first few scripts, but eventually you will want to upgrade to an editor with more advanced features. Some good choices are [http://notepad-plus-plus.org/download/ Notepad++] for Windows, and [http://projects.gnome.org/gedit/ GEdit] or [http://www.activestate.com/komodo-edit/downloads Komodo] for Linux or Mac. This is the last time we will mention any specific editor.&lt;br /&gt;
&lt;br /&gt;
Once you've chosen an editor, you're ready to begin!&lt;br /&gt;
&lt;br /&gt;
= Your First Levelgen =&lt;br /&gt;
Now, create a new file in the Levels Folder and save it as &amp;lt;tt&amp;gt;tutorial.levelgen&amp;lt;/tt&amp;gt;. Then, copy and paste the following code into your file, and save it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&lt;br /&gt;
  -- First, create a new TextItem and name it `textItem`&lt;br /&gt;
  local textItem = TextItem.new()&lt;br /&gt;
&lt;br /&gt;
  -- Then set textItem's text so that it says &amp;quot;Hello, World!&amp;quot;&lt;br /&gt;
  -- (it doesn't show the quotes)&lt;br /&gt;
  textItem:setText(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
  -- This step is important: any item created in a levelgen must then be added&lt;br /&gt;
  -- to the game using `addItem`&lt;br /&gt;
  levelgen:addItem(textItem)&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, open Bitfighter and start a new level in the editor (call it whatever you like). Press Escape to bring up the menu, choose Level Parameters, then scroll down to the &amp;quot;Levelgen Script&amp;quot; line. Type in &amp;lt;tt&amp;gt;tutorial&amp;lt;/tt&amp;gt; then hit Escape and save the level. Now test the level.&lt;br /&gt;
&lt;br /&gt;
If everything went well you should see a text item that says &amp;quot;Hello World!&amp;quot; right in the center of your empty level. Behold, the magic of levelgens!&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
If you didn't see the TextItem, here are some things to double check:&lt;br /&gt;
* You created &amp;lt;tt&amp;gt;tutorial.levelgen&amp;lt;/tt&amp;gt; in the Level Folder&amp;lt;/li&amp;gt;&lt;br /&gt;
* You typed &amp;lt;tt&amp;gt;tutorial&amp;lt;/tt&amp;gt; in the Levelgen Script line of the Level Parameters screen&lt;br /&gt;
* You copied and pasted the code above exactly&lt;br /&gt;
* Your text editor is saving the file as &amp;quot;plain text&amp;quot; (if available)&lt;br /&gt;
&lt;br /&gt;
If you still need help, check the [[Troubleshooting]] page of the wiki&lt;br /&gt;
&lt;br /&gt;
= How It Works =&lt;br /&gt;
Remember that lines beginning with &amp;lt;tt&amp;gt;--&amp;lt;/tt&amp;gt; (two dashes) are comments, which are ignored by the computer, so we will skip those lines here.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Remember that functions are just named pieces of code which are meant to be used by other code. This first line defines a function called &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; which Bitfighter will call right before the level begins. Every levelgen you write should define a &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; function (it 'must' be exactly called &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; -- it is case-sensitive). You should put all of your &amp;quot;start-up&amp;quot; code in this function.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  local textItem = TextItem.new()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Here we are creating a new TextItem and storing it into the variable &amp;lt;tt&amp;gt;textItem&amp;lt;/tt&amp;gt; for later use.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  textItem:setText(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This line sets the text displayed by &amp;lt;tt&amp;gt;textItem&amp;lt;/tt&amp;gt;. The part before the colon (the : sign) is our variable name. The part after it is the function we're calling on it. Anything between the parentheses is called an argument. &amp;lt;tt&amp;gt;setText&amp;lt;/tt&amp;gt; only takes one argument: a string to set the displayed text to.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  levelgen:addItem(textItem)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
After creating our TextItem and setting it up as we'd like, we must add it to the game. To do this, we call &amp;lt;tt&amp;gt;levelgen:addItem&amp;lt;/tt&amp;gt;. &amp;lt;tt&amp;gt;levelgen&amp;lt;/tt&amp;gt; is a variable which is predefined by Bitfighter when it runs a levelgen script. This variable represents the currently running script, and provides functions for doing things to the game. &amp;lt;tt&amp;gt;levelgen:addItem&amp;lt;/tt&amp;gt; takes one argument, the object to add to the game. In this case, it is our `textItem`.&lt;br /&gt;
&lt;br /&gt;
''Note:'' If you do not call &amp;lt;tt&amp;gt;addItem&amp;lt;/tt&amp;gt; on objects you create with &amp;lt;tt&amp;gt;.new()&amp;lt;/tt&amp;gt;, they will not appear in-game.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Finally, we must end the &amp;lt;tt&amp;gt;main()&amp;lt;/tt&amp;gt; function. If we do not add this line, the script will not run at all.&lt;br /&gt;
&lt;br /&gt;
= Conclusion =&lt;br /&gt;
If you understand everything mentioned in the Outcomes section above, you are ready for [[Levelgen Tutorial 02]].&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Programming_Crash_Course</id>
		<title>Programming Crash Course</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Programming_Crash_Course"/>
				<updated>2013-08-09T00:53:52Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripting]]&lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
While scripting in Bitfighter is meant to be as simple as possible, one can not escape the fact that you are writing a computer program. In order to learn, read, or speak about programming, you have to understand the basic concepts and vocabulary that all programmers use.&lt;br /&gt;
&lt;br /&gt;
This page is meant to be a light introduction to programming concepts as they apply to Bitfighter scripting.&lt;br /&gt;
&lt;br /&gt;
= What is a Program? =&lt;br /&gt;
People say that computers &amp;quot;speak in ones and zeroes&amp;quot;. This is only half true. Humans don't speak ones and zeroes, and computers can only do what a human has told them how to do. For that reason we need a language that both humans and computers can understand, somewhere in between human languages like English and the computer languages of zeroes and ones. We call these &amp;quot;programming languages&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;program&amp;quot; or &amp;quot;script&amp;quot; is a file written in a programming language by a human, and which is meant to be run by a computer.&lt;br /&gt;
&lt;br /&gt;
A script is run from top to bottom, just like humans normally read. The computer reads one line at a time, and runs each line as it comes to it.&lt;br /&gt;
&lt;br /&gt;
= Variables =&lt;br /&gt;
A variable in programming is related to variables in math. They are used to hold values. Here is a simple example of creating a variable called &amp;lt;tt&amp;gt;x&amp;lt;/tt&amp;gt; and &amp;quot;assigning&amp;quot; it a value of 1:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
x = 1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also like in math, we can perform arithmetic on variables, and use them to set the value of other variables:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
x = 1&lt;br /&gt;
y = x + 2&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After the program has run, &amp;lt;tt&amp;gt;y&amp;lt;/tt&amp;gt; will have a value of 3, which is equal to &amp;lt;tt&amp;gt;1 + 2&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unlike in math, variables in programming can hold things other than numbers. They can hold pieces of text, which are called &amp;quot;strings&amp;quot;. In Bitfighter, they can also hold objects, such as a Flag or a Ship. These topics are discussed more in the tutorials.&lt;br /&gt;
&lt;br /&gt;
= Functions =&lt;br /&gt;
If you think of variables as the &amp;quot;nouns&amp;quot; of programming languages, then functions are the &amp;quot;verbs&amp;quot;. Lets expand on our example above:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
x = 1&lt;br /&gt;
y = x + 2&lt;br /&gt;
print(x)&lt;br /&gt;
print(y)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;print&amp;lt;/tt&amp;gt; is a function. When we say &amp;lt;tt&amp;gt;print(x)&amp;lt;/tt&amp;gt; we're telling the computer to print the value of &amp;lt;tt&amp;gt;x&amp;lt;/tt&amp;gt;. In Bitfighter, this will show up on the console (press Ctrl+/ in-game to see it).&lt;br /&gt;
&lt;br /&gt;
TODO: function definitions, arguments, return values&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Programming_Crash_Course</id>
		<title>Programming Crash Course</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Programming_Crash_Course"/>
				<updated>2013-08-09T00:52:49Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: Created page with &amp;quot;= Introduction = While scripting in Bitfighter is meant to be as simple as possible, one can not escape the fact that you are writing a computer program. In order to learn, re...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
While scripting in Bitfighter is meant to be as simple as possible, one can not escape the fact that you are writing a computer program. In order to learn, read, or speak about programming, you have to understand the basic concepts and vocabulary that all programmers use.&lt;br /&gt;
&lt;br /&gt;
This page is meant to be a light introduction to programming concepts as they apply to Bitfighter scripting.&lt;br /&gt;
&lt;br /&gt;
= What is a Program? =&lt;br /&gt;
People say that computers &amp;quot;speak in ones and zeroes&amp;quot;. This is only half true. Humans don't speak ones and zeroes, and computers can only do what a human has told them how to do. For that reason we need a language that both humans and computers can understand, somewhere in between human languages like English and the computer languages of zeroes and ones. We call these &amp;quot;programming languages&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;program&amp;quot; or &amp;quot;script&amp;quot; is a file written in a programming language by a human, and which is meant to be run by a computer.&lt;br /&gt;
&lt;br /&gt;
A script is run from top to bottom, just like humans normally read. The computer reads one line at a time, and runs each line as it comes to it.&lt;br /&gt;
&lt;br /&gt;
= Variables =&lt;br /&gt;
A variable in programming is related to variables in math. They are used to hold values. Here is a simple example of creating a variable called &amp;lt;tt&amp;gt;x&amp;lt;/tt&amp;gt; and &amp;quot;assigning&amp;quot; it a value of 1:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
x = 1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also like in math, we can perform arithmetic on variables, and use them to set the value of other variables:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
x = 1&lt;br /&gt;
y = x + 2&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After the program has run, &amp;lt;tt&amp;gt;y&amp;lt;/tt&amp;gt; will have a value of 3, which is equal to &amp;lt;tt&amp;gt;1 + 2&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unlike in math, variables in programming can hold things other than numbers. They can hold pieces of text, which are called &amp;quot;strings&amp;quot;. In Bitfighter, they can also hold objects, such as a Flag or a Ship. These topics are discussed more in the tutorials.&lt;br /&gt;
&lt;br /&gt;
= Functions =&lt;br /&gt;
If you think of variables as the &amp;quot;nouns&amp;quot; of programming languages, then functions are the &amp;quot;verbs&amp;quot;. Lets expand on our example above:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
x = 1&lt;br /&gt;
y = x + 2&lt;br /&gt;
print(x)&lt;br /&gt;
print(y)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;print&amp;lt;/tt&amp;gt; is a function. When we say &amp;lt;tt&amp;gt;print(x)&amp;lt;/tt&amp;gt; we're telling the computer to print the value of &amp;lt;tt&amp;gt;x&amp;lt;/tt&amp;gt;. In Bitfighter, this will show up on the console (press Ctrl+/ in-game to see it).&lt;br /&gt;
&lt;br /&gt;
TODO: function definitions, arguments, return values&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_01</id>
		<title>Levelgen Tutorial 01</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Levelgen_Tutorial_01"/>
				<updated>2013-08-09T00:02:29Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: Created page with &amp;quot;= Introduction = Welcome to the Bitfighter levelgen tutorial. Before we get started, here is a list of things you should know, and things you will learn:  == Assumed Knowledge...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Introduction =&lt;br /&gt;
Welcome to the Bitfighter levelgen tutorial. Before we get started, here is a list of things you should know, and things you will learn:&lt;br /&gt;
&lt;br /&gt;
== Assumed Knowledge ==&lt;br /&gt;
This tutorial assumes you have read [[Programming Crash Course]], and know what &amp;quot;variables&amp;quot; and &amp;quot;functions&amp;quot; are. It also assumes that you have basic to intermediate computer knowledge.&lt;br /&gt;
&lt;br /&gt;
== Outcomes ==&lt;br /&gt;
When finished with this tutorial, you should know:&lt;br /&gt;
* How to create and edit levelgen files.&lt;br /&gt;
* How to use levelgen files in levels you create.&lt;br /&gt;
* How to write a simple levelgen.&lt;br /&gt;
* How to create and add a TextItem to the game.&lt;br /&gt;
&lt;br /&gt;
= Getting Started =&lt;br /&gt;
&lt;br /&gt;
== Finding the Level Folder ==&lt;br /&gt;
The first step to writing levelgens is knowing where to put your .levelgen files. These files go in the &amp;quot;levels&amp;quot; directory of the Bitfighter install directory. To find out where this directory is, host a game or test a level, then hit F7 twice while in-game. This will take you to the Diagnostics screen. The line labeled &amp;quot;Level Dir:&amp;quot; will show the folder that you must put your .levelgen files in.&lt;br /&gt;
&lt;br /&gt;
== Editing .levelgen Files ==&lt;br /&gt;
You can edit .levelgen files in many text editors. A .levelgen file is just a normal .txt file with a special file extension. To open one with Notepad, right click the file, choose &amp;quot;Open With...&amp;quot; and select Notepad from the list. You can also open it from within Notepad if you choose &amp;quot;All Files (*.*)&amp;quot; from the dropdown in the Open dialog.&lt;br /&gt;
&lt;br /&gt;
Notepad will work okay for your first few scripts, but eventually you will want to upgrade to an editor with more advanced features. Some good choices are [http://notepad-plus-plus.org/download/ Notepad++] for Windows, and [http://projects.gnome.org/gedit/ GEdit] or [http://www.activestate.com/komodo-edit/downloads Komodo] for Linux or Mac. This is the last time we will mention any specific editor.&lt;br /&gt;
&lt;br /&gt;
Once you've chosen an editor, you're ready to begin!&lt;br /&gt;
&lt;br /&gt;
= Your First Levelgen =&lt;br /&gt;
Now, create a new file in the Levels Folder and save it as &amp;lt;tt&amp;gt;tutorial.levelgen&amp;lt;/tt&amp;gt;. Then, copy and paste the following code into your file, and save it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&lt;br /&gt;
  -- First, create a new TextItem and name it `textItem`&lt;br /&gt;
  local textItem = TextItem.new()&lt;br /&gt;
&lt;br /&gt;
  -- Then set textItem's text so that it says &amp;quot;Hello, World!&amp;quot;&lt;br /&gt;
  -- (it doesn't show the quotes)&lt;br /&gt;
  textItem:setText(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
  -- This step is important: any item created in a levelgen must then be added&lt;br /&gt;
  -- to the game using `addItem`&lt;br /&gt;
  levelgen:addItem(textItem)&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, open Bitfighter and start a new level in the editor (call it whatever you like). Press Escape to bring up the menu, choose Level Parameters, then scroll down to the &amp;quot;Levelgen Script&amp;quot; line. Type in &amp;lt;tt&amp;gt;tutorial&amp;lt;/tt&amp;gt; then hit Escape and save the level. Now test the level.&lt;br /&gt;
&lt;br /&gt;
If everything went well you should see a text item that says &amp;quot;Hello World!&amp;quot; right in the center of your empty level. Behold, the magic of levelgens!&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
If you didn't see the TextItem, here are some things to double check:&lt;br /&gt;
* You created &amp;lt;tt&amp;gt;tutorial.levelgen&amp;lt;/tt&amp;gt; in the Level Folder&amp;lt;/li&amp;gt;&lt;br /&gt;
* You typed &amp;lt;tt&amp;gt;tutorial&amp;lt;/tt&amp;gt; in the Levelgen Script line of the Level Parameters screen&lt;br /&gt;
* You copied and pasted the code above exactly&lt;br /&gt;
* Your text editor is saving the file as &amp;quot;plain text&amp;quot; (if available)&lt;br /&gt;
&lt;br /&gt;
If you still need help, check the [[Troubleshooting]] page of the wiki&lt;br /&gt;
&lt;br /&gt;
= How It Works =&lt;br /&gt;
Remember that lines beginning with &amp;lt;tt&amp;gt;--&amp;lt;/tt&amp;gt; (two dashes) are comments, which are ignored by the computer, so we will skip those lines here.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Remember that functions are just named pieces of code which are meant to be used by other code. This first line defines a function called &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; which Bitfighter will call right before the level begins. Every levelgen you write should define a &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; function (it 'must' be exactly called &amp;lt;tt&amp;gt;main&amp;lt;/tt&amp;gt; -- it is case-sensitive). You should put all of your &amp;quot;start-up&amp;quot; code in this function.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  local textItem = TextItem.new()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Here we are creating a new TextItem and storing it into the variable &amp;lt;tt&amp;gt;textItem&amp;lt;/tt&amp;gt; for later use.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  textItem:setText(&amp;quot;Hello, world!&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This line sets the text displayed by &amp;lt;tt&amp;gt;textItem&amp;lt;/tt&amp;gt;. The part before the colon (the : sign) is our variable name. The part after it is the function we're calling on it. Anything between the parentheses is called an argument. &amp;lt;tt&amp;gt;setText&amp;lt;/tt&amp;gt; only takes one argument: a string to set the displayed text to.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
  levelgen:addItem(textItem)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
After creating our TextItem and setting it up as we'd like, we must add it to the game. To do this, we call &amp;lt;tt&amp;gt;levelgen:addItem&amp;lt;/tt&amp;gt;. &amp;lt;tt&amp;gt;levelgen&amp;lt;/tt&amp;gt; is a variable which is predefined by Bitfighter when it runs a levelgen script. This variable represents the currently running script, and provides functions for doing things to the game. &amp;lt;tt&amp;gt;levelgen:addItem&amp;lt;/tt&amp;gt; takes one argument, the object to add to the game. In this case, it is our `textItem`.&lt;br /&gt;
&lt;br /&gt;
''Note:'' If you do not call &amp;lt;tt&amp;gt;addItem&amp;lt;/tt&amp;gt; on objects you create with &amp;lt;tt&amp;gt;.new()&amp;lt;/tt&amp;gt;, they will not appear in-game.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Finally, we must end the &amp;lt;tt&amp;gt;main()&amp;lt;/tt&amp;gt; function. If we do not add this line, the script will not run at all.&lt;br /&gt;
&lt;br /&gt;
= Conclusion =&lt;br /&gt;
If you understand everything mentioned in the Outcomes section above, you are ready for [[Levelgen Tutorial 02]].&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Events</id>
		<title>Events</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Events"/>
				<updated>2013-08-03T00:22:47Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Overview =&lt;br /&gt;
&lt;br /&gt;
Robots and levelgens can register to be notified of certain game events. When the event occurs, a specific function in the script (termed a &amp;quot;callback&amp;quot; function) is invoked. This lets a script perform some action in response to these events.&lt;br /&gt;
&lt;br /&gt;
For a complete list of Events and their callback signatures, see the Event enum in the API documentation.&lt;br /&gt;
&lt;br /&gt;
= Example =&lt;br /&gt;
&lt;br /&gt;
Subscribing to an event is the same for robots and levelgens: you call &amp;lt;code&amp;gt;bf:subscribe&amp;lt;/code&amp;gt; . Here is a simple example using the &amp;lt;code&amp;gt;MsgReceived&amp;lt;/code&amp;gt; event which is available to both robots and levelgens:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
  bf:subscribe(Event.MsgReceived)&lt;br /&gt;
end&lt;br /&gt;
-- Whenever an event occurs which a script is subscribed to, Bitfighter will&lt;br /&gt;
-- run the function named after that Event.&lt;br /&gt;
-- For the `MsgReceived` Event, the name must be `onMsgReceived`&lt;br /&gt;
function onMsgReceived(msg, player, isGlobal)&lt;br /&gt;
  print(player:getName(), &amp;quot; said: &amp;quot;, msg)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting]]&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Events</id>
		<title>Events</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Events"/>
				<updated>2013-08-03T00:20:58Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: Created page with &amp;quot;Overview  Robots and Levelgens can register to be notified of certain game events. When the event occurs, a specific function in the script (termed a &amp;quot;callback&amp;quot; function) is i...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Overview&lt;br /&gt;
&lt;br /&gt;
Robots and Levelgens can register to be notified of certain game events. When the event occurs, a specific function in the script (termed a &amp;quot;callback&amp;quot; function) is invoked. This lets a script perform some action in response to these events.&lt;br /&gt;
&lt;br /&gt;
For a complete list of Events and their callback signatures, see the Event page&lt;br /&gt;
&lt;br /&gt;
Example&lt;br /&gt;
&lt;br /&gt;
Subscribing to an event is the same for robots and levelgens: you call bf:subscribe . Here is a simple example using the MsgReceived Event which is available to both robots and levelgens:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function main()&lt;br /&gt;
  bf:subscribe(Event.MsgReceived)&lt;br /&gt;
end&lt;br /&gt;
-- Whenever an event occurs which a script is subscribed to, Bitfighter will&lt;br /&gt;
-- run the function named after that Event.&lt;br /&gt;
-- For the `MsgReceived` Event, the name must be `onMsgReceived`&lt;br /&gt;
function onMsgReceived(msg, player, isGlobal)&lt;br /&gt;
  print(player:getName(), &amp;quot; said: &amp;quot;, msg)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Debugging_Tips</id>
		<title>Debugging Tips</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Debugging_Tips"/>
				<updated>2013-08-03T00:19:49Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Any of your scripts can print a stack trace with the &amp;lt;code&amp;gt;_stackTracer()&amp;lt;/code&amp;gt; command (see sample usage below). This will show how you got to a particular execution point, and will print the values of various variables and other potentially useful information. This can be very helpful if there are several conditions under which a function can be called, or why something went wrong.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;print(msg)&amp;lt;/code&amp;gt; command will print a message the in-game console (which you can turn on with ctrl+/), and &amp;lt;code&amp;gt;logprint(msg)&amp;lt;/code&amp;gt; will print a message to the console, the terminal, and the Bitfighter logfile.&lt;br /&gt;
&lt;br /&gt;
Lua's error command will stop the script, print a message, and cause a stack trace to be printed. Use assert to confirm that a condition is true.&lt;br /&gt;
&lt;br /&gt;
Finally, if you detect an unexpected error condition, you can log a message, trigger a stack trace, and terminate the script with Lua's error function.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
logprint(&amp;quot;Here's a stack trace:&amp;quot;)&lt;br /&gt;
logprint(_stackTracer())&lt;br /&gt;
if target == nil then error(&amp;quot;Have a nil target!&amp;quot;) end&lt;br /&gt;
assert(target, &amp;quot;Target should never be nil here!&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting]]&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Debugging_Tips</id>
		<title>Debugging Tips</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Debugging_Tips"/>
				<updated>2013-08-03T00:19:13Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: Created page with &amp;quot;Any of your scripts can print a stack trace with the &amp;lt;code&amp;gt;_stackTracer()&amp;lt;/code&amp;gt; command (see sample usage below). This will show how you got to a particular execution point, ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Any of your scripts can print a stack trace with the &amp;lt;code&amp;gt;_stackTracer()&amp;lt;/code&amp;gt; command (see sample usage below). This will show how you got to a particular execution point, and will print the values of various variables and other potentially useful information. This can be very helpful if there are several conditions under which a function can be called, or why something went wrong.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;print(msg)&amp;lt;/code&amp;gt; command will print a message the in-game console (which you can turn on with ctrl+/), and &amp;lt;code&amp;gt;logprint(msg)&amp;lt;/code&amp;gt; will print a message to the console, the terminal, and the Bitfighter logfile.&lt;br /&gt;
&lt;br /&gt;
Lua's error command will stop the script, print a message, and cause a stack trace to be printed. Use assert to confirm that a condition is true.&lt;br /&gt;
&lt;br /&gt;
Finally, if you detect an unexpected error condition, you can log a message, trigger a stack trace, and terminate the script with Lua's error function.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
logprint(&amp;quot;Here's a stack trace:&amp;quot;)&lt;br /&gt;
logprint(_stackTracer())&lt;br /&gt;
if target == nil then error(&amp;quot;Have a nil target!&amp;quot;) end&lt;br /&gt;
assert(target, &amp;quot;Target should never be nil here!&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Datatypes</id>
		<title>Datatypes</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Datatypes"/>
				<updated>2013-08-03T00:14:07Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: fix category&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides an overview of the common datatypes used in Bitfighter Lua scripts.&lt;br /&gt;
&lt;br /&gt;
= Point =&lt;br /&gt;
&lt;br /&gt;
Point is a low-overhead custom structure that represents an xy coordinate pair. See the point class documentation for further details.&lt;br /&gt;
&lt;br /&gt;
Note that points are immutable, so cannot be changed once created.&lt;br /&gt;
&lt;br /&gt;
= Geometry =&lt;br /&gt;
&lt;br /&gt;
Geometry is not a formal datatype, but rather a reference to either to a point or a table of points, depending on the context. For example, if the object is inherently point-like (such as an Item or Projectile), then geometry is a Point. For more complex objects (such as a WallItem or a Zone), geometry refers to a Lua table of points. Some objects have a specific number of points. A TextItem, for example, consists of exactly two points, defining its start and endpoints. Some items (like Zones and PolyWalls ) must have a minimum of three points. See the documentation for individual items for details.&lt;br /&gt;
&lt;br /&gt;
The Geom class provides a collection of tools to make common transformations to a point or a table of points.&lt;br /&gt;
&lt;br /&gt;
= Other Datatypes =&lt;br /&gt;
&lt;br /&gt;
bool - Either true or false. In Lua, both nil and false make a condition false; any other value makes it true.&lt;br /&gt;
&lt;br /&gt;
int - A number that has no decimal component. Unlike some languages, Lua does not distinguish between integers and floating point numbers – they are both stored internally as numbers. When a function requires an integer argument, and you provide a floating point number, the fraction will be silently dropped.&lt;br /&gt;
&lt;br /&gt;
num - A real (double-precision floating-point) number. You can also specify an integer without any problems.&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting]]&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Datatypes</id>
		<title>Datatypes</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Datatypes"/>
				<updated>2013-08-03T00:13:23Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Scripting]]&lt;br /&gt;
&lt;br /&gt;
This page provides an overview of the common datatypes used in Bitfighter Lua scripts.&lt;br /&gt;
&lt;br /&gt;
= Point =&lt;br /&gt;
&lt;br /&gt;
Point is a low-overhead custom structure that represents an xy coordinate pair. See the point class documentation for further details.&lt;br /&gt;
&lt;br /&gt;
Note that points are immutable, so cannot be changed once created.&lt;br /&gt;
&lt;br /&gt;
= Geometry =&lt;br /&gt;
&lt;br /&gt;
Geometry is not a formal datatype, but rather a reference to either to a point or a table of points, depending on the context. For example, if the object is inherently point-like (such as an Item or Projectile), then geometry is a Point. For more complex objects (such as a WallItem or a Zone), geometry refers to a Lua table of points. Some objects have a specific number of points. A TextItem, for example, consists of exactly two points, defining its start and endpoints. Some items (like Zones and PolyWalls ) must have a minimum of three points. See the documentation for individual items for details.&lt;br /&gt;
&lt;br /&gt;
The Geom class provides a collection of tools to make common transformations to a point or a table of points.&lt;br /&gt;
&lt;br /&gt;
= Other Datatypes =&lt;br /&gt;
&lt;br /&gt;
bool - Either true or false. In Lua, both nil and false make a condition false; any other value makes it true.&lt;br /&gt;
&lt;br /&gt;
int - A number that has no decimal component. Unlike some languages, Lua does not distinguish between integers and floating point numbers – they are both stored internally as numbers. When a function requires an integer argument, and you provide a floating point number, the fraction will be silently dropped.&lt;br /&gt;
&lt;br /&gt;
num - A real (double-precision floating-point) number. You can also specify an integer without any problems.&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Datatypes</id>
		<title>Datatypes</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Datatypes"/>
				<updated>2013-08-03T00:09:47Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: initial import&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides an overview of the common datatypes used in Bitfighter Lua scripts.&lt;br /&gt;
&lt;br /&gt;
= Point =&lt;br /&gt;
&lt;br /&gt;
Point is a low-overhead custom structure that represents an xy coordinate pair. See the point class documentation for further details.&lt;br /&gt;
&lt;br /&gt;
Note that points are immutable, so cannot be changed once created.&lt;br /&gt;
&lt;br /&gt;
= Geometry =&lt;br /&gt;
&lt;br /&gt;
Geometry is not a formal datatype, but rather a reference to either to a point or a table of points, depending on the context. For example, if the object is inherently point-like (such as an Item or Projectile), then geometry is a Point. For more complex objects (such as a WallItem or a Zone), geometry refers to a Lua table of points. Some objects have a specific number of points. A TextItem, for example, consists of exactly two points, defining its start and endpoints. Some items (like Zones and PolyWalls ) must have a minimum of three points. See the documentation for individual items for details.&lt;br /&gt;
&lt;br /&gt;
The Geom class provides a collection of tools to make common transformations to a point or a table of points.&lt;br /&gt;
&lt;br /&gt;
= Other Datatypes =&lt;br /&gt;
&lt;br /&gt;
bool - Either true or false. In Lua, both nil and false make a condition false; any other value makes it true.&lt;br /&gt;
&lt;br /&gt;
int - A number that has no decimal component. Unlike some languages, Lua does not distinguish between integers and floating point numbers – they are both stored internally as numbers. When a function requires an integer argument, and you provide a floating point number, the fraction will be silently dropped.&lt;br /&gt;
&lt;br /&gt;
num - A real (double-precision floating-point) number. You can also specify an integer without any problems.&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Running_Bug_List</id>
		<title>Running Bug List</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Running_Bug_List"/>
				<updated>2013-08-02T16:14:19Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: &amp;lt;del&amp;gt;Running Bug List&amp;lt;/del&amp;gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To view and report bugs, go to http://code.google.com/p/bitfighter/issues/list&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Running_Bug_List</id>
		<title>Running Bug List</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Running_Bug_List"/>
				<updated>2013-06-29T01:22:39Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* General Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
This is list of our current high-priority bugs for Bitfighter.  &lt;br /&gt;
&lt;br /&gt;
Not all issues belong on this list -- only those that are a high priority for the next release.  Other cases should be added to the [https://code.google.com/p/bitfighter/issues/list Google Code bug tracker].&lt;br /&gt;
&lt;br /&gt;
===General Bugs===&lt;br /&gt;
&lt;br /&gt;
# Figure out how to get ids working properly with walls/polywalls&lt;br /&gt;
# &amp;lt;del&amp;gt;Disable fast regen when standing still trying to build something with engineer&amp;lt;/del&amp;gt;&lt;br /&gt;
# Lua API doc fixes: &lt;br /&gt;
#* &amp;lt;del&amp;gt;event method signatures are not documented&amp;lt;/del&amp;gt;&lt;br /&gt;
#* Check that all the old the Lunar classes mentioned at http://bitfighter.org/wiki/index.php/Scripting_018 are also in the luadocs.&lt;br /&gt;
#* How to document the global enums 'WeaponInfo' 'ModuleInfo'?&lt;br /&gt;
# Improve screen for loading levels in editor -- perhaps general keyword search, or options for picking by author/title/file, or perhaps navigating a folder tree&lt;br /&gt;
# &amp;lt;del&amp;gt;in onShipLeftZone/etc. events with 'ship' object, either the ship or the ship:getPlayerInfo() doesn't return the same userdata object each time anymore&amp;lt;/del&amp;gt;&lt;br /&gt;
# Start game with joystick plugged in; remove joystick; go to Options&amp;gt;Input... crash!  Can't even get a stack trace in Windows!&lt;br /&gt;
# Two clients connecting to a server, all on the same machine, some how share a gameconnection.  This is evident when one client does /idle, but immediately respawns without the user typing a key&lt;br /&gt;
# &amp;lt;del&amp;gt;Memory leak in setting up our scripting environments.  A temporary workaround was put in by sam686 in [https://code.google.com/p/bitfighter/source/detail?r=4d6f2a48d2543b95939382c8619686a9ac5e7529 4d6f2a48d254].  To duplicate, revert sam686's change, go into a level and do /addbots 50, then /kickbots, repeatedly.  To see a nice graphic of where the memory is being created:  http://sam6.25u.com/upload/3snapshot13.png&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;Memory leak with menuitems in scripts again:  http://pastie.org/pastes/8064689/text  MenuItems *are* wrapped in a shared_ptr but aren't being cleaned up???  ==&amp;gt; [[User:Watusimoto|Watusimoto]] 07:59, 23 June 2013 (UTC) I do not believe this claim; I placed a break point on CounterMenuItem, which we use in the curves menu plugin.  I can see the items being created, then deleted when a new menu is created and the old items are (finally) discarded.  When the game gets closed, the last remaining items are deleted.  So I feel pretty confident that everything is (eventually) cleaned up. ==&amp;gt; ''I win - it was a leak'' [[User:Raptor|Raptor]] 15:05, 23 June 2013 (UTC)&amp;lt;/del&amp;gt;&lt;br /&gt;
# luaW_gc is only called when we exit the game - should this be called sooner, like when we change levels? ==&amp;gt; [[User:Watusimoto|Watusimoto]] 07:42, 23 June 2013 (UTC) Isn't this called automatically by the lua garbage collector?  ==&amp;gt; Yes it is.  Does that mean the garbage collector is *only* called when exiting the game?  If so, is that what we want? [[User:Raptor|Raptor]] 15:05, 23 June 2013 (UTC)&lt;br /&gt;
# &amp;lt;del&amp;gt;LuaW memory leak:  add game object, like with TextItem.new(), then don't call call levelgen:addToGame() on it...   leak!  ==&amp;gt; [[User:Watusimoto|Watusimoto]] 07:42, 23 June 2013 (UTC) I think this is not something to worry about.  We can warn coders about this problem in our documentation, but there is no reason, besides a programming bug, that this would happen -- there is no point to creating an object and then not adding it.  Please correct me if I'm mistaken&amp;lt;/del&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Things to test after next lua rewrite====&lt;br /&gt;
# Levelgen: Having addItem() in main() may randomly fail on repeated ctrl+R in editor or repeated level restart, showing message &amp;quot;***LEVELGEN ERROR*** Error encountered while attempting to run script's main() function: ***.levelgen:44: attempt to call missing or unknown method 'addItem' (a nil value).  Aborting script.&amp;quot;&lt;br /&gt;
#:&amp;lt;code&amp;gt;-- for bug #33 from sam686&amp;lt;br&amp;gt;function main()&amp;lt;br&amp;gt;&amp;amp;nbsp; for x = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; for y = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; item2 = ResourceItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;  item2:setGeom(x * 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(item2)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem = TextItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setText(x .. &amp;quot;,&amp;quot; .. y)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setGeom(x * 100, y * 100, x * 100 + 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(textitem)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; end&amp;lt;br&amp;gt;&amp;amp;nbsp; end&amp;lt;br&amp;gt;end&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Running_Bug_List</id>
		<title>Running Bug List</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Running_Bug_List"/>
				<updated>2013-06-28T11:49:25Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* General Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
This is list of our current high-priority bugs for Bitfighter.  &lt;br /&gt;
&lt;br /&gt;
Not all issues belong on this list -- only those that are a high priority for the next release.  Other cases should be added to the [https://code.google.com/p/bitfighter/issues/list Google Code bug tracker].&lt;br /&gt;
&lt;br /&gt;
===General Bugs===&lt;br /&gt;
&lt;br /&gt;
# Figure out how to get ids working properly with walls/polywalls&lt;br /&gt;
# &amp;lt;del&amp;gt;Disable fast regen when standing still trying to build something with engineer&amp;lt;/del&amp;gt;&lt;br /&gt;
# Lua API doc fixes: &lt;br /&gt;
#* event method signatures are not documented&lt;br /&gt;
#* Check that all the old the Lunar classes mentioned at http://bitfighter.org/wiki/index.php/Scripting_018 are also in the luadocs.&lt;br /&gt;
#* How to document the global enums 'WeaponInfo' 'ModuleInfo'?&lt;br /&gt;
# Improve screen for loading levels in editor -- perhaps general keyword search, or options for picking by author/title/file, or perhaps navigating a folder tree&lt;br /&gt;
# &amp;lt;del&amp;gt;in onShipLeftZone/etc. events with 'ship' object, either the ship or the ship:getPlayerInfo() doesn't return the same userdata object each time anymore&amp;lt;/del&amp;gt;&lt;br /&gt;
# Start game with joystick plugged in; remove joystick; go to Options&amp;gt;Input... crash!  Can't even get a stack trace in Windows!&lt;br /&gt;
# Two clients connecting to a server, all on the same machine, some how share a gameconnection.  This is evident when one client does /idle, but immediately respawns without the user typing a key&lt;br /&gt;
# &amp;lt;del&amp;gt;Memory leak in setting up our scripting environments.  A temporary workaround was put in by sam686 in [https://code.google.com/p/bitfighter/source/detail?r=4d6f2a48d2543b95939382c8619686a9ac5e7529 4d6f2a48d254].  To duplicate, revert sam686's change, go into a level and do /addbots 50, then /kickbots, repeatedly.  To see a nice graphic of where the memory is being created:  http://sam6.25u.com/upload/3snapshot13.png&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;Memory leak with menuitems in scripts again:  http://pastie.org/pastes/8064689/text  MenuItems *are* wrapped in a shared_ptr but aren't being cleaned up???  ==&amp;gt; [[User:Watusimoto|Watusimoto]] 07:59, 23 June 2013 (UTC) I do not believe this claim; I placed a break point on CounterMenuItem, which we use in the curves menu plugin.  I can see the items being created, then deleted when a new menu is created and the old items are (finally) discarded.  When the game gets closed, the last remaining items are deleted.  So I feel pretty confident that everything is (eventually) cleaned up. ==&amp;gt; ''I win - it was a leak'' [[User:Raptor|Raptor]] 15:05, 23 June 2013 (UTC)&amp;lt;/del&amp;gt;&lt;br /&gt;
# luaW_gc is only called when we exit the game - should this be called sooner, like when we change levels? ==&amp;gt; [[User:Watusimoto|Watusimoto]] 07:42, 23 June 2013 (UTC) Isn't this called automatically by the lua garbage collector?  ==&amp;gt; Yes it is.  Does that mean the garbage collector is *only* called when exiting the game?  If so, is that what we want? [[User:Raptor|Raptor]] 15:05, 23 June 2013 (UTC)&lt;br /&gt;
# &amp;lt;del&amp;gt;LuaW memory leak:  add game object, like with TextItem.new(), then don't call call levelgen:addToGame() on it...   leak!  ==&amp;gt; [[User:Watusimoto|Watusimoto]] 07:42, 23 June 2013 (UTC) I think this is not something to worry about.  We can warn coders about this problem in our documentation, but there is no reason, besides a programming bug, that this would happen -- there is no point to creating an object and then not adding it.  Please correct me if I'm mistaken&amp;lt;/del&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Things to test after next lua rewrite====&lt;br /&gt;
# Levelgen: Having addItem() in main() may randomly fail on repeated ctrl+R in editor or repeated level restart, showing message &amp;quot;***LEVELGEN ERROR*** Error encountered while attempting to run script's main() function: ***.levelgen:44: attempt to call missing or unknown method 'addItem' (a nil value).  Aborting script.&amp;quot;&lt;br /&gt;
#:&amp;lt;code&amp;gt;-- for bug #33 from sam686&amp;lt;br&amp;gt;function main()&amp;lt;br&amp;gt;&amp;amp;nbsp; for x = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; for y = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; item2 = ResourceItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;  item2:setGeom(x * 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(item2)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem = TextItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setText(x .. &amp;quot;,&amp;quot; .. y)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setGeom(x * 100, y * 100, x * 100 + 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(textitem)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; end&amp;lt;br&amp;gt;&amp;amp;nbsp; end&amp;lt;br&amp;gt;end&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Running_Bug_List</id>
		<title>Running Bug List</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Running_Bug_List"/>
				<updated>2013-06-28T11:31:27Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* General Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
This is list of our current high-priority bugs for Bitfighter.  &lt;br /&gt;
&lt;br /&gt;
Not all issues belong on this list -- only those that are a high priority for the next release.  Other cases should be added to the [https://code.google.com/p/bitfighter/issues/list Google Code bug tracker].&lt;br /&gt;
&lt;br /&gt;
===General Bugs===&lt;br /&gt;
&lt;br /&gt;
# Figure out how to get ids working properly with walls/polywalls&lt;br /&gt;
# &amp;lt;del&amp;gt;Disable fast regen when standing still trying to build something with engineer&amp;lt;/del&amp;gt;&lt;br /&gt;
# Lua API doc fixes: &lt;br /&gt;
#* event method signatures are not documented&lt;br /&gt;
#* Check that all the old the Lunar classes mentioned at http://bitfighter.org/wiki/index.php/Scripting_018 are also in the luadocs.&lt;br /&gt;
#* How to document the global enums 'WeaponInfo' 'ModuleInfo'?&lt;br /&gt;
# Improve screen for loading levels in editor -- perhaps general keyword search, or options for picking by author/title/file, or perhaps navigating a folder tree&lt;br /&gt;
# in onShipLeftZone/etc. events with 'ship' object, either the ship or the ship:getPlayerInfo() doesn't return the same userdata object each time anymore&lt;br /&gt;
# Start game with joystick plugged in; remove joystick; go to Options&amp;gt;Input... crash!  Can't even get a stack trace in Windows!&lt;br /&gt;
# Two clients connecting to a server, all on the same machine, some how share a gameconnection.  This is evident when one client does /idle, but immediately respawns without the user typing a key&lt;br /&gt;
# &amp;lt;del&amp;gt;Memory leak in setting up our scripting environments.  A temporary workaround was put in by sam686 in [https://code.google.com/p/bitfighter/source/detail?r=4d6f2a48d2543b95939382c8619686a9ac5e7529 4d6f2a48d254].  To duplicate, revert sam686's change, go into a level and do /addbots 50, then /kickbots, repeatedly.  To see a nice graphic of where the memory is being created:  http://sam6.25u.com/upload/3snapshot13.png&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;Memory leak with menuitems in scripts again:  http://pastie.org/pastes/8064689/text  MenuItems *are* wrapped in a shared_ptr but aren't being cleaned up???  ==&amp;gt; [[User:Watusimoto|Watusimoto]] 07:59, 23 June 2013 (UTC) I do not believe this claim; I placed a break point on CounterMenuItem, which we use in the curves menu plugin.  I can see the items being created, then deleted when a new menu is created and the old items are (finally) discarded.  When the game gets closed, the last remaining items are deleted.  So I feel pretty confident that everything is (eventually) cleaned up. ==&amp;gt; ''I win - it was a leak'' [[User:Raptor|Raptor]] 15:05, 23 June 2013 (UTC)&amp;lt;/del&amp;gt;&lt;br /&gt;
# luaW_gc is only called when we exit the game - should this be called sooner, like when we change levels? ==&amp;gt; [[User:Watusimoto|Watusimoto]] 07:42, 23 June 2013 (UTC) Isn't this called automatically by the lua garbage collector?  ==&amp;gt; Yes it is.  Does that mean the garbage collector is *only* called when exiting the game?  If so, is that what we want? [[User:Raptor|Raptor]] 15:05, 23 June 2013 (UTC)&lt;br /&gt;
# &amp;lt;del&amp;gt;LuaW memory leak:  add game object, like with TextItem.new(), then don't call call levelgen:addToGame() on it...   leak!  ==&amp;gt; [[User:Watusimoto|Watusimoto]] 07:42, 23 June 2013 (UTC) I think this is not something to worry about.  We can warn coders about this problem in our documentation, but there is no reason, besides a programming bug, that this would happen -- there is no point to creating an object and then not adding it.  Please correct me if I'm mistaken&amp;lt;/del&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Things to test after next lua rewrite====&lt;br /&gt;
# Levelgen: Having addItem() in main() may randomly fail on repeated ctrl+R in editor or repeated level restart, showing message &amp;quot;***LEVELGEN ERROR*** Error encountered while attempting to run script's main() function: ***.levelgen:44: attempt to call missing or unknown method 'addItem' (a nil value).  Aborting script.&amp;quot;&lt;br /&gt;
#:&amp;lt;code&amp;gt;-- for bug #33 from sam686&amp;lt;br&amp;gt;function main()&amp;lt;br&amp;gt;&amp;amp;nbsp; for x = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; for y = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; item2 = ResourceItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;  item2:setGeom(x * 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(item2)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem = TextItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setText(x .. &amp;quot;,&amp;quot; .. y)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setGeom(x * 100, y * 100, x * 100 + 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(textitem)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; end&amp;lt;br&amp;gt;&amp;amp;nbsp; end&amp;lt;br&amp;gt;end&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Running_Bug_List</id>
		<title>Running Bug List</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Running_Bug_List"/>
				<updated>2013-06-27T13:16:30Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* General Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
This is list of our current high-priority bugs for Bitfighter.  &lt;br /&gt;
&lt;br /&gt;
Not all issues belong on this list -- only those that are a high priority for the next release.  Other cases should be added to the [https://code.google.com/p/bitfighter/issues/list Google Code bug tracker].&lt;br /&gt;
&lt;br /&gt;
===General Bugs===&lt;br /&gt;
&lt;br /&gt;
# Figure out how to get ids working properly with walls/polywalls&lt;br /&gt;
# Disable fast regen when standing still trying to build something with engineer&lt;br /&gt;
# Lua API doc fixes: &lt;br /&gt;
#* event method signatures are not documented&lt;br /&gt;
#* Check that all the old the Lunar classes mentioned at http://bitfighter.org/wiki/index.php/Scripting_018 are also in the luadocs.&lt;br /&gt;
#* How to document the global enums 'WeaponInfo' 'ModuleInfo'?&lt;br /&gt;
# Improve screen for loading levels in editor -- perhaps general keyword search, or options for picking by author/title/file, or perhaps navigating a folder tree&lt;br /&gt;
# in onShipLeftZone/etc. events with 'ship' object, either the ship or the ship:getPlayerInfo() doesn't return the same userdata object each time anymore&lt;br /&gt;
# Start game with joystick plugged in; remove joystick; go to Options&amp;gt;Input... crash!  Can't even get a stack trace in Windows!&lt;br /&gt;
# Two clients connecting to a server, all on the same machine, some how share a gameconnection.  This is evident when one client does /idle, but immediately respawns without the user typing a key&lt;br /&gt;
# &amp;lt;del&amp;gt;Memory leak in setting up our scripting environments.  A temporary workaround was put in by sam686 in [https://code.google.com/p/bitfighter/source/detail?r=4d6f2a48d2543b95939382c8619686a9ac5e7529 4d6f2a48d254].  To duplicate, revert sam686's change, go into a level and do /addbots 50, then /kickbots, repeatedly.  To see a nice graphic of where the memory is being created:  http://sam6.25u.com/upload/3snapshot13.png&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;Memory leak with menuitems in scripts again:  http://pastie.org/pastes/8064689/text  MenuItems *are* wrapped in a shared_ptr but aren't being cleaned up???  ==&amp;gt; [[User:Watusimoto|Watusimoto]] 07:59, 23 June 2013 (UTC) I do not believe this claim; I placed a break point on CounterMenuItem, which we use in the curves menu plugin.  I can see the items being created, then deleted when a new menu is created and the old items are (finally) discarded.  When the game gets closed, the last remaining items are deleted.  So I feel pretty confident that everything is (eventually) cleaned up. ==&amp;gt; ''I win - it was a leak'' [[User:Raptor|Raptor]] 15:05, 23 June 2013 (UTC)&amp;lt;/del&amp;gt;&lt;br /&gt;
# luaW_gc is only called when we exit the game - should this be called sooner, like when we change levels? ==&amp;gt; [[User:Watusimoto|Watusimoto]] 07:42, 23 June 2013 (UTC) Isn't this called automatically by the lua garbage collector?  ==&amp;gt; Yes it is.  Does that mean the garbage collector is *only* called when exiting the game?  If so, is that what we want? [[User:Raptor|Raptor]] 15:05, 23 June 2013 (UTC)&lt;br /&gt;
# &amp;lt;del&amp;gt;LuaW memory leak:  add game object, like with TextItem.new(), then don't call call levelgen:addToGame() on it...   leak!  ==&amp;gt; [[User:Watusimoto|Watusimoto]] 07:42, 23 June 2013 (UTC) I think this is not something to worry about.  We can warn coders about this problem in our documentation, but there is no reason, besides a programming bug, that this would happen -- there is no point to creating an object and then not adding it.  Please correct me if I'm mistaken&amp;lt;/del&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Things to test after next lua rewrite====&lt;br /&gt;
# Levelgen: Having addItem() in main() may randomly fail on repeated ctrl+R in editor or repeated level restart, showing message &amp;quot;***LEVELGEN ERROR*** Error encountered while attempting to run script's main() function: ***.levelgen:44: attempt to call missing or unknown method 'addItem' (a nil value).  Aborting script.&amp;quot;&lt;br /&gt;
#:&amp;lt;code&amp;gt;-- for bug #33 from sam686&amp;lt;br&amp;gt;function main()&amp;lt;br&amp;gt;&amp;amp;nbsp; for x = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; for y = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; item2 = ResourceItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;  item2:setGeom(x * 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(item2)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem = TextItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setText(x .. &amp;quot;,&amp;quot; .. y)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setGeom(x * 100, y * 100, x * 100 + 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(textitem)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; end&amp;lt;br&amp;gt;&amp;amp;nbsp; end&amp;lt;br&amp;gt;end&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Running_Bug_List</id>
		<title>Running Bug List</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Running_Bug_List"/>
				<updated>2013-06-05T15:41:26Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* General Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
This is list of our current high-priority bugs for Bitfighter.  &lt;br /&gt;
&lt;br /&gt;
Not all issues belong on this list -- only those that are a high priority for the next release.  Other cases should be added to the [https://code.google.com/p/bitfighter/issues/list Google Code bug tracker].&lt;br /&gt;
&lt;br /&gt;
===General Bugs===&lt;br /&gt;
&lt;br /&gt;
# Fix (or kill) /suspend command.  ''Removed client-side by raptor''  Do we need to remove the server ability to suspend client?&lt;br /&gt;
# Figure out how to get ids working properly with walls/polywalls&lt;br /&gt;
# Fix memory leak with robots/levelgen because of disabling every luaW_hold&amp;lt;T&amp;gt;(L, obj); --&amp;gt; use reference counting to delete proxy when appropriate, and reenable this line&lt;br /&gt;
#* &amp;lt;del&amp;gt;sam686: repeated /addbots /kickbots kindof leaks memory and won't free memory until after running LuaScriptRunner::shutdown() which is normally run only when quitting. Check if everything is freed when a robot is removed.&amp;lt;/del&amp;gt; temporary workarounds in [https://code.google.com/p/bitfighter/source/detail?r=4d6f2a48d2543b95939382c8619686a9ac5e7529 4d6f2a48d254] and [https://code.google.com/p/bitfighter/source/detail?r=01414236b4edcdc510b42ac3e2c1144adf17d249 01414236b4ed]&lt;br /&gt;
# Disable fast regen when standing still trying to build something with engineer&lt;br /&gt;
# Lua API doc fixes: &lt;br /&gt;
#* event method signatures are not documented&lt;br /&gt;
#* Check that all the old the Lunar classes mentioned at http://bitfighter.org/wiki/index.php/Scripting_018 are also in the luadocs.&lt;br /&gt;
#* How to document the global enums 'WeaponInfo' 'ModuleInfo'?&lt;br /&gt;
# &amp;lt;del&amp;gt;Bobdaduck's Lua API crashes:&lt;br /&gt;
#* create and delete a spybug each tick, then shoot the spybug.  crash!  See:  http://pastie.org/8011549&amp;lt;/del&amp;gt;&lt;br /&gt;
# Improve screen for loading levels in editor -- perhaps general keyword search, or options for picking by author/title/file, or perhaps navigating a folder tree&lt;br /&gt;
# &amp;lt;del&amp;gt;Remove access to dangerous Lua libraries (esp. os and io)  See http://lua-users.org/wiki/SandBoxes for ideas.&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;Render order issues:&lt;br /&gt;
#* ships render under flags  ''not an issue''&lt;br /&gt;
#* Objective arrows rendering on top of F2 display&lt;br /&gt;
#* server messages/ loadout boxes render on top of F2 level info display&amp;lt;/del&amp;gt;&lt;br /&gt;
# bitfighter.ini [QuickChatMessages] is empty with missing comments after a newer version of Bitfighter is run, when &amp;quot;[Settings] version=&amp;quot; is older. Comments only appears after &amp;quot;[QuickChatMessages]&amp;quot; is removed and bitfighter is run.&lt;br /&gt;
# &amp;lt;del&amp;gt;When running with no joysticks attached, get this message on the system console: Error opening joystick 1 [(null)]&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;/idle always respawns you after 5 seconds (no key press needed)&amp;lt;/del&amp;gt;&lt;br /&gt;
# in onShipLeftZone/etc. events with 'ship' object, either the ship or the ship:getPlayerInfo() doesn't return the same userdata object each time anymore&lt;br /&gt;
# Start game with joystick plugged in; remove joystick; go to Options&amp;gt;Input... crash!  Can't even get a stack trace in Windows!&lt;br /&gt;
# &amp;lt;del&amp;gt;Symbols rendered off-center vertically: http://sam6.25u.com/upload/3screenshot_19.png&amp;lt;/del&amp;gt;&lt;br /&gt;
# Cycling through full screen modes and back to normal window causes window size and position to be lost --[[User:Raptor|Raptor]] 01:19, 5 June 2013 (UTC) Working on it with the SDL2 development list.  follow thread here:  http://lists.libsdl.org/pipermail/sdl-libsdl.org/2013-June/088626.html&lt;br /&gt;
# Allow Lua scripts to write to some location (like for log saving).  Since the sandbox won't allow io.*, consider providing a global function to read/write to a specific directory only&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Things to test after next lua rewrite====&lt;br /&gt;
# Levelgen: Having addItem() in main() may randomly fail on repeated ctrl+R in editor or repeated level restart, showing message &amp;quot;***LEVELGEN ERROR*** Error encountered while attempting to run script's main() function: ***.levelgen:44: attempt to call missing or unknown method 'addItem' (a nil value).  Aborting script.&amp;quot;&lt;br /&gt;
#:&amp;lt;code&amp;gt;-- for bug #33 from sam686&amp;lt;br&amp;gt;function main()&amp;lt;br&amp;gt;&amp;amp;nbsp; for x = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; for y = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; item2 = ResourceItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;  item2:setGeom(x * 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(item2)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem = TextItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setText(x .. &amp;quot;,&amp;quot; .. y)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setGeom(x * 100, y * 100, x * 100 + 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(textitem)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; end&amp;lt;br&amp;gt;&amp;amp;nbsp; end&amp;lt;br&amp;gt;end&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Running_Bug_List</id>
		<title>Running Bug List</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Running_Bug_List"/>
				<updated>2013-06-05T15:31:21Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* General Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
This is list of our current high-priority bugs for Bitfighter.  &lt;br /&gt;
&lt;br /&gt;
Not all issues belong on this list -- only those that are a high priority for the next release.  Other cases should be added to the [https://code.google.com/p/bitfighter/issues/list Google Code bug tracker].&lt;br /&gt;
&lt;br /&gt;
===General Bugs===&lt;br /&gt;
&lt;br /&gt;
# Fix (or kill) /suspend command.  ''Removed client-side by raptor''  Do we need to remove the server ability to suspend client?&lt;br /&gt;
# Figure out how to get ids working properly with walls/polywalls&lt;br /&gt;
# Fix memory leak with robots/levelgen because of disabling every luaW_hold&amp;lt;T&amp;gt;(L, obj); --&amp;gt; use reference counting to delete proxy when appropriate, and reenable this line&lt;br /&gt;
#* &amp;lt;del&amp;gt;sam686: repeated /addbots /kickbots kindof leaks memory and won't free memory until after running LuaScriptRunner::shutdown() which is normally run only when quitting. Check if everything is freed when a robot is removed.&amp;lt;/del&amp;gt; temporary workarounds in [https://code.google.com/p/bitfighter/source/detail?r=4d6f2a48d2543b95939382c8619686a9ac5e7529 4d6f2a48d254] and [https://code.google.com/p/bitfighter/source/detail?r=01414236b4edcdc510b42ac3e2c1144adf17d249 01414236b4ed]&lt;br /&gt;
# Disable fast regen when standing still trying to build something with engineer&lt;br /&gt;
# Lua API doc fixes: &lt;br /&gt;
#* event method signatures are not documented&lt;br /&gt;
#* Check that all the old the Lunar classes mentioned at http://bitfighter.org/wiki/index.php/Scripting_018 are also in the luadocs.&lt;br /&gt;
#* How to document the global enums 'WeaponInfo' 'ModuleInfo'?&lt;br /&gt;
# &amp;lt;del&amp;gt;Bobdaduck's Lua API crashes:&lt;br /&gt;
#* create and delete a spybug each tick, then shoot the spybug.  crash!  See:  http://pastie.org/8011549&amp;lt;/del&amp;gt;&lt;br /&gt;
# Improve screen for loading levels in editor -- perhaps general keyword search, or options for picking by author/title/file, or perhaps navigating a folder tree&lt;br /&gt;
# &amp;lt;del&amp;gt;Remove access to dangerous Lua libraries (esp. os and io)  See http://lua-users.org/wiki/SandBoxes for ideas.&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;Render order issues:&lt;br /&gt;
#* ships render under flags  ''not an issue''&lt;br /&gt;
#* Objective arrows rendering on top of F2 display&lt;br /&gt;
#* server messages/ loadout boxes render on top of F2 level info display&amp;lt;/del&amp;gt;&lt;br /&gt;
# bitfighter.ini [QuickChatMessages] is empty with missing comments after a newer version of Bitfighter is run, when &amp;quot;[Settings] version=&amp;quot; is older. Comments only appears after &amp;quot;[QuickChatMessages]&amp;quot; is removed and bitfighter is run.&lt;br /&gt;
# When running with no joysticks attached, get this message on the system console: Error opening joystick 1 [(null)]&lt;br /&gt;
# &amp;lt;del&amp;gt;/idle always respawns you after 5 seconds (no key press needed)&amp;lt;/del&amp;gt;&lt;br /&gt;
# in onShipLeftZone/etc. events with 'ship' object, either the ship or the ship:getPlayerInfo() doesn't return the same userdata object each time anymore&lt;br /&gt;
# Start game with joystick plugged in; remove joystick; go to Options&amp;gt;Input... crash!  Can't even get a stack trace in Windows!&lt;br /&gt;
# &amp;lt;del&amp;gt;Symbols rendered off-center vertically: http://sam6.25u.com/upload/3screenshot_19.png&amp;lt;/del&amp;gt;&lt;br /&gt;
# Cycling through full screen modes and back to normal window causes window size and position to be lost --[[User:Raptor|Raptor]] 01:19, 5 June 2013 (UTC) Working on it with the SDL2 development list.  follow thread here:  http://lists.libsdl.org/pipermail/sdl-libsdl.org/2013-June/088626.html&lt;br /&gt;
# Allow Lua scripts to write to some location (like for log saving).  Since the sandbox won't allow io.*, consider providing a global function to read/write to a specific directory only&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Things to test after next lua rewrite====&lt;br /&gt;
# Levelgen: Having addItem() in main() may randomly fail on repeated ctrl+R in editor or repeated level restart, showing message &amp;quot;***LEVELGEN ERROR*** Error encountered while attempting to run script's main() function: ***.levelgen:44: attempt to call missing or unknown method 'addItem' (a nil value).  Aborting script.&amp;quot;&lt;br /&gt;
#:&amp;lt;code&amp;gt;-- for bug #33 from sam686&amp;lt;br&amp;gt;function main()&amp;lt;br&amp;gt;&amp;amp;nbsp; for x = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; for y = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; item2 = ResourceItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;  item2:setGeom(x * 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(item2)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem = TextItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setText(x .. &amp;quot;,&amp;quot; .. y)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setGeom(x * 100, y * 100, x * 100 + 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(textitem)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; end&amp;lt;br&amp;gt;&amp;amp;nbsp; end&amp;lt;br&amp;gt;end&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Running_Bug_List</id>
		<title>Running Bug List</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Running_Bug_List"/>
				<updated>2013-06-05T14:06:35Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* General Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
This is list of our current high-priority bugs for Bitfighter.  &lt;br /&gt;
&lt;br /&gt;
Not all issues belong on this list -- only those that are a high priority for the next release.  Other cases should be added to the [https://code.google.com/p/bitfighter/issues/list Google Code bug tracker].&lt;br /&gt;
&lt;br /&gt;
===General Bugs===&lt;br /&gt;
&lt;br /&gt;
# Fix (or kill) /suspend command.  ''Removed client-side by raptor''  Do we need to remove the server ability to suspend client?&lt;br /&gt;
# Figure out how to get ids working properly with walls/polywalls&lt;br /&gt;
# Fix memory leak with robots/levelgen because of disabling every luaW_hold&amp;lt;T&amp;gt;(L, obj); --&amp;gt; use reference counting to delete proxy when appropriate, and reenable this line&lt;br /&gt;
#* &amp;lt;del&amp;gt;sam686: repeated /addbots /kickbots kindof leaks memory and won't free memory until after running LuaScriptRunner::shutdown() which is normally run only when quitting. Check if everything is freed when a robot is removed.&amp;lt;/del&amp;gt; temporary workarounds in [https://code.google.com/p/bitfighter/source/detail?r=4d6f2a48d2543b95939382c8619686a9ac5e7529 4d6f2a48d254] and [https://code.google.com/p/bitfighter/source/detail?r=01414236b4edcdc510b42ac3e2c1144adf17d249 01414236b4ed]&lt;br /&gt;
# Disable fast regen when standing still trying to build something with engineer&lt;br /&gt;
# Lua API doc fixes: &lt;br /&gt;
#* event method signatures are not documented&lt;br /&gt;
#* Check that all the old the Lunar classes mentioned at http://bitfighter.org/wiki/index.php/Scripting_018 are also in the luadocs.&lt;br /&gt;
#* How to document the global enums 'WeaponInfo' 'ModuleInfo'?&lt;br /&gt;
# Bobdaduck's Lua API crashes:&lt;br /&gt;
#* create and delete a spybug each tick, then shoot the spybug.  crash!  See:  http://pastie.org/8011549&lt;br /&gt;
# Improve screen for loading levels in editor -- perhaps general keyword search, or options for picking by author/title/file, or perhaps navigating a folder tree&lt;br /&gt;
# &amp;lt;del&amp;gt;Remove access to dangerous Lua libraries (esp. os and io)  See http://lua-users.org/wiki/SandBoxes for ideas.&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;Render order issues:&lt;br /&gt;
#* ships render under flags  ''not an issue''&lt;br /&gt;
#* Objective arrows rendering on top of F2 display&lt;br /&gt;
#* server messages/ loadout boxes render on top of F2 level info display&amp;lt;/del&amp;gt;&lt;br /&gt;
# bitfighter.ini [QuickChatMessages] is empty with missing comments after a newer version of Bitfighter is run, when &amp;quot;[Settings] version=&amp;quot; is older. Comments only appears after &amp;quot;[QuickChatMessages]&amp;quot; is removed and bitfighter is run.&lt;br /&gt;
# When running with no joysticks attached, get this message on the system console: Error opening joystick 1 [(null)]&lt;br /&gt;
# &amp;lt;del&amp;gt;/idle always respawns you after 5 seconds (no key press needed)&amp;lt;/del&amp;gt;&lt;br /&gt;
# in onShipLeftZone/etc. events with 'ship' object, either the ship or the ship:getPlayerInfo() doesn't return the same userdata object each time anymore&lt;br /&gt;
# Start game with joystick plugged in; remove joystick; go to Options&amp;gt;Input... crash!  Can't even get a stack trace in Windows!&lt;br /&gt;
# &amp;lt;del&amp;gt;Symbols rendered off-center vertically: http://sam6.25u.com/upload/3screenshot_19.png&amp;lt;/del&amp;gt;&lt;br /&gt;
# Cycling through full screen modes and back to normal window causes window size and position to be lost --[[User:Raptor|Raptor]] 01:19, 5 June 2013 (UTC) Working on it with the SDL2 development list.  follow thread here:  http://lists.libsdl.org/pipermail/sdl-libsdl.org/2013-June/088626.html&lt;br /&gt;
# Allow Lua scripts to write to some location (like for log saving).  Since the sandbox won't allow io.*, consider providing a global function to read/write to a specific directory only&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Things to test after next lua rewrite====&lt;br /&gt;
# Levelgen: Having addItem() in main() may randomly fail on repeated ctrl+R in editor or repeated level restart, showing message &amp;quot;***LEVELGEN ERROR*** Error encountered while attempting to run script's main() function: ***.levelgen:44: attempt to call missing or unknown method 'addItem' (a nil value).  Aborting script.&amp;quot;&lt;br /&gt;
#:&amp;lt;code&amp;gt;-- for bug #33 from sam686&amp;lt;br&amp;gt;function main()&amp;lt;br&amp;gt;&amp;amp;nbsp; for x = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; for y = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; item2 = ResourceItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;  item2:setGeom(x * 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(item2)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem = TextItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setText(x .. &amp;quot;,&amp;quot; .. y)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setGeom(x * 100, y * 100, x * 100 + 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(textitem)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; end&amp;lt;br&amp;gt;&amp;amp;nbsp; end&amp;lt;br&amp;gt;end&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Running_Bug_List</id>
		<title>Running Bug List</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Running_Bug_List"/>
				<updated>2013-04-11T23:40:55Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* General Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
This is list of our current high-priority bugs for Bitfighter.  &lt;br /&gt;
&lt;br /&gt;
Not all issues belong on this list -- only those that are a high priority for the next release.  Other cases should be added to the [https://code.google.com/p/bitfighter/issues/list Google Code bug tracker].&lt;br /&gt;
&lt;br /&gt;
===General Bugs===&lt;br /&gt;
&lt;br /&gt;
# Joining a game already running won't show your badges in the scoreboard until next level.  Existing clients get info on the joiner, but joiner doesn't get the full 411 on the existing players.  GameType::serverAddClient::s2cAddClient isn't sending proper badge info to joiner.&lt;br /&gt;
# Fix (or kill) /suspend command.  ''Removed client-side by raptor''  Do we need to remove the server ability to suspend client?&lt;br /&gt;
# Figure out how to get ids working properly with walls/polywalls&lt;br /&gt;
# When teleporting on top of walls (layered walls?) sometimes a player gets stuck and cannot move or commit suicide.  This may be hard to track down.&lt;br /&gt;
# One black screen of doom case left:  Open two clients; don't move in one to let spawn delay kick in (30 seconds); go to a /next level, the first should now be spawn delayed; go to /next level again, the first cannot come back to game now&lt;br /&gt;
# Fix memory leak with robots/levelgen because of disabling every luaW_hold&amp;lt;T&amp;gt;(L, obj); --&amp;gt; use reference counting to delete proxy when appropriate, and reenable this line&lt;br /&gt;
# Disable fast regen when standing still trying to build something with engineer&lt;br /&gt;
# Public Lua API members for the 'Item' object should probably be moved somewhere more appropriate.  See http://bitfighter.org/luadocs/class_item.html  isOnShip() should not apply to EngineeredItem, etc.&lt;br /&gt;
# Clean-up master chat commands.  Add consistency; /raptor -&amp;gt; /pm raptor  etc.&lt;br /&gt;
# Lua API doc fixes: &lt;br /&gt;
#* event method signatures are not documented&lt;br /&gt;
#* 'LuaPlayerInfo' class?  All the Lunar classes mentioned here:  http://bitfighter.org/wiki/index.php/Scripting_018&lt;br /&gt;
#* &amp;lt;del&amp;gt;what happen to the 'Ship' methods?&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;Lua event onShipSpawned isn't triggered when starting a level already connected to a server.  the 'suppressEvents' part of EventManager::fireEvent(EventType eventType, Ship *ship) [EventManager.cpp:292] returns true in this case for some reason&amp;lt;/del&amp;gt;&lt;br /&gt;
# Bobdaduck's Lua API crashes:&lt;br /&gt;
#* create and delete a spybug each tick, then shoot the spybug.  crash!&lt;br /&gt;
# &amp;lt;del&amp;gt;Client-side crash dying with commander's map open:  http://pastie.org/7063833&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;If ship spawns in a zone, it should trigger the onShipEnteredZone event (bobdaduck reports it does not)&amp;lt;/del&amp;gt;&lt;br /&gt;
# Improve screen for loading levels in editor -- perhaps general keyword search, or options for picking by author/title/file, or perhaps navigating a folder tree&lt;br /&gt;
# &amp;lt;del&amp;gt;Graphically indicate if turrets/FFPs are regenerative.  bobdaduck suggests filling in the semicircle and triangle (turrent and FFP respectively)&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;/addbots 6, crash!  Due to this revision?:  https://code.google.com/p/bitfighter/source/detail?r=d68cf36095763f5d9c928f7d03cb98ff2265fa41&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;FF/Turret snapping in the editor needs serious work.  See http://pastie.org/pastes/7303300/text for a simple example (load in 'host-game' first to see what it should look like).  Also rotation of things in the editor messes up snapping as well.&amp;lt;/del&amp;gt;&lt;br /&gt;
#* The test behaves as the code intends. It's more of a bug that you can put FFs there in the first place. Maybe we should add an INI option to disable engineered item resnapping when loading in the editor.&lt;br /&gt;
#* What about arbitrarily moving/rotating/resizing?&lt;br /&gt;
# Make INI option 'GlobalLevelScript' take multiple scripts.  Probably just use comma-delimited list like so:  GlobalLevelScript=logger,adminutils,killraptor&lt;br /&gt;
# Remove access to dangerous Lua libraries (esp. os and io)  See http://lua-users.org/wiki/SandBoxes for ideas.&lt;br /&gt;
# &amp;lt;del&amp;gt;If an editor plugin crashes (in Lua) the game will crash with a segfault.  Should be resilient.&amp;lt;/del&amp;gt;&lt;br /&gt;
# Move Lua loadout changes to Ship, from Robot&lt;br /&gt;
# Editor plugins need to use the new API (via addItem, etc.) instead of :addLevelLine()&lt;br /&gt;
# Bot balancing bug: 3 people join on two teams, balance to 6 players.  then all humans go on the same team.  Result:  bots's don't rebalance and you're left with 4 on 2.&lt;br /&gt;
# Sneaking suspicion that if one client is spawnDelayed, the server is delayed too&lt;br /&gt;
# missing levelgen:findObjects() method to search for in-game objects of whatever type&lt;br /&gt;
# Font Textures lost when change to/from fullscreen&lt;br /&gt;
# Render order issue -- ships render under flags&lt;br /&gt;
# Objective arrows rendering on top of F2 display&lt;br /&gt;
# If LineItems are not 'global' (new feature of 019), they don't show up in the editor TAB view &lt;br /&gt;
&lt;br /&gt;
====Things to test after next lua rewrite====&lt;br /&gt;
# Levelgen: Having addItem() in main() may randomly fail on repeated ctrl+R in editor or repeated level restart, showing message &amp;quot;***LEVELGEN ERROR*** Error encountered while attempting to run script's main() function: ***.levelgen:44: attempt to call missing or unknown method 'addItem' (a nil value).  Aborting script.&amp;quot;&lt;br /&gt;
#:&amp;lt;code&amp;gt;-- for bug #33 from sam686&amp;lt;br&amp;gt;function main()&amp;lt;br&amp;gt;&amp;amp;nbsp; for x = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; for y = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; item2 = ResourceItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;  item2:setGeom(x * 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(item2)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem = TextItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setText(x .. &amp;quot;,&amp;quot; .. y)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setGeom(x * 100, y * 100, x * 100 + 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(textitem)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; end&amp;lt;br&amp;gt;&amp;amp;nbsp; end&amp;lt;br&amp;gt;end&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Running_Bug_List</id>
		<title>Running Bug List</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Running_Bug_List"/>
				<updated>2013-04-11T21:11:09Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* General Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
This is list of our current high-priority bugs for Bitfighter.  &lt;br /&gt;
&lt;br /&gt;
Not all issues belong on this list -- only those that are a high priority for the next release.  Other cases should be added to the [https://code.google.com/p/bitfighter/issues/list Google Code bug tracker].&lt;br /&gt;
&lt;br /&gt;
===General Bugs===&lt;br /&gt;
&lt;br /&gt;
# Joining a game already running won't show your badges in the scoreboard until next level.  Existing clients get info on the joiner, but joiner doesn't get the full 411 on the existing players.  GameType::serverAddClient::s2cAddClient isn't sending proper badge info to joiner.&lt;br /&gt;
# Fix (or kill) /suspend command.  ''Removed client-side by raptor''  Do we need to remove the server ability to suspend client?&lt;br /&gt;
# Figure out how to get ids working properly with walls/polywalls&lt;br /&gt;
# When teleporting on top of walls (layered walls?) sometimes a player gets stuck and cannot move or commit suicide.  This may be hard to track down.&lt;br /&gt;
# One black screen of doom case left:  Open two clients; don't move in one to let spawn delay kick in (30 seconds); go to a /next level, the first should now be spawn delayed; go to /next level again, the first cannot come back to game now&lt;br /&gt;
# Fix memory leak with robots/levelgen because of disabling every luaW_hold&amp;lt;T&amp;gt;(L, obj); --&amp;gt; use reference counting to delete proxy when appropriate, and reenable this line&lt;br /&gt;
# Disable fast regen when standing still trying to build something with engineer&lt;br /&gt;
# Public Lua API members for the 'Item' object should probably be moved somewhere more appropriate.  See http://bitfighter.org/luadocs/class_item.html  isOnShip() should not apply to EngineeredItem, etc.&lt;br /&gt;
# Clean-up master chat commands.  Add consistency; /raptor -&amp;gt; /pm raptor  etc.&lt;br /&gt;
# Lua API doc fixes: &lt;br /&gt;
#* event method signatures are not documented&lt;br /&gt;
#* 'LuaPlayerInfo' class?  All the Lunar classes mentioned here:  http://bitfighter.org/wiki/index.php/Scripting_018&lt;br /&gt;
#* &amp;lt;del&amp;gt;what happen to the 'Ship' methods?&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;Lua event onShipSpawned isn't triggered when starting a level already connected to a server.  the 'suppressEvents' part of EventManager::fireEvent(EventType eventType, Ship *ship) [EventManager.cpp:292] returns true in this case for some reason&amp;lt;/del&amp;gt;&lt;br /&gt;
# Bobdaduck's Lua API crashes:&lt;br /&gt;
#* create and delete a spybug each tick, then shoot the spybug.  crash!&lt;br /&gt;
# &amp;lt;del&amp;gt;Client-side crash dying with commander's map open:  http://pastie.org/7063833&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;If ship spawns in a zone, it should trigger the onShipEnteredZone event (bobdaduck reports it does not)&amp;lt;/del&amp;gt;&lt;br /&gt;
# Improve screen for loading levels in editor -- perhaps general keyword search, or options for picking by author/title/file, or perhaps navigating a folder tree&lt;br /&gt;
# Graphically indicate if turrets/FFPs are regenerative.  bobdaduck suggests filling in the semicircle and triangle (turrent and FFP respectively)&lt;br /&gt;
# &amp;lt;del&amp;gt;/addbots 6, crash!  Due to this revision?:  https://code.google.com/p/bitfighter/source/detail?r=d68cf36095763f5d9c928f7d03cb98ff2265fa41&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;FF/Turret snapping in the editor needs serious work.  See http://pastie.org/pastes/7303300/text for a simple example (load in 'host-game' first to see what it should look like).  Also rotation of things in the editor messes up snapping as well.&amp;lt;/del&amp;gt;&lt;br /&gt;
#* The test behaves as the code intends. It's more of a bug that you can put FFs there in the first place. Maybe we should add an INI option to disable engineered item resnapping when loading in the editor.&lt;br /&gt;
#* What about arbitrarily moving/rotating/resizing?&lt;br /&gt;
# Make INI option 'GlobalLevelScript' take multiple scripts.  Probably just use comma-delimited list like so:  GlobalLevelScript=logger,adminutils,killraptor&lt;br /&gt;
# Remove access to dangerous Lua libraries (esp. os and io)  See http://lua-users.org/wiki/SandBoxes for ideas.&lt;br /&gt;
# &amp;lt;del&amp;gt;If an editor plugin crashes (in Lua) the game will crash with a segfault.  Should be resilient.&amp;lt;/del&amp;gt;&lt;br /&gt;
# Move Lua loadout changes to Ship, from Robot&lt;br /&gt;
# Editor plugins need to use the new API (via addItem, etc.) instead of :addLevelLine()&lt;br /&gt;
# Bot balancing bug: 3 people join on two teams, balance to 6 players.  then all humans go on the same team.  Result:  bots's don't rebalance and you're left with 4 on 2.&lt;br /&gt;
# Sneaking suspicion that if one client is spawnDelayed, the server is delayed too&lt;br /&gt;
# missing levelgen:findObjects() method to search for in-game objects of whatever type&lt;br /&gt;
# Font Textures lost when change to/from fullscreen&lt;br /&gt;
# Render order issue -- ships render under flags&lt;br /&gt;
# Objective arrows rendering on top of F2 display&lt;br /&gt;
# If LineItems are not 'global' (new feature of 019), they don't show up in the editor TAB view &lt;br /&gt;
&lt;br /&gt;
====Things to test after next lua rewrite====&lt;br /&gt;
# Levelgen: Having addItem() in main() may randomly fail on repeated ctrl+R in editor or repeated level restart, showing message &amp;quot;***LEVELGEN ERROR*** Error encountered while attempting to run script's main() function: ***.levelgen:44: attempt to call missing or unknown method 'addItem' (a nil value).  Aborting script.&amp;quot;&lt;br /&gt;
#:&amp;lt;code&amp;gt;-- for bug #33 from sam686&amp;lt;br&amp;gt;function main()&amp;lt;br&amp;gt;&amp;amp;nbsp; for x = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; for y = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; item2 = ResourceItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;  item2:setGeom(x * 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(item2)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem = TextItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setText(x .. &amp;quot;,&amp;quot; .. y)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setGeom(x * 100, y * 100, x * 100 + 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(textitem)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; end&amp;lt;br&amp;gt;&amp;amp;nbsp; end&amp;lt;br&amp;gt;end&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Running_Bug_List</id>
		<title>Running Bug List</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Running_Bug_List"/>
				<updated>2013-04-11T01:22:43Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* General Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
This is list of our current high-priority bugs for Bitfighter.  &lt;br /&gt;
&lt;br /&gt;
Not all issues belong on this list -- only those that are a high priority for the next release.  Other cases should be added to the [https://code.google.com/p/bitfighter/issues/list Google Code bug tracker].&lt;br /&gt;
&lt;br /&gt;
===General Bugs===&lt;br /&gt;
&lt;br /&gt;
# Joining a game already running won't show your badges in the scoreboard until next level.  Existing clients get info on the joiner, but joiner doesn't get the full 411 on the existing players.  GameType::serverAddClient::s2cAddClient isn't sending proper badge info to joiner.&lt;br /&gt;
# Fix (or kill) /suspend command.  ''Removed client-side by raptor''  Do we need to remove the server ability to suspend client?&lt;br /&gt;
# Figure out how to get ids working properly with walls/polywalls&lt;br /&gt;
# When teleporting on top of walls (layered walls?) sometimes a player gets stuck and cannot move or commit suicide.  This may be hard to track down.&lt;br /&gt;
# One black screen of doom case left:  Open two clients; don't move in one to let spawn delay kick in (30 seconds); go to a /next level, the first should now be spawn delayed; go to /next level again, the first cannot come back to game now&lt;br /&gt;
# Fix memory leak with robots/levelgen because of disabling every luaW_hold&amp;lt;T&amp;gt;(L, obj); --&amp;gt; use reference counting to delete proxy when appropriate, and reenable this line&lt;br /&gt;
# Disable fast regen when standing still trying to build something with engineer&lt;br /&gt;
# Public Lua API members for the 'Item' object should probably be moved somewhere more appropriate.  See http://bitfighter.org/luadocs/class_item.html  isOnShip() should not apply to EngineeredItem, etc.&lt;br /&gt;
# Clean-up master chat commands.  Add consistency; /raptor -&amp;gt; /pm raptor  etc.&lt;br /&gt;
# Lua API doc fixes: &lt;br /&gt;
#* event method signatures are not documented&lt;br /&gt;
#* 'LuaPlayerInfo' class?  All the Lunar classes mentioned here:  http://bitfighter.org/wiki/index.php/Scripting_018&lt;br /&gt;
#* &amp;lt;del&amp;gt;what happen to the 'Ship' methods?&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;Lua event onShipSpawned isn't triggered when starting a level already connected to a server.  the 'suppressEvents' part of EventManager::fireEvent(EventType eventType, Ship *ship) [EventManager.cpp:292] returns true in this case for some reason&amp;lt;/del&amp;gt;&lt;br /&gt;
# Bobdaduck's Lua API crashes:&lt;br /&gt;
#* create and delete a spybug each tick, then shoot the spybug.  crash!&lt;br /&gt;
# &amp;lt;del&amp;gt;Client-side crash dying with commander's map open:  http://pastie.org/7063833&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;If ship spawns in a zone, it should trigger the onShipEnteredZone event (bobdaduck reports it does not)&amp;lt;/del&amp;gt;&lt;br /&gt;
# Improve screen for loading levels in editor -- perhaps general keyword search, or options for picking by author/title/file, or perhaps navigating a folder tree&lt;br /&gt;
# Graphically indicate if turrets/FFPs are regenerative.  bobdaduck suggests filling in the semicircle and triangle (turrent and FFP respectively)&lt;br /&gt;
# &amp;lt;del&amp;gt;/addbots 6, crash!  Due to this revision?:  https://code.google.com/p/bitfighter/source/detail?r=d68cf36095763f5d9c928f7d03cb98ff2265fa41&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;FF/Turret snapping in the editor needs serious work.  See http://pastie.org/pastes/7303300/text for a simple example (load in 'host-game' first to see what it should look like).  Also rotation of things in the editor messes up snapping as well.&amp;lt;/del&amp;gt;&lt;br /&gt;
#* The test behaves as the code intends. It's more of a bug that you can put FFs there in the first place. Maybe we should add an INI option to disable engineered item resnapping when loading in the editor.&lt;br /&gt;
#* What about arbitrarily moving/rotating/resizing?&lt;br /&gt;
# Make INI option 'GlobalLevelScript' take multiple scripts.  Probably just use comma-delimited list like so:  GlobalLevelScript=logger,adminutils,killraptor&lt;br /&gt;
# Remove access to dangerous Lua libraries (esp. os and io)  See http://lua-users.org/wiki/SandBoxes for ideas.&lt;br /&gt;
# If an editor plugin crashes (in Lua) the game will crash with a segfault.  Should be resilient.&lt;br /&gt;
# Move Lua loadout changes to Ship, from Robot&lt;br /&gt;
# Editor plugins need to use the new API (via addItem, etc.) instead of :addLevelLine()&lt;br /&gt;
# Bot balancing bug: 3 people join on two teams, balance to 6 players.  then all humans go on the same team.  Result:  bots's don't rebalance and you're left with 4 on 2.&lt;br /&gt;
# Sneaking suspicion that if one client is spawnDelayed, the server is delayed too&lt;br /&gt;
# missing levelgen:findObjects() method to search for in-game objects of whatever type&lt;br /&gt;
# Font Textures lost when change to/from fullscreen&lt;br /&gt;
# Render order issue -- ships render under flags&lt;br /&gt;
# Objective arrows rendering on top of F2 display&lt;br /&gt;
&lt;br /&gt;
====Things to test after next lua rewrite====&lt;br /&gt;
# Levelgen: Having addItem() in main() may randomly fail on repeated ctrl+R in editor or repeated level restart, showing message &amp;quot;***LEVELGEN ERROR*** Error encountered while attempting to run script's main() function: ***.levelgen:44: attempt to call missing or unknown method 'addItem' (a nil value).  Aborting script.&amp;quot;&lt;br /&gt;
#:&amp;lt;code&amp;gt;-- for bug #33 from sam686&amp;lt;br&amp;gt;function main()&amp;lt;br&amp;gt;&amp;amp;nbsp; for x = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; for y = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; item2 = ResourceItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;  item2:setGeom(x * 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(item2)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem = TextItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setText(x .. &amp;quot;,&amp;quot; .. y)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setGeom(x * 100, y * 100, x * 100 + 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(textitem)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; end&amp;lt;br&amp;gt;&amp;amp;nbsp; end&amp;lt;br&amp;gt;end&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Running_Bug_List</id>
		<title>Running Bug List</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Running_Bug_List"/>
				<updated>2013-04-10T22:59:22Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* General Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
This is list of our current high-priority bugs for Bitfighter.  &lt;br /&gt;
&lt;br /&gt;
Not all issues belong on this list -- only those that are a high priority for the next release.  Other cases should be added to the [https://code.google.com/p/bitfighter/issues/list Google Code bug tracker].&lt;br /&gt;
&lt;br /&gt;
===General Bugs===&lt;br /&gt;
&lt;br /&gt;
# Joining a game already running won't show your badges in the scoreboard until next level.  Existing clients get info on the joiner, but joiner doesn't get the full 411 on the existing players.  GameType::serverAddClient::s2cAddClient isn't sending proper badge info to joiner.&lt;br /&gt;
# Fix (or kill) /suspend command.  ''Removed client-side by raptor''  Do we need to remove the server ability to suspend client?&lt;br /&gt;
# Figure out how to get ids working properly with walls/polywalls&lt;br /&gt;
# When teleporting on top of walls (layered walls?) sometimes a player gets stuck and cannot move or commit suicide.  This may be hard to track down.&lt;br /&gt;
# One black screen of doom case left:  Open two clients; don't move in one to let spawn delay kick in (30 seconds); go to a /next level, the first should now be spawn delayed; go to /next level again, the first cannot come back to game now&lt;br /&gt;
# Fix memory leak with robots/levelgen because of disabling every luaW_hold&amp;lt;T&amp;gt;(L, obj); --&amp;gt; use reference counting to delete proxy when appropriate, and reenable this line&lt;br /&gt;
# Disable fast regen when standing still trying to build something with engineer&lt;br /&gt;
# Public Lua API members for the 'Item' object should probably be moved somewhere more appropriate.  See http://bitfighter.org/luadocs/class_item.html  isOnShip() should not apply to EngineeredItem, etc.&lt;br /&gt;
# Clean-up master chat commands.  Add consistency; /raptor -&amp;gt; /pm raptor  etc.&lt;br /&gt;
# Lua API doc fixes: &lt;br /&gt;
#* event method signatures are not documented&lt;br /&gt;
#* 'LuaPlayerInfo' class?  All the Lunar classes mentioned here:  http://bitfighter.org/wiki/index.php/Scripting_018&lt;br /&gt;
#* &amp;lt;del&amp;gt;what happen to the 'Ship' methods?&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;Lua event onShipSpawned isn't triggered when starting a level already connected to a server.  the 'suppressEvents' part of EventManager::fireEvent(EventType eventType, Ship *ship) [EventManager.cpp:292] returns true in this case for some reason&amp;lt;/del&amp;gt;&lt;br /&gt;
# Bobdaduck's Lua API crashes:&lt;br /&gt;
#* create and delete a spybug each tick, then shoot the spybug.  crash!&lt;br /&gt;
# Client-side crash dying with commander's map open:  http://pastie.org/7063833&lt;br /&gt;
# &amp;lt;del&amp;gt;If ship spawns in a zone, it should trigger the onShipEnteredZone event (bobdaduck reports it does not)&amp;lt;/del&amp;gt;&lt;br /&gt;
# Improve screen for loading levels in editor -- perhaps general keyword search, or options for picking by author/title/file, or perhaps navigating a folder tree&lt;br /&gt;
# Graphically indicate if turrets/FFPs are regenerative.  bobdaduck suggests filling in the semicircle and triangle (turrent and FFP respectively)&lt;br /&gt;
# &amp;lt;del&amp;gt;/addbots 6, crash!  Due to this revision?:  https://code.google.com/p/bitfighter/source/detail?r=d68cf36095763f5d9c928f7d03cb98ff2265fa41&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;FF/Turret snapping in the editor needs serious work.  See http://pastie.org/pastes/7303300/text for a simple example (load in 'host-game' first to see what it should look like).  Also rotation of things in the editor messes up snapping as well.&amp;lt;/del&amp;gt;&lt;br /&gt;
#* The test behaves as the code intends. It's more of a bug that you can put FFs there in the first place. Maybe we should add an INI option to disable engineered item resnapping when loading in the editor.&lt;br /&gt;
#* What about arbitrarily moving/rotating/resizing?&lt;br /&gt;
# Make INI option 'GlobalLevelScript' take multiple scripts.  Probably just use comma-delimited list like so:  GlobalLevelScript=logger,adminutils,killraptor&lt;br /&gt;
# Remove access to dangerous Lua libraries (esp. os and io)  See http://lua-users.org/wiki/SandBoxes for ideas.&lt;br /&gt;
# If an editor plugin crashes (in Lua) the game will crash with a segfault.  Should be resilient.&lt;br /&gt;
# Move Lua loadout changes to Ship, from Robot&lt;br /&gt;
# Editor plugins need to use the new API (via addItem, etc.) instead of :addLevelLine()&lt;br /&gt;
# Bot balancing bug: 3 people join on two teams, balance to 6 players.  then all humans go on the same team.  Result:  bots's don't rebalance and you're left with 4 on 2.&lt;br /&gt;
# Sneaking suspicion that if one client is spawnDelayed, the server is delayed too&lt;br /&gt;
# missing levelgen:findObjects() method to search for in-game objects of whatever type&lt;br /&gt;
# Font Textures lost when change to/from fullscreen&lt;br /&gt;
# Render order issue -- ships render under flags&lt;br /&gt;
# Objective arrows rendering on top of F2 display&lt;br /&gt;
&lt;br /&gt;
====Things to test after next lua rewrite====&lt;br /&gt;
# Levelgen: Having addItem() in main() may randomly fail on repeated ctrl+R in editor or repeated level restart, showing message &amp;quot;***LEVELGEN ERROR*** Error encountered while attempting to run script's main() function: ***.levelgen:44: attempt to call missing or unknown method 'addItem' (a nil value).  Aborting script.&amp;quot;&lt;br /&gt;
#:&amp;lt;code&amp;gt;-- for bug #33 from sam686&amp;lt;br&amp;gt;function main()&amp;lt;br&amp;gt;&amp;amp;nbsp; for x = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; for y = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; item2 = ResourceItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;  item2:setGeom(x * 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(item2)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem = TextItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setText(x .. &amp;quot;,&amp;quot; .. y)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setGeom(x * 100, y * 100, x * 100 + 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(textitem)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; end&amp;lt;br&amp;gt;&amp;amp;nbsp; end&amp;lt;br&amp;gt;end&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Running_Bug_List</id>
		<title>Running Bug List</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Running_Bug_List"/>
				<updated>2013-04-10T22:57:19Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* General Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
This is list of our current high-priority bugs for Bitfighter.  &lt;br /&gt;
&lt;br /&gt;
Not all issues belong on this list -- only those that are a high priority for the next release.  Other cases should be added to the [https://code.google.com/p/bitfighter/issues/list Google Code bug tracker].&lt;br /&gt;
&lt;br /&gt;
===General Bugs===&lt;br /&gt;
&lt;br /&gt;
# Joining a game already running won't show your badges in the scoreboard until next level.  Existing clients get info on the joiner, but joiner doesn't get the full 411 on the existing players.  GameType::serverAddClient::s2cAddClient isn't sending proper badge info to joiner.&lt;br /&gt;
# Fix (or kill) /suspend command.  ''Removed client-side by raptor''  Do we need to remove the server ability to suspend client?&lt;br /&gt;
# Figure out how to get ids working properly with walls/polywalls&lt;br /&gt;
# When teleporting on top of walls (layered walls?) sometimes a player gets stuck and cannot move or commit suicide.  This may be hard to track down.&lt;br /&gt;
# One black screen of doom case left:  Open two clients; don't move in one to let spawn delay kick in (30 seconds); go to a /next level, the first should now be spawn delayed; go to /next level again, the first cannot come back to game now&lt;br /&gt;
# Fix memory leak with robots/levelgen because of disabling every luaW_hold&amp;lt;T&amp;gt;(L, obj); --&amp;gt; use reference counting to delete proxy when appropriate, and reenable this line&lt;br /&gt;
# Disable fast regen when standing still trying to build something with engineer&lt;br /&gt;
# Public Lua API members for the 'Item' object should probably be moved somewhere more appropriate.  See http://bitfighter.org/luadocs/class_item.html  isOnShip() should not apply to EngineeredItem, etc.&lt;br /&gt;
# Clean-up master chat commands.  Add consistency; /raptor -&amp;gt; /pm raptor  etc.&lt;br /&gt;
# Lua API doc fixes: &lt;br /&gt;
#* event method signatures are not documented&lt;br /&gt;
#* 'LuaPlayerInfo' class?  All the Lunar classes mentioned here:  http://bitfighter.org/wiki/index.php/Scripting_018&lt;br /&gt;
#* &amp;lt;del&amp;gt;what happen to the 'Ship' methods?&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;Lua event onShipSpawned isn't triggered when starting a level already connected to a server.  the 'suppressEvents' part of EventManager::fireEvent(EventType eventType, Ship *ship) [EventManager.cpp:292] returns true in this case for some reason&amp;lt;/del&amp;gt;&lt;br /&gt;
# Bobdaduck's Lua API crashes:&lt;br /&gt;
#* create and delete a spybug each tick, then shoot the spybug.  crash!&lt;br /&gt;
# Client-side crash dying with commander's map open:  http://pastie.org/7063833&lt;br /&gt;
# &amp;lt;del&amp;gt;If ship spawns in a zone, it should trigger the onShipEnteredZone event (bobdaduck reports it does not)&amp;lt;/del&amp;gt;&lt;br /&gt;
# Improve screen for loading levels in editor -- perhaps general keyword search, or options for picking by author/title/file, or perhaps navigating a folder tree&lt;br /&gt;
# Graphically indicate if turrets/FFPs are regenerative.  bobdaduck suggests filling in the semicircle and triangle (turrent and FFP respectively)&lt;br /&gt;
# /addbots 6, crash!  Due to this revision?:  https://code.google.com/p/bitfighter/source/detail?r=d68cf36095763f5d9c928f7d03cb98ff2265fa41&lt;br /&gt;
# &amp;lt;del&amp;gt;FF/Turret snapping in the editor needs serious work.  See http://pastie.org/pastes/7303300/text for a simple example (load in 'host-game' first to see what it should look like).  Also rotation of things in the editor messes up snapping as well.&amp;lt;/del&amp;gt;&lt;br /&gt;
#* The test behaves as the code intends. It's more of a bug that you can put FFs there in the first place. Maybe we should add an INI option to disable engineered item resnapping when loading in the editor.&lt;br /&gt;
#* What about arbitrarily moving/rotating/resizing?&lt;br /&gt;
# Make INI option 'GlobalLevelScript' take multiple scripts.  Probably just use comma-delimited list like so:  GlobalLevelScript=logger,adminutils,killraptor&lt;br /&gt;
# Remove access to dangerous Lua libraries (esp. os and io)  See http://lua-users.org/wiki/SandBoxes for ideas.&lt;br /&gt;
# If an editor plugin crashes (in Lua) the game will crash with a segfault.  Should be resilient.&lt;br /&gt;
# Move Lua loadout changes to Ship, from Robot&lt;br /&gt;
# Editor plugins need to use the new API (via addItem, etc.) instead of :addLevelLine()&lt;br /&gt;
# Bot balancing bug: 3 people join on two teams, balance to 6 players.  then all humans go on the same team.  Result:  bots's don't rebalance and you're left with 4 on 2.&lt;br /&gt;
# Sneaking suspicion that if one client is spawnDelayed, the server is delayed too&lt;br /&gt;
# missing levelgen:findObjects() method to search for in-game objects of whatever type&lt;br /&gt;
# Font Textures lost when change to/from fullscreen&lt;br /&gt;
# Render order issue -- ships render under flags&lt;br /&gt;
# Objective arrows rendering on top of F2 display&lt;br /&gt;
&lt;br /&gt;
====Things to test after next lua rewrite====&lt;br /&gt;
# Levelgen: Having addItem() in main() may randomly fail on repeated ctrl+R in editor or repeated level restart, showing message &amp;quot;***LEVELGEN ERROR*** Error encountered while attempting to run script's main() function: ***.levelgen:44: attempt to call missing or unknown method 'addItem' (a nil value).  Aborting script.&amp;quot;&lt;br /&gt;
#:&amp;lt;code&amp;gt;-- for bug #33 from sam686&amp;lt;br&amp;gt;function main()&amp;lt;br&amp;gt;&amp;amp;nbsp; for x = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; for y = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; item2 = ResourceItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;  item2:setGeom(x * 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(item2)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem = TextItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setText(x .. &amp;quot;,&amp;quot; .. y)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setGeom(x * 100, y * 100, x * 100 + 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(textitem)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; end&amp;lt;br&amp;gt;&amp;amp;nbsp; end&amp;lt;br&amp;gt;end&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Running_Bug_List</id>
		<title>Running Bug List</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Running_Bug_List"/>
				<updated>2013-04-10T22:56:09Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* General Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
This is list of our current high-priority bugs for Bitfighter.  &lt;br /&gt;
&lt;br /&gt;
Not all issues belong on this list -- only those that are a high priority for the next release.  Other cases should be added to the [https://code.google.com/p/bitfighter/issues/list Google Code bug tracker].&lt;br /&gt;
&lt;br /&gt;
===General Bugs===&lt;br /&gt;
&lt;br /&gt;
# Joining a game already running won't show your badges in the scoreboard until next level.  Existing clients get info on the joiner, but joiner doesn't get the full 411 on the existing players.  GameType::serverAddClient::s2cAddClient isn't sending proper badge info to joiner.&lt;br /&gt;
# Fix (or kill) /suspend command.  ''Removed client-side by raptor''  Do we need to remove the server ability to suspend client?&lt;br /&gt;
# Figure out how to get ids working properly with walls/polywalls&lt;br /&gt;
# When teleporting on top of walls (layered walls?) sometimes a player gets stuck and cannot move or commit suicide.  This may be hard to track down.&lt;br /&gt;
# One black screen of doom case left:  Open two clients; don't move in one to let spawn delay kick in (30 seconds); go to a /next level, the first should now be spawn delayed; go to /next level again, the first cannot come back to game now&lt;br /&gt;
# Fix memory leak with robots/levelgen because of disabling every luaW_hold&amp;lt;T&amp;gt;(L, obj); --&amp;gt; use reference counting to delete proxy when appropriate, and reenable this line&lt;br /&gt;
# Disable fast regen when standing still trying to build something with engineer&lt;br /&gt;
# Public Lua API members for the 'Item' object should probably be moved somewhere more appropriate.  See http://bitfighter.org/luadocs/class_item.html  isOnShip() should not apply to EngineeredItem, etc.&lt;br /&gt;
# Clean-up master chat commands.  Add consistency; /raptor -&amp;gt; /pm raptor  etc.&lt;br /&gt;
# Lua API doc fixes: &lt;br /&gt;
#* event method signatures are not documented&lt;br /&gt;
#* 'LuaPlayerInfo' class?  All the Lunar classes mentioned here:  http://bitfighter.org/wiki/index.php/Scripting_018&lt;br /&gt;
#* &amp;lt;del&amp;gt;what happen to the 'Ship' methods?&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;Lua event onShipSpawned isn't triggered when starting a level already connected to a server.  the 'suppressEvents' part of EventManager::fireEvent(EventType eventType, Ship *ship) [EventManager.cpp:292] returns true in this case for some reason&amp;lt;del&amp;gt;&lt;br /&gt;
# Bobdaduck's Lua API crashes:&lt;br /&gt;
#* create and delete a spybug each tick, then shoot the spybug.  crash!&lt;br /&gt;
# Client-side crash dying with commander's map open:  http://pastie.org/7063833&lt;br /&gt;
# &amp;lt;del&amp;gt;If ship spawns in a zone, it should trigger the onShipEnteredZone event (bobdaduck reports it does not)&amp;lt;/del&amp;gt;&lt;br /&gt;
# Improve screen for loading levels in editor -- perhaps general keyword search, or options for picking by author/title/file, or perhaps navigating a folder tree&lt;br /&gt;
# Graphically indicate if turrets/FFPs are regenerative.  bobdaduck suggests filling in the semicircle and triangle (turrent and FFP respectively)&lt;br /&gt;
# /addbots 6, crash!  Due to this revision?:  https://code.google.com/p/bitfighter/source/detail?r=d68cf36095763f5d9c928f7d03cb98ff2265fa41&lt;br /&gt;
# &amp;lt;del&amp;gt;FF/Turret snapping in the editor needs serious work.  See http://pastie.org/pastes/7303300/text for a simple example (load in 'host-game' first to see what it should look like).  Also rotation of things in the editor messes up snapping as well.&amp;lt;/del&amp;gt;&lt;br /&gt;
#* The test behaves as the code intends. It's more of a bug that you can put FFs there in the first place. Maybe we should add an INI option to disable engineered item resnapping when loading in the editor.&lt;br /&gt;
#* What about arbitrarily moving/rotating/resizing?&lt;br /&gt;
# Make INI option 'GlobalLevelScript' take multiple scripts.  Probably just use comma-delimited list like so:  GlobalLevelScript=logger,adminutils,killraptor&lt;br /&gt;
# Remove access to dangerous Lua libraries (esp. os and io)  See http://lua-users.org/wiki/SandBoxes for ideas.&lt;br /&gt;
# If an editor plugin crashes (in Lua) the game will crash with a segfault.  Should be resilient.&lt;br /&gt;
# Move Lua loadout changes to Ship, from Robot&lt;br /&gt;
# Editor plugins need to use the new API (via addItem, etc.) instead of :addLevelLine()&lt;br /&gt;
# Bot balancing bug: 3 people join on two teams, balance to 6 players.  then all humans go on the same team.  Result:  bots's don't rebalance and you're left with 4 on 2.&lt;br /&gt;
# Sneaking suspicion that if one client is spawnDelayed, the server is delayed too&lt;br /&gt;
# missing levelgen:findObjects() method to search for in-game objects of whatever type&lt;br /&gt;
# Font Textures lost when change to/from fullscreen&lt;br /&gt;
# Render order issue -- ships render under flags&lt;br /&gt;
# Objective arrows rendering on top of F2 display&lt;br /&gt;
&lt;br /&gt;
====Things to test after next lua rewrite====&lt;br /&gt;
# Levelgen: Having addItem() in main() may randomly fail on repeated ctrl+R in editor or repeated level restart, showing message &amp;quot;***LEVELGEN ERROR*** Error encountered while attempting to run script's main() function: ***.levelgen:44: attempt to call missing or unknown method 'addItem' (a nil value).  Aborting script.&amp;quot;&lt;br /&gt;
#:&amp;lt;code&amp;gt;-- for bug #33 from sam686&amp;lt;br&amp;gt;function main()&amp;lt;br&amp;gt;&amp;amp;nbsp; for x = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; for y = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; item2 = ResourceItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;  item2:setGeom(x * 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(item2)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem = TextItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setText(x .. &amp;quot;,&amp;quot; .. y)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setGeom(x * 100, y * 100, x * 100 + 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(textitem)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; end&amp;lt;br&amp;gt;&amp;amp;nbsp; end&amp;lt;br&amp;gt;end&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Running_Bug_List</id>
		<title>Running Bug List</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Running_Bug_List"/>
				<updated>2013-04-09T02:43:29Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* General Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
This is list of our current high-priority bugs for Bitfighter.  &lt;br /&gt;
&lt;br /&gt;
Not all issues belong on this list -- only those that are a high priority for the next release.  Other cases should be added to the [https://code.google.com/p/bitfighter/issues/list Google Code bug tracker].&lt;br /&gt;
&lt;br /&gt;
===General Bugs===&lt;br /&gt;
&lt;br /&gt;
# Joining a game already running won't show your badges in the scoreboard until next level.  Existing clients get info on the joiner, but joiner doesn't get the full 411 on the existing players.  GameType::serverAddClient::s2cAddClient isn't sending proper badge info to joiner.&lt;br /&gt;
# Fix (or kill) /suspend command.  ''Removed client-side by raptor''  Do we need to remove the server ability to suspend client?&lt;br /&gt;
# Figure out how to get ids working properly with walls/polywalls&lt;br /&gt;
# When teleporting on top of walls (layered walls?) sometimes a player gets stuck and cannot move or commit suicide.  This may be hard to track down.&lt;br /&gt;
# One black screen of doom case left:  Open two clients; don't move in one to let spawn delay kick in (30 seconds); go to a /next level, the first should now be spawn delayed; go to /next level again, the first cannot come back to game now&lt;br /&gt;
# Fix memory leak with robots/levelgen because of disabling every luaW_hold&amp;lt;T&amp;gt;(L, obj); --&amp;gt; use reference counting to delete proxy when appropriate, and reenable this line&lt;br /&gt;
# &amp;lt;del&amp;gt;When a script deletes a ff projector, bobdaduck reports the ff is not also removed.  Also problematic:  setTeams, setLoc, etc.  Basically anything with FFPs don't appropriately update the attached FF&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;/shuffle is broken...&amp;lt;/del&amp;gt;&lt;br /&gt;
# Disable fast regen when standing still trying to build something with engineer&lt;br /&gt;
# &amp;lt;del&amp;gt;Ship is rendered behind repair items?&amp;lt;/del&amp;gt;&lt;br /&gt;
# Public Lua API members for the 'Item' object should probably be moved somewhere more appropriate.  See http://bitfighter.org/luadocs/class_item.html  isOnShip() should not apply to EngineeredItem, etc.&lt;br /&gt;
# Clean-up master chat commands.  Add consistency; /raptor -&amp;gt; /pm raptor  etc.&lt;br /&gt;
# &amp;lt;del&amp;gt;Lua API setHealth on Turrets/FFs not working&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;health items set at no regen still regen at default rate&amp;lt;/del&amp;gt;&lt;br /&gt;
# Quartz' kaen test euthanasia:&lt;br /&gt;
#* &amp;lt;del&amp;gt;Ghost ship hitting an energy item&amp;lt;/del&amp;gt;&lt;br /&gt;
#* &amp;lt;del&amp;gt;Set teleporter entrance == exit; set Delay=0  (should we remove this?)&amp;lt;/del&amp;gt;&lt;br /&gt;
#* &amp;lt;del&amp;gt;ghost (neutral) ship touching a levelgen'd zone (goalzone did the job)&amp;lt;/del&amp;gt;&lt;br /&gt;
# Lua API doc fixes: &lt;br /&gt;
#* event method signatures are not documented&lt;br /&gt;
#* 'LuaPlayerInfo' class?  All the Lunar classes mentioned here:  http://bitfighter.org/wiki/index.php/Scripting_018&lt;br /&gt;
#* &amp;lt;del&amp;gt;what happen to the 'Ship' methods?&amp;lt;/del&amp;gt;&lt;br /&gt;
# Lua event onShipSpawned isn't triggered when starting a level already connected to a server.  the 'suppressEvents' part of EventManager::fireEvent(EventType eventType, Ship *ship) [EventManager.cpp:292] returns true in this case for some reason&lt;br /&gt;
# Bobdaduck's Lua API crashes:&lt;br /&gt;
#* create and delete a spybug each tick, then shoot the spybug.  crash!&lt;br /&gt;
# &amp;lt;del&amp;gt;Client-side crash sometimes when another ship moves into a slipzone.  Looks like a memory corruption:  http://pastie.org/7056652&amp;lt;/del&amp;gt;&lt;br /&gt;
# Client-side crash dying with commander's map open:  http://pastie.org/7063833&lt;br /&gt;
# If ship spawns in a zone, it should trigger the onShipEnteredZone event (bobdaduck reports it does not)&lt;br /&gt;
# Improve screen for loading levels in editor -- perhaps general keyword search, or options for picking by author/title/file, or perhaps navigating a folder tree&lt;br /&gt;
# Graphically indicate if turrets/FFPs are regenerative.  bobdaduck suggests filling in the semicircle and triangle (turrent and FFP respectively)&lt;br /&gt;
# /addbots 6, crash!  Due to this revision?:  https://code.google.com/p/bitfighter/source/detail?r=d68cf36095763f5d9c928f7d03cb98ff2265fa41&lt;br /&gt;
# &amp;lt;del&amp;gt;FF/Turret snapping in the editor needs serious work.  See http://pastie.org/pastes/7303300/text for a simple example (load in 'host-game' first to see what it should look like).  Also rotation of things in the editor messes up snapping as well.&amp;lt;/del&amp;gt;&lt;br /&gt;
#* The test behaves as the code intends. It's more of a bug that you can put FFs there in the first place. Maybe we should add an INI option to disable engineered item resnapping when loading in the editor.&lt;br /&gt;
# Make INI option 'GlobalLevelScript' take multiple scripts.  Probably just use comma-delimited list like so:  GlobalLevelScript=logger,adminutils,killraptor&lt;br /&gt;
# Remove access to dangerous Lua libraries (esp. os and io)  See http://lua-users.org/wiki/SandBoxes for ideas.&lt;br /&gt;
# Editor plugin Lua crash will crash the game with a segfault&lt;br /&gt;
# Move Lua loadout changes to Ship, from Robot&lt;br /&gt;
# Editor plugins need to use the new API (via addItem, etc.) instead of :addLevelLine()&lt;br /&gt;
# Bot balancing bug: 3 people join on two teams, balance to 6 players.  then all humans go on the same team.  Result:  bots's don't rebalance and you're left with 4 on 2.&lt;br /&gt;
# Sneaking suspicion that if one client is spawnDelayed, the server is delayed too&lt;br /&gt;
&lt;br /&gt;
====Things to test after next lua rewrite====&lt;br /&gt;
# Levelgen: Having addItem() in main() may randomly fail on repeated ctrl+R in editor or repeated level restart, showing message &amp;quot;***LEVELGEN ERROR*** Error encountered while attempting to run script's main() function: ***.levelgen:44: attempt to call missing or unknown method 'addItem' (a nil value).  Aborting script.&amp;quot;&lt;br /&gt;
#:&amp;lt;code&amp;gt;-- for bug #33 from sam686&amp;lt;br&amp;gt;function main()&amp;lt;br&amp;gt;&amp;amp;nbsp; for x = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; for y = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; item2 = ResourceItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;  item2:setGeom(x * 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(item2)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem = TextItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setText(x .. &amp;quot;,&amp;quot; .. y)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setGeom(x * 100, y * 100, x * 100 + 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(textitem)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; end&amp;lt;br&amp;gt;&amp;amp;nbsp; end&amp;lt;br&amp;gt;end&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Running_Bug_List</id>
		<title>Running Bug List</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Running_Bug_List"/>
				<updated>2013-04-09T02:25:44Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* General Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
This is list of our current high-priority bugs for Bitfighter.  &lt;br /&gt;
&lt;br /&gt;
Not all issues belong on this list -- only those that are a high priority for the next release.  Other cases should be added to the [https://code.google.com/p/bitfighter/issues/list Google Code bug tracker].&lt;br /&gt;
&lt;br /&gt;
===General Bugs===&lt;br /&gt;
&lt;br /&gt;
# Joining a game already running won't show your badges in the scoreboard until next level.  Existing clients get info on the joiner, but joiner doesn't get the full 411 on the existing players.  GameType::serverAddClient::s2cAddClient isn't sending proper badge info to joiner.&lt;br /&gt;
# Fix (or kill) /suspend command.  ''Removed client-side by raptor''  Do we need to remove the server ability to suspend client?&lt;br /&gt;
# Figure out how to get ids working properly with walls/polywalls&lt;br /&gt;
# When teleporting on top of walls (layered walls?) sometimes a player gets stuck and cannot move or commit suicide.  This may be hard to track down.&lt;br /&gt;
# One black screen of doom case left:  Open two clients; don't move in one to let spawn delay kick in (30 seconds); go to a /next level, the first should now be spawn delayed; go to /next level again, the first cannot come back to game now&lt;br /&gt;
# Fix memory leak with robots/levelgen because of disabling every luaW_hold&amp;lt;T&amp;gt;(L, obj); --&amp;gt; use reference counting to delete proxy when appropriate, and reenable this line&lt;br /&gt;
# &amp;lt;del&amp;gt;When a script deletes a ff projector, bobdaduck reports the ff is not also removed.  Also problematic:  setTeams, setLoc, etc.  Basically anything with FFPs don't appropriately update the attached FF&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;/shuffle is broken...&amp;lt;/del&amp;gt;&lt;br /&gt;
# Disable fast regen when standing still trying to build something with engineer&lt;br /&gt;
# &amp;lt;del&amp;gt;Ship is rendered behind repair items?&amp;lt;/del&amp;gt;&lt;br /&gt;
# Public Lua API members for the 'Item' object should probably be moved somewhere more appropriate.  See http://bitfighter.org/luadocs/class_item.html  isOnShip() should not apply to EngineeredItem, etc.&lt;br /&gt;
# Clean-up master chat commands.  Add consistency; /raptor -&amp;gt; /pm raptor  etc.&lt;br /&gt;
# &amp;lt;del&amp;gt;Lua API setHealth on Turrets/FFs not working&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;health items set at no regen still regen at default rate&amp;lt;/del&amp;gt;&lt;br /&gt;
# Quartz' kaen test euthanasia:&lt;br /&gt;
#* &amp;lt;del&amp;gt;Ghost ship hitting an energy item&amp;lt;/del&amp;gt;&lt;br /&gt;
#* &amp;lt;del&amp;gt;Set teleporter entrance == exit; set Delay=0  (should we remove this?)&amp;lt;/del&amp;gt;&lt;br /&gt;
#* &amp;lt;del&amp;gt;ghost (neutral) ship touching a levelgen'd zone (goalzone did the job)&amp;lt;/del&amp;gt;&lt;br /&gt;
# Lua API doc fixes: &lt;br /&gt;
#* event method signatures are not documented&lt;br /&gt;
#* 'LuaPlayerInfo' class?  All the Lunar classes mentioned here:  http://bitfighter.org/wiki/index.php/Scripting_018&lt;br /&gt;
#* &amp;lt;del&amp;gt;what happen to the 'Ship' methods?&amp;lt;/del&amp;gt;&lt;br /&gt;
# Lua event onShipSpawned isn't triggered when starting a level already connected to a server.  the 'suppressEvents' part of EventManager::fireEvent(EventType eventType, Ship *ship) [EventManager.cpp:292] returns true in this case for some reason&lt;br /&gt;
# Bobdaduck's Lua API crashes:&lt;br /&gt;
#* create and delete a spybug each tick, then shoot the spybug.  crash!&lt;br /&gt;
# &amp;lt;del&amp;gt;Client-side crash sometimes when another ship moves into a slipzone.  Looks like a memory corruption:  http://pastie.org/7056652&amp;lt;/del&amp;gt;&lt;br /&gt;
# Client-side crash dying with commander's map open:  http://pastie.org/7063833&lt;br /&gt;
# If ship spawns in a zone, it should trigger the onShipEnteredZone event (bobdaduck reports it does not)&lt;br /&gt;
# Improve screen for loading levels in editor -- perhaps general keyword search, or options for picking by author/title/file, or perhaps navigating a folder tree&lt;br /&gt;
# Graphically indicate if turrets/FFPs are regenerative.  bobdaduck suggests filling in the semicircle and triangle (turrent and FFP respectively)&lt;br /&gt;
# /addbots 6, crash!  Due to this revision?:  https://code.google.com/p/bitfighter/source/detail?r=d68cf36095763f5d9c928f7d03cb98ff2265fa41&lt;br /&gt;
# &amp;lt;del&amp;gt;FF/Turret snapping in the editor needs serious work.  See http://pastie.org/pastes/7303300/text for a simple example (load in 'host-game' first to see what it should look like).  Also rotation of things in the editor messes up snapping as well.&amp;lt;/del&amp;gt;&lt;br /&gt;
## The test behaves as the code intends. It's more of a bug that you can put FFs there in the first place. Maybe we should add an INI option to disable engineered item resnapping when loading in the editor.&lt;br /&gt;
# Make INI option 'GlobalLevelScript' take multiple scripts.  Probably just use comma-delimited list like so:  GlobalLevelScript=logger,adminutils,killraptor&lt;br /&gt;
# Remove access to dangerous Lua libraries (esp. os and io)  See http://lua-users.org/wiki/SandBoxes for ideas.&lt;br /&gt;
# Editor plugin Lua crash will crash the game with a segfault&lt;br /&gt;
# Move Lua loadout changes to Ship, from Robot&lt;br /&gt;
# Editor plugins need to use the new API (via addItem, etc.) instead of :addLevelLine()&lt;br /&gt;
# Bot balancing bug: 3 people join on two teams, balance to 6 players.  then all humans go on the same team.  Result:  bots's don't rebalance and you're left with 4 on 2.&lt;br /&gt;
# Sneaking suspicion that if one client is spawnDelayed, the server is delayed too&lt;br /&gt;
&lt;br /&gt;
====Things to test after next lua rewrite====&lt;br /&gt;
# Levelgen: Having addItem() in main() may randomly fail on repeated ctrl+R in editor or repeated level restart, showing message &amp;quot;***LEVELGEN ERROR*** Error encountered while attempting to run script's main() function: ***.levelgen:44: attempt to call missing or unknown method 'addItem' (a nil value).  Aborting script.&amp;quot;&lt;br /&gt;
#:&amp;lt;code&amp;gt;-- for bug #33 from sam686&amp;lt;br&amp;gt;function main()&amp;lt;br&amp;gt;&amp;amp;nbsp; for x = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; for y = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; item2 = ResourceItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;  item2:setGeom(x * 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(item2)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem = TextItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setText(x .. &amp;quot;,&amp;quot; .. y)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setGeom(x * 100, y * 100, x * 100 + 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(textitem)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; end&amp;lt;br&amp;gt;&amp;amp;nbsp; end&amp;lt;br&amp;gt;end&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Running_Bug_List</id>
		<title>Running Bug List</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Running_Bug_List"/>
				<updated>2013-04-08T22:46:14Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* General Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
This is list of our current high-priority bugs for Bitfighter.  &lt;br /&gt;
&lt;br /&gt;
Not all issues belong on this list -- only those that are a high priority for the next release.  Other cases should be added to the [https://code.google.com/p/bitfighter/issues/list Google Code bug tracker].&lt;br /&gt;
&lt;br /&gt;
===General Bugs===&lt;br /&gt;
&lt;br /&gt;
# Joining a game already running won't show your badges in the scoreboard until next level.  Existing clients get info on the joiner, but joiner doesn't get the full 411 on the existing players.  GameType::serverAddClient::s2cAddClient isn't sending proper badge info to joiner.&lt;br /&gt;
# Fix (or kill) /suspend command.  ''Removed client-side by raptor''  Do we need to remove the server ability to suspend client?&lt;br /&gt;
# Figure out how to get ids working properly with walls/polywalls&lt;br /&gt;
# When teleporting on top of walls (layered walls?) sometimes a player gets stuck and cannot move or commit suicide.  This may be hard to track down.&lt;br /&gt;
# One black screen of doom case left:  Open two clients; don't move in one to let spawn delay kick in (30 seconds); go to a /next level, the first should now be spawn delayed; go to /next level again, the first cannot come back to game now&lt;br /&gt;
# Fix memory leak with robots/levelgen because of disabling every luaW_hold&amp;lt;T&amp;gt;(L, obj); --&amp;gt; use reference counting to delete proxy when appropriate, and reenable this line&lt;br /&gt;
# &amp;lt;del&amp;gt;When a script deletes a ff projector, bobdaduck reports the ff is not also removed.  Also problematic:  setTeams, setLoc, etc.  Basically anything with FFPs don't appropriately update the attached FF&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;/shuffle is broken...&amp;lt;/del&amp;gt;&lt;br /&gt;
# Disable fast regen when standing still trying to build something with engineer&lt;br /&gt;
# &amp;lt;del&amp;gt;Ship is rendered behind repair items?&amp;lt;/del&amp;gt;&lt;br /&gt;
# Public Lua API members for the 'Item' object should probably be moved somewhere more appropriate.  See http://bitfighter.org/luadocs/class_item.html  isOnShip() should not apply to EngineeredItem, etc.&lt;br /&gt;
# Clean-up master chat commands.  Add consistency; /raptor -&amp;gt; /pm raptor  etc.&lt;br /&gt;
# &amp;lt;del&amp;gt;Lua API setHealth on Turrets/FFs not working&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;health items set at no regen still regen at default rate&amp;lt;/del&amp;gt;&lt;br /&gt;
# Quartz' kaen test euthanasia:&lt;br /&gt;
#* &amp;lt;del&amp;gt;Ghost ship hitting an energy item&amp;lt;/del&amp;gt;&lt;br /&gt;
#* &amp;lt;del&amp;gt;Set teleporter entrance == exit; set Delay=0  (should we remove this?)&amp;lt;/del&amp;gt;&lt;br /&gt;
#* &amp;lt;del&amp;gt;ghost (neutral) ship touching a levelgen'd zone (goalzone did the job)&amp;lt;/del&amp;gt;&lt;br /&gt;
# Lua API doc fixes: &lt;br /&gt;
#* event method signatures are not documented&lt;br /&gt;
#* 'LuaPlayerInfo' class?  All the Lunar classes mentioned here:  http://bitfighter.org/wiki/index.php/Scripting_018&lt;br /&gt;
#* &amp;lt;del&amp;gt;what happen to the 'Ship' methods?&amp;lt;/del&amp;gt;&lt;br /&gt;
# Lua event onShipSpawned isn't triggered when starting a level already connected to a server.  the 'suppressEvents' part of EventManager::fireEvent(EventType eventType, Ship *ship) [EventManager.cpp:292] returns true in this case for some reason&lt;br /&gt;
# Bobdaduck's Lua API crashes:&lt;br /&gt;
#* create and delete a spybug each tick, then shoot the spybug.  crash!&lt;br /&gt;
# &amp;lt;del&amp;gt;Client-side crash sometimes when another ship moves into a slipzone.  Looks like a memory corruption:  http://pastie.org/7056652&amp;lt;/del&amp;gt;&lt;br /&gt;
# Client-side crash dying with commander's map open:  http://pastie.org/7063833&lt;br /&gt;
# If ship spawns in a zone, it should trigger the onShipEnteredZone event (bobdaduck reports it does not)&lt;br /&gt;
# Improve screen for loading levels in editor -- perhaps general keyword search, or options for picking by author/title/file, or perhaps navigating a folder tree&lt;br /&gt;
# Graphically indicate if turrets/FFPs are regenerative.  bobdaduck suggests filling in the semicircle and triangle (turrent and FFP respectively)&lt;br /&gt;
# /addbots 6, crash!  Due to this revision?:  https://code.google.com/p/bitfighter/source/detail?r=d68cf36095763f5d9c928f7d03cb98ff2265fa41&lt;br /&gt;
# FF/Turret snapping in the editor needs serious work.  See http://pastie.org/pastes/7303300/text for a simple example (load in 'host-game' first to see what it should look like).  Also rotation of things in the editor messes up snapping as well.&lt;br /&gt;
# Make INI option 'GlobalLevelScript' take multiple scripts.  Probably just use comma-delimited list like so:  GlobalLevelScript=logger,adminutils,killraptor&lt;br /&gt;
# Remove access to dangerous Lua libraries (esp. os and io)  See http://lua-users.org/wiki/SandBoxes for ideas.&lt;br /&gt;
# Editor plugin Lua crash will crash the game with a segfault&lt;br /&gt;
# Move Lua loadout changes to Ship, from Robot&lt;br /&gt;
# Editor plugins need to use the new API (via addItem, etc.) instead of :addLevelLine()&lt;br /&gt;
# Bot balancing bug: 3 people join on two teams, balance to 6 players.  then all humans go on the same team.  Result:  bots's don't rebalance and you're left with 4 on 2.&lt;br /&gt;
# Sneaking suspicion that if one client is spawnDelayed, the server is delayed too&lt;br /&gt;
&lt;br /&gt;
====Things to test after next lua rewrite====&lt;br /&gt;
# Levelgen: Having addItem() in main() may randomly fail on repeated ctrl+R in editor or repeated level restart, showing message &amp;quot;***LEVELGEN ERROR*** Error encountered while attempting to run script's main() function: ***.levelgen:44: attempt to call missing or unknown method 'addItem' (a nil value).  Aborting script.&amp;quot;&lt;br /&gt;
#:&amp;lt;code&amp;gt;-- for bug #33 from sam686&amp;lt;br&amp;gt;function main()&amp;lt;br&amp;gt;&amp;amp;nbsp; for x = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; for y = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; item2 = ResourceItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;  item2:setGeom(x * 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(item2)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem = TextItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setText(x .. &amp;quot;,&amp;quot; .. y)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setGeom(x * 100, y * 100, x * 100 + 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(textitem)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; end&amp;lt;br&amp;gt;&amp;amp;nbsp; end&amp;lt;br&amp;gt;end&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Running_Bug_List</id>
		<title>Running Bug List</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Running_Bug_List"/>
				<updated>2013-04-08T18:55:00Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* General Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
This is list of our current high-priority bugs for Bitfighter.  &lt;br /&gt;
&lt;br /&gt;
Not all issues belong on this list -- only those that are a high priority for the next release.  Other cases should be added to the [https://code.google.com/p/bitfighter/issues/list Google Code bug tracker].&lt;br /&gt;
&lt;br /&gt;
===General Bugs===&lt;br /&gt;
&lt;br /&gt;
# Joining a game already running won't show your badges in the scoreboard until next level.  Existing clients get info on the joiner, but joiner doesn't get the full 411 on the existing players.  GameType::serverAddClient::s2cAddClient isn't sending proper badge info to joiner.&lt;br /&gt;
# Fix (or kill) /suspend command.  ''Removed client-side by raptor''  Do we need to remove the server ability to suspend client?&lt;br /&gt;
# Figure out how to get ids working properly with walls/polywalls&lt;br /&gt;
# When teleporting on top of walls (layered walls?) sometimes a player gets stuck and cannot move or commit suicide.  This may be hard to track down.&lt;br /&gt;
# One black screen of doom case left:  Open two clients; don't move in one to let spawn delay kick in (30 seconds); go to a /next level, the first should now be spawn delayed; go to /next level again, the first cannot come back to game now&lt;br /&gt;
# Fix memory leak with robots/levelgen because of disabling every luaW_hold&amp;lt;T&amp;gt;(L, obj); --&amp;gt; use reference counting to delete proxy when appropriate, and reenable this line&lt;br /&gt;
# &amp;lt;del&amp;gt;When a script deletes a ff projector, bobdaduck reports the ff is not also removed.  Also problematic:  setTeams, setLoc, etc.  Basically anything with FFPs don't appropriately update the attached FF&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;/shuffle is broken...&amp;lt;/del&amp;gt;&lt;br /&gt;
# Disable fast regen when standing still trying to build something with engineer&lt;br /&gt;
# &amp;lt;del&amp;gt;Ship is rendered behind repair items?&amp;lt;/del&amp;gt;&lt;br /&gt;
# Public Lua API members for the 'Item' object should probably be moved somewhere more appropriate.  See http://bitfighter.org/luadocs/class_item.html  isOnShip() should not apply to EngineeredItem, etc.&lt;br /&gt;
# Clean-up master chat commands.  Add consistency; /raptor -&amp;gt; /pm raptor  etc.&lt;br /&gt;
# &amp;lt;del&amp;gt;Lua API setHealth on Turrets/FFs not working&amp;lt;/del&amp;gt;&lt;br /&gt;
# health items set at no regen still regen at default rate&lt;br /&gt;
# Quartz' kaen test euthanasia:&lt;br /&gt;
#* &amp;lt;del&amp;gt;Ghost ship hitting an energy item&amp;lt;/del&amp;gt;&lt;br /&gt;
#* &amp;lt;del&amp;gt;Set teleporter entrance == exit; set Delay=0  (should we remove this?)&amp;lt;/del&amp;gt;&lt;br /&gt;
#* &amp;lt;del&amp;gt;ghost (neutral) ship touching a levelgen'd zone (goalzone did the job)&amp;lt;/del&amp;gt;&lt;br /&gt;
# Lua API doc fixes: &lt;br /&gt;
#* event method signatures are not documented&lt;br /&gt;
#* 'LuaPlayerInfo' class?  All the Lunar classes mentioned here:  http://bitfighter.org/wiki/index.php/Scripting_018&lt;br /&gt;
#* &amp;lt;del&amp;gt;what happen to the 'Ship' methods?&amp;lt;/del&amp;gt;&lt;br /&gt;
# Lua event onShipSpawned isn't triggered when starting a level already connected to a server.  the 'suppressEvents' part of EventManager::fireEvent(EventType eventType, Ship *ship) [EventManager.cpp:292] returns true in this case for some reason&lt;br /&gt;
# Bobdaduck's Lua API crashes:&lt;br /&gt;
#* create and delete a spybug each tick, then shoot the spybug.  crash!&lt;br /&gt;
# &amp;lt;del&amp;gt;Client-side crash sometimes when another ship moves into a slipzone.  Looks like a memory corruption:  http://pastie.org/7056652&amp;lt;/del&amp;gt;&lt;br /&gt;
# Client-side crash dying with commander's map open:  http://pastie.org/7063833&lt;br /&gt;
# If ship spawns in a zone, it should trigger the onShipEnteredZone event (bobdaduck reports it does not)&lt;br /&gt;
# Improve screen for loading levels in editor -- perhaps general keyword search, or options for picking by author/title/file, or perhaps navigating a folder tree&lt;br /&gt;
# Graphically indicate if turrets/FFPs are regenerative.  bobdaduck suggests filling in the semicircle and triangle (turrent and FFP respectively)&lt;br /&gt;
# /addbots 6, crash!  Due to this revision?:  https://code.google.com/p/bitfighter/source/detail?r=d68cf36095763f5d9c928f7d03cb98ff2265fa41&lt;br /&gt;
# FF/Turret snapping in the editor needs serious work.  See http://pastie.org/pastes/7303300/text for a simple example (load in 'host-game' first to see what it should look like).  Also rotation of things in the editor messes up snapping as well.&lt;br /&gt;
# Make INI option 'GlobalLevelScript' take multiple scripts.  Probably just use comma-delimited list like so:  GlobalLevelScript=logger,adminutils,killraptor&lt;br /&gt;
# Remove access to dangerous Lua libraries (esp. os and io)  See http://lua-users.org/wiki/SandBoxes for ideas.&lt;br /&gt;
# Editor plugin Lua crash will crash the game with a segfault&lt;br /&gt;
# Move Lua loadout changes to Ship, from Robot&lt;br /&gt;
# Editor plugins need to use the new API (via addItem, etc.) instead of :addLevelLine()&lt;br /&gt;
# Bot balancing bug: 3 people join on two teams, balance to 6 players.  then all humans go on the same team.  Result:  bots's don't rebalance and you're left with 4 on 2.&lt;br /&gt;
# Sneaking suspicion that if one client is spawnDelayed, the server is delayed too&lt;br /&gt;
&lt;br /&gt;
====Things to test after next lua rewrite====&lt;br /&gt;
# Levelgen: Having addItem() in main() may randomly fail on repeated ctrl+R in editor or repeated level restart, showing message &amp;quot;***LEVELGEN ERROR*** Error encountered while attempting to run script's main() function: ***.levelgen:44: attempt to call missing or unknown method 'addItem' (a nil value).  Aborting script.&amp;quot;&lt;br /&gt;
#:&amp;lt;code&amp;gt;-- for bug #33 from sam686&amp;lt;br&amp;gt;function main()&amp;lt;br&amp;gt;&amp;amp;nbsp; for x = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; for y = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; item2 = ResourceItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;  item2:setGeom(x * 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(item2)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem = TextItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setText(x .. &amp;quot;,&amp;quot; .. y)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setGeom(x * 100, y * 100, x * 100 + 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(textitem)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; end&amp;lt;br&amp;gt;&amp;amp;nbsp; end&amp;lt;br&amp;gt;end&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Running_Bug_List</id>
		<title>Running Bug List</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Running_Bug_List"/>
				<updated>2013-04-08T18:42:18Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* General Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
This is list of our current high-priority bugs for Bitfighter.  &lt;br /&gt;
&lt;br /&gt;
Not all issues belong on this list -- only those that are a high priority for the next release.  Other cases should be added to the [https://code.google.com/p/bitfighter/issues/list Google Code bug tracker].&lt;br /&gt;
&lt;br /&gt;
===General Bugs===&lt;br /&gt;
&lt;br /&gt;
# Joining a game already running won't show your badges in the scoreboard until next level.  Existing clients get info on the joiner, but joiner doesn't get the full 411 on the existing players.  GameType::serverAddClient::s2cAddClient isn't sending proper badge info to joiner.&lt;br /&gt;
# Fix (or kill) /suspend command.  ''Removed client-side by raptor''  Do we need to remove the server ability to suspend client?&lt;br /&gt;
# Figure out how to get ids working properly with walls/polywalls&lt;br /&gt;
# When teleporting on top of walls (layered walls?) sometimes a player gets stuck and cannot move or commit suicide.  This may be hard to track down.&lt;br /&gt;
# One black screen of doom case left:  Open two clients; don't move in one to let spawn delay kick in (30 seconds); go to a /next level, the first should now be spawn delayed; go to /next level again, the first cannot come back to game now&lt;br /&gt;
# Fix memory leak with robots/levelgen because of disabling every luaW_hold&amp;lt;T&amp;gt;(L, obj); --&amp;gt; use reference counting to delete proxy when appropriate, and reenable this line&lt;br /&gt;
# &amp;lt;del&amp;gt;When a script deletes a ff projector, bobdaduck reports the ff is not also removed.  Also problematic:  setTeams, setLoc, etc.  Basically anything with FFPs don't appropriately update the attached FF&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;/shuffle is broken...&amp;lt;/del&amp;gt;&lt;br /&gt;
# Disable fast regen when standing still trying to build something with engineer&lt;br /&gt;
# Ship is rendered behind repair items?&lt;br /&gt;
# Public Lua API members for the 'Item' object should probably be moved somewhere more appropriate.  See http://bitfighter.org/luadocs/class_item.html  isOnShip() should not apply to EngineeredItem, etc.&lt;br /&gt;
# Clean-up master chat commands.  Add consistency; /raptor -&amp;gt; /pm raptor  etc.&lt;br /&gt;
# &amp;lt;del&amp;gt;Lua API setHealth on Turrets/FFs not working&amp;lt;/del&amp;gt;&lt;br /&gt;
# health items set at no regen still regen at default rate&lt;br /&gt;
# Quartz' kaen test euthanasia:&lt;br /&gt;
#* &amp;lt;del&amp;gt;Ghost ship hitting an energy item&amp;lt;/del&amp;gt;&lt;br /&gt;
#* &amp;lt;del&amp;gt;Set teleporter entrance == exit; set Delay=0  (should we remove this?)&amp;lt;/del&amp;gt;&lt;br /&gt;
#* &amp;lt;del&amp;gt;ghost (neutral) ship touching a levelgen'd zone (goalzone did the job)&amp;lt;/del&amp;gt;&lt;br /&gt;
# Lua API doc fixes: &lt;br /&gt;
#* event method signatures are not documented&lt;br /&gt;
#* 'LuaPlayerInfo' class?  All the Lunar classes mentioned here:  http://bitfighter.org/wiki/index.php/Scripting_018&lt;br /&gt;
#* &amp;lt;del&amp;gt;what happen to the 'Ship' methods?&amp;lt;/del&amp;gt;&lt;br /&gt;
# Lua event onShipSpawned isn't triggered when starting a level already connected to a server.  the 'suppressEvents' part of EventManager::fireEvent(EventType eventType, Ship *ship) [EventManager.cpp:292] returns true in this case for some reason&lt;br /&gt;
# Bobdaduck's Lua API crashes:&lt;br /&gt;
#* create and delete a spybug each tick, then shoot the spybug.  crash!&lt;br /&gt;
# &amp;lt;del&amp;gt;Client-side crash sometimes when another ship moves into a slipzone.  Looks like a memory corruption:  http://pastie.org/7056652&amp;lt;/del&amp;gt;&lt;br /&gt;
# Client-side crash dying with commander's map open:  http://pastie.org/7063833&lt;br /&gt;
# If ship spawns in a zone, it should trigger the onShipEnteredZone event (bobdaduck reports it does not)&lt;br /&gt;
# Improve screen for loading levels in editor -- perhaps general keyword search, or options for picking by author/title/file, or perhaps navigating a folder tree&lt;br /&gt;
# Graphically indicate if turrets/FFPs are regenerative.  bobdaduck suggests filling in the semicircle and triangle (turrent and FFP respectively)&lt;br /&gt;
# /addbots 6, crash!  Due to this revision?:  https://code.google.com/p/bitfighter/source/detail?r=d68cf36095763f5d9c928f7d03cb98ff2265fa41&lt;br /&gt;
# FF/Turret snapping in the editor needs serious work.  See http://pastie.org/pastes/7303300/text for a simple example (load in 'host-game' first to see what it should look like).  Also rotation of things in the editor messes up snapping as well.&lt;br /&gt;
# Make INI option 'GlobalLevelScript' take multiple scripts.  Probably just use comma-delimited list like so:  GlobalLevelScript=logger,adminutils,killraptor&lt;br /&gt;
# Remove access to dangerous Lua libraries (esp. os and io)  See http://lua-users.org/wiki/SandBoxes for ideas.&lt;br /&gt;
# Editor plugin Lua crash will crash the game with a segfault&lt;br /&gt;
# Move Lua loadout changes to Ship, from Robot&lt;br /&gt;
# Editor plugins need to use the new API (via addItem, etc.) instead of :addLevelLine()&lt;br /&gt;
# Bot balancing bug: 3 people join on two teams, balance to 6 players.  then all humans go on the same team.  Result:  bots's don't rebalance and you're left with 4 on 2.&lt;br /&gt;
# Sneaking suspicion that if one client is spawnDelayed, the server is delayed too&lt;br /&gt;
&lt;br /&gt;
====Things to test after next lua rewrite====&lt;br /&gt;
# Levelgen: Having addItem() in main() may randomly fail on repeated ctrl+R in editor or repeated level restart, showing message &amp;quot;***LEVELGEN ERROR*** Error encountered while attempting to run script's main() function: ***.levelgen:44: attempt to call missing or unknown method 'addItem' (a nil value).  Aborting script.&amp;quot;&lt;br /&gt;
#:&amp;lt;code&amp;gt;-- for bug #33 from sam686&amp;lt;br&amp;gt;function main()&amp;lt;br&amp;gt;&amp;amp;nbsp; for x = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; for y = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; item2 = ResourceItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;  item2:setGeom(x * 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(item2)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem = TextItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setText(x .. &amp;quot;,&amp;quot; .. y)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setGeom(x * 100, y * 100, x * 100 + 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(textitem)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; end&amp;lt;br&amp;gt;&amp;amp;nbsp; end&amp;lt;br&amp;gt;end&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Running_Bug_List</id>
		<title>Running Bug List</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Running_Bug_List"/>
				<updated>2013-04-08T17:31:14Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* General Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
This is list of our current high-priority bugs for Bitfighter.  &lt;br /&gt;
&lt;br /&gt;
Not all issues belong on this list -- only those that are a high priority for the next release.  Other cases should be added to the [https://code.google.com/p/bitfighter/issues/list Google Code bug tracker].&lt;br /&gt;
&lt;br /&gt;
===General Bugs===&lt;br /&gt;
&lt;br /&gt;
# Joining a game already running won't show your badges in the scoreboard until next level.  Existing clients get info on the joiner, but joiner doesn't get the full 411 on the existing players.  GameType::serverAddClient::s2cAddClient isn't sending proper badge info to joiner.&lt;br /&gt;
# Fix (or kill) /suspend command.  ''Removed client-side by raptor''  Do we need to remove the server ability to suspend client?&lt;br /&gt;
# Figure out how to get ids working properly with walls/polywalls&lt;br /&gt;
# When teleporting on top of walls (layered walls?) sometimes a player gets stuck and cannot move or commit suicide.  This may be hard to track down.&lt;br /&gt;
# One black screen of doom case left:  Open two clients; don't move in one to let spawn delay kick in (30 seconds); go to a /next level, the first should now be spawn delayed; go to /next level again, the first cannot come back to game now&lt;br /&gt;
# Fix memory leak with robots/levelgen because of disabling every luaW_hold&amp;lt;T&amp;gt;(L, obj); --&amp;gt; use reference counting to delete proxy when appropriate, and reenable this line&lt;br /&gt;
# &amp;lt;del&amp;gt;When a script deletes a ff projector, bobdaduck reports the ff is not also removed.  Also problematic:  setTeams, setLoc, etc.  Basically anything with FFPs don't appropriately update the attached FF&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;/shuffle is broken...&amp;lt;/del&amp;gt;&lt;br /&gt;
# Disable fast regen when standing still trying to build something with engineer&lt;br /&gt;
# Ship is rendered behind repair items?&lt;br /&gt;
# Public Lua API members for the 'Item' object should probably be moved somewhere more appropriate.  See http://bitfighter.org/luadocs/class_item.html  isOnShip() should not apply to EngineeredItem, etc.&lt;br /&gt;
# Clean-up master chat commands.  Add consistency; /raptor -&amp;gt; /pm raptor  etc.&lt;br /&gt;
# &amp;lt;del&amp;gt;Lua API setHealth on Turrets/FFs not working&amp;lt;/del&amp;gt;&lt;br /&gt;
# health items set at no regen still regen at default rate&lt;br /&gt;
# Quartz' kaen test euthanasia:&lt;br /&gt;
#* &amp;lt;del&amp;gt;Ghost ship hitting an energy item&amp;lt;/del&amp;gt;&lt;br /&gt;
#* &amp;lt;del&amp;gt;Set teleporter entrance == exit; set Delay=0  (should we remove this?)&amp;lt;/del&amp;gt;&lt;br /&gt;
#* &amp;lt;del&amp;gt;ghost (neutral) ship touching a levelgen'd zone (goalzone did the job)&amp;lt;/del&amp;gt;&lt;br /&gt;
# Lua API doc fixes: &lt;br /&gt;
#* event method signatures are not documented&lt;br /&gt;
#* 'LuaPlayerInfo' class?  All the Lunar classes mentioned here:  http://bitfighter.org/wiki/index.php/Scripting_018&lt;br /&gt;
#* &amp;lt;del&amp;gt;what happen to the 'Ship' methods?&amp;lt;/del&amp;gt;&lt;br /&gt;
# Lua event onShipSpawned isn't triggered when starting a level already connected to a server.  the 'suppressEvents' part of EventManager::fireEvent(EventType eventType, Ship *ship) [EventManager.cpp:292] returns true in this case for some reason&lt;br /&gt;
# Bobdaduck's Lua API crashes:&lt;br /&gt;
#* create and delete a spybug each tick, then shoot the spybug.  crash!&lt;br /&gt;
# Client-side crash sometimes when another ship moves into a slipzone.  Looks like a memory corruption:  http://pastie.org/7056652&lt;br /&gt;
# Client-side crash dying with commander's map open:  http://pastie.org/7063833&lt;br /&gt;
# If ship spawns in a zone, it should trigger the onShipEnteredZone event (bobdaduck reports it does not)&lt;br /&gt;
# Improve screen for loading levels in editor -- perhaps general keyword search, or options for picking by author/title/file, or perhaps navigating a folder tree&lt;br /&gt;
# Graphically indicate if turrets/FFPs are regenerative.  bobdaduck suggests filling in the semicircle and triangle (turrent and FFP respectively)&lt;br /&gt;
# /addbots 6, crash!  Due to this revision?:  https://code.google.com/p/bitfighter/source/detail?r=d68cf36095763f5d9c928f7d03cb98ff2265fa41&lt;br /&gt;
# FF/Turret snapping in the editor needs serious work.  See http://pastie.org/pastes/7303300/text for a simple example (load in 'host-game' first to see what it should look like).  Also rotation of things in the editor messes up snapping as well.&lt;br /&gt;
# Make INI option 'GlobalLevelScript' take multiple scripts.  Probably just use comma-delimited list like so:  GlobalLevelScript=logger,adminutils,killraptor&lt;br /&gt;
# Remove access to dangerous Lua libraries (esp. os and io)  See http://lua-users.org/wiki/SandBoxes for ideas.&lt;br /&gt;
# Editor plugin Lua crash will crash the game with a segfault&lt;br /&gt;
# Move Lua loadout changes to Ship, from Robot&lt;br /&gt;
# Editor plugins need to use the new API (via addItem, etc.) instead of :addLevelLine()&lt;br /&gt;
# Bot balancing bug: 3 people join on two teams, balance to 6 players.  then all humans go on the same team.  Result:  bots's don't rebalance and you're left with 4 on 2.&lt;br /&gt;
# Sneaking suspicion that if one client is spawnDelayed, the server is delayed too&lt;br /&gt;
&lt;br /&gt;
====Things to test after next lua rewrite====&lt;br /&gt;
# Levelgen: Having addItem() in main() may randomly fail on repeated ctrl+R in editor or repeated level restart, showing message &amp;quot;***LEVELGEN ERROR*** Error encountered while attempting to run script's main() function: ***.levelgen:44: attempt to call missing or unknown method 'addItem' (a nil value).  Aborting script.&amp;quot;&lt;br /&gt;
#:&amp;lt;code&amp;gt;-- for bug #33 from sam686&amp;lt;br&amp;gt;function main()&amp;lt;br&amp;gt;&amp;amp;nbsp; for x = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; for y = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; item2 = ResourceItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;  item2:setGeom(x * 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(item2)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem = TextItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setText(x .. &amp;quot;,&amp;quot; .. y)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setGeom(x * 100, y * 100, x * 100 + 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(textitem)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; end&amp;lt;br&amp;gt;&amp;amp;nbsp; end&amp;lt;br&amp;gt;end&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Running_Bug_List</id>
		<title>Running Bug List</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Running_Bug_List"/>
				<updated>2013-04-08T17:06:47Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: /* General Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC right}}&lt;br /&gt;
&lt;br /&gt;
This is list of our current high-priority bugs for Bitfighter.  &lt;br /&gt;
&lt;br /&gt;
Not all issues belong on this list -- only those that are a high priority for the next release.  Other cases should be added to the [https://code.google.com/p/bitfighter/issues/list Google Code bug tracker].&lt;br /&gt;
&lt;br /&gt;
===General Bugs===&lt;br /&gt;
&lt;br /&gt;
# Joining a game already running won't show your badges in the scoreboard until next level.  Existing clients get info on the joiner, but joiner doesn't get the full 411 on the existing players.  GameType::serverAddClient::s2cAddClient isn't sending proper badge info to joiner.&lt;br /&gt;
# Fix (or kill) /suspend command.  ''Removed client-side by raptor''  Do we need to remove the server ability to suspend client?&lt;br /&gt;
# Figure out how to get ids working properly with walls/polywalls&lt;br /&gt;
# When teleporting on top of walls (layered walls?) sometimes a player gets stuck and cannot move or commit suicide.  This may be hard to track down.&lt;br /&gt;
# One black screen of doom case left:  Open two clients; don't move in one to let spawn delay kick in (30 seconds); go to a /next level, the first should now be spawn delayed; go to /next level again, the first cannot come back to game now&lt;br /&gt;
# Fix memory leak with robots/levelgen because of disabling every luaW_hold&amp;lt;T&amp;gt;(L, obj); --&amp;gt; use reference counting to delete proxy when appropriate, and reenable this line&lt;br /&gt;
# &amp;lt;del&amp;gt;When a script deletes a ff projector, bobdaduck reports the ff is not also removed.  Also problematic:  setTeams, setLoc, etc.  Basically anything with FFPs don't appropriately update the attached FF&amp;lt;/del&amp;gt;&lt;br /&gt;
# &amp;lt;del&amp;gt;/shuffle is broken...&amp;lt;/del&amp;gt;&lt;br /&gt;
# Disable fast regen when standing still trying to build something with engineer&lt;br /&gt;
# Ship is rendered behind repair items?&lt;br /&gt;
# Public Lua API members for the 'Item' object should probably be moved somewhere more appropriate.  See http://bitfighter.org/luadocs/class_item.html  isOnShip() should not apply to EngineeredItem, etc.&lt;br /&gt;
# Clean-up master chat commands.  Add consistency; /raptor -&amp;gt; /pm raptor  etc.&lt;br /&gt;
# &amp;lt;del&amp;gt;Lua API setHealth on Turrets/FFs not working&amp;lt;/del&amp;gt;&lt;br /&gt;
# health items set at no regen still regen at default rate&lt;br /&gt;
# Quartz' kaen test euthanasia:&lt;br /&gt;
#* &amp;lt;del&amp;gt;Ghost ship hitting an energy item&amp;lt;/del&amp;gt;&lt;br /&gt;
#* &amp;lt;del&amp;gt;Set teleporter entrance == exit; set Delay=0  (should we remove this?)&amp;lt;/del&amp;gt;&lt;br /&gt;
#* ghost (neutral) ship touching a levelgen'd zone (goalzone did the job)&lt;br /&gt;
# Lua API doc fixes: &lt;br /&gt;
#* event method signatures are not documented&lt;br /&gt;
#* 'LuaPlayerInfo' class?  All the Lunar classes mentioned here:  http://bitfighter.org/wiki/index.php/Scripting_018&lt;br /&gt;
#* &amp;lt;del&amp;gt;what happen to the 'Ship' methods?&amp;lt;/del&amp;gt;&lt;br /&gt;
# Lua event onShipSpawned isn't triggered when starting a level already connected to a server.  the 'suppressEvents' part of EventManager::fireEvent(EventType eventType, Ship *ship) [EventManager.cpp:292] returns true in this case for some reason&lt;br /&gt;
# Bobdaduck's Lua API crashes:&lt;br /&gt;
#* create and delete a spybug each tick, then shoot the spybug.  crash!&lt;br /&gt;
# Client-side crash sometimes when another ship moves into a slipzone.  Looks like a memory corruption:  http://pastie.org/7056652&lt;br /&gt;
# Client-side crash dying with commander's map open:  http://pastie.org/7063833&lt;br /&gt;
# If ship spawns in a zone, it should trigger the onShipEnteredZone event (bobdaduck reports it does not)&lt;br /&gt;
# Improve screen for loading levels in editor -- perhaps general keyword search, or options for picking by author/title/file, or perhaps navigating a folder tree&lt;br /&gt;
# Graphically indicate if turrets/FFPs are regenerative.  bobdaduck suggests filling in the semicircle and triangle (turrent and FFP respectively)&lt;br /&gt;
# /addbots 6, crash!  Due to this revision?:  https://code.google.com/p/bitfighter/source/detail?r=d68cf36095763f5d9c928f7d03cb98ff2265fa41&lt;br /&gt;
# FF/Turret snapping in the editor needs serious work.  See http://pastie.org/pastes/7303300/text for a simple example (load in 'host-game' first to see what it should look like).  Also rotation of things in the editor messes up snapping as well.&lt;br /&gt;
# Make INI option 'GlobalLevelScript' take multiple scripts.  Probably just use comma-delimited list like so:  GlobalLevelScript=logger,adminutils,killraptor&lt;br /&gt;
# Remove access to dangerous Lua libraries (esp. os and io)  See http://lua-users.org/wiki/SandBoxes for ideas.&lt;br /&gt;
# Editor plugin Lua crash will crash the game with a segfault&lt;br /&gt;
# Move Lua loadout changes to Ship, from Robot&lt;br /&gt;
# Editor plugins need to use the new API (via addItem, etc.) instead of :addLevelLine()&lt;br /&gt;
# Bot balancing bug: 3 people join on two teams, balance to 6 players.  then all humans go on the same team.  Result:  bots's don't rebalance and you're left with 4 on 2.&lt;br /&gt;
# Sneaking suspicion that if one client is spawnDelayed, the server is delayed too&lt;br /&gt;
&lt;br /&gt;
====Things to test after next lua rewrite====&lt;br /&gt;
# Levelgen: Having addItem() in main() may randomly fail on repeated ctrl+R in editor or repeated level restart, showing message &amp;quot;***LEVELGEN ERROR*** Error encountered while attempting to run script's main() function: ***.levelgen:44: attempt to call missing or unknown method 'addItem' (a nil value).  Aborting script.&amp;quot;&lt;br /&gt;
#:&amp;lt;code&amp;gt;-- for bug #33 from sam686&amp;lt;br&amp;gt;function main()&amp;lt;br&amp;gt;&amp;amp;nbsp; for x = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; for y = 0, 20 do&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; item2 = ResourceItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp;  item2:setGeom(x * 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(item2)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem = TextItem.new()&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setText(x .. &amp;quot;,&amp;quot; .. y)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; textitem:setGeom(x * 100, y * 100, x * 100 + 100, y * 100)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; levelgen:addItem(textitem)&amp;lt;br&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; end&amp;lt;br&amp;gt;&amp;amp;nbsp; end&amp;lt;br&amp;gt;end&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	<entry>
		<id>http://bitfighter.org/wiki/index.php/Script_structure</id>
		<title>Script structure</title>
		<link rel="alternate" type="text/html" href="http://bitfighter.org/wiki/index.php/Script_structure"/>
				<updated>2013-02-27T17:22:13Z</updated>
		
		<summary type="html">&lt;p&gt;Kaen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Programming levelgens|Levelgen]] and [[Programming robots|Robot]] scripts share the same general program structure. They generally contain three sections, and are executed during the corresponding phases:&lt;br /&gt;
# Global variable declarations  (Load Phase)&lt;br /&gt;
# Initialization code (Initialization Phase)&lt;br /&gt;
# Event handlers (Event Phase)&lt;br /&gt;
&lt;br /&gt;
During the &amp;quot;Load Phase&amp;quot; the script is essentially &amp;quot;executed&amp;quot; in order to get all the functions loaded into the global namespace where they can be called by Bitfighter. Only code that is not contained in a function is run, and while you can possibly do some useful things during this phase (especially with a levelgen), it is really best to restrict any &amp;quot;loose code&amp;quot; (i.e. not contained in a function) to defining global variables. Any variables defined in this phase are considered global unless the local keyword is used. Command line args passed to the script are '''not''' available during this phase.&lt;br /&gt;
&lt;br /&gt;
Immediately following the Load Phase is the Initialization Phase.  Initialization essentially consists of running a function called main().  All scripts are required to have a main() function, but it can be empty.  This is a good time to set variables and create any structures that might be needed by the script.  Any variables created in main() are considered global unless declared with the local keyword, but your scripts will be clearer if they are declared during the Load Phase.  Command line args passed to the script are available, and are stored in the arg table (which is the Lua standard).  &lt;br /&gt;
&lt;br /&gt;
As the game proceeds, events may occur that trigger calls to the script.  Generally, scripts need to register to receive a particular event (see [[Programming_robots#Currently_defined_events|the list of events]]).  When an event occurs in the game, the corresponding function is called in the script, where it can take action accordingly.  Each game frame, a Tick event is fired, and if a script has a function called onTick(), it will be executed.  Scripts do not need to register to receive Tick events.  Note that to reduce errors, all variables used in the event handling code must be explicitly declared, either during the Load or Initialization  phases, or using the local or global keywords.&lt;/div&gt;</summary>
		<author><name>Kaen</name></author>	</entry>

	</feed>