From b53ed477f36b401894ffc4a0828f252e3b889aad Mon Sep 17 00:00:00 2001 From: ArthurErlich Date: Mon, 5 Oct 2026 22:29:28 +0200 Subject: [PATCH] fix(prototype): send component exchange without callback Co-Authored-By: Claude Opus 5.5 --- mod/content/overtake_probe.script.tl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mod/content/overtake_probe.script.tl b/mod/content/overtake_probe.script.tl index 9356a2a..928c1fe 100644 --- a/mod/content/overtake_probe.script.tl +++ b/mod/content/overtake_probe.script.tl @@ -43,9 +43,8 @@ local function tryIgnore(follower : Car, leader : Car) mp.dyn.timeToIgnore = IGNORE_SECONDS p(string.format("IGNORE_TEST send veh=%d leader=%d gap=%.1f v=%.2f leaderV=%.2f", follower.v, leader.v, math.abs(leader.pos - follower.pos), follower.speed, leader.speed)) local cmd = api.cmd.debug.makeComponentExchangeCmd(follower.v, mp as Engine.Component) - api.cmd.sendCommand(cmd, function(_data : any, success : boolean) - p(string.format("IGNORE_TEST result veh=%d success=%s", follower.v, tostring(success))) - end) + -- engine-state scripts can't pass a callback ("Error decoding argument #3"); the next dump shows the effect + api.cmd.sendCommand(cmd) end local function dump(dt : number)