Λογότυπο Multiplayer Testing

Multiplayer Testing

Οργανισμός
SummerEngine
multiplayer-testing

Test a Summer multiplayer game with Local Play: several players, bad network, bots, a passing run.

Επισκόπηση

ΕκδότηςSummerEngine
Αποθετήριοsummer
Όνομα δεξιότηταςmultiplayer-testing
Αστέρια
91
Forks
8
Συνοδευτικά αρχεία
1
Άδεια χρήσηςMIT
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • 1 συνοδευτικά αρχεία

    Σενάρια, πρότυπα και υλικό αναφοράς που μπορεί να διαβάζει το μοντέλο καθώς εργάζεται. Τα αρχεία είναι μόνο για ανάγνωση και δεν εκτελούνται ποτέ.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε από SummerEngine στο GitHub. Διαβάστε το πηγαίο περιεχόμενο πριν εγκαταστήσετε τη δεξιότητα.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Multiplayer Testing στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/SummerEngine/summer/tree/main/library/skills/multiplayer-testing
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Νέα δεξιότητα → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που διαβάζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

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-testing .claude/skills/multiplayer-testing
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Multiplayer Testing σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Multiplayer Testing μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Multiplayer Testing δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλα κατά τη συνομιλία

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

/multiplayer-testing — prove it works before saying it works

Step 4 of the multiplayer sequence (multiplayer explains the model).

Local Play runs a Summer multiplayer game on one machine. It starts the World's authority scene headless and N clients, and each client joins through the game's own Summer.client.join. No account, server or extra tools are needed. It can also make the network bad on purpose, which is where multiplayer bugs show.

1. Start Local Play

Pick whichever the session has.

Summer MCP tools (they set project settings, then play):

summer_project_setting key="summer/local_play/players" value=2
summer_play
summer_get_diagnostics
summer_stop

Editor: Debug > Local Multiplayer, pick the player count, press Play. The client windows tile side by side.

Terminal (<summer> is the Summer editor executable). Import once after adding scripts so their classes register:

