Skip to Content
SDK Integration
Flayer Debugger

Flayer Debugger

The Flayer Debugger is a powerful testing and debugging tool available on Nexus (Tools > Flayer Debug). It allows you to establish a connection between your game and the UI on Nexus.

Among other features, this allows you to test your developed flayer functions (aka game functions) as well as the game state.

Flayer Debugger Overview

Read the AI Agent section to understand why we require you to develop additional game functions and game state. TLDR; it helps the AI agent play the game better.

We call this Tool Flayer Debugger since it allows you to test your flayer functions. In other parts of the documentation like the AI Agent we refer to these functions as game functions, which is a more intuitive name. In the end, flayer functions and game functions are the same thing.

How to establish the Connection

  1. Launch your game with the Nunu SDK enabled
  2. Open the Nunu console window in-game (default: F7). It should look something like this: Flayer Debugger Overview
  3. Copy the connection string by clicking the copy icon in the top right corner of the debugger Flayer Debugger Overview
  4. Paste the connection string into the console window in the game and press ‘Enter’. Flayer Debugger Overview

How to use the Flayer Debugger

Fetch available Functions

By pressing the fetch functions button you can fetch all available flayer functions. This is usually the first step before you start your debugging session. Flayer Debugger Overview

In the background we scan all available functions and display all

Some Flayer functions have a closed eye icon

next to them. This symbolizes that these functions are not exposed to the AI Agent but available for general usage.

Test a Flayer Function

Testing out if flayer functions are working as intended is one of the most common use cases. To run a flayer function simply:

  1. Select the flayer function you want to test in the search bar under the fetch functions button.
  2. Fill in the necessary arguments
  3. Click the Send button and observe that your function gets executed. Flayer Debugger Overview

On the right side of the Flayer debugger you can check the response. Check out the raw tab for the raw response and the logs tab for what game logs got sent while running your function.

Checking if the sent logs are correct is highly encouraged. Good logs provide valuable feedback to both you and the AI Agent, making it clear whether a function executed successfully or encountered issues.

Test the Game State

Checking if the game state works is another very common use case. This process is identical to testing Flayer functions, with the added benefit that you have a convenient json tab in the response section to display your game state in a more readable format.

Note: Your constructed game state should not be larger than one A4 page of text.

Load a specific config

In Nexus (Configs -> Game Funcs) you can create different configurations for the available flayer functions. This is mostly used when you want different tests to have different available functions and you therefore exclude some of them.

You can check what flayer functions are available for a specific configuration like this:

  1. Click the icon to disable scanning and enable the loading of a specific config.
  2. Select the flayer config from the dropdown. Flayer Debugger Overview
Last updated on