#HELP me figure this out (MULTIPLAYER + RELAY + DOTS).

1 messages · Page 1 of 1 (latest)

unique sparrow
#

I used the documentation + parts from the new FPS template.

The connection works, I go to the scene, but my systems aren't there, nothing starts, and I don't have a network ID.

Two options

  1. If bootstrap true, I only have the default world.
  2. If bootstrap return base init, which will reset the bootstrap to true (3 worlds), default, client, and server.

But my systems aren't there, nor are my components, and I also don't have a network ID.

smoky perch
#

In order for the networkId to appear, there must be a connection between the server and the client, if the networkId does not exist, then there is no connection between the client and the server either.

smoky perch
#

Judging by your code, I don't see requests for listen and connect anywhere, I also don't see where you create the client and server worlds, and if you want to use Relay, then you need to create worlds after installing your DriverConstructor.

smoky perch
#

By the way, 1 startGame method will not be enough for you, you need at least 2 StartHost and StartClient methods, since in Host (client and server) mode your driver constructor will connect the local client via IPC (intra process, not inter processes btw) ignoring Relay

unique sparrow