NetworkedMultiplayerENet in Godot 4

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Zennyth

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 ?

:bust_in_silhouette: Reply From: BoxyLlama

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

3.x:

var network := NetworkedMultiplayerENet.new()

4.x:

var network := ENetMultiplayerPeer.new()

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

how is the peer assigned to the scene tree?

Andrea | 2023-03-13 16:00

1 Like