<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://backup.witchspacewiki.org/index.php?action=history&amp;feed=atom&amp;title=Oolite_System_Populator</id>
	<title>Oolite System Populator - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://backup.witchspacewiki.org/index.php?action=history&amp;feed=atom&amp;title=Oolite_System_Populator"/>
	<link rel="alternate" type="text/html" href="http://backup.witchspacewiki.org/index.php?title=Oolite_System_Populator&amp;action=history"/>
	<updated>2026-04-12T11:22:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>http://backup.witchspacewiki.org/index.php?title=Oolite_System_Populator&amp;diff=50852&amp;oldid=prev</id>
		<title>Debresser: Category:Oolite</title>
		<link rel="alternate" type="text/html" href="http://backup.witchspacewiki.org/index.php?title=Oolite_System_Populator&amp;diff=50852&amp;oldid=prev"/>
		<updated>2016-01-22T01:20:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/index.php/Category:Oolite&quot; title=&quot;Category:Oolite&quot;&gt;Category:Oolite&lt;/a&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 01:20, 22 January 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 45:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 45:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The system repopulator function will be called approximately every twenty seconds, and can be used to replace ships that have been destroyed. Generally such replacements should enter the system in a believable way - exiting witchspace near the witchpoint, by being launched from an appropriate station or the planet, or by some similar method. It is important for smooth gameplay that this function runs very quickly. If calculations are needed, run as many as possible in the populator function to save the result.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The system repopulator function will be called approximately every twenty seconds, and can be used to replace ships that have been destroyed. Generally such replacements should enter the system in a believable way - exiting witchspace near the witchpoint, by being launched from an appropriate station or the planet, or by some similar method. It is important for smooth gameplay that this function runs very quickly. If calculations are needed, run as many as possible in the populator function to save the result.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;+&lt;/td&gt;
  &lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;+&lt;/td&gt;
  &lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Oolite]]&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Debresser</name></author>
		
	</entry>
	<entry>
		<id>http://backup.witchspacewiki.org/index.php?title=Oolite_System_Populator&amp;diff=50301&amp;oldid=prev</id>
		<title>Debresser: Page moved. No need for _ in links.</title>
		<link rel="alternate" type="text/html" href="http://backup.witchspacewiki.org/index.php?title=Oolite_System_Populator&amp;diff=50301&amp;oldid=prev"/>
		<updated>2016-01-16T20:52:26Z</updated>

		<summary type="html">&lt;p&gt;Page moved. No need for _ in links.&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 20:52, 16 January 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The Oolite System Populator has three parts:&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The Oolite System Populator has three parts:&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Via [[planetinfo.plist]] populator and repopulator functions are defined. Different functions may be defined for different systems.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Via [[planetinfo.plist]] populator and repopulator functions are defined. Different functions may be defined for different systems.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;−&lt;/td&gt;
  &lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# The populator function is called whenever a new system (or region of interstellar space) needs populating: immediately after the [[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Oolite_JavaScript_Reference&lt;/del&gt;:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;_world_script_event_handlers&lt;/del&gt;#startUp|startUp]] world event, and immediately before the [[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Oolite_JavaScript_Reference&lt;/del&gt;:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;_world_script_event_handlers&lt;/del&gt;#shipWillExitWitchspace|shipWillExitWitchspace]] world event. It acts like a world event itself, but does not have a fixed name. This function should use [[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Oolite_JavaScript_Reference&lt;/del&gt;:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;_System&lt;/del&gt;#setPopulator|system.setPopulator()]] to set up system population.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;+&lt;/td&gt;
  &lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# The populator function is called whenever a new system (or region of interstellar space) needs populating: immediately after the [[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Oolite JavaScript Reference&lt;/ins&gt;:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; World script event handlers&lt;/ins&gt;#startUp|startUp]] world event, and immediately before the [[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Oolite JavaScript Reference&lt;/ins&gt;:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; World script event handlers&lt;/ins&gt;#shipWillExitWitchspace|shipWillExitWitchspace]] world event. It acts like a world event itself, but does not have a fixed name. This function should use [[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Oolite JavaScript Reference&lt;/ins&gt;:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; System&lt;/ins&gt;#setPopulator|system.setPopulator()]] to set up system population.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;−&lt;/td&gt;
  &lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# The repopulator function is called every twenty seconds of [[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Time_scales_in_Oolite&lt;/del&gt;#&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Game_real_time&lt;/del&gt;|game real time]]. This function should use functions like [[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Oolite_JavaScript_Reference&lt;/del&gt;:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;_System&lt;/del&gt;#addGroup|system.addGroup()]] and [[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Oolite_JavaScript_Reference&lt;/del&gt;:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;_Station&lt;/del&gt;#launchShipWithRole|station.launchShipWithRole()]] to add new ships to the system as required to replace those which have been destroyed, or for other new arrivals.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;+&lt;/td&gt;
  &lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# The repopulator function is called every twenty seconds of [[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Time scales in Oolite&lt;/ins&gt;#&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Game real time&lt;/ins&gt;|game real time]]. This function should use functions like [[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Oolite JavaScript Reference&lt;/ins&gt;:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; System&lt;/ins&gt;#addGroup|system.addGroup()]] and [[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Oolite JavaScript Reference&lt;/ins&gt;:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; Station&lt;/ins&gt;#launchShipWithRole|station.launchShipWithRole()]] to add new ships to the system as required to replace those which have been destroyed, or for other new arrivals.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Defining populator functions ==&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Defining populator functions ==&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Debresser</name></author>
		
	</entry>
	<entry>
		<id>http://backup.witchspacewiki.org/index.php?title=Oolite_System_Populator&amp;diff=46729&amp;oldid=prev</id>
		<title>Cim: Remove 1.79 warning</title>
		<link rel="alternate" type="text/html" href="http://backup.witchspacewiki.org/index.php?title=Oolite_System_Populator&amp;diff=46729&amp;oldid=prev"/>
		<updated>2015-02-05T20:02:57Z</updated>

		<summary type="html">&lt;p&gt;Remove 1.79 warning&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 20:02, 5 February 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;−&lt;/td&gt;
  &lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''This page describes the Oolite System Populator in version 1.79 or later'''. It is currently subject to change without notice.&lt;/div&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty&quot;&gt;&amp;#160;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;−&lt;/td&gt;
  &lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty&quot;&gt;&amp;#160;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The Oolite System Populator has three parts:&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The Oolite System Populator has three parts:&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Via [[planetinfo.plist]] populator and repopulator functions are defined. Different functions may be defined for different systems.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Via [[planetinfo.plist]] populator and repopulator functions are defined. Different functions may be defined for different systems.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Cim</name></author>
		
	</entry>
	<entry>
		<id>http://backup.witchspacewiki.org/index.php?title=Oolite_System_Populator&amp;diff=39290&amp;oldid=prev</id>
		<title>Cim: /* The system populator function */ clarify deterministic</title>
		<link rel="alternate" type="text/html" href="http://backup.witchspacewiki.org/index.php?title=Oolite_System_Populator&amp;diff=39290&amp;oldid=prev"/>
		<updated>2014-04-14T19:48:08Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;The system populator function: &lt;/span&gt; clarify deterministic&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 19:48, 14 April 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 30:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 30:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* '''coordinates''' : this must be a valid Vector expression if &amp;lt;code&amp;gt;location&amp;lt;/code&amp;gt; is &quot;COORDINATES&quot;. It is ignored otherwise.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* '''coordinates''' : this must be a valid Vector expression if &amp;lt;code&amp;gt;location&amp;lt;/code&amp;gt; is &quot;COORDINATES&quot;. It is ignored otherwise.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* '''groupCount''' : a number, default 1. This is the number of times the callback function will be called. It is only really useful with &amp;lt;code&amp;gt;location&amp;lt;/code&amp;gt;s other than &quot;COORDINATES&quot;.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* '''groupCount''' : a number, default 1. This is the number of times the callback function will be called. It is only really useful with &amp;lt;code&amp;gt;location&amp;lt;/code&amp;gt;s other than &quot;COORDINATES&quot;.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;−&lt;/td&gt;
  &lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* '''deterministic''' : a boolean, default false. If this is true (only possible when using &quot;COORDINATES&quot; or a non-zero &amp;lt;code&amp;gt;locationSeed&amp;lt;/code&amp;gt;, and not in nova systems or interstellar space) this is a promise to Oolite that this populator function will always be called with these parameters if the player revisits this system, provided the OXP has the power to do so. (i.e. it has not been uninstalled, had the system populator function changed under it, has its populator entries removed by another OXP, etc.). Currently secondary stations added by deterministic populators may allow the player to save and load the game. If the player saves the game at such a station, which is then not there when they reload the game, they will be returned to the main station as a safety measure.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;+&lt;/td&gt;
  &lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* '''deterministic''' : a boolean, default false. If this is true (only possible when using &quot;COORDINATES&quot; or a non-zero &amp;lt;code&amp;gt;locationSeed&amp;lt;/code&amp;gt;, and not in nova systems or interstellar space) this is a promise to Oolite that this populator function will always be called with these parameters if the player revisits this system, provided the OXP has the power to do so&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, and will always have the same effect when it is called&lt;/ins&gt;. (i.e. it has not been uninstalled, had the system populator function changed under it, has its populator entries removed by another OXP, etc.). Currently secondary stations added by deterministic populators may allow the player to save and load the game. If the player saves the game at such a station, which is then not there when they reload the game, they will be returned to the main station as a safety measure.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Named regions===&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Named regions===&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Cim</name></author>
		
	</entry>
	<entry>
		<id>http://backup.witchspacewiki.org/index.php?title=Oolite_System_Populator&amp;diff=37665&amp;oldid=prev</id>
		<title>Cim: System populator documentation</title>
		<link rel="alternate" type="text/html" href="http://backup.witchspacewiki.org/index.php?title=Oolite_System_Populator&amp;diff=37665&amp;oldid=prev"/>
		<updated>2013-10-04T21:31:10Z</updated>

		<summary type="html">&lt;p&gt;System populator documentation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''This page describes the Oolite System Populator in version 1.79 or later'''. It is currently subject to change without notice.&lt;br /&gt;
