Repository navigation
Conversation
Fixed lengths 52/8/38/52, pinned with swcap lens/solve on session_20261108_045606_169 (walk 67.2% -> 100%). The 2026-09 legacy captures rise from 76-93% to 99.8-100%; append-sim bad stays 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- addon.h: vehicle poses from the Stormworks addon over IPC as an extra
relay source (addon.poses)
- alias ("al"): show fake F at target T, snap on start/end, trail 5 m behind
- standby ("fk"): un-aliased fakes shown 500 m below their real pose
- last-promise cache so a new alias jumps in the next send
- park ("pk"): fakes mirrored 300 m below a ship until it launches
- stats: alias/standby/park counters; GUI shows addon sync state
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Matched session_20261108_045606_169 against the save's <wildlife><fish> entries: same uid range and counter, same area at y ~ -5, 0x6A carries target_heading plus jump_timer 180 / out_of_water_timer 2000, 0x68 carries fish_type (15, 37), heading and scale 1.0. 0x68 spawn, 0x69 remove, 0x6A state, 0x84 pose. swcap notes now print uid / fish_type / heading. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ass / relay / WebMap / fake) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- addon.poses may carry "ep" (WebMapBridge). A new ep restarts the offset estimation; within one ep a batch whose tc went back arrived late and is dropped instead of resetting the offset. Without ep the old rule stays. - The fake_missile alias / standby / park lists are dropped when no batch came for `stale` ticks (the Bridge or the addon stopped). - status: staleBatches, epChanges, fakeExpired. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The addon sends the pose of the gun / turret bodies of Tank vehicles (vpos "bp"); the relay measures each body's offset against the native 0x81 and writes those bodies into the records it sends. - Far records: pass 1 / pass 2 fill the type-2 slots, appended records turn type-0 slots into type 2. - Near records: a type-0 body whose true angle differs from what that client was last shown by more than 0.01 deg is sent as type 2, so small gun nudges reach the client. - Per player: `?bs` shows, `?bs on` / `?bs off` sets the rewrite for that player alone (default off). bodySync stays the server-wide switch. `?multisync` and `swctl status` (bodies.players) show the state. - qangle_deg uses atan2 (acos lost ~0.05 deg near zero). - debug.bodyoff and seat hotkey 6 nudge a body for experiments. - tools/rectest/test_bodies.cpp, tools/swdump. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Remove the IPC experiments added in this fork (debug.clone, debug.orbit, debug.bodyoff) and the seat hotkey 6 gun nudge (key_step). Debug tools from upstream (debug.hold, debug.nudge, mutate.set, ?unstuck) stay. Add webmap-連携.md: how the WebMap addon, WebMapBridge and MapViewer feed MultiSync (vpos -> addon.poses, peers.get -> adc, tank_vehicles, bp, ?bs). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ot switch) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…poses IPC addon.kinds (MapViewer Type via WebMapBridge) gates the addon -> body0 source per kind: addonMissile (default 1), addonShip, addonTank, addonSub, addonAir, addonOther (default 0, not verified yet). Until the first list arrives every vehicle is fed as before. Turning a kind off drops its addon-fed poses at once. bodySync now defaults to 1 (master switch; players still opt in with ?bs on). The GUI gets a WebMap tab with the WebMap correction button, the addon status and the checkboxes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…on off, budget) - bodysync.peer IPC command: the same per-player switch as ?bs on/off, so the CLI and other tools can reach it (control-plane rule). - A release snap counts as a write, so a message whose only change is the snap is sent instead of discarded. - Turning addonPoses off drops addon-fed poses at once (same sweep as the per-kind gate; also run on config.set / config.reload). - Charge the bandwidth budget with the final record length after body_build has grown the turret / gun slots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n unload Codex review on PR #1: - Pass 1 shortened the ETA of records whose body0 is not type 1 while fill_pose left the pose untouched. Such records now pass through (protocol/sync.md) and are marked handled. - A fake unloaded by a client (0x2C) kept its snapped state, so on reload it glided to the target. Reset snapped / sentEta and the standby mark for that (peer, fake). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat: WebMap addon feed, fake_missile, turret sync and per-kind gate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
WebMap(Stormworks のアドオン・WebMapBridge・StormWorksMapViewer)と組み合わせて使う機能を追加しました。
WebMap を使っていない環境では、これまでと同じように動きます(アドオンからの情報が IPC で届いたときだけ働きます)。
連携の全体像は
webmap-連携.mdに、変更点はCHANGELOG.mdにまとめています。追加した機能
同期改善(relay)
addon.poses)epが変わったとき)は対応をやり直し、遅れて届いた古い束は捨てます。addon.kinds)addonMissileaddonShipaddonTankaddonSubaddonAiraddonOtherで切り替えます。al(追従)・fk(待機)・pk(船の下で待機)に従います。アドオンの送信が途絶えたら指示を外します。実験機能
bodySync(既定 1、管理者が止めたいときは 0)です。そのうえで、各プレイヤーがゲームのチャットの?bs on/?bs offで自分の分だけ切り替えます(既定 OFF、保存しません)。getVehiclePosの呼び出しが増え、TPS が下がります(止まった戦車 10 両で約 65 → 約 57)。表示
swctl statusに、プレイヤーごとの Steam P2P の経路(直接 / 中継)と、車両ごとの届け方(pass/relay/addon/fake)を表示するようにしました。開発者向け
addon.poses・addon.kindsを追加し、statusにaddon{…}を追加しました(ipc-protocol.mdに記載)。SWHOOK_IPC_PROTOCOLは変えていません。rec.h、tools/swcap)。tools/rectest/test_bodies.cppとtools/swdumpに、砲塔・砲の記録を確かめる処理を追加しました。debug.clone・debug.orbit・debug.bodyoff)と、座席のホットキー 6 で砲を回す処理は消しました。元からあるdebug.hold・debug.nudge・mutate.set・?unstuckは触っていません。設定の追加(swhook.ini)
addonPosesaddonMissileaddonShipaddonTankaddonSubaddonAiraddonOtherbodySync?bs onにしたときだけ働く)確かめたこと
build.batでビルドし、ゲームサーバーに注入して動作を確かめました(種類ごとの切り替え、?bs onによる砲塔の同期)。気になる点・相談したいこと
bodySyncの既定を 0 にするか、この部分だけ外すこともできます。よろしくお願いします。