Three changes to the platform logic, each as the client's platform does it:
- Mover and rotator on one object: the object now turns at an angular
velocity. A mover setting off (or going on between waypoints of
different speeds) puts the object in the rotation for where it is and
gives it the angular velocity that brings it to the next waypoint's
rotation as it gets there. A rotator that has not stopped puts its own
angular velocity back every frame, so the mover only turns the object
while the rotator is stopped. Objects without a rotator still turn
between the two waypoints' rotations as before.
- Departed: a new script hook, OnDeparted, called when a platform leaves
a waypoint it waited at, before it sets off.
- Two waypoints in one place: a platform that has not stopped looks for
its arrival every frame, also while it waits, and with no special case
for a next waypoint in the same place. It is there at once, and on a
path that keeps it at one waypoint it arrives every frame (without
resending an unchanged state).
ScriptComponent::SetScript can now take a script itself (used by the
tests).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Converted models are kept on disk and in browsers by conversion format, so without a new format the 3D views would keep drawing the old conversions with turned nodes the wrong way round. Format 7.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Gamebryo stores a node's rotation in the order it keeps it in memory, row by row for column vectors, and the client reads the nine floats as they are. Reading them column by column turned every rotated node the wrong way: parts of Nimbus Station's buildings stood in the wrong places and the minifig skeleton stood on its head.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The client reads a simple mover's own level settings first and its
MovingPlatforms row after them. So with a row the row's platformMove and
platformMoveTime win, unless the object sets dbonly false (then the row is
not read); db only, the object's own are not read at all. Without a row
dbonly means nothing and the object's own always count. platformStartAtEnd
is never taken from the row.
The server read the row first and the object's settings over it, so an
object with a row, settings of its own and no dbonly moved by its own
settings, and one without a row and dbonly true ignored them.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The client has no handler for GoToWaypoint on any platform: the server
sends platforms on. Its rotator can be sent forwards or backwards: it
travels, and sent against the way it turns it turns round. Nothing in the
client calls either, so they are for the server to use.
GoToWaypoint on a rotator now does that: a waypoint ahead of where it is
on its path sends it forwards, one behind backwards. It never arrives, as
a rotator never does. The client takes a rotator's direction only from its
path or a PlatformResync, so a rotator that turned round is resynced.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The client asks for a resync once for each platform of an object whose
physics are ready. Live answered every request in the captures: movers on
a path, the NJ counterweights (simple movers: waiting at waypoint 0 of
their own path, at their start position and rotation) and movers without
a path (waiting at waypoint 0 of none, at no position). The server only
answered movers on a path.
The answer is now made from whichever platform the object has. A simple
mover has a position on its way now, so its answer says where it is.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Live constructed movers that have no path (LOTs 2349, 9265, 9266, 12047
and others, in every capture) waiting (state 9) at waypoint 0 and at no
position (0, 0, 0). The server sent them stopped (12) at the object's
position.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The client makes one subcomponent for each of platformIsMover,
platformIsSimpleMover and platformIsRotater that is true, runs them all
and passes what the object is told on to each. The server only ran the
first, so an object with a mover and a rotator moved but never turned.
All of them run now, in the client's order, and GoToWaypoint, start, stop,
warp and the quick build notifications go to each. With a mover and a
rotator on one object the mover carries it and the rotator turns it; where
the mover arrives the object is put in the waypoint's rotation.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The client's simple mover is a platform like the mover: it builds itself a
two waypoint path run once (start, and start moved by platformMove, at the
speed that takes platformMoveTime) and runs the same waiting, travelling
and arriving logic on it. The server did it with a timer instead, so a
simple mover had no position on its way and its states differed from a
mover's.
The platform logic now takes the subcomponent it runs and that
subcomponent's path, and the simple mover runs on it:
- sent to a waypoint it first waits the shortest wait there (9, or 25 at
its end), then travels (2), as live's movers and counterweights did;
- the object goes with it on its way and is put at the waypoint on arrival;
- at an end it stops (28) and turns round, without a serialization;
- it only takes a new direction at a waypoint, as the client's does: sent
back on its way it goes on to the end it was heading for and sets off
from there; stopped on its way it stops at that end;
- one that starts at its end is constructed there, reversed.
Comments in the component describe behaviour only.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The client reads the rotation of a PlatformResync as w, x, y, z, and live
sent it that way (a NJ counterweight's resync began with its w). It was
written x, y, z, w, which only showed with a rotation other than none.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
SetTooltipFlag, SetLastCustomBuild, ModifyPlayerZoneStatistic and
UpdatePlayerStatistic are only handled for the character of the player
that sent them. ReportBug, ReportOffensiveModel and
ReportOffensiveProperty report for the sender's own character, whatever
object they name. RequestActivityExit is only handled for the player
that sent it, and ZonePropertyModelRotated checks for the sender's
player before using it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LWOPreconditionComponent::CheckPrecondition fails a type it does
not know and logs it; the server passed it. No row of the table has one, so
nothing changes for the shipped data.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The verify behaviors' parameter is check_blocking (on 145 of them), and the
client checks blocking unless it is 0. The server read "check blocking", which
no behavior has. It now reads check_blocking with the client's default. The
blocking check itself is still to be written.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The CDClient script components of the summoned pets and allies (Bulper, Thwok,
the Make-Shift Buddies and others) name scripts\EquipmentScripts\StunImmunity.lua.
The script table had stunImmunity.lua, so those objects never got the script and
were not made immune to stuns, knockbacks, interrupts and pulls. The table now has
the game's path.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Gnarled Forest masts give the cinematic lead-in as LeadIn, an integer
(LeadIn=1:1). The mast script read LeanIn as a float, so the swing cinematic
always played with no lead-in. It now reads LeadIn and takes the integer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The client sends UnUseBBBModel, BBBLoadItemRequest, BBBSaveRequest,
ActivateBrickMode and SetBBBAutosave for its own character, and they
were handled for whichever object they named. They now always work on
the player that sent them; FetchModelMetadataRequest looks among that
player's models. BuildModeSet is only handled for the player that sent
it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A live update, a world reload and an instance migration start a new
instance that takes over from a running one, which stops once it is
empty. With max_instances reached they were refused, which left the old
instance with no replacement. These starts are no longer held to
max_instances; they still have to be zones of the ZoneTable.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GetEditorLevel (627) is one the client only sends to its own objects: its
character component answers it, and the message is never written to or
read from the network. The world no longer reads it from a client or
sends an answer. The editor level still reaches the client with the
character and in its save.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Once both players had given their final accept, live sent each an empty
ServerTradeUpdate with bAboutToPerform set, and the client shows the trade
as complete (LWOTradeComponent::SendMessage, "SetTradeComplete").
The server only sent the accepts that close the window. It now sends the
update first, before the items move.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The client puts ServerTradeInitialReply in chat: "Trade invitation sent.",
"User not in zone.", "Player out of range." or "Player already trading."
(LWOTradeComponent::SendMessage). Live sent INVITESENT, with the
invitee's name, to every trade request, also the one that accepts an
invitation. The server sent none, so a request to a player not in the world
went unanswered.
A request to a player who is in a trade with someone else is now refused with
ALREADYTRADING. Before, a second trade was made with that player in it, and
which of the two their messages went to depended on map order.
Out of range is not sent: there is no evidence of the distance.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The client's trade window takes an item only when its details say it is
moderated. A pet is moderated when it has no name yet or an approved
one; a name waiting for moderation, a rejected one or one that has to be
renamed keeps the pet out of the window. An offer with such a pet is now
refused like the other offers the window can not make.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rebuilding a brick by brick autosave when a character loads no longer
stops the world when the save can't be read, splits into more models
than any build does, or fails to store: the save is logged and marked
held (bbb_autosave.held_at), the open models and bricks go back, and the
row stays as it is. A held autosave is not rebuilt again; the client's
next autosave replaces it. A brick by brick save that fails to store
answers with ModelGenerationFailed instead of stopping the world.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A multi-zone entrance (the LUP launch pads) equips the player's rocket when
used and opens the zone menu. Closing the menu without a launch, or dying with
it open, fires the same "CancelLaunch" event at the entrance, locally and to
the server (LWOMultiZoneEntranceComponent::MultiZoneEntranceSelected
Run). Only the property entrance handled it, so the
rocket stayed equipped there. Both now take it off.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The vendor window checks an item's reqPrecondition in the vendor buy context
(an unnamed function in LWOVendorComponent, through
LWOItemComponent::StaticCheckUseRequirements) and greys out what
the player does not meet, without a tooltip. The server sold the item
whatever its requirements; a buy that fails them now gets the vendor's
normal PURCHASE_FAIL, for both the vendor and the achievement vendor.
Rows without the vendor buy bit (the thinking hat one, validContexts 252)
still do not stop a purchase; the level ones (249) do.
PreconditionExpression::Check takes the client's bShowTooltip flag, so this
check sends no NotifyClientFailedPrecondition.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Team and guild chat use the same filter as zone chat, and whispers the
same one as the world's string check (the relaxed list between best
friends). A message the filter stops is logged as blocked and goes to
nobody. A muted player gets the mute notice zone chat sends.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The client's HasItem and DoesNotHaveItem checks count the item with
ignoreBuyBack set (LWOPreconditionComponent), so what was sold to a
vendor and sits in the buy back list is not held. The count here took every
inventory, buy back included; the item cost of a quickbuild is picked with the
same count.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
LWOPreconditionComponent::CheckPrecondition passes type 19 when
GetPlayerInteraction answers no object. It always failed here, so nothing
that asks for it (precondition 136) could ever be used.
The client keeps its current interaction itself and does not tell the server
when most of them end; taming a pet is the one the server follows from start
to end, so that is what fails the check.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
LWOPreconditionComponent::CheckPrecondition answers type 16 with
"the racing licence level is at least the value" and type 17 with the opposite.
The level comes from the mission component: 1 once mission 637 has been
completed, 0 before (LWORacingMissions::SendMessage). Both types
always failed here, so the item that asks for a licence (precondition 67)
could not be used by anybody.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
LWOPreconditionComponent::CheckPrecondition is given the context
of the check and passes a precondition whose validContexts does not have that
context's bit: 0 buying from a vendor, 1 a vendor listing its items, 2
equipping an item that is bound to the player, and none (-1) for everything
else, which leaves out the rows that only name those three (a value under 5).
A row with no context at all fails. Every row was checked everywhere here.
Two things change:
- Preconditions 338 and 339 (mission 1926 / 1918 completed, validContexts 3)
are for vendors only and no longer stop an item from being used or equipped.
- A bound item was equipped without any of its requirements. It is now checked
in the bound item context, as the client checks it before asking: only the
level requirements (validContexts 249) are left out.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Using a property launch pad equips the player's rocket and opens the property
browser. When the browser is closed without a launch, or the player dies with
it open, the client fires "CancelLaunch" at the launch pad, locally and to the
server (LWOPropertyEntranceComponent::onPropertyEntranceSelected,
). Nothing handled the event, so the rocket stayed equipped until the
next world load.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Three client messages had no handler:
- BuildExitConfirmation (1072): the client says it left a build mode, after
the last message of that mode (LWOPropertyManagementComponent::DoSetBuildMode
). It is addressed to the thinking hat the player wears
or to no object, neither of which is an entity here, so the player who sent
it takes it. Live answered nothing in the 10 captured ones, and the messages
before it already ended the mode, so it is checked and logged.
- PropertyModerationAction (915): the owner started editing a property whose
moderation status is not 0 and asks for 0 (LWOPropertyManagementComponent
). Live answered nothing in the 3 captured ones. The approval of an
edited property is already taken back when the edit ends, so it is checked
(own character, may build here, status 0) and logged; nothing new is stored.
- RequestLeaveProperty (1489): a visitor left through the "the owner is
starting to build" dialog
(LWOPropertyManagementComponent::onBuildModeVisitorConfirm). The
player is sent to the world the property's launch pad returns to, as the
visitors who are sent away when building starts.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The client tests a box against the property's boundary path and build height:
the box around the path's points, raised to maxBuildHeight above its lowest
point and with no floor, then the box's centre and bottom corners against the
path as a polygon. The server placed a model wherever UpdateModelFromClient
said.
PropertyBounds is that test, and UpdateModelPosition runs the model's position
through it with the path and height DownloadPropertyData sends. The server has
no box for a model, so only the position is tested. A refused placement leaves
the item in the inventory and is answered with PlaceModelResponse 12, for which
the client shows its placement bounds message.
Models already on a property are not tested, moved or removed, wherever they
stand; a property without a boundary path refuses nothing.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
PlayerFlags.OnlySetByServer marks 22 flags. The client's flag component refuses
to set them itself (LWOFlagComponent::SendMessage logs "Attempted to
set a flag from the client side that can only be set from the server"), and
none of the 205 client SetFlag messages in the live captures named one; the
server set them. SetFlag::Handle set whatever flag the message named.
The message is now dropped for those flags, with a debug log line. Flags
already saved on a character are not touched.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
LWOGhostComponent::LoadFromSaveData reads <ghst i> under <obj> and
the client hides its own character again once the scene has loaded when it is
set. Nothing wrote or read the element, so a GM was visible again after every
world change.
GhostComponent now writes <ghst i="1"/> while invisible and reads it back. A
save without the element loads as visible and is not given one; an element
that is set goes back to 0 when the GM is visible again.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
LWOPropertyEntranceComponent::onRequestPropertyInfo sets the two
flags of PropertyEntranceSync when the search text is part of the map's default
property name / description, which the client shows for a property that has
none of its own. Both were read and ignored, so a property without a name or
description was never found by the text the player sees on it.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Live replies to a friends query listed the friends' properties whatever their
access type (64 entries with accessType 0) and the properties of the account's
other characters (28 entries, isAlt set); the client draws the lock on the ones
that are closed. The query only returned friends' properties that were open to
friends.
The list was also what kept a closed property from being entered, so
PropertyEntranceComponent::OnEnterProperty now checks the selected entry itself:
public for everybody, friends-only for friends, as before. Entries after the
first are never marked as owned, as live.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>