CosyClub / ProjectTempo

Rave Cave, A rhythm based MMO where players rock out together!
3 stars 0 forks source link

Jt/seperate player spawns #217

Closed jnterry closed 6 years ago

jnterry commented 6 years ago

This ensures different members of the party spawn on different spawn pads when starting the level

grant-m-s commented 6 years ago

So trying to run 3 clients, first 2 work correctly 3rd one doesn't start it gets stuck after Finished processing Entity with server ID 1514 and 9 components and validity 1 then nothing renders. Could be just my machine though, anyone else?

AnthonyWharton commented 6 years ago

Yeah, Afraid this seems to hang for me with larger number of clients. Sorry old bean :/

jnterry commented 6 years ago

This is now a big hack - players are allocated slots on round robin basis rather than having server keep track of which slots are occupied.

This works fine if 6 clients join in sequence, if we get crashed clients and then people rejoining it may be that slots are reused, but players should still be fairly spread out.

Either way it seems to work for arbitary number of clients. I'll see if I can get proper slot allocation to work, but this will probably do for tomorrow if nothing else works.