x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to change what persists during Seamless Travel?

Hi,

We changed our multiplayer project to use Seamless Travel when we call ServerTravel. We set an empty transition map and it seems to work so far.

However, we do not want everything to persist, so how can we change that (in Blueprints, if possible)?

So far we only found hints that we could override GetSeamlessTravelActorList, which seems not to be exposed to BPs, or change the CopyPriorities of the respective actors... Can we achieve it in BPs?

EDIT: This is what the documentation says:

When using seamless travel, it's possible to carry over (persist) actors from the current level to the new one. This is useful for certain actors, like inventory items, players, etc.

By default, these actors will persist automatically:

The GameMode actor (server only) Any actors further added via AGameMode::GetSeamlessTravelActorList All Controllers that have a valid PlayerState (server only) All PlayerControllers (server only) All local PlayerControllers (server and client) Any actors further added via APlayerController::GetSeamlessTravelActorList called on local PlayerControllers

And, since we want to change the GameMode upon level change (means Server Travel), we do not want these actors to persist...

Product Version: UE 4.11
Tags:
more ▼

asked May 04 '16 at 08:13 AM in Blueprint Scripting

avatar image

Syrill
212 22 22 31

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

From my understanding, GameMode will change as usual also when using Seamless Travels, simply the old GameMode will be used to initialize the new one when the engine will call the CopyProperties method.

more ▼

answered May 08 '16 at 11:22 AM

avatar image

Kafumanto
212 15 22 29

avatar image Syrill May 08 '16 at 11:59 AM

As far as I know, there are also CopyProperties methods for other Actors/Classes. Is it possible to override all those and, thereby, to "emulate" non-seamless travel, despite using seamless-travel? Or would it be better to manipulate the GetSeamlessTravelActorList?

(comments are locked)
10|2000 characters needed characters left

Stream your levels. Level streaming ue4. Unload and load your levels. GGWP.

more ▼

answered May 04 '16 at 08:18 AM

avatar image

VictorBurgos
2.4k 60 27 111

avatar image Syrill May 04 '16 at 08:25 AM

So you mean no ServerTravel at all, just exchanging levels with the help of steaming?

avatar image Syrill May 04 '16 at 10:16 AM

Alright, I looked into this option, but it seems not to fit our game.

We have different GameModes we use alterning for all levels. And as it seems, if we just unload and load our levels we can not exchange the GameModes that easy...

So, ServerTravel it still is...

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question