AI:Development: Difference between revisions

From Spring
Jump to navigationJump to search
Line 28: Line 28:


==AI "frame skipping"==
==AI "frame skipping"==
http://springrts.com/phpbb/viewtopic.php?f=15&t=24838&start=9
http://springrts.com/phpbb/viewtopic.php?p=463953#p463953


==Hints==
==Hints==

Revision as of 19:34, 22 October 2014

Development < AI Development

How to write a Skirmish AI for Spring

Quick Start

The SpringRTS engine receives commands from an AI agent and sends back game state to the AI through an "Interface". See these pages for tutorials on how to setup a development environment, connect to the appropriate "Interface" and how to build your first example AI agent:

I have setup my development environment. What now?

  • Useful inferences - how to infer where the opponents might have started, where on the maps can your units go, etc
  • AIs for Spring - list of some of the AI agents that have already been developed for SpringRTS
  • AI related links - ranging from how to conceptualize AI agents all the way down to how to tackle very specific problems like pathfinding
  • Springs AI dev forum - comunity's forum dedicated to AI development
  • AI Interfaces & Wrappers - semi-technical description of the Interfaces that expose the SpringRTS engine to the AI agents
  • SpringRTS <-> AIs architecture - architecture of SpringRTS and how it interacts with the AIs

Lua<-->AI communications [in Spring 0.83+]

http://springrts.com/phpbb/viewtopic.php?f=15&t=26298 He shall only say it once!

AI "frame skipping"

http://springrts.com/phpbb/viewtopic.php?p=463953#p463953

Hints

In spring you have some control over AIs with these commands:

/aireload
/ailist
/aikill
/aicontrol