Original message (verbatim)
'Invalid atlas json, frame already exists: ' + key
Placeholders such as %s / %d are kept verbatim from the engine source and are not replaced with concrete values.
Trigger
Two frame keys with the same name appear in the frames of a Hash-format atlas JSON, or the same atlas is loaded twice causing frame key conflicts.
Typical cause
texture.add(key, ...) returns null for an existing frame name; the parser skips that frame and warns, so the duplicate frame never enters the Texture.
Step-by-step fix
- Rename duplicate frames in the atlas packing tool.
- Remove the old texture before loading.
- Check whether two atlas JSONs were registered to the same texture key.
Source links
Per-entry sources and capture date are listed at /sources#P09.
Related errors
Related Phaser errors
Need an offline quick-reference checklist?
Atlas error library Pro pack: 123 error references (110 single + 13 merged) plus a quick-fix guide, $19 one-time purchase, delivered as electronic files.
Back to the all-errors index Checkout and buy the Pro pack — $19.00