Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persistent connection through level #3

Closed
blansikerUe4 opened this issue Dec 12, 2019 · 4 comments
Closed

Persistent connection through level #3

blansikerUe4 opened this issue Dec 12, 2019 · 4 comments

Comments

@blansikerUe4
Copy link

Hey I asked a question on the Unreal Marketplace about persistence through level. Just in case it doesn't reach you :)

https://www.unrealengine.com/marketplace/en-US/slug/tcp-socket-plugin/questions

@CodeSpartan
Copy link
Owner

CodeSpartan commented Dec 13, 2019

I would try using seamless travel (in particular, GetSeamlessTravelActorList) if it's applicable to your project.

@blansikerUe4
Copy link
Author

I'm using Amazon Web Services for my Servers. So I need to use Open Level in order to join a match. How hard would it be to store this directly in an UObject instead of a AActor?

Thanks you for responding!

@CodeSpartan
Copy link
Owner

You could try turning it into a UObject, but I can't guess what difficulties you may encounter, if any.

Failing that, you can always rewrite your socket server to allow temporary disconnects, and you can send your client the bulk of what messages they missed upon re-connection.

@CodeSpartan
Copy link
Owner

CodeSpartan commented Jan 30, 2020

Saw a discussion today, that reminded me of this issue. Apparently you can add an actor to root set (AddToRoot in C++) and reference it in gameinstance, and it'll carry over into another level. https://docs.unrealengine.com/en-US/API/Runtime/CoreUObject/UObject/UObjectBaseUtility/AddToRoot/index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants