APIErrorsOverview

Errors

Conjure errors are surfaced in the editor console and public runtime console. They are designed to point at a missing setup step or invalid asset rather than browser internals.

Common Errors

  • ConjureNotInitializedError: drawing happened before init_window.
  • ConjureAssetNotFoundError: an image, sound, or music filename could not be found in the game assets.
  • ConjurePlatformError: score or save data calls could not reach the platform API.
  • ConjureSaveDataError: save data exceeded key, value, or quota limits.
from conjure import *
 
init_window(360, 640, "Errors")
 
while not window_should_close():
    begin_drawing()
    clear_background(WHITE)
    draw_text("Check filenames before loading assets", 20, 300, 20, BLACK)
    end_drawing()

For asset fixes, read asset management. For save failures, read save data.