I have a game with let’s say 10 levels. Each level already has multiple streamed levels that spawn around the player making each level infinite. I need the players to be able to travel between levels alone or with their friends if they want to go together, but I don’t want to force them to go together if they don’t want to, so I can’t use servertravel because that would force everyone on the server to move to a different level. How can I achieve that? I can’t seem to find an answer to that. I think the best solution would be to have a dedicated server that keeps online all 10 levels or maybe creates a server when a player decides to go to another level while keeping the previous server alive if there are any players left there.
Each server instance can only “run” one game mode and one level.
You’ll need to create a service that spins up a new instance as needed and connects specific players to that instance.
And this probably can’t be done pretty easily
you can make unreal engine talk with an application, which starts and closes server instances, via http for example. Why should this be difficult?
Edit:
Just to clarify what I mean by http. You would have an app that listens for http requests and in unreal you’d use a plugin like VaREST to send http requests. That app could be a server, written in node.js or any other language that supports http. With http, you can send any information to the app which is required to determine if a server needs to be started or can be closed. The handling of the requests can be done in the game mode for example
I see, thank you very much!