Skip to content
Download

Common problems

The installer has no digital signature yet. On the “Windows protected your PC” screen, click More info and Run anyway. Always download from the Download page.

  • Run it from the terminal to see the error: ./brasa/brasa_editor.
  • Check glibc with ldd --version: it must be 2.35 or newer (Ubuntu 22.04+, Fedora 36+, Debian 12+).
  • A missing-library message: install the package it names and try again. Ask on Discord with the error text.
  • C++ projects do not run in the Linux editor yet: use a Lua project.

C++: Play asks for C++ support or cannot find CMake

Section titled “C++: Play asks for C++ support or cannot find CMake”
  • Install C++ support in the hub, under Settings › Components.
  • Without the Visual Studio Build Tools, install them through the Brasa installer or from the Microsoft site, with the Desktop development with C++ workload and the C++ CMake tools for Windows component.
  • CMake outside the default location: set it in Project › Preferences… › CMake path.

The Output shows the file and the line; clicking opens the code. Check:

  • BRASA_ENTITY(Name); uses the object name in the editor.
  • The .cpp starts with the #include of the object .hpp.
  • The class is declared only once, in the .hpp.
  • Usual messages: C++ in Brasa.

Delete the .brasa/ folder of the project and press Play. It only holds the build: nothing of the project is lost. See SDK and build.

The error shows in the Output with the file and the line, and the game keeps running. The most common cause is using a value that does not exist: an instance that instance, closest or findAt did not find, or a field of self named differently from the Inspector.

  • Is the instance in the start room, inside the room and camera area?
  • Does the object have a sprite, and is Visible checked on the object and the layer?
  • Is the file WAV, OGG or MP3?
  • The name in code is the file name without the extension, with the same letter case.
  • Does the ▶ in Resources play the file? If not, the problem is the file.

Two shots that hit the same enemy on the same step fire both callbacks. Check before scoring whether the target has already been destroyed.

self:onCollide("Enemy", function(inimigo)
if not inimigo:exists() then return end
inimigo:destroy()
self:destroy()
end)
print("vidas = " .. self.vidas)
  • The path to brasa_cli in .mcp.json (or in the Codex config.toml) is wrong, usually because Brasa was reinstalled somewhere else or the project folder moved. Open the project and run Project › Set up AI (MCP)… again.
  • Restart the client (Claude Code, Cursor or Codex) after writing. In Claude Code, check with /mcp.
  • The window says “brasa_cli is not next to the editor”: reinstall Brasa. See Connect it to your AI editor.

The interface preview is drawn by the editor, which opens for a moment and closes. This is expected.

The API documentation comes from the docs/lua/ folder, which must sit next to brasa_cli. If it does not exist, the tool only lists the names. Reinstall Brasa or extract the whole tar.gz, without moving brasa_cli out of its folder.

A heavy game can go past the call time limit (30 seconds plus 1 per 20 frames) and is closed. Ask for fewer frames in run_game and screenshot.

Ask on Discord, with the Brasa version and the Output text. See Community.