Skip to content

v1.0.9

Choose a tag to compare

@peekllc peekllc released this 22 Nov 19:08
· 4 commits to main since this release
5f25a2a

Install

LoreMind now installs and updates through Package Manager.

  1. Edit > Project Settings > Package Manager > Scoped Registries > +: Name LoreMind, URL https://registry.npmjs.org, Scope dev.peekgames. Click Save.
  2. Window > Package Manager > My Registries > LoreMind: select LoreMind and click Install.

Updating from 1.0.8 or earlier? Download LoreMind-Upgrade-to-Package-Manager.unitypackage below, import it and click Move to Package Manager. Your settings, API keys, scenes and prefabs are kept.

No access to registry.npmjs.org? Use dev.peekgames.loremind-1.0.9.tgz below with Window > Package Manager > + > Install package from tarball.

Updating from 1.0.8 needs only the few steps under Upgrading from 1.0.8. Full details: https://peekgames.dev/docs/loremind-unity-sdk/whats-new

What's New

  • Package Manager install and updates. New versions show an Update button in Package Manager, and Control Panel > Settings > Updates checks for them (once a day, and you can turn that off). The examples are a Package Manager sample.
  • 600-second request timeouts. The first reply after a period of inactivity can take minutes, so NPC and Editor requests wait up to 600 seconds. If the NPC's lore is unavailable, the SDK retries after the server's Retry-After, then reports LORE_UNAVAILABLE. LoreMind never answers without the NPC's lore, and the SDK never invents a line.
  • Active Knowledge Tags narrow the NPC's lore. Unknown tags are ignored with a Console warning; if none of them exist on the Entity Mind, the request fails with UNKNOWN_KNOWLEDGE_TAGS (no reply, no credits used).
  • New OnRequestFinished event. Fires once when a request ends, success or failure: the place to hide a "thinking" indicator. RespondAsync never returns null.
  • Cancellation. RespondAsync(text, cancellationToken), and requests are aborted when the NPC is destroyed or Play mode ends.
  • Clearer errors. New codes including FORBIDDEN, TERMS_NOT_ACCEPTED, ENTITY_MIND_NOT_FOUND, SERVER_ERROR, UNKNOWN_KNOWLEDGE_TAGS, BUSY, EMPTY_TEXT and CANCELLED, with the server's own message. Custom backends get the same codes.
  • Player session tokens for your backend. CustomBackendTransport.AuthTokenProvider / ConfigureRequest.
  • New SetInCode transport mode for games that create their transport in code.
  • Voice input. Just-in-time microphone permission on Android and iOS; no microphone permission at all in text-only games; the Whisper language setting is applied; clear errors when the microphone or the Whisper model isn't available.

Improvements

  • Voice input stays responsive when nothing is recognized, captures all audio at low frame rates, and works while the game is paused.
  • NPC context is rebuilt for every request, so global time, world events and nearby characters and objects are always current.
  • An exception in one of your event listeners is logged and does not repeat or stop the other events. An NPC destroyed while waiting for a reply returns CANCELLED.
  • The examples compile only when Unity's UI package (uGUI) is installed, and the example scene runs without errors in text-only projects.
  • Documentation: Unity minimum versions (CVE-2025-59489), backend authentication guidance, invite-only access, and testing a local backend from a phone.

Upgrading from 1.0.8

What you need to do:

  1. Move to Package Manager with the upgrade package (see Install).
  2. Send game builds through your backend. If the transport mode is EditorDirect, switch to CustomBackend or SetInCode in the Control Panel before you build. Code that creates a DirectApiTransport or calls LoreService.SetServerMediatedAuth belongs inside #if UNITY_EDITOR || UNITY_SERVER.
  3. Check your NPCs' Active Knowledge Tags. Tags saved on an NPC limit it to the lore with those tags. Remove blank tags.
  4. Use https backend URLs. Plain http works only for localhost, in the Editor and Development Builds.
  5. Enter your API key in each project. Keys are saved per project.
  6. Using Dissonance for voice input? Connect it with a custom audio provider.

Everything else updates automatically. After updating, LoreMind runs a one-time upgrade check that fixes what it safely can and lists what to look at (run it again from Control Panel > Settings).

Requires Unity 2022.3.62f2+, 6000.0.58f2+, 6000.2.6f2+ or any 6000.3 release (Unity's CVE-2025-59489 fix). LoreMind is invite-only right now: request access at https://loremind.peekgames.dev/request-access.