Files
Commonwealth-Online-Public/server
andrew 4d43ecfc6c Include movement/cell/worldspace in transforms
Extend transform packets to carry movement metadata and optional cell/worldspace IDs. Public API updated (SendTransformPacket signature) and implementation now formats movementType, cellId and worldspaceId when present (buffer size increased and formatting safety checks added). Player tracking in main.cpp now computes PlayerLocation, detects cell/worldspace changes and large teleports (threshold 5000), sends immediate updates with movementType="cell_change"/"worldspace_change"/"teleport", and preserves last-sent state. Server logging updated to print movementType and extra fields. Dev log updated with an entry describing these changes.
2026-05-31 18:59:22 +12:00
..
2026-05-30 18:13:54 +12:00
2026-05-30 18:13:54 +12:00
2026-05-31 18:50:38 +12:00

Server

This folder is for the external multiplayer test server.

The current server is a tiny local-only TCP test server. It listens on 127.0.0.1:7777, accepts one or more clients, reads newline-separated JSON packets, and prints received player transform packets.

Run

cd server
python server.py

Then launch Fallout 4 through F4SE and move the player. The plugin should keep logging player position changes to Fallout4Together.log, and this server should print matching transform packets.

If the server is not running, the plugin should log a warning and Fallout 4 should continue launching normally.

First Server Goals

  • Start local server
  • Accept client connections
  • Receive transform packets
  • Handle disconnects

Not Planned Yet

  • Remote actor spawning
  • Gameplay synchronization
  • Authentication
  • Public matchmaking
  • Anti-cheat
  • Persistence
  • Quest state
  • Settlement state
  • Large-scale world simulation