Skip to content

OnlyWorlds SDK for Godot 0.12.0

Choose a tag to compare

@tmoosting tmoosting released this 28 Nov 08:43
· 55 commits to main since this release

A game can set an element's image and attach files to it: a portrait, a screenshot, a save.

  • Images: upload_image sends a picture's bytes to the media host and answers its URL, to set as an element's image_url; remove_image takes one away. create_media_ticket and create_removal_ticket are their first steps, for a game that sends the bytes itself.
  • Files on an element: upload_file, list_files, file_download_link and remove_file, with create_file_ticket as the upload's first step, and world_files for what a whole world holds against its cap. file_kind_of and FILE_EXTENSIONS say which kind a file name is.
  • Errors a game branches on: is_not_author, is_quota_exceeded, is_file_too_large and is_files_full on OWApiError.
  • The transport now sends raw bytes (a PackedByteArray body, byte for byte), and a POST with no body says Content-Length: 0.

A minor release: it adds public API. Uploads in a web export are not measured yet.

onlyworlds-godot-0.12.0.zip holds the addons/onlyworlds/ folder: copy it into your project. Built from the tag and proven by installing it in an empty Godot 4.7 project that reads a world through it.

README · CHANGELOG

sha256 030b1d47419f07bdffd3073e85b443ff10fe04ef41b35ce631f1f2ab65f565ca