Common problems
Windows blocked the installer
Section titled “Windows blocked the installer”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.
The editor does not open on Linux
Section titled “The editor does not open on Linux”- 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.
C++: compile error
Section titled “C++: compile error”The Output shows the file and the line; clicking opens the code. Check:
BRASA_ENTITY(Name);uses the object name in the editor.- The
.cppstarts with the#includeof the object.hpp. - The class is declared only once, in the
.hpp. - Usual messages: C++ in Brasa.
C++: it stopped compiling after an update
Section titled “C++: it stopped compiling after an update”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.
Lua: script error
Section titled “Lua: script error”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.
The game runs, but nothing shows
Section titled “The game runs, but nothing shows”- 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?
The sound does not play
Section titled “The sound does not play”- 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.
A collision counts twice
Section titled “A collision counts twice”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)onCollide<Enemy>([this](Enemy& inimigo) { if (inimigo.isDestroyed()) return; inimigo.destroy(); destroy();});See the value of a variable
Section titled “See the value of a variable”print("vidas = " .. self.vidas)brasa::logInfo(std::format("vidas = {}", vidas));AI: the brasa server does not show up
Section titled “AI: the brasa server does not show up”- The path to
brasa_cliin.mcp.json(or in the Codexconfig.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.
AI: render_ui makes a window flash
Section titled “AI: render_ui makes a window flash”The interface preview is drawn by the editor, which opens for a moment and closes. This is expected.
AI: lua_api only shows names
Section titled “AI: lua_api only shows names”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.
AI: the game did not finish in time
Section titled “AI: the game did not finish in time”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.
Still stuck
Section titled “Still stuck”Ask on Discord, with the Brasa version and the Output text. See Community.
