AI Map Creating

From Mod Wiki

Jump to: navigation, search

Here is a step by step "basic" tutorial, and added images, and explanation to each image. I hope it will help you to realize how it works, and to successfully create your own AI map for your new sp level. This little explanation will not uncover, how to modify the added nodes one-by-one, and change their preferences, however an extended tutorial will be added if requested. Most of level editors are pleased with the automatic aimap creation, and if they want to know more, it's easy to discover the rest in the level editor.

Creating AI Map is needed for single player levels only. If you make multiplayer level, you can skip this article. AI Map controls the npc and creatures movement on the level. When you finished the base of your map, you placed every object you wanted to, then:

Step 1:

This is a simple map, just for presentating the AI grids. As you see, it has borders (fence). Also you can see on the right panel, the aimap button, so select it. (it's highlighted with white color)

Step 2:

After you selected it, make sure you clicked on the arrow button at the upper panel (see the image)

Step 3:

When you are done, you can click on the snaps list +/- add button, and start to add the objects to the snaps list (see the image)

Step 4:

When you select an object, it will be added to that list, and will get red color, so you will know, that you already added it. However, adding objects outside the fenced area, is not needed, since you will only spawn npcs inside the level, and of course do not forget to select the fence objects too, so npcs will not try to go through them :) (see the image)

Step 5:

When you selected all needed objects on the level, you need to place at least one ai node by hand on the map. So click on the bucket "add" icon at the upper panel. (see the image)

Step 6:

Click on "add" button again at the ai map nodes panel, and choose an ai map symbol and place it on the map. (see the image)

Step 7:

Now that you placed an AI Node, and you added the needed objects to the Snaps list, you can generate AI Map. Click on "generate full" at the AI Map panel. This can be a long process, if you made a big map, also it depends on your pc. When it is done, you can switch back to "object" mode, so the red colors disappear from the map! (see the image)


After aimap compile, select all nodes with "ctrl + a" and press the smooth at least once, so it will be smoothed. After this method, while they are still selected, click on the middle cross (+) ai-node image, and wait. This will check connection between ai-nodes, and force connection for each, so you won't find any red -invalid- ainodes on your map.

IF you forgot to add some object to snap list, and you don't want to regenerate the whole aimap, you can click on "delete" button on aimap section, and select ai nodes one by one, and delete them manually. If you deleted too much, you can click on "Add" button and place down ai nodes manually to the empty areas, and they will be automatically connected!

add: you can disable ai map after it's generated, because it can be annoying to see the nodes everywhere all the time. To do that, go to properties, and click on show ai grid, and it will turn it off. To turn it on, click on it again. Be careful, to add graph points only to those areas which contain aimap. Otherwise ai compiler will discard them.

Step 8:

Now the AI Map is done, you see, it was generated properly, so npcs wont try to go through the walls.

Congratulations! Now you can build your map, and compile it. Later with Neo]['s or Bardak's ai compilers you can build your single player map :)

Extra Tips:

I am sure, you noticed, that stalkers like to go in the fire, maybe the weather is too cold for them? No it's not. The problem is, aimap generation fails at low objects, like fireplaces. To avoid these issues, try this, and it will help to make proper new level:

As you can see in this image, the ai map fails, and npcs can go to the fireplace. To avoid it, you need to put a bigger object to that place where you plan to add fire later. A simple bush, or barrel does the trick. (see the image)

Now the AI Map generation is complete again, and you see, the AI Map won't fail this time. You can simply remove the bush now, it's not needed anymore. (see the image)

Put back the fireplace, and it's done (see the image)


This way eliminates the issues with npc - fireplace, however because there is no aimap under the fireplace, stalkers wont sit around it properly, since no center point for kamp! This method only helpful for fireplaces, where you don't plan to add camping npcs...



Personal tools