When something goes wrong
Here you find the problems that happen most often, in the order in which you are likely to meet them. For each one you see what you read on screen, why it happens and what to do.
Before you start, two habits that solve a lot:
- Look at the top of the panel to see whether the server is on or off.
- If you do not understand what happened, open the server log and press Errors.
The server does not start, or it stops right away
What you see. You press Start server and a red message appears at the bottom, starting with Error:. Or the server starts and stops right away.
The most common causes:
- There is no map. In the Overview you read that you have to create the first map. Open the World Builder and create one.
- You have several maps and none is set as “Live in game”. The server does not know which one to use, so it does not start. In the World Builder choose the active map with the switch in the Properties panel: it is explained in Saving and playing.
- The port is already taken. Another server is already on, maybe started by hand or left on from before. You can tell because the message mentions a port already in use. Stop the other server and try again.
- The game is not valid or not active. Check in the Your games page that the game exists and is the active one.
The red message ends with the last lines of the log: that is usually where the cause is written.
Note
If the message says the server does not answer even though the process started, check the log and check that an antivirus or a firewall is not blocking the port.
The player cannot connect
First thing to know. If you open the server address in a browser and read that it only accepts WebSocket connections, it is not a fault: that port only talks to the game, not to web pages.
If the game does not connect:
- Check that the server is on.
- Check that the address and the port in the game are the ones in the Overview (Address to connect the game, with the Copy button).
- If the players are on other computers and you can connect but they cannot, the address you copied probably works only on your computer: ask whoever gave you Nyra to set the server's public address.
- If everything looks right, check that a firewall is not blocking the port.
If the server is on but the player list says nobody is connected, the server is working: simply nobody has joined yet.
I cannot sign in to the panel
| What you read | Why | What to do |
|---|---|---|
| You must sign in to use the panel | The session expired, for example after a long pause. | Reload the page and sign in again. |
| Username or password not correct | You got one of the two wrong. | Try again calmly. If you forgot the password, ask the Owner to reset it. |
| Too many failed attempts | You got it wrong too many times in a row. | Wait a few minutes and try again. |
| The code expired | The verification code screen stayed open too long. | Go back and sign in again. |
| Incorrect code | The 6-digit code is wrong. Often the phone clock is not right. | Use the code you see now: it changes every 30 seconds. |
| Code already used | Every recovery code works only once. | Use another code from the list. |
| Your role cannot use this feature | You are a Moderator and you tried something reserved, like games, configuration or backups. | Ask an Administrator to do it, or to change your role. |
When you choose a password it must have at least 10 characters, and the two boxes must contain the same password. Player passwords, in the Account page, follow a 3-character minimum instead.
The panel says “Error” while I work on games
| What you read | What to do |
|---|---|
| The active game cannot be deleted | Make another game active, then delete this one. |
| The typed name does not match | For safety you must type the exact game name. Type it again, identical. |
| This name is already in use | Choose another name. |
Files and images
- The file is too large. The limit for uploading a file is 10 MB.
- The name is not valid. The rule written under the field is: Only letters, numbers and . _ - (1 to 60 characters), with no spaces or accents.
- “name” already exists: choose another name.
- This file is protected: the panel never modifies it. It applies to the accounts database, the configuration and the Nyra Logic rules.
- This image is placed in: list of maps. It is managed from the World Builder. The panel does not change it, so as not to damage the map.
More information in the Files and images page.
Backups
- Restore and Delete cannot be pressed. The server is on: stop it and try again. Creating a backup, on the other hand, is always possible.
- The backup could not be created or The restore failed. Try again. If it happens again, look at the log.
Before every restore Nyra makes a copy of the current data by itself, of type Before a restore: if you change your mind, you find it in the list.
World Builder: saving and opening
At the bottom, to the left of the Cursor label, the World Builder writes the reason for a problem in red.
| What you read | Why | What to do |
|---|---|---|
| Save blocked and the reason | Something in the level is not valid: a shape with wrong sizes, an object outside the world bounds, a sprite with no type or with an incomplete hitbox. Sometimes the reason is that the level is already open in another window, or that a level with that name already exists. | Fix the object mentioned and save again. If the reason mentions another window, close it. |
| Network error while saving | The World Builder can no longer talk to its server. | Check that it is still on, then try again. |
| The level was changed in another window | Someone, or another tab, saved the same level while you were editing it. | Choose Overwrite to keep your changes, or Reload to take the other one's. |
| The active game has changed: restart the World Builder | You changed the active game while the World Builder was open. | Close it and open it again from the Overview. |
| There is already a level named “name”: replace it? | You are saving a level with the name of one that is already there. | Choose another name, or confirm Replace if you really want to replace it. |
| “name” is outside the levels folder, so it cannot be saved there | The World Builder saves only inside the game's levels folder. | Press Move into levels, then save. |
Note
The names of tilesets, sprites and uploaded images can contain only letters, numbers, period, hyphen and underscore, from 1 to 60 characters: no spaces and no accents. Level names follow the rule of the window that Save as… opens, that is Save the level with a name: 80 characters at most, and spaces and accented letters are allowed.
Labels
If an object has a label the game does not know, the World Builder marks it on the drawing with an amber dashed border and an exclamation mark. That object is treated as a solid wall.
Choose a label from the list: you see the valid ones in the Labels supported by the server window. In the Label field you choose an entry from the vocabulary; if you type text of your own, the World Builder does not accept it: Label: choose an entry from the vocabulary (no free text).
If the World Builder tells you the level uses old-format labels and does not save it, open the object with the old label and choose one from the list.
Other warnings
- Locked layer. An object on a layer with the padlock is read-only. Read Read-only: this object is on a LOCKED layer: unlock the layer from the Layers bar.
- Drag too small. If you draw a shape with zero width or height it is not created: Drag too small: shape not created (width/height must be positive). Drag a bit more.
- Invalid world size. The minimum is 320 × 240 pixels. If you shrink the world and an object would end up outside the bounds, the World Builder does not let you: Cannot shrink the world: some points would end up outside the bounds (move or delete them first).
- You cannot delete the last level, the last layer or the last tab. At least one is always needed.
- Show Collision is on but the sprite has no hitbox. You read Show Collision ON, but this sprite has NO hitbox yet: set the hitbox width and height.
If you run Nyra on your computer
This chapter applies only if the panel runs on your computer, not online.
The server started by hand. Next to the server indicator you read started externally: this tool cannot stop it. The panel stops only the servers it started itself: if you started the server by hand from another window, you have to stop it from that window. Then, if you want, start it again from the panel.
Settings that cannot be read. If the panel says the settings cannot be read, the settings file is damaged and the panel does not start. The panel does not rewrite it on its own, so as not to lose data. The previous copy is called settings.json.bak and sits next to the settings.json file, in the Nyra folder of your user profile (on Windows: %APPDATA%\Nyra; on macOS and Linux: .config/nyra). If you do not know how to restore it, ask for help before touching anything else.
The game folder is gone. In the games page, a game with the Folder not found label was moved, renamed or deleted outside the panel. Put the folder back where it was, or use Locate folder… and point the panel to the new location.
The folder picked for a new game. When you pick the folder, the panel warns you if it is not suitable: for example if Windows does not let you write there, if it is a protected folder, if it is synced with OneDrive, Dropbox, Google Drive or iCloud, or if it is inside the program code. Pick a folder of your own, like Documents or Desktop, outside the sync.
Other errors on your computer.
| What you read | What to do |
|---|---|
| This folder is not a Nyra game | You picked the wrong folder. Pick the one that contains your game. |
| The game server is on but not managed by this tool | Stop it from the window you started it from, then try again. |
| Stop the game server before importing | The database is copied only while the server is off. Stop the server and try again. |
| Cannot find the current game database | Start the server once, then try again. |
If that is not enough
- Open the server log, press Errors and look at the last ones.
- Press All, then Copy.
- Paste the log into the message where you ask for help, and write what you were doing when it happened.