Skip to content

OneLobby Unity 0.7.0

Choose a tag to compare

@ParkerTonra ParkerTonra released this 15 Nov 02:19
· 340 commits to main since this release

OneLobby 0.7.0: npm onelobby 0.7.0, create-onelobby 0.1.2, NuGet OneLobby.* 0.7.0, and this Unity package.

Unity install: Package Manager > Add package from tarball, or put the .tgz in Packages/ and reference it as file:com.onelobby.unity-0.7.0.tgz in manifest.json. Natives for Windows, Linux, macOS and Android are included.

New

  • Mid-session rename on every hub (server and direct host): RenameAsync / PeerRenamed in C#, rename() and the peerRenamed event in JS, lobby.rename() and peer_renamed in GDScript. Old hubs refuse it cleanly.
  • GDScript: leave_and_flush() keeps links open briefly after the leave goes out, so the other side sees the goodbye before the close.
  • All clients: a relay that never connected is skipped after 4 failed dials while another relay is up (relays.deadRelayDials).
  • Unity: build-unity-package gains -Out / --out read-only packing.

Fixed

  • A send on a channel that has already closed is dropped without an engine error, and the link counts as closed from then on (GDScript).
  • Flush-then-leave on Linux delivers every queued reliable message.
  • ice_failed keeps the link trace in error.data only (it holds local ICE addresses).
  • Test hardening: Nostr end-to-end waits, C# native-library fail-fast, deflated-snapshot test timing.

Breaking (GDScript)

  • Inner classes are now prefixed: OneLobbyTransport.Socket / .Link are OLSocket / OLLink.

Docs

  • Exporting section; how to close a lobby to new players (lateJoin: false, or approve joins with your own flag).