Repository navigation
v0.24
The official network opens: a lobby, transfers between servers, a kit for mini-games, combat between players and the first three games.
Highlights
- The official network: a lobby and transfers between servers
- A mini-game kit for mods, and combat between players
- The first games: Breaking Ground, Parkour and the Arena
All changes (20)
- Mod API 0.3.0, also: a worldgen may lay a veil in its well (veil: a top, a bottom and a number of birds, at most 256), which the players see as a sea of clouds over the columns the pack lowered under it, and as a white fog from inside. Protocol 84: the sky wells carry their veil.
- A block of content may be heard: its ambience names a looping sound (data/sounds/.ogg), played from the nearest chunks that hold such blocks, louder the nearer and the more of them (docs/CONTENT.md).
- A server can send a player to another server: /transfer host:port, an operator's command, or any part of the server that fills PendingTransfers. The game follows it only in a session of the official network and only to the host the hub announced, showing "Changing servers..."; anywhere else the transfer is ignored. A transfer that fails brings the player back to the lobby once, then shows the error. Protocol 80.
- The official server is listed first on the Multiplayer screen, like a saved server (a list saved before it is given it once; removed, it stays removed). Join enters the official network with the hub account (the Account dialog opens for a player not logged in): the game asks the hub where the lobby is, again while it starts, waits for it as for a hosted world ("Joining the official server..."), then joins it. A hub that is full, updating or cannot be reached is said on the error card, whose way back leads to the server list. The Account dialog shows the account's coins and wins on the official network.
- Servers of the official network: --network-pack runs the mods of data/network// (built by just build-mods) beside those of the content's packs, and nowhere else; --ephemeral writes nothing, neither the world nor its players, who join with nothing; --world-type void makes a world with no terrain, only what the worldgen mods add. The rules of a world (pvp, hunger, mob_spawning, natural_regen, fall_damage, item_drops, daylight_cycle, weather), all on by default, are set by /gamerule [true|false] and soon by the mods. A third game mode, adventure: survival that neither breaks nor places blocks. Protocol 81.
- Moderation of the official network: an admin mutes an account on the web admin's new Network page, and the servers of the network refuse its chat within a minute ("You are muted on the official server"). /report , open to every player on the official server, sends a report to the hub, which the admins read, resolve or act on from the same page, which also lists the lobbies and games running (kind, phase, players) and stops one. Every server takes 5 chat messages in 10 seconds from a player at most. The web admin's Worlds page and overview count the hosted worlds apart from the network's instances.
- Mod API 0.3.0 (mods must be rebuilt): a mod hears the players join, leave, die (with the player who killed, by an arrow for now) and respawn, and the blocks they break and place; it reads a player's hub account and health, teleports, heals or kills, feeds, empties the inventory of, sets the game mode and the respawn point of a player; it reads and sets the rules of the world (as /gamerule); and a command of a mod can be open to every player, not the operators only.
- A mod shows a side panel on the right of a player's screen (a title over up to 15 lines of 40 characters, sent only when it changes) and a line over the hotbar for a few seconds (client::set_sidebar, client::action_bar), for the scores and timers of the official network's games. Protocol 82.
- The servers of the official network take only the players the hub sends: each start of a lobby or a game gets a netcode private key in its config, and the hub hands a short connect token, for one account and one server, with the lobby it gives (GET /v1/network) and with the places of the queue, which the server passes on with the transfer. A client without a token, or with another account's, is refused, and the packets of a connection are encrypted and authenticated. /transfer is refused on such a server; going back to the lobby after a failed transfer asks the hub again. Hosted worlds, dedicated servers and solo worlds are unchanged. Protocol 83.
- The mods of the official network reach its hub (network::queue, to_lobby, set_phase, report, profile, games, without waiting in the tick): a lobby sends a player to a game, a game back to the lobby, and the server itself takes the place the hub gives, asking again while the game starts, and sends the player there with its token; a game tells the hub its phase and its results, once per round, and the mod hears the coins credited, the players' profiles and the catalogue of the games. Elsewhere these calls answer "unavailable". Mod API 0.3.0 still; the mods must be rebuilt.
- The kit of the official network's mini-games (crates/minigame-kit, docs/MINIGAMES.md): a game says how its round starts, ticks, takes deaths, ends and ranks its players, and the kit runs the rest: a waiting room with a countdown once there are enough players, stopped when too few are left and shortened once full; teams; spectators for those out and those who come late; the side panel of each phase; the podium, the results sent to the hub once and the coins told to each player; then everyone back to the lobby. Its state is kept across a reload of the mod.
- Combat between players: a left click on another player within reach is a blow the server judges, as on a creature (the weapon's damage and recharge, criticals, armour, a raised shield, the throw back, the wear), with half a second of invulnerability after each hit; the struck player flashes red, and the death screen names who slew you. Only while the rule pvp is on, and never between players a mod put in the same team (players::set_team, players::team, Mod API 0.3.0 still): the arrows of the players follow the same rule. A mod hears who killed a player by a blow. Protocol 85.
- Breaking Ground (floor), the first game of the official network, 2 to 12 players: three floors of snow over the void, watched from a glass box above them. Each player starts on the top floor with a diamond shovel, in survival with no hunger, no blows, no fall damage and nothing dropped; after five seconds the snow crumbles a second after a player stood on it. Whoever falls below the last floor is out and watches from the box; the last one standing wins, the others ranked by the order they fell, and the side panel lists the players still in the game.
- Parkour (course), a game of the official network for 1 to 16 players: a course of 33 jumps over the void, from a gold start to a gold finish through three light blue checkpoints, its four sections harder and harder (green, yellow, orange, red: wider gaps, single blocks, steps up and aside), every jump within the reach of a sprinting player. In adventure, with no blows, hunger, mob, drops nor fall damage; a fall takes the player back to the last checkpoint it reached, nobody is out. Its time runs over the hotbar, the live ranking (checkpoint, then time) in the side panel; a finisher stays free on the finish. The round ends once everyone finished, or after 5 minutes; the hub gets each finisher's time, the best one winning (2 coins to play, 5 to finish, 10 for the best time).
- The lobby of the official network (data/network/lobby/): a floating island over the void, where every player arrives in adventure at the spawn, with no fight, hunger, mob, fall damage, drops nor weather, its coins, wins and rounds and the players of each game in the side panel. A portal per game (Breaking Ground north, Parkour east, Arena west), a frame of the game's colour at the end of a path of it: walking through it, or /play <floor|course|arena>, asks the hub a place, once at a time, and tells how it went (sent, starting, full, failed). A fall off the island brings the player back to the spawn.
- The Arena (arena), a game of the official network, 4 to 16 players in two teams, Red and Blue: a closed hall of stone over the void, the same seen from either end, with a base of each team's colour at its ends and pillars to take cover behind. Each player appears in its base with an iron sword, a bow, 32 arrows and a suit of iron armour (shift-click to wear it), in adventure: no block broken or placed, no hunger, nothing dropped, and the players of a team do not hurt each other. A death is not the end: it scores an elimination for the killer's team, the player waits five seconds in its team's glass room over the hall, then goes back to its base armed again. The first team to 20 eliminations wins, or the best score after five minutes (equal scores are a draw, which no one wins); a team whose players all left loses. The side panel shows the time left, both scores, the best players and your own eliminations and deaths; the action bar the time left, or the wait before going back.
- A mod puts armour on a player (players::equip: the piece in its slot, the one it replaces back to the inventory) and brings a dead player back where it respawns without waiting for its click on Respawn (players::respawn, the death screen closing as after the click); Mod API 0.3.0 still. In the Arena the armour is now worn at each appearance, and a player who does not click Respawn is brought back to its base 5 seconds after its death all the same. A game of the official network whose round has ended and that no one is left in stops after 30 seconds instead of 10 minutes, freeing its place for another.
- Hub: the official network's lobbies and game instances are realms of their own kinds, without an owner and open to every account (no whitelist, the hub's admins as operators). GET /v1/network gives the least full running lobby, or starts one, and the games being played; they run on a budget of their own (--network-max-running, 4), with the realm agent's [profiles.lobby] and [profiles.game] limits, their network pack and nothing saved.
- Hub: the official network's queue, phases, results and profiles. Its servers ask the hub, with their realm token, for a place in a game (POST /v1/network/queue: the waiting instance with the most players but full ones, or a new instance started on demand, 503 full when none can) or a lobby (POST /v1/network/lobby), tell their phase (PUT /v1/network/phase: a playing or full game takes no one) and report a round's results once per start (POST /v1/network/results), which credits coins (participation 2, win 10; on the course finish 5 and best time 10) and records wins and bests. GET /v1/network/profile gives the account's coins, wins and records. The games are a catalogue, network.toml (--network-config, network.example.toml by default).
- Deploying the official network: the server's image carries the network packs (lobby, floor, course, arena), their mods built and without their sources, where --network-pack finds them; the hub's compose.yaml gives it the network's budgets and the catalogue of its games (network.example.toml, or the file HUB_NETWORK_FILE names), and the realm agent's example its profiles, 512 MB and a core for a lobby (40 players) or a game (16), after a measure of 165 to 195 MB per server. hub/README.md, "Official network", says how to turn it on for a running hub.
Full Changelog: v0.23...v0.24