Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/content/docs/docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ What changed on onlyworlds.com for everyone is on its own [Changelog](https://ww

## 2026-11-30

- **[Godot](/docs/development/godot) [0.17.0](https://github.com/OnlyWorlds/godot-sdk/releases/tag/v0.17.0), [Unity](/docs/development/unity) [0.61.5](https://github.com/OnlyWorlds/unity-sdk/releases/tag/v0.61.5) and [Unreal](/docs/development/games) [0.18.0](https://github.com/OnlyWorlds/unreal-sdk/releases/tag/v0.18.0): the world folder writers follow the folder format's 0.3.26 rules.** An element's id is checked as `<id>.json` whatever its name, so an element named Bob with the id `con` is refused, and a folder is stamped `format_version` 0.3.26; a folder stamped 0.3.25 is read as before. Godot and Unreal word the archive's refusals as the TypeScript SDK does and add the name check for one name (`OWWorldArchive.segment_fault`, `OnlyWorlds::OWWorldArchive::SegmentFault`).
- **[TypeScript](/docs/development/typescript#world-files) [4.227.1](https://www.npmjs.com/package/@onlyworlds/sdk) and [Python](/docs/development/python) [0.160.1](https://pypi.org/project/onlyworlds/): a name that holds half of a surrogate pair is refused.** The world file's name check, and so the folder writers' id check and the packers, refuse a name or an id that is not well-formed Unicode, as the [folder format](/docs/schema/folders#rules-for-tools) now says. No archive name can carry one: before, the TypeScript packer wrote such an id under another name, and two such ids beside each other as two entries of one name, which its own reader then refused. A whole emoji passes as before.
- **[World folders](/docs/schema/folders#rules-for-tools): how a writer names and refuses element files, written down (folder format 0.3.26, schema-dist serial 150).** The page now gives the [id tail](/docs/schema/folders#layout) in code points with its nine cases, the ids a writer does not write whatever the name, and what happens when two file names are one once folded; schema-dist holds the cases in `fixtures/folder-writer/`. [TypeScript](/docs/development/typescript#world-files) [4.227.0](https://www.npmjs.com/package/@onlyworlds/sdk) and [Python](/docs/development/python) [0.160.0](https://pypi.org/project/onlyworlds/) stamp a new folder `0.3.26` and run those cases; their writers already kept the rules. A folder stamped 0.3.25 is read as before.
- **[TypeScript](/docs/development/typescript#world-files) [4.226.0](https://www.npmjs.com/package/@onlyworlds/sdk): the folder writer's naming rules, for a tool that writes one element at a time.** `@onlyworlds/sdk/folder` exports `elementIdFault`, `fileNameFault`, `foldName`, `elementFileName` and `elementFileNameFullId`, each the function `worldFolderFiles` itself calls, so a tool built on them names and refuses as the writer does.
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/docs/development/games.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Four rules keep a write from damaging work done elsewhere:
| **Unity** | The [Unity SDK](/docs/development/unity): typed C# models, a v2 client, a world cache that ships as an asset, and a world browser in the Editor. |
| **Browser games** (JavaScript, TypeScript) | The [TypeScript SDK](/docs/development/typescript). |
| **Godot** | The [Godot SDK](/docs/development/godot), a GDScript addon on the standard build, in Godot's Asset Library: a class for each element type, the API client, and world folders and `.owworld` files on disk. Its first run reads Moppetopia with no account. No share yet. |
| **Unreal** | The [Unreal SDK](https://github.com/OnlyWorlds/unreal-sdk#first-run), a C++ source plugin: a world on disk gives a Blueprint struct for each element, with no server; over the API its Blueprint nodes answer JSON text, which C++ turns into structs. Since 0.8.0 Blueprints also read a world's maps (each Map's frame, its Zones and Pins, which Pins a reader knows) and lay out its graph by kind, around one element or by links in 3D. Since 0.9.0 they read how an element is shown, from the schema's views: its one sentence, its banners and the order of its fields. Since 0.10.0 a game holds a world and keeps it current from the change feed (`UOWWorldCache` with `SyncWorld`, `BaselineWorld` and `HasWorldChanges`), as the Unity and Godot SDKs do, and a poll of an unchanged world is answered `304`. Since 0.11.0 an error names the [size limit](/docs/development/api/writes#field-rules) a write passed: `OWApiError::Limit()`, with `IsElementTooLarge()`, `IsElementTooManyLinks()` and `IsExtensionsTooLarge()`, in C++, and `Limit` on Blueprints' `FOWApiError`, empty when the refusal named none. Since 0.12.0 a body the client cannot send whole is refused before anything goes, kind `Refused`: a NaN or an infinity, named with its place, and a body nested more than 256 levels from its top; since 0.12.1 a standard field's value of the wrong kind too, and since 0.13.0 a NaN or an infinity there is named by its own name. Since 0.13.0 a game works with [proposed changes](/docs/development/api/proposals), in C++ (`OWClient::Propose`, `WorldProposals`, `AcceptProposal`, `DeclineProposal`) and on Blueprints (`ProposeChange`, `ListWorldProposals`, `AcceptNewElement`), and a poll of an unchanged queue passes back its `ETag` and is answered `304` with no rows. Since 0.13.1 an answer whose connection dropped while its body was read fails as kind `Transport` in its own words, with its status: `the answer was lost while it was read (status 200, Other)`. Since 0.14.0 a game sets an element's [image](/docs/development/api/images) and attaches [files](/docs/development/api/files), in C++ (`OWClient::UploadImage`, `UploadFile`, `ListFiles`, `RemoveFile`) and on Blueprints (`UploadImageFromDisk` and `UploadElementFileFromDisk` take a file's path, so a screenshot the engine wrote can go as it is); a Blueprint node's request times out after 30 seconds, which can cut off a large upload. Since 0.15.0 a player joins a world by an [invite link](/docs/development/api/members#invite-links) on Blueprints: **Parse Join Link** reads the code, **PreviewJoin** shows what it opens, **RedeemJoin** turns it into a key of the player's own, and **AcceptJoin** takes a person's link on an account token. Since 0.16.0 a game opens the [export file](/docs/development/api/changes#the-export-file) an owner downloads from their world's page, as it opens a world folder (**Open World Export** on Blueprints, `OWWorldExport::ReadFile` in C++), and a world folder write refuses, before writing anything, an element id that cannot be one file name inside the folder. Since 0.17.0 a game writes an onlyworlds.com world as a world folder, with GET requests only (the `ExportWorldToFolder` node on Blueprints, `OWFolderExport::Export` in C++), the folder the Python package's `export_world` writes, to ship as an offline copy or open later; a folder write refuses two ids that differ only in case, and names a file from the id's last eight code points. No share yet. |
| **Unreal** | The [Unreal SDK](https://github.com/OnlyWorlds/unreal-sdk#first-run), a C++ source plugin: a world on disk gives a Blueprint struct for each element, with no server; over the API its Blueprint nodes answer JSON text, which C++ turns into structs. Since 0.8.0 Blueprints also read a world's maps (each Map's frame, its Zones and Pins, which Pins a reader knows) and lay out its graph by kind, around one element or by links in 3D. Since 0.9.0 they read how an element is shown, from the schema's views: its one sentence, its banners and the order of its fields. Since 0.10.0 a game holds a world and keeps it current from the change feed (`UOWWorldCache` with `SyncWorld`, `BaselineWorld` and `HasWorldChanges`), as the Unity and Godot SDKs do, and a poll of an unchanged world is answered `304`. Since 0.11.0 an error names the [size limit](/docs/development/api/writes#field-rules) a write passed: `OWApiError::Limit()`, with `IsElementTooLarge()`, `IsElementTooManyLinks()` and `IsExtensionsTooLarge()`, in C++, and `Limit` on Blueprints' `FOWApiError`, empty when the refusal named none. Since 0.12.0 a body the client cannot send whole is refused before anything goes, kind `Refused`: a NaN or an infinity, named with its place, and a body nested more than 256 levels from its top; since 0.12.1 a standard field's value of the wrong kind too, and since 0.13.0 a NaN or an infinity there is named by its own name. Since 0.13.0 a game works with [proposed changes](/docs/development/api/proposals), in C++ (`OWClient::Propose`, `WorldProposals`, `AcceptProposal`, `DeclineProposal`) and on Blueprints (`ProposeChange`, `ListWorldProposals`, `AcceptNewElement`), and a poll of an unchanged queue passes back its `ETag` and is answered `304` with no rows. Since 0.13.1 an answer whose connection dropped while its body was read fails as kind `Transport` in its own words, with its status: `the answer was lost while it was read (status 200, Other)`. Since 0.14.0 a game sets an element's [image](/docs/development/api/images) and attaches [files](/docs/development/api/files), in C++ (`OWClient::UploadImage`, `UploadFile`, `ListFiles`, `RemoveFile`) and on Blueprints (`UploadImageFromDisk` and `UploadElementFileFromDisk` take a file's path, so a screenshot the engine wrote can go as it is); a Blueprint node's request times out after 30 seconds, which can cut off a large upload. Since 0.15.0 a player joins a world by an [invite link](/docs/development/api/members#invite-links) on Blueprints: **Parse Join Link** reads the code, **PreviewJoin** shows what it opens, **RedeemJoin** turns it into a key of the player's own, and **AcceptJoin** takes a person's link on an account token. Since 0.16.0 a game opens the [export file](/docs/development/api/changes#the-export-file) an owner downloads from their world's page, as it opens a world folder (**Open World Export** on Blueprints, `OWWorldExport::ReadFile` in C++), and a world folder write refuses, before writing anything, an element id that cannot be one file name inside the folder. Since 0.18.0 the id is checked as `<id>.json` whatever the element's name, so an element named Bob with the id `con` is refused (`con.json` is a Windows device name), and a folder is stamped `format_version` 0.3.26 (schema-dist serial 150). Since 0.17.0 a game writes an onlyworlds.com world as a world folder, with GET requests only (the `ExportWorldToFolder` node on Blueprints, `OWFolderExport::Export` in C++), the folder the Python package's `export_world` writes, to ship as an offline copy or open later; a folder write refuses two ids that differ only in case, and names a file from the id's last eight code points. No share yet. |
| **Other engines** | A [world folder or `.owworld` file](/docs/schema/folders) read straight from disk, with no key and no network: one JSON file per element. Or the [REST API](/docs/development/api-reference) directly: HTTPS and JSON, with the key in a header (the call below). Generate a client from the [OpenAPI document](https://www.onlyworlds.com/api/v2/openapi.json), and a class per element type from [schema-dist](https://github.com/OnlyWorlds/schema-dist) (its decoder, the walk, is Python today). A reader of the archive of your own is graded by schema-dist's `fixtures/owworld/`. |
| **Build pipelines and tools** | The [Python package](/docs/development/python) reads and writes world folders and talks to the API. |

Expand Down
6 changes: 3 additions & 3 deletions src/content/docs/docs/development/godot.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ description: "The OnlyWorlds SDK for Godot: a GDScript addon with a class for ea

The OnlyWorlds SDK for Godot is a GDScript addon that brings a world into a Godot game: read at run time over the [onlyworlds.com API](/docs/development/api-reference), or shipped with the game as a folder. It runs on the standard Godot build, with no .NET. For what a world gives a game, see [Games](/docs/development/games).

It is at its first releases (0.16.2). Before 1.0 a minor version may change a call's name, and its [changelog](https://github.com/OnlyWorlds/godot-sdk/blob/main/CHANGELOG.md) says so when it does. The repository is [OnlyWorlds/godot-sdk](https://github.com/OnlyWorlds/godot-sdk); every call, with what it answers and what it refuses, is in its [reference](https://github.com/OnlyWorlds/godot-sdk/blob/main/docs/reference.md).
It is at its first releases (0.17.0). Before 1.0 a minor version may change a call's name, and its [changelog](https://github.com/OnlyWorlds/godot-sdk/blob/main/CHANGELOG.md) says so when it does. The repository is [OnlyWorlds/godot-sdk](https://github.com/OnlyWorlds/godot-sdk); every call, with what it answers and what it refuses, is in its [reference](https://github.com/OnlyWorlds/godot-sdk/blob/main/docs/reference.md).

## Install

Godot 4.7, the standard build. Earlier 4.x versions are untested, and so are exports other than Windows desktop, the web and mobile among them.

- **Godot's Asset Library**: [OnlyWorlds SDK](https://godotengine.org/asset-library/asset/5621), or the editor's **AssetLib** tab, searching for OnlyWorlds. Install with the installer's defaults and it lands at `addons/onlyworlds/`. The Library carries a release, so it can be a step behind the repository.
- **The release zip** (`onlyworlds-godot-0.16.2.zip`), from the repository's [Releases](https://github.com/OnlyWorlds/godot-sdk/releases) page: unpack it into your project folder, where its `addons/onlyworlds/` joins your project's `addons/`.
- **The release zip** (`onlyworlds-godot-0.17.0.zip`), from the repository's [Releases](https://github.com/OnlyWorlds/godot-sdk/releases) page: unpack it into your project folder, where its `addons/onlyworlds/` joins your project's `addons/`.

Then open the project in the editor once, or with no editor run `godot --headless --path . --import` once, so Godot registers the `OW…` classes. Enabling the plugin under **Project Settings → Plugins** is optional: the classes work without it.

Expand Down Expand Up @@ -93,7 +93,7 @@ var client := OWClient.new({"api_key": joined.value.key})
| **Client** | `OWClient`, `OWJoin`, `OWProposal` | The API: read a world, list and page through its elements, the change feed, writes (create, upsert, patch, delete, link edits, bulk), [proposed changes](/docs/development/api/proposals) (propose, the world's queue, accept, decline, withdraw, review a new element written as proposed; since 0.9.0; since 0.11.0 `list_proposals` and `world_proposals` take `if_none_match`, a page's `etag`, and answer `unchanged` with no rows while nothing moved), joining by invite link. Since 0.12.0 an element's [image](/docs/development/api/images) and [files](/docs/development/api/files): `upload_image` and `remove_image`, `upload_file`, `list_files`, `world_files`, `file_download_link` and `remove_file`, each upload a ticket from the API and then the bytes, a `PackedByteArray`, to the host it names; not yet tested in a web export. |
| **Held world** | `OWWorldCache`, `OWSync` | A world held in the game and kept current from the change feed, kept between launches in one file (since 0.8.0). |
| **Models** | `OWCharacter`, `OWLocation` and the rest, `OWElement` | One class per element type, generated from the schema; `OWTypes.make(type, body)` builds the right one. |
| **On disk** | `OWWorld`, `OWWorldArchive`, `OWJson`, `OWWorldExport`, `OWFolderExport` | World folders and `.owworld` files, read and written in the folder format's own bytes. Since 0.13.0 also the [export file](/docs/development/api/changes#the-export-file) an owner downloads from their world's page, read only: `to_world()` opens it as a folder opens, `to_cache()` as a held world that stays as the file had it. Since 0.13.1 `write_folder` and `pack` refuse, before writing anything, an element id that cannot be one file name inside the folder (empty, a `/` or `\`, a colon, a control character, `.` or `..`, or a name the archive's own checks refuse), and `OWWorld.write_refusal` says which and why. Since 0.14.0 `OWFolderExport.export(client, path)` writes the world a key reaches as a world folder, file for file as the Python package's `export_world` writes it, with GET requests only; Map images are not downloaded yet. Since 0.15.0 a write also refuses two elements of one type whose file names are one name once folded (NFC, then simple case folding: `Ab1` beside `ab1`), naming both. |
| **On disk** | `OWWorld`, `OWWorldArchive`, `OWJson`, `OWWorldExport`, `OWFolderExport` | World folders and `.owworld` files, read and written in the folder format's own bytes. Since 0.13.0 also the [export file](/docs/development/api/changes#the-export-file) an owner downloads from their world's page, read only: `to_world()` opens it as a folder opens, `to_cache()` as a held world that stays as the file had it. Since 0.13.1 `write_folder` and `pack` refuse, before writing anything, an element id that cannot be one file name inside the folder (empty, a `/` or `\`, a colon, a control character, `.` or `..`, or a name the archive's own checks refuse), and `OWWorld.write_refusal` says which and why. Since 0.17.0 the id is checked as `<id>.json` whatever the element's name, so an element named Bob with the id `con` is refused (`con.json` is a Windows device name), and a folder is stamped `format_version` 0.3.26 (schema-dist serial 150). Since 0.14.0 `OWFolderExport.export(client, path)` writes the world a key reaches as a world folder, file for file as the Python package's `export_world` writes it, with GET requests only; Map images are not downloaded yet. Since 0.15.0 a write also refuses two elements of one type whose file names are one name once folded (NFC, then simple case folding: `Ab1` beside `ab1`), naming both. |
| **Readers** | `OWLens`, `OWGraph`, `OWLanding`, `OWMapSpace`, `OWCharter`, `OWStrand`, `OWRecord`, `OWReport`, `OWMessage`, `OWNames`, `OWViews` | Answers worked out from elements you already hold, with no request of their own: what one reader may see of a world, the world as nodes and edges, its maps as points and outlines, a Character's record of game runs, in-world messages and reports. |
| **Helpers** | `OWCalendar`, `OWAddress`, `OWOpeners`, `OWTools`, `OWId`, `OWUnicode`, `OWLinkListener` | A world's own calendar, `ow://` links, an Open with menu of OnlyWorlds tools, ids, name comparison. Since 0.16.0 `OWLinkListener` hands a running game each `ow://` link another program on the same machine sends it (127.0.0.1 only, polled with the game's frames), and the Windows handler in `addons/onlyworlds/ow-link/` forwards a click on an `ow:` link to the game or starts it; registering it is the game maker's to do. |

Expand Down
Loading
Loading