sh
<summer> --headless --path . --import
<summer> --path . --summer-local-play 2 --summer-local-play-timeout 30
SettingTerminal flagMeaning
summer/local_play/players--summer-local-play <n>Players to start. -1 uses the queue's minPlayers; 0 turns Local Play off
summer/local_play/queue--summer-local-play-queue <name>Which summer.build.json queue to stand in for (default: the first)
—--summer-local-play-headlessRun the clients without windows too
—--summer-local-play-timeout <s>End the session after that many seconds
—--summer-local-play-smokeHeadless clients; exit 0 once every client joined and stayed 3 s
—--summer-local-play-spectators <n>Also start spectator clients
—--summer-local-play-webRun the clients in a browser (the game's Web export)

2. Make the network bad

Loopback has no latency, so it hides every timing bug. Always run once with these settings; they apply to every client:

summer_project_setting key="summer/local_play/network/round_trip_msec" value=100
summer_project_setting key="summer/local_play/network/jitter_msec" value=10
summer_project_setting key="summer/local_play/network/loss_percent" value=1

Or put them in project.godot while testing:

ini
[summer]

local_play/network/round_trip_msec=100
local_play/network/jitter_msec=10
local_play/network/loss_percent=1

Ranges: round trip 0–2000 ms, jitter 0–1000 ms, loss 0–50 %. Each client prints NETWORK_EMULATION round_trip_ms=100 ... when it applies. Try 200 ms too: that is a player on another continent.

3. Read the run

Every output line is prefixed by its process: [authority], [player-1], [player-2]. The last line is the summary:

text
SUMMER_LOCAL_PLAY_RESULT {"ok":true,"players":2,"network":{...},"processes":[{"label":"authority","script_errors":0,...},{"label":"player-1","joined":true,"script_errors":0,...}],...}

A run passes only when all of these hold:

  • "ok":true, and every process has "script_errors":0.
  • The game's own ready lines appear: the authority's, and one per client after its join Command (COURTYARD_AUTHORITY_READY, COURTYARD_CLIENT_JOINED in the Courtyard example). Print one in your game too.
  • No [SummerNetworkSpawner] cannot attach warning on any process.
  • No SCRIPT ERROR lines.

"ok":true alone only proves that clients got seats. If the composition is invalid, the Spawner logs cannot attach as a warning and nothing networked works, yet every client still counts as joined. The smoke flag (--summer-local-play-smoke) proves the same thing and no more.

With MCP, summer_get_diagnostics reports runtime errors from the debugger. Read it after every play; summer_get_console alone misses them.

4. Drive the game with bots

To test gameplay without hands, give the game a bot mode. Arguments after -- reach every process, and {client} becomes 1, 2, ... for players and 0 for the authority:

sh
<summer> --path . --summer-local-play 2 --summer-local-play-headless --summer-local-play-timeout 20 -- --bot={client}

Put the bot in client/bot.gd. It presses the same input actions a player does, so it tests the real controls:

gdscript
extends Node
## Test bot for Local Play, enabled with `-- --bot={client}`. It presses the
## real input actions. Bot 1 walks to the first coin and collects it; every
## bot prints what it sees, for the test run to check.

const COIN := "0"

var number := 0
var main: Node
var elapsed := 0.0
var step := 0


func _process(delta: float) -> void:
	elapsed += delta
	var me := _own_player()
	if me == null:
		return
	if number == 1 and step == 0:
		var at: Array = main.match_doc.get("coins", {}).get(COIN, [])
		if at.is_empty():
			return
		var to_coin := Vector2(at[0] - me.global_position.x, at[2] - me.global_position.z)
		if to_coin.length() > 0.5:
			_steer(to_coin.normalized())
			return
		_steer(Vector2.ZERO)
		step = 1
		print("BOT_MOVED %s" % me.global_position)
		var collected: Dictionary = await main.collect(COIN)
		print("BOT_COLLECT %s" % JSON.stringify(collected))
	if elapsed > 6.0 and step < 2:
		step = 2
		for node in main.get_node("Entities").get_children():
			if node != me:
				print("BOT_SAW %s" % node.global_position)
		print("BOT_SCORES %s" % JSON.stringify(main.match_doc.get("scores", {})))


func _own_player() -> Node3D:
	for node in main.get_node("Entities").get_children():
		if node.get_script() == preload("res://client/player_owner.gd"):
			return node
	return null


func _steer(direction: Vector2) -> void:
	for action in [&"ui_left", &"ui_right", &"ui_up", &"ui_down"]:
		Input.action_release(action)
	if direction.x > 0.0: Input.action_press(&"ui_right", direction.x)
	if direction.x < 0.0: Input.action_press(&"ui_left", -direction.x)
	if direction.y > 0.0: Input.action_press(&"ui_down", direction.y)
	if direction.y < 0.0: Input.action_press(&"ui_up", -direction.y)

Add it from client/main.gd only when the argument is there, after the player has joined:

gdscript
	# Local Play test bot: `-- --bot={client}` (see multiplayer-testing).
	for arg in OS.get_cmdline_user_args():
		if arg.begins_with("--bot="):
			var bot := preload("res://client/bot.gd").new()
			bot.number = int(arg.trim_prefix("--bot="))
			bot.main = self
			add_child(bot)

Then check the lines it prints. The Courtyard bot walks player 1 to a coin and collects it; player 2 watches:

  • [player-1] BOT_MOVED and [player-2] BOT_SAW report the same position (the observer is up to 100 ms behind while moving, then equal).
  • [player-1] BOT_COLLECT {"ok":true...} and both players print the new score.

Keep bot code in client/: files under test/ or other debug folders are left out of the players' pack, so the shipped game could not load them.

Headless clients have no real window. Guard calls that need one (mouse capture, window size) with DisplayServer.get_name() != "headless".

5. What Local Play cannot show

  • Hosted-only services answer with an error code locally: parties, friends, World chat, the store, client leaderboards and analytics. Their skills list the codes. Make the UI hide or explain them; never crash on them.
  • Matchmaking's accept prompt. Local Play seats players directly: no proposal, one World per queue.
  • A player leaving for good. A client that quits or calls Summer.client.leave() only disconnects. session_disconnected fires and their seat is held. session_left arrives when the World ends; hosted, it arrives when Summer ends the Session.
  • Which scene the hosted server starts. Local Play starts the authority scene by name. Summer starts the exported server.pck with no scene, so a server preset without the summer_authority feature still passes here and then runs the title screen hosted, where every join fails with world_start_timeout. Run the bundle's server.pck with no scene (multiplayer-publish, step 4d).
  • A wrong Game ID. Local Play has no hosted identity, so Summer.initialize("some-id") passes here and fails hosted with game_identity_mismatch. Call Summer.initialize() with no ID; only a real online join after publishing proves it.
  • Real devices, real accounts, real distances. Publish to staging for that (multiplayer-publish).

Before a version reaches players, run release-readiness: it covers these gaps on the .zip you upload.

Checklist for any multiplayer change

  • Ran Local Play with at least 2 players, and once with 100 ms / 10 ms / 1 %.
  • Every process: no SCRIPT ERROR, no cannot attach, script_errors 0.
  • The game's own ready lines appear for the authority and every client.
  • Your own player responds instantly and never snaps while moving normally.
  • Other players move smoothly and end where their owners are.
  • Shared state matches on every client; private state reaches only its owner.
  • A refused Command changes nothing and shows its reason.

Common mistakes

Don'tDoWhy
Test only on loopbackAdd round trip, jitter and lossLatency bugs are invisible at 0 ms
Read "ok":true as successAlso check your ready lines, cannot attach and script_errorsA broken composition still joins
Read only summer_get_consolesummer_get_diagnostics after each playRuntime errors live in the debugger
Put bot or test code under test/ and load it from the gameKeep the bot in client/, enabled by --botDebug folders are left out of the players' pack
Wait for session_left in a local testWatch session_disconnectedLocal Play ends Sessions only when the World ends
Skip the import pass after adding scripts<summer> --headless --path . --import firstNew classes are unknown until imported

Next

multiplayer-publish: export the summer.games bundle and upload it as a Build.

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_consolesummer engine get-console
summer_get_diagnosticssummer engine get-diagnostics
summer_playsummer engine play
summer_project_settingsummer engine project-setting
summer_screenshotsummer engine screenshot
summer_stopsummer engine stop

Συνοδευτικά αρχεία

Το μοντέλο τα διαβάζει όποτε χρειάζεται, όσο η δεξιότητα είναι φορτωμένη. Διατίθενται ως αρχεία για ανάγνωση και δεν εκτελούνται ποτέ.

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Multiplayer Testing;

Test a Summer multiplayer game with Local Play: several players, bad network, bots, a passing run.

Γιατί να χρησιμοποιήσετε τη δεξιότητα Multiplayer Testing στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Multiplayer Testing είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη Multiplayer Testing στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε το https://github.com/SummerEngine/summer/tree/main/library/skills/multiplayer-testing. Το TypingMind διαβάζει το αρχείο SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Multiplayer Testing;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη Multiplayer Testing;

Με όσα θέλετε. Εφόσον ένα μοντέλο υποστηρίζει δεξιότητες, μπορείτε να χρησιμοποιήσετε τη Multiplayer Testing με αυτό — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama και άλλα — όλα στο TypingMind με τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Multiplayer Testing;

Ναι. Δημοσιεύεται στο GitHub από τον χρήστη SummerEngine με την άδεια χρήσης MIT. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων

Στήστε δικό σας χώρο εργασίας AI τώρα

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