0 votes

Hi everyone,

I was following this tutorial about networking and dedicated server in a stable version of godot. I wanted to use the godot 4 version and the NetworkedMultiplayerENet isn't usable anymore i guess:
- Identifier "NetworkedMultiplayerENet" not declared in the current scope.

Has anyone an idea on a solution/alternative for a client/server architecture on godot 4 ?

Godot version latest
in Engine by (23 points)

1 Answer

+1 vote

The NetworkedMultiplayerENet has changed, as of Beta 1 it looks like the following:


var network := NetworkedMultiplayerENet.new()


var network := ENetMultiplayerPeer.new()

There's an article that details some of the change here: Multiplayer in Godot 4.0: ENet wrappers, WebRTC

by (340 points)
edited by

how is the peer assigned to the scene tree?

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.