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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

Instanced Static Meshes do not replicate over network?

I have a forest made from instanced static mesh components, every tree can be chopped down, when there is an interaction with a tree I set its scale to 0 to hide it and spawn an actor looking exactly the same that can be interacted with in a more complex way if needed. I got that working even though I had to do some extra work to make changes visible to clients, while normal static mesh components just replicate by themselves without any effort on my part. I have a server only custom event that does tracing and checks if what a player is looking at is indeed a tree, spawns a tree actor and then fires up a multicast event that updates instanced tree to all clients effectively hiding it.

Now I ran into another issue: when a player joins when there is a game in progress and some trees have been chopped down he sees the initial state of things with all the trees intact. I tried many things but with no success and I don't really know what I am doing, here is what my efforts boiled down to, obviously it doesn't work, please help. I tried using multicast events here, even though I only need to update one client in this case, but it didn't work anyway.

blueprint

Product Version: UE 4.8
Tags:
more ▼

asked Jun 25 '15 at 06:49 PM in Blueprint Scripting

avatar image

VRLtqq
6 1 2 2

avatar image Zeetu Jun 26 '15 at 05:39 AM

I am literally working on the same thing right this moment. I will let you know if I make progress.

avatar image herruber Dec 18 '15 at 05:45 PM

Any news on this? So far only way I got both clients and server to see the same thing is with multicast. Client can spawn the actor and print its name and positions and variables, but cannot see it. Server can see what the client spawned tho

avatar image HighlySpammable Feb 12 '16 at 07:28 AM

Any updates on this? We found a few dodgy hacks but nothing that feels like it's the right way to be going about doing this.

avatar image VRLtqq Feb 12 '16 at 01:13 PM

I've put this project on hold, so no updates. Maybe I'll look into this particular issue as I now have better understanding of how things work. I'll report here in case of success.

avatar image masterneme Mar 03 '16 at 02:29 PM

Hi, I join the conversation because I have the same problem.

Can you share your "hacks"? Maybe we can tweak them to make them more "right".

avatar image masterneme Mar 03 '16 at 03:49 PM

All right, I've been doing some experiments with "Switch Has Auhority" and RepNotifies, it works but not 100% of the time.

I got the idea from here: https://youtu.be/ZsDRDAdtA9w?list=PLZlv_N0_O1gYwhBTjNLSFPRiBpwe5sTwc

I'll leave it as it is now, if I find something better I'll post it.

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

0 answers: sort voted first
Be the first one to answer this question
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