Skip to content

OnlyWorlds SDK for Godot 0.18.0

Latest

Choose a tag to compare

@tmoosting tmoosting released this 03 Dec 00:35
· 1 commit to main since this release

A player can now sign in with their OnlyWorlds account from your game and read their own worlds.

  • Sign in with OnlyWorlds, OWSignIn.sign_in(): the game opens the player's browser on onlyworlds.com, they press Continue, and the game gets a token that reads their worlds for 30 days and writes nothing. It listens on 127.0.0.1 only, on a port the system picks, and refuses and revokes a token that is not read-only. The SDK keeps no token: saving it is the game's choice. Desktop only; the web, Android and iOS answer no_listener. The README has a first run, and demo/sign_in.gd walks the whole sign-in from the command line. Proven against onlyworlds.com.
  • The player's worlds: OWClient.list_account_worlds() lists them, and revoke_account_token() signs out. OWApiError.needs_sign_in() tells a game the token is over.
  • The change feed on a signed-in player's token: a client built with that token and a world reads the world's changes, as a world key does.
  • A visit: an invite link that gives an AI a seat for a set number of days says so (OWJoin.Preview.visit_days), and the seat says when it ends (OWJoin.Seat.ends_at).
  • The link listener refuses a line that starts with a UTF-8 byte order mark, as the Unity SDK's does.

A minor release because it adds public API; nothing is removed or renamed.

onlyworlds-godot-0.18.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 cf8aba9e9e13211c7a76147a71b84abf5108e2a1f33d29fe2860bc989b1b6cc3