#New on Fish Net and Multiplayer. First issues

6 messages · Page 1 of 1 (latest)

tranquil comet
#

First going to explain what I am trying to accomplish and my needs so I can be pointed towards.
Game would be a multipass for offline with CPU or online with others/CPU. Online through Steamworks, offline Yak.
Trying to make a Play button, choose which transport would be used (Online or Offline), then would come create room or choose a room, so a room list here would be in order. Then load a scene, unload the main scene, and, at times, add scenes and remove scenes during gameplay.

Issues I am having:
Checking the lobby worlds scene, I tried to add multipass with Yak and Steamworks, Fishy Steamworks try to start automatically and I get error telling me to start one of them. But I followed the setup from multipass on documentation and don't know how to do that properly on the start since that would be an after steps.

Second would be properly loading and unloading scenes. How to efficiently and properly do this, since I never done networking before I wanna be a bit more efficient.

And third would be the room list. To get a room list, would I need to make a little server for that or when looking over at Steamworks I could get a list over that game? How would I have to do that list/create system properly? Want to understand this part a little better

stark elm
#

Yak is a pure offline Transport running off your multiplayer code. All the others are only and use sockets of some type.
Multipass allows you to choose which transport to use on client and let's server listen on multiple transports (eg tugboat, steam, webgl)

#

For pure offline you would gettransport yak from transportmanager

#

Then start server and client on it, and you're good.

#

For client side you should set which to use as well .. transportmanager. Setclienttransport<Yak>(). Keep in mind not at my computer so guestimating API names.

#

Basically client only uses one at a time but server can listen on multiple and mesh them all together. So for client you specify which to start and server you start only the ones you want. If offline you're client and server so you start both on yak