4 Commits
Author SHA1 Message Date
AyeZeeBB 93528884b3 Park editor: a session with object scaling off keeps saved scales without resizing
On a dedicated server with object scaling off, a loaded park's scaled objects were resized anyway
(and after a refused resize the pose poll saved 1x over their scale), and a scaled paste, set or
undo ended in a resize the server would not take, so the edit waited on it. The placements now
know whether this game may resize (set by the session from the server's setting and the role, the
host and roles that may always build exempt, allowed outside a session): where it may not, objects
stay 1x in the world, nothing waits on a resize, and the layout keeps their scale for when scaling
is allowed again. A transaction test pastes a scaled object with scaling off.
2026-10-17 13:26:16 -05:00
tsullivan13andClaude Opus 5.5 2a1b8530b7 Park editor: keep scale and links in multi-object edits; delete selections
Fixes in the stock park editor that a multi-object edit (a paste, an undo,
a loaded park mod) runs into:

- Pasted objects lost their world link. A paste creates its objects one by
  one and saves them when the whole edit completes, but the placements
  runtime reconciles after every create and unlinked rows whose id was not
  saved yet. Every create unlinked the ones before it: only the last pasted
  object could be selected, moved or deleted, and deleting the others
  removed them from the layout but left them standing in the world. The
  reconcile now counts the editor's pending layout as saved.
- Scale was lost on paste, undo and park-mod load. The native create recipe
  has no scale lane, so a created object spawns at 1x. Only the placement
  preview resized it afterwards; a create step with a scale now becomes a
  move, verified by the server tick's readback like any move.
- Scale was lost on level reload. Restored objects spawn at 1x and the
  pose poll then saved 1x over the saved scale. Restores with a scale are
  resized on the next server tick, and the poll leaves them alone until the
  resize is read back.
- Delete did nothing with several objects selected. Delete (key or button)
  now removes the whole selection as one edit and one undo step.

Tests: the transaction fixture's create now spawns at 1x like the game and
reconciles after every create like placement_finish_batch; new checks
cover pasting a scaled group, every pasted object keeping its link, moving
and rotating a pasted group, and multi-delete with undo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 09:02:41 -07:00
AyeZeeBB 07fef3820d Limit how many objects each player can place (protocol 43)
Limit how many objects each player can place (protocol 43)

- Servers and lobby hosts set how many objects each player may have
  placed: object_limit in ReSkateServer.json and the "objects" command,
  "Objects per player" in the host options. Default 100; 0 is no limit
- The host and a server's admins are not limited
- At the limit a player's game refuses another object, from the native
  object tool and the park editor, and the menu shows how many they have
  placed
- Enforced by the host or server, which shows everyone no more than the
  limit of each player's layout; objects already shown keep their place
- The limit travels in the roster, which takes the protocol to version
  43: builds before this cannot join sessions with builds after it
- The protocol tests link again (the server browser needs the identity
  lists since the official servers change)
2026-10-07 10:03:54 -05:00
AyeZeeBB ca1d82f636 1.0.0 Release! 2026-10-02 14:40:41 -05:00