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"

Server travel and ETravelFailure

Hey there,

I'm currently prototyping my game server using BPs and there is no Server Travel node for it, so I'm using the console command ServerTravel MapName to do it. The problem is, I want to handle ServerTravel errors and the overridable event "TravelError" on game instance is just not being called.

I'm trying to travel to a map that doesn't exist (ServerTravel ASDZXCAsd) and the error event is not being called, but I still get errors on the output log, like so:

LogPackageName: SearchForPackageOnDisk took 0.050s, but failed to resolve ASDZXCAsd. ERROR: The map 'ASDZXCAsd' is either short package name or does not exist. Command not recognized: ServerTravel ASDZXCAsd

How am I supposed to handle these types of errors? I've tried calling the server travel with/without seamless travel, from the game instance itself or from a game mode as well.

Any ideas? Is this a currently BP problem? Is that event only called with OpenLevel? (If it is called at all)

Thanks!

Product Version: UE 4.15
Tags:
more ▼

asked May 05 '17 at 02:31 PM in Blueprint Scripting

avatar image

Luiz Sotero
115 1 7 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

ServerTravel error inside of game instance still triggers, the problem is the order of operations.

If you're trying to display an error message on screen with the use of a widget, or a visual log, the message only stays on for as long as it takes your game to load the default "Entry Map".

When a ServerTravel or Travel command fails, it always falls back onto loading the Entry Map.

more ▼

answered May 12 '17 at 05:39 PM

avatar image

MajinSephiroth
1.2k 31 8 33

avatar image Luiz Sotero May 15 '17 at 11:42 AM

But it doesn't even print out in the output log, doesn't stop on debug points, anything =/

avatar image MajinSephiroth May 16 '17 at 02:42 PM

These errors will not trigger as long as you're running this "In Editor" or "New Editor Window".

They will trigger the moment you run in "Standalone".

Here's a quick example I did to demonstrate.

Game Instance

Simple node setup for Game Instance blueprint

Output

Output you get from standalone.

Make sure you've set your custom game instance in the project settings.

bp.png (161.2 kB)
log.png (62.7 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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