Godot multiplayer networking

From thedivergentai/GD-Agentic-Skills · View interactive version

Godot multiplayer networking is an AI agent skill from the GitHub repository thedivergentai/GD-Agentic-Skills. Expert multiplayer for desync, rollback, dedicated --headless servers, interest culling, and bandwidth spikes: ENet/WebRTC choice, authority, secure RPCs, client prediction/reconcile, and adaptive sync. Trigger on rubber-banding, cheat-able clients, peer floods, late join, or profiler Network spikes

How to use this skill

Skill file

NEVER Do (Expert Networking Rules)

Core Architecture

Performance & Bandwidth

Security

Decision Tree (transport / authority / sync Hz)

| Question | Prefer | Script |

|----------|--------|--------|

| Desktop/console LAN or dedicated UDP | ENet | MANDATORY net_enet_expert_config.gd |

| Browser / NAT-hostile peers | WebRTC (or WebSocket fallback) | Official Docs + peer wrappers; still use secure RPC scripts |

| Who owns gameplay truth? | Server-authoritative | MANDATORY server_authoritative_controller.gd |

| Dedicated host without GUI | --headless | MANDATORY net_headless_server_auto_start.gd / server_dedicated_host.gd |

| Position @ 10–20 Hz, not every frame | Adaptive throttle | MANDATORY net_adaptive_sync_throttle.gd |

Do NOT Load lobby/RPC beginner recipes from memory — use the golden path below and open only matching scripts.

Golden Path

  1. Host / dedicated → server_dedicated_host.gd + net_headless_server_auto_start.gd; clients → client_network_setup.gd.
  2. Secure RPC → secured_rpc_pattern.gd + net_packet_rate_limiter.gd + secure_variable_synchronizer.gd.
  3. Prediction / reconcile → client_prediction_synchronizer.gd + net_anti_desync_reconciler.gd; fighting/rollback → net_rollback_helper.gd.
  4. Interest culling → net_visibility_grid_culling.gd before broadcasting positions.

Available Scripts

Transport & host

Authority, RPC, sync

Desync / rollback / interest

Expert Pointers

Deep dives (on demand)

Reference

Progressive disclosure: open Official Documentation links only when researching a specific API; load Related Skills when routing to a peer domain — do not preload the whole lattice.

Official Documentation

Related Skills

Prerequisites
Complements
Downstream / consumers
Master
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.