<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.fightorder.net/wiki/index.php?action=history&amp;feed=atom&amp;title=AI%3ADevelopment%3ALang%3ACpp</id>
	<title>AI:Development:Lang:Cpp - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.fightorder.net/wiki/index.php?action=history&amp;feed=atom&amp;title=AI%3ADevelopment%3ALang%3ACpp"/>
	<link rel="alternate" type="text/html" href="https://www.fightorder.net/wiki/index.php?title=AI:Development:Lang:Cpp&amp;action=history"/>
	<updated>2026-04-21T07:59:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://www.fightorder.net/wiki/index.php?title=AI:Development:Lang:Cpp&amp;diff=1558&amp;oldid=prev</id>
		<title>Qrow: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://www.fightorder.net/wiki/index.php?title=AI:Development:Lang:Cpp&amp;diff=1558&amp;oldid=prev"/>
		<updated>2026-02-24T06:08:38Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:08, 23 February 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Qrow</name></author>
	</entry>
	<entry>
		<id>https://www.fightorder.net/wiki/index.php?title=AI:Development:Lang:Cpp&amp;diff=1557&amp;oldid=prev</id>
		<title>interaidev&gt;Abma: /* Writing a Skirmish AI in C++ */</title>
		<link rel="alternate" type="text/html" href="https://www.fightorder.net/wiki/index.php?title=AI:Development:Lang:Cpp&amp;diff=1557&amp;oldid=prev"/>
		<updated>2014-01-31T12:53:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Writing a Skirmish AI in C++&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Engine_Development|Development]] &amp;lt; [[AI:Development|AI Development]] &amp;lt; C++ AI Development&lt;br /&gt;
&lt;br /&gt;
=Writing a Skirmish AI in C++=&lt;br /&gt;
&lt;br /&gt;
There are two ways of writing a C++ AI, using the [[AIWrapper:LegacyCpp| deprecated legacy API]] or the [[AIWrapper:Cpp| C++ Wrapper API]]. The legacy API is used for AIs using the old interface ( e.g. KAI, RAI, AAI etc ).&lt;br /&gt;
&lt;br /&gt;
For an example of an AI using the new OO C++ Wrapper interface, refer to [[AI:Shard|Shard]] by AF.&lt;br /&gt;
&lt;br /&gt;
For further info, have a look at the forum: http://springrts.com/phpbb/viewtopic.php?p=552433#p552433&lt;br /&gt;
&lt;br /&gt;
==Start off==&lt;br /&gt;
&lt;br /&gt;
easiest is to copy the existing CpptestAI to a new folder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;cp -rv AI/Skirmish/CppTestAI/* AI/Skirmish/myAI/ &amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
adjust AI/Skirmish/myAI/cont/data/AIInfo.lua, for example change &amp;quot;value  = &amp;#039;CppTestAI&amp;#039;&amp;quot;, &amp;quot;to &amp;#039;myAI&amp;#039;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==Compile==&lt;br /&gt;
&lt;br /&gt;
run cmake again in the root of the spring source to make the buildsystem recoginize the newly created folder:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;cmake .&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To create the needed interface files run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;make Cpp-AIWrapper&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
for each AI there exists such an target, for example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;make myAI&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to list all available targets run&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;make help&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: AI Dev]]&lt;/div&gt;</summary>
		<author><name>interaidev&gt;Abma</name></author>
	</entry>
</feed>