All skills
thedivergentai avatar

/godot-server-architecture

@9d6e91e

Expert blueprint for dedicated / headless multiplayer hosts: ENet/DTLS, authority validation, safe packet decode, matchmaker handoff, and health telemetry. Use when building authoritative servers, --headless hosts, or hardening host networking. Keywords: dedicated server, headless, ENet, DTLS, authority, safe_packet_decoder, multiplayer host, WebSocketMultiplayerPeer.

Use this Skill: https://skilld.dev/gh/thedivergentai/gd-agentic-skills/godot-server-architecture

This session only. Nothing lands on disk.

referencesrendering-physics-server-cookbook.md

≈297 tokens on demand. Your agent reads this file only when SKILL.md points to it.

RenderingServer / PhysicsServer cookbook

Use when SceneTree nodes cannot meet tick budget — pair with physics_server_direct.gd.

RenderingServer canvas item (2D)

var canvas_item := RenderingServer.canvas_item_create()
RenderingServer.canvas_item_set_parent(canvas_item, get_canvas_item())
var texture_rid := load("res://icon.png").get_rid()
RenderingServer.canvas_item_add_texture_rect(
    canvas_item, Rect2(0, 0, 64, 64), texture_rid)

PhysicsServer2D body

var body_rid := PhysicsServer2D.body_create()
PhysicsServer2D.body_set_mode(body_rid, PhysicsServer2D.BODY_MODE_RIGID)
var shape_rid := PhysicsServer2D.circle_shape_create()
PhysicsServer2D.shape_set_data(shape_rid, 16.0)
PhysicsServer2D.body_add_shape(body_rid, shape_rid)

[!CAUTION] Every *_create() needs matching free_rid() on dedicated hosts.

When to use servers vs nodes

Servers Nodes
Procedural swarms, voxels, mass particles Gameplay actors, UI, prototyping

Interest management: MultiplayerSynchronizer.public_visibility = false + visibility filter — see Host Patterns in SKILL.md.

Source: SKILL.md on GitHub

2 warnings16d4 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    This skill provides comprehensive blueprints for securing Godot authoritative servers, including DTLS encryption, safe packet decoding, and authority validation. It features a matchmaker client that communicates with an external API and a health telemetry exporter. Security concerns are minimal, primarily involving standard network communications to an external domain for matchmaking logic.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: MEDIUM · 1 issue

  • Runlayer7mo

    3/3 files flagged

Signed by skilld at 9d6e91e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 2 months ago

README badge

README badge for thedivergentai/gd-agentic-skills/godot-server-architecture