Menu

Why I Designed INER Around Server Authority
📰

Why I Designed INER Around Server Authority

DEV Community: cpp·Pietro·16 days ago
#3gJvNmf1
#devtocpp#devto#dev#client#server
Long article (543 words) — no AI summary yet.
Reading 0:00
15s threshold

When I started working on networking for my multiplayer game, I wanted a clear distinction between something a client wants to happen and something the server has decided happened .

For example, imagine a player trying to purchase an item.

The client can request the purchase, but it shouldn't be responsible for deciding whether the player has enough money, whether the item is available, or whether the transaction actually happened.

Those decisions belong to the server.

This was one of the ideas that led me to design INER (Intention, Notification, Event, Response) .

Requests aren't facts

INER is a communication protocol organized around four message types.

Two are particularly important for this distinction:

Intention: A client requests an operation from the authoritative server.

Event: The server communicates something authoritative to a client.

An Intention represents what a client wants to do.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.