Importing a game or its components from its JSON can be done in three ways:
Each object that can be imported can be exported to retrieve its structure in the current game, as described in the export instructions section.
If you need to add NEW levels to the game, the JSON should be a list of one or more levels, separated by commas. For the level to be added (rather than updating an existing one), it must NOT have a `number` field inside the `task` settings section. A description of the level structure can be found here.
If you need to update EXISTING levels in the game, the JSON should be a list of one or more levels, separated by commas, and the `number` field in the `task` settings section must be passed (corresponding to the level number being edited). A description of the level structure can be found here.
If present in the JSON, game settings from the `task` section will replace the existing values in the engine. If fields are omitted from the provided JSON, they will remain as they were.
For other sections (`codes`, `bonuses`, `hints`), if the section is present in the JSON, it will completely replace the existing one. If omitted, the section remains unchanged.
It is possible to upload the entire game from a JSON object. For this, the JSON must be a complete game JSON, as described on the JSON structure description page. Additionally, you must add the field "delete_all_tasks": 1 to the JSON to delete all existing levels and reload the game from scratch, for example:
{ "game": { "name": "#New Unnamed Game 2", }, "tasks": [{"task": {"number": 1, "working_name": "Title"}, "codes": [], "bonuses": [], "hints": []}], "gbonuses": [], "lines": [], "delete_all_tasks": 1, }
If present in the JSON, game settings from the `game` section will replace the existing values in the engine. If fields are omitted from the provided JSON, they will remain as they were in the game before.
For other sections (`gbonuses`, `lines`), if the section is present in the JSON, it will completely replace the existing one. If omitted, the section remains unchanged.
You only need to pass the game settings structure in the JSON, as described on the JSON structure page.
You only need to pass the global bonuses structure in the JSON, as described on the JSON structure page.
You only need to pass the global bonuses structure in the JSON, as described on the JSON structure page.
Modern chatbots (ChatGPT, Claude, Gemini, etc.) do an excellent job of generating and editing levels, codes, hints, and bonuses in JSON format for the qeng.org engine.
You can find the ready-to-use system prompt for chatbot configuration in the section: Using AI to create tasks.