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"

Problem when loading games in multiplayer

Thanks for reading and sorry for my bad english :P

Well, in my game, each player has a lot of saved variables like race and name. But in a multiplayer session, the "load variables from saved games" function loads for every player with the local save of who is playing.

This function is associated with the Begin Play event.

How can I fix this? Thanks!

alt text

Product Version: UE 4.10
more ▼

asked Oct 18 '15 at 08:35 PM in Blueprint Scripting

avatar image

16 1 1 11

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

2 answers: sort voted first

You have to make sure those variables are set on the server. To get the variables from that player you need to do some extra work.

Create a function in your player controller which gets those variables and returns them (ideally in a struct).

In your game mode on "Event post login" (when a new player connected) you get a reference to that players player controller.

Get the variables from the function you created and apply them to the possessed character of that player controller.

You might be able to do this via the player controller only by using "Run on Server" custom events but I'd have to test that first.


more ▼

answered Oct 19 '15 at 07:33 AM

avatar image

5.9k 291 86 293

avatar image ThiagoZoid May 09 '16 at 09:25 PM

Hey buddy, there was a lot of time since you answered this, sorry for not replying. So, I tried what you suggested and I think we've made some progress. I created a blank project to test it out and look the results:

In this project, the player can choose between two colors for his head: Green and Red.

alt text

I've managed to put the blue color where no information is provided to load. So, if the player head is blue, that means that his material wasn't loaded from the save.

alt text

This is the Player Controller: alt text

This is the Game Mode: alt text

And this is what happens:

The server sees everyone with the same head color as him and the client sees everyone with a blue head, which means that event of overriding colors didn't worked / didn't was executed at least in his game.

Please help me and thanks for reading!

menu.png (1.7 MB)
colors.png (393.6 kB)
controller.png (69.0 kB)
gamemode.png (100.7 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Thanks for sharing.I found a lot of interesting information here. A really good post, very thankful and hopeful that you will write many more posts like this one. UC Browser SHAREit MX Player

more ▼

answered Nov 28 '18 at 04:12 PM

avatar image

0 1 2

(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