I'm using a custom multiplayer in multiple projects, here's how i've done it:
var network = NetworkedMultiplayerENet.new()
var multiplayer_api = MultiplayerAPI.new()
if network.get_connection_status() != network.CONNECTION_DISCONNECTED:
if get_custom_multiplayer() == null:
if not custom_multiplayer.has_network_peer():
Everything works, expect sometimes it doesn't. I get these two errors regularly (I always get 2 errors at a time):
_process_get_node: Invalid packet received. Unabled to find requested cached node.
_process_packet: Invalid packet received. Requested node was not found.
They're caused by the
custom_multiplayer.poll() function and i have no idea why this happens.