# Node Network (.nntx)

### Introduction

A NodeNetwork is a collection of nodes (points in world space), connected by links. A node network is used to perform "pathfinding" - the movement logic for navigating a map with obstacles.

### Creating a NodeNetwork in Glue

Glue has built-in support for working with NodeNetworks. To add a NodeNetwork to your level screen:

1. Expand your **level Screen** in Glue
2. Right-click on the **Files** folder
3. Select **Add File** -> **New File**
4. Use the dropdown to select **Node Network (.nntx)**
5. Change the name of the file if desired
6. Click **OK**

<figure><img src="/files/wqylvalXAO6ZaUdcnYfD" alt=""><figcaption></figcaption></figure>

### Editing a NodeNetwork File

To edit a NodeNetwork file, double-click the file in Glue and the AIEditor should open. If you have not set up the file associations, you can do this by following these steps:

1. Right-click on the node network in Glue
2. Select **View in Explorer**
3. Right-click on node network file (.nntx) in Windows Explorer
4. Select **Open with...**

   ![](/files/ApDeJOkJrudTGjGJO2wN)
5. Click **More Apps** to expand the list
6. Scroll to the bottom of the list and select **Look for another app on this PC**

   ![](/files/xvGVIbbKqRiq2MTXJNv1)
7. Navigate to the location where the FRBDK was unzipped (this is also where Glue is located)
8. Find the AIEditor.exe and select that as the default application

Note that you may need to install XNA 3.1 Redistributable to run the AIEditor. For more information, see the [AIEditor page](https://github.com/flatredball/FlatRedBallDocs/blob/main/documentation/tools/artificialintelligenceeditor-main-page.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flatredball.com/flatredball/glue-reference/files/file-types/nodenetwork-nntx.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
