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"

Event dispatcher multiplayer replication problem

Hello

I seem to have ran into a replication problem, I've attached the pictures of the blue prints but i'll explain a little first; I am trying to get a multiplayer game working using the steam online sub system, The server side can do everything (obviously) where as the client side can not. What I can't figure out is why the event dispatcher, "Pickup item" isn't being called on the client. More than likely, I assumed wrong in thinking that calling it via a replicated custom event would be enough for it to be replicated.

To make sure what was being called and what wasn't I have added breakpoints, the code works on the client side untill it gets to the "CallPickUpItem" node, Just after the pickupitemevent I added a breakpoint to the branch node and I found out that it is working on the server but isn't working on the client, how come? anybody got any ideas? Cheers..

alt text

Product Version: Not Selected
Tags:
help.jpg (335.4 kB)
more ▼

asked Mar 30 '15 at 03:05 AM in Blueprint Scripting

avatar image

TheMunky
121 13 18 24

avatar image TheMunky Apr 03 '15 at 10:05 PM

Still struggling with this one, any body know what I can do ?

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

4 answers: sort voted first

Your event is set to "execute on server". That means only on server. If you want that entire event to be called on clients, use "multicast" instead, or put call pickupitem node in another event which is multicasted, and call that event instead of the dispatcher in the first one. From the looks of it you should do the latter, as interaction trace looks like server only logic.

Multicast events, when called on the server, will get executed on all clients. Execute on server events are called by clients who need to tell the server something, and the event runs on the server.

Hope that helps

more ▼

answered Apr 03 '15 at 10:20 PM

avatar image

Acren
460 46 50 70

avatar image TheMunky Apr 05 '15 at 10:55 PM

I have "tried" to my best understanding what you talked about, even using multicast, the node "Call PickupItem" is never actually called, so still the issue is persisting.

avatar image Acren Apr 06 '15 at 11:58 AM
avatar image TheMunky Apr 10 '15 at 02:01 AM

Still nothing, It seems that I can not use Event dispatchers on a client.

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

I don't like to bump but as i'm still stuck and would like some help, I don't want to start a new thread, I am still stuck on this issue, I can not get the event dispatcher to call on the client? Is there a work around?

more ▼

answered Apr 13 '15 at 07:23 AM

avatar image

TheMunky
121 13 18 24

avatar image shgs_sls May 26 '15 at 09:52 PM

Did you ever find a solution? I'm running into a similar issue.

avatar image TheMunky May 27 '15 at 03:29 AM

Nope, there are numerous threads asking the same thing, it clearly states in the documentation that this should be possible but there's nothing to say how.

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

To dispatch an event to the owning client. 1. Create a custom event to call from server to owning client. 2. Call the dispatcher within the event.

If that doesn't work it seems your not the owning client.

more ▼

answered May 27 '15 at 06:32 AM

avatar image

cageman
673 30 33 65

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

You still need answer?

more ▼

answered Dec 28 '16 at 05:44 PM

avatar image

KamilWiech
6 1

avatar image Adnoh Jan 05 '17 at 09:52 PM

yes please! having the same problem. help would be welcome!

avatar image KamilWiech Jan 07 '17 at 09:11 PM
  1. Create Event Dispatcher in (for example) ThirdPersonCharacter Blueprint. Compile

  2. Go to another blupeprint (which will communicate with TPC blueprint, let's call it XXX) and in there you search for "Assing [ED name]". Connect it properly to Cast to TPC node as standard tutorials show. Compile

  3. Come back to TPC BP. Search for node in Class --> XXX --> [ED name]. Node should pop up. It should be WITHOUT envelope! Remember also to create and connect proper replicabable variable referencing XXX blueprint.

  4. In TPC create Custom Event with Run on Server Replication mode. Obviously create some node which will call this event. Compile Enjoy! ;-) alt text alt text

tpcbp.png (93.2 kB)
xxxbp.png (103.2 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