Logo vun Multiplayer

Multiplayer

Organisatioun
SummerEngine
multiplayer

Start here for Summer multiplayer: how authority, clients, Worlds and Sessions fit, and what comes next.

Iwwersiicht

EditeurSummerEngine
Repositorysummer
Skill-Nummmultiplayer
Stären
91
Forks
8
Matgeliwwert Fichieren
1
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum SummerEngine op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Multiplayer an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/SummerEngine/summer/tree/main/library/skills/multiplayer
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/SummerEngine/summer.git /tmp/summer
mkdir -p .claude/skills
cp -r /tmp/summer/library/skills/multiplayer .claude/skills/multiplayer
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Multiplayer an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Multiplayer automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Multiplayer net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

/multiplayer — how Summer multiplayer works

Read this first, whatever the user asked for: "multiplayer", "co-op", "PvP", "online", "play with friends", "lobby", "peer-to-peer", "host a game", "netcode", "sync players". It explains the model in one page and sends you to the skill that builds the next piece.

The picture

A Summer multiplayer game is one project with two entry scenes:

  • the client scene, which every player runs: input, camera, visuals, UI;
  • the authority scene, which runs headless as the match server and owns the rules.
text
   each player's device                   Summer hosting (or Local Play)
  ┌──────────────────────┐  my pose       ┌──────────────────────────────┐
  │ client scene         │ ─────────────► │ authority scene = one World  │
  │ moves its own player │  "collect"     │ checks every pose and request│
  │ draws everyone else  │ ─────────────► │ owns score, doors, items...  │
  │                      │ ◄───────────── │                              │
  └──────────────────────┘  state, events └──────────────────────────────┘
  • A running match is a World. Summer starts one authority for it; the game declares what a World is in world.json (a WorldDefinition).
  • A player joins with Summer.client.join(...) and gets a verified Session: their seat in that World, with a verified player identity.
  • Players find a World through a queue in summer.build.json. Hosted, Summer's matchmaking fills it; locally, Local Play starts the authority and N clients on your machine.
  • The same code runs locally and hosted. No if server, no local-only branches, no IP addresses.

There is no player-hosted server, so there is no host migration, and a player quitting never ends the match for the others.

How data moves

Both sides load one network composition (network/composition.tres). It declares every stream the game uses, and a Spawner node attaches it to the World:

You wantUseWho writes itSkill
My character movesOwner-written State group, one per playerthat player's client; the authority checks each posemultiplayer-movement
Everyone sees the score, a door, the round timerAuthority-written State group, World audiencethe authoritymultiplayer-state
Only I see my wallet, hand, inventoryAuthority-written State group, target-Session audiencethe authoritymultiplayer-state
A player wants to buy, open, collect, ready upCommandclient asks, authority accepts or refusesmultiplayer-state
A one-off effect (sparkle, sound, hit flash)Eventthe authoritymultiplayer-state

State is retained, so a late joiner gets the current value. Commands carry the sender's verified Session. Events are fire-and-forget.

The rules

  1. Each client moves its own character. Movement feels instant on every connection. The authority accepts or refuses each pose, and a refused pose snaps the player back.
  2. The authority owns every other fact. Clients never change shared state; they send a Command and show the result.
  3. Identity comes from the Session, never from a field a client sent.
  4. Never use the stock high-level multiplayer API in a Summer game: no @rpc, MultiplayerSynchronizer, MultiplayerSpawner, ENetMultiplayerPeer, multiplayer.is_server() or peer-ID branches. Their sender ids are transport peers, not verified players. Late joiners miss state, and the game cannot use Summer hosting, matchmaking or identity.
  5. Test under a bad network before calling anything done: Local Play with latency, jitter and loss (multiplayer-testing).

Words

WordMeaning
GameYour game on Summer; its id is gameId in summer.build.json. Summer.initialize() takes no ID: Summer knows which game is running
WorldOne running match or shared place, simulated by one authority
WorldDefinitionworld.json: which scenes run the client and the authority, lifetime, persistence
QueueHow players find a World; declared in summer.build.json
SessionOne player's verified seat in a World
CompositionThe network contract both sides load: State streams, Command and Event streams
State groupOne retained value (a pose, a scoreboard); one writer, an audience
CommandA request from a client, answered by the authority
EventA one-off message from the authority
Local PlayRuns the authority and N clients locally, with optional network emulation

Build it in this order

Each skill continues the same small game, so their code fits together:

  1. multiplayer-project: the files, both entry scenes, joining, and a first Local Play run.
  2. multiplayer-movement: each player moves their own character; others see it smoothly; the authority checks every pose.
  3. multiplayer-state: score, doors, private inventories, Commands and Events.
  4. multiplayer-testing: Local Play under latency and loss, bots, and what a passing run must show.
  5. multiplayer-publish: export the summer.games bundle and upload it as a Build.
  6. release-readiness: before players get a version, prove the server starts its authority scene and a real online join works.

Add Summer services

SkillWhat it addsWorks in Local Play?
summer-matchmakingQueues, match sizes, teams, the accept prompt, join failuresYes, without the accept prompt
summer-match-resultsEnding a match: winners, losers, rating changesYes
summer-leaderboardsRatings and Game-wide leaderboardsPartly; reading boards needs hosting
summer-partiesFriends queue together as a partyNo, hosted only
summer-friendsThe player's Summer friends and direct messagesNo, hosted only
summer-player-dataProgress that follows the player to any WorldYes, stored on disk
summer-world-savesWorlds that persist between sessionsYes, in memory
summer-world-chatText chat inside a WorldNo, hosted only
summer-storeSelling items for Sparks, owned itemsItems yes; the store is hosted only
summer-analyticsGame events for your analytics dashboardNo, hosted only

What people ask for, and what Summer does

They ask forOn Summer
"One player hosts", peer-to-peerA headless authority per match, started by Summer or by Local Play
Host migrationNot needed: no player is the authority
Join by IP, invite code, server browserNot available. Players join a queue; friends join as a party (summer-parties)
A lobbyA queue with minPlayers/maxPlayers and an accept prompt (summer-matchmaking)
"Sync the player's position"An owner-written pose group (multiplayer-movement)
"Tell everyone the door opened"An authority-written State group (multiplayer-state)
"The client asks the host to buy something"A Command validated with the verified Session (multiplayer-state)
Save progressPlayer data for the player, World saves for the place (summer-player-data, summer-world-saves)

Start

Check what exists: summer.build.json, world.json, network/, authority/, client/.

  • None of them: start with multiplayer-project.
  • They exist: pick the skill for the piece you need from the tables above.
  • The game already uses @rpc or MultiplayerSynchronizer: tell the user it needs moving to Summer's networking. Then follow multiplayer-project and port one system at a time: movement first, then state.

From a shell

No Summer MCP tools in this session? Run each one as a command; when summer --version is missing or below 4.0, use npx -y summer-engine@latest in place of summer. Fields are flags in kebab-case (--scene-path res://main.tscn) or one --input '<json>', and summer ops describe <op> prints the exact input. The summer-cli skill has the rest.

In this skillCommand
summer_get_scene_treesummer engine get-scene-tree
summer_get_script_errorssummer engine get-script-errors
summer_project_settingsummer engine project-setting

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Multiplayer?

Start here for Summer multiplayer: how authority, clients, Worlds and Sessions fit, and what comes next.

Firwat Multiplayer op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Multiplayer besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Multiplayer an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/SummerEngine/summer/tree/main/library/skills/multiplayer an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Multiplayer benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Multiplayer benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Multiplayer domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Multiplayer gratis?

Jo. De Skill gëtt vum SummerEngine ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