1 line
No EOL
14 KiB
JSON
1 line
No EOL
14 KiB
JSON
{"nodes": [{"id": "game_coop", "label": "Harvest Season \u2014 co-op", "file_type": "document", "source_file": "game/COOP.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_coop_lan_play", "label": "Same-network LAN play (GD-Sync local mode, peer to peer)", "file_type": "concept", "source_file": "game/COOP.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_coop_lan_by_address", "label": "LAN join by address", "file_type": "concept", "source_file": "game/COOP.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Fallback when the lobby list stays empty: some firewalls drop announcements and VPNs like Tailscale/ZeroTier don't carry broadcasts but connect fine by address."}, {"id": "game_coop_online_lobbies", "label": "Online lobbies via GD-Sync servers", "file_type": "concept", "source_file": "game/COOP.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_coop_api_keys", "label": "GD-Sync API keys (keys.cfg)", "file_type": "concept", "source_file": "game/COOP.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "keys.cfg is gitignored and can come from GDSYNC_PUBLIC_KEY/GDSYNC_PRIVATE_KEY; exports embed it, so keys are readable by anyone with a build (inherent to GD-Sync) and are rotated if leaked."}, {"id": "game_coop_voice_chat", "label": "Co-op voice chat (gated, 4-bit ADPCM)", "file_type": "concept", "source_file": "game/COOP.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Own gate and 4-bit ADPCM at 12 kHz in 60 ms pieces: ~10 KB/s only while talking, versus ~60 KB/s for GD-Sync's VoiceChat sending raw samples whenever the mic peaks."}, {"id": "game_coop_partner_panel", "label": "Partner panel, name tags, and edge arrow", "file_type": "concept", "source_file": "game/COOP.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_coop_fall_rule", "label": "Co-op fall rule (out until morning; Game Over only when both are down)", "file_type": "rationale", "source_file": "game/COOP.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_coop_host_authority", "label": "Host-authoritative simulation with partner replica (FarmSim.replica)", "file_type": "rationale", "source_file": "game/COOP.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Host simulates everything and saves; partner simulates nothing except moving its own scarecrow locally, so moving never waits on the network, and sends position/facing/buttons to the host."}, {"id": "game_coop_packed_snapshots", "label": "Packed snapshots (15 Hz, 16-byte enemy records)", "file_type": "concept", "source_file": "game/COOP.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Packed bytes instead of Dictionaries (which resent every key name), and one message per snapshot because GD-Sync adds ~220 bytes per unreliable message."}, {"id": "game_coop_partner_input_record", "label": "Partner input record (39 bytes, press counts)", "file_type": "concept", "source_file": "game/COOP.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Press counts mean a lost packet never loses a press; sent on change or every 0.25 s."}, {"id": "game_coop_dead_reckoning", "label": "Dead reckoning for enemies (25 cm error threshold)", "file_type": "concept", "source_file": "game/COOP.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Partner extrapolates each enemy at its last velocity; host resends only on 25 cm error, state/velocity change, hit, or at least every second, with new/changed records sent twice more for loss tolerance (about a tenth of records in a 64 crowd)."}, {"id": "game_coop_zstd_compression", "label": "zstd compression of messages over 256 bytes", "file_type": "concept", "source_file": "game/COOP.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "GD-Sync compresses only after encrypting, which saves nothing, so large messages are compressed before handing them to GD-Sync."}, {"id": "game_coop_datagram_limit", "label": "Unreliable message size limit (under 1,100 bytes; GD-Sync splits at 1,200)", "file_type": "concept", "source_file": "game/COOP.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_coop_data_budget", "label": "GD-Sync data allowance budget (22 MB per vacation, ~12 KB/s)", "file_type": "concept", "source_file": "game/COOP.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "Online plans are sold by data transfer (free tier 200 MB/day); measured 22 MB for a 5-night vacation vs 113 MB before the optimizations."}, {"id": "game_coop_protocol_version", "label": "Protocol version check (CoopSession.PROTOCOL)", "file_type": "concept", "source_file": "game/COOP.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null}, {"id": "game_coop_gdsync_patches", "label": "Harvest Season patches to GD-Sync (4)", "file_type": "rationale", "source_file": "game/COOP.md", "source_location": null, "source_url": null, "captured_at": null, "author": null, "contributor": null, "rationale": "30-bit LAN client ids (targeted calls encode the id in 30 bits, so random 32-bit ids reached nobody); fixed HMAC key in LAN mode (empty key logged errors per packet); null checks for current scene and debugger-only logging so tests/tools run under --script."}], "edges": [{"source": "game_coop", "target": "game_coop_lan_play", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop", "target": "game_coop_lan_by_address", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop", "target": "game_coop_online_lobbies", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop", "target": "game_coop_api_keys", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop", "target": "game_coop_voice_chat", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop", "target": "game_coop_partner_panel", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop", "target": "game_coop_fall_rule", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop", "target": "game_coop_host_authority", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop", "target": "game_coop_data_budget", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop", "target": "game_coop_protocol_version", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop", "target": "game_coop_gdsync_patches", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop_online_lobbies", "target": "game_coop_api_keys", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop_lan_by_address", "target": "game_coop_lan_play", "relation": "conceptually_related_to", "confidence": "INFERRED", "confidence_score": 0.85, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop_packed_snapshots", "target": "game_coop_data_budget", "relation": "rationale_for", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop_dead_reckoning", "target": "game_coop_data_budget", "relation": "rationale_for", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop_zstd_compression", "target": "game_coop_data_budget", "relation": "rationale_for", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop_voice_chat", "target": "game_coop_data_budget", "relation": "rationale_for", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop_partner_input_record", "target": "game_coop_data_budget", "relation": "rationale_for", "confidence": "INFERRED", "confidence_score": 0.95, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop_packed_snapshots", "target": "game_coop_datagram_limit", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop_host_authority", "target": "game_scripts_farm_sim", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop_host_authority", "target": "game_scripts_avatar", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop_packed_snapshots", "target": "game_scripts_coop_session", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop_protocol_version", "target": "game_scripts_coop_session", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop", "target": "game_scripts_coop_link", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop", "target": "game_scripts_gdsync_link", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop_lan_play", "target": "game_scripts_coop_lobby", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop_online_lobbies", "target": "game_scripts_coop_lobby", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop_partner_input_record", "target": "game_scripts_remote_controls", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop_voice_chat", "target": "game_scripts_coop_voice", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop_partner_panel", "target": "game_scripts_coop_hud", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop", "target": "game_scripts_coop_menu", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop", "target": "game_tests_test_coop", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop", "target": "game_tools_coop_smoke", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}, {"source": "game_coop_data_budget", "target": "game_tools_net_budget", "relation": "references", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md", "source_location": null, "weight": 1.0}], "hyperedges": [{"id": "coop_bandwidth_minimization", "label": "Co-op bandwidth minimization for GD-Sync's data allowance", "nodes": ["game_coop_packed_snapshots", "game_coop_partner_input_record", "game_coop_dead_reckoning", "game_coop_zstd_compression", "game_coop_voice_chat", "game_coop_data_budget"], "relation": "participate_in", "confidence": "EXTRACTED", "confidence_score": 1.0, "source_file": "game/COOP.md"}]} |