&lt;br /&gt;
The Oolite System Populator has three parts:&lt;br /&gt;
# Via [[planetinfo.plist]] populator and repopulator functions are defined. Different functions may be defined for different systems.&lt;br /&gt;
# The populator function is called whenever a new system (or region of interstellar space) needs populating: immediately after the [[Oolite_JavaScript_Reference:_world_script_event_handlers#startUp|startUp]] world event, and immediately before the [[Oolite_JavaScript_Reference:_world_script_event_handlers#shipWillExitWitchspace|shipWillExitWitchspace]] world event. It acts like a world event itself, but does not have a fixed name. This function should use [[Oolite_JavaScript_Reference:_System#setPopulator|system.setPopulator()]] to set up system population.&lt;br /&gt;
# The repopulator function is called every twenty seconds of [[Time_scales_in_Oolite#Game_real_time|game real time]]. This function should use functions like [[Oolite_JavaScript_Reference:_System#addGroup|system.addGroup()]] and [[Oolite_JavaScript_Reference:_Station#launchShipWithRole|station.launchShipWithRole()]] to add new ships to the system as required to replace those which have been destroyed, or for other new arrivals.&lt;br /&gt;
&lt;br /&gt;
== Defining populator functions ==&lt;br /&gt;
&lt;br /&gt;
There are three default populator and repopulator functions.&lt;br /&gt;
* '''For normal systems''': &amp;lt;code&amp;gt;systemWillPopulate&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;systemWillRepopulate&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''For interstellar space''': &amp;lt;code&amp;gt;interstellarSpaceWillPopulate&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;interstellarSpaceWillRepopulate&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''For nova systems''': &amp;lt;code&amp;gt;novaSystemWillPopulate&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;novaSystemWillRepopulate&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OXPs which intend to add additional content to &amp;quot;normal&amp;quot; systems should define these functions in a worldscript, and use them to add to or amend the default population.&lt;br /&gt;
&lt;br /&gt;
OXPs which wish to &amp;quot;take over&amp;quot; a system or systems should use [[planetinfo.plist]] to set a different populator function which is unique to their worldscript(s). This then prevents normal system population, including modifications from other more generic OXPs (provided those OXPs have been written to use this new population method, of course)&lt;br /&gt;
&lt;br /&gt;
== The system populator function ==&lt;br /&gt;
&lt;br /&gt;
The system populator is a dictionary of populator definitions set by using the [[Oolite_JavaScript_Reference:_System#setPopulator|system.setPopulator()]] function. Existing definitions may be overwritten by specifying a new definition for that key, and the definitions set up so far may be read in [[Oolite_JavaScript_Reference:_System#populatorSettings|system.populatorSettings]]&lt;br /&gt;
&lt;br /&gt;
Each definition has the following required parameters:&lt;br /&gt;
* '''callback''' : a function which takes a single parameter, a Vector. This function when called should then add entities to the system at or near the Vector passed to it using the standard &amp;lt;code&amp;gt;system.addShips&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;system.addGroup&amp;lt;/code&amp;gt; functions.&lt;br /&gt;
&lt;br /&gt;
...and the following optional parameters:&lt;br /&gt;
* '''priority''' : a number. The default is 100. Populator definitions will be run in priority order, with ties broken randomly. Values below 100 should be considered reserved for Oolite if you are using the default populator functions, and only used with an understanding of the implications.&lt;br /&gt;
* '''location''' : a string which must either be &amp;quot;COORDINATES&amp;quot; (the default) or a region name. Region names are listed below.&lt;br /&gt;
* '''locationSeed''' : a number. The default is zero. If this is zero, the location is picked entirely randomly within the named region. Otherwise, it is picked using a seeded random number generator, guaranteed to give the same answer every time it is used in this system (but not the same answer as in other systems). If the &amp;lt;code&amp;gt;groupCount&amp;lt;/code&amp;gt; is greater than zero and a &amp;lt;code&amp;gt;locationSeed&amp;lt;/code&amp;gt; is set, an appropriate number of deterministic locations within the region will be picked, always in the same order.&lt;br /&gt;
* '''coordinates''' : this must be a valid Vector expression if &amp;lt;code&amp;gt;location&amp;lt;/code&amp;gt; is &amp;quot;COORDINATES&amp;quot;. It is ignored otherwise.&lt;br /&gt;
* '''groupCount''' : a number, default 1. This is the number of times the callback function will be called. It is only really useful with &amp;lt;code&amp;gt;location&amp;lt;/code&amp;gt;s other than &amp;quot;COORDINATES&amp;quot;.&lt;br /&gt;
* '''deterministic''' : a boolean, default false. If this is true (only possible when using &amp;quot;COORDINATES&amp;quot; or a non-zero &amp;lt;code&amp;gt;locationSeed&amp;lt;/code&amp;gt;, and not in nova systems or interstellar space) this is a promise to Oolite that this populator function will always be called with these parameters if the player revisits this system, provided the OXP has the power to do so. (i.e. it has not been uninstalled, had the system populator function changed under it, has its populator entries removed by another OXP, etc.). Currently secondary stations added by deterministic populators may allow the player to save and load the game. If the player saves the game at such a station, which is then not there when they reload the game, they will be returned to the main station as a safety measure.&lt;br /&gt;
&lt;br /&gt;
===Named regions===&lt;br /&gt;
The following named regions exist in Oolite 1.79 or later.&lt;br /&gt;
* '''WITCHPOINT''' : A position within scanner range of the witchpoint. In interstellar space and nova systems, all named regions are equivalent to this. Unrecognised region names will also be treated as &amp;quot;WITCHPOINT&amp;quot;&lt;br /&gt;
* '''LANE_PS''', '''LANE_WP''', '''LANE_WS''' : A position on the space lane between the planet, sun and witchpoint, within two scanner ranges of the centre of the lane, and not within three radii of the planet or sun, or scanner range of the witchpoint.&lt;br /&gt;
* '''LANE_WPS''' : Picks one of the lane parameters, weighted to the lengths of the three lanes.&lt;br /&gt;
* '''STATION_AEGIS''' : A position within two scanner ranges of the main station, but not too close to the planet.&lt;br /&gt;
* '''PLANET_ORBIT''', '''PLANET_ORBIT_HIGH''', '''PLANET_ORBIT_LOW''' : A position less than 1 radii from the main planet's surface (low orbit), between 1 and 3 radii (orbit), or between 3 and 7 radii (high orbit)&lt;br /&gt;
* '''STAR_ORBIT''', '''STAR_ORBIT_HIGH''', '''STAR_ORBIT_LOW''' : As the planet orbits, but relative to the system's star's position and radius.&lt;br /&gt;
* '''TRIANGLE''' : A position in the the triangle described by the sun, main planet, and witchpoint, at least three radii from the sun and planet and three scanner ranges from the witchpoint.&lt;br /&gt;
* '''INNER_SYSTEM''', '''INNER_SYSTEM_OFFPLANE''' : A position at least as close to the sun as the planet is, but no closer than three radii. If &amp;quot;OFFPLANE&amp;quot; is not specified, the position will be close to the plane described by the sun, main planet and witchpoint.&lt;br /&gt;
* '''OUTER_SYSTEM''', '''OUTER_SYSTEM_OFFPLANE''' : A position at least as far from the sun as the planet is, but no further than 10,000km from it. Note that coordinates in this area may take the player 15 minutes or more to reach at full torus speeds, and ships travelling at conventional speeds may take several hours or even days to reach these locations from the inner system.&lt;br /&gt;
&lt;br /&gt;
== The system repopulator function ==&lt;br /&gt;
&lt;br /&gt;
The system repopulator function will be called approximately every twenty seconds, and can be used to replace ships that have been destroyed. Generally such replacements should enter the system in a believable way - exiting witchspace near the witchpoint, by being launched from an appropriate station or the planet, or by some similar method. It is important for smooth gameplay that this function runs very quickly. If calculations are needed, run as many as possible in the populator function to save the result.&lt;/div&gt;</summary>
		<author><name>Cim</name></author>
		
	</entry>
</feed>