InsaneAI/Tutorial

InsaneAI Tutorial

In this simple tutorial, I will cover the basics of map setup to correctly run and implement InsaneAI.

We will also implement a simple InsaneAI for a Terran opponent.

 

First of all, install InsaneAI, then open Galaxy Editor. Under file, choose New Arcade Map. Then, choose custom dependencies, and add InsaneAI.

Arcade Map     Dependencies

Then, when the terrain is ready, place some resources and two starting points. Once this is done, open the players settings and set your players. The first one, color blue, will be the human. The second one, color red, will be InsaneAI. Remember to set control to computer and AI to computer for this player.

Resources and Starting Locations      Player properties

Once this is done, place some structures for both players. Then create a region around the computer player base and call it InsaneAI Town. Once this is done, create a point called InsaneAI Barracks, wherever you want. I choose to put it inside the InsaneAI Town. Also, place a region called InsaneAI Supply anywhere you want.

 Structures and Town     Additional regions

After that, open the AI Module. Create a new AI personality and set its parameter correctly for player 2. You don't need to create AI waves.

AI Personality

Once the personality is done, open up trigger editor. Rename "Melee Initialization" to "Initialization", and remove all actions except for the one relative to resources.

Then add new actions:

  1. Define InsaneAI to actually define a player to use InsaneAI. No other action can be used on a player if this is not called first.
  2. Start AI player personality. This is needed to run the default campaign AI relative to the personality you have setted up. This way you define attacks wave for InsaneAI.
  3. Add Resource, with relative extractor. Doing this will make InsaneAI know which resources to extract and the number of workers required. It will allow InsaneAI to build the required number of workers without any input.
  4. Set Supply, to define supply units. InsaneAI will build them automatically. Since this is a terran player, use the default supply depot.
  5. Set supply region, to define where to build supply. If no space is found in the region, InsaneAI will build at random in the player town. You can define more than one region of this kind.
  6. Set worker, to define worker units. InsaneAI will use workers to extract resources.
  7. Add Build Order Step, to add Barracks at the Barracks point you made.
  8. Add Unit, to add 10 marine to the list of units the InsaneAI will build. Each build will be done in parallel.
  9. Run InsaneAI, to start everything.

Triggers

 

Note: in the image above you should add Barracks and not Barracks (Flying) as a build order step unit. This is a misclick on my end, but I already took the screenshot by then. Sorry for that.

 

After that, you can test the map and add thing and modify what you want to suit your needs or just to experiment a bit.

 

The full documentation is provided inside the game, by hints associated to functions and actions.

 

 

 


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes