#Hello, new to replication. Currently
1 messages · Page 1 of 1 (latest)
If you're sending it with reliable RPC (RRPC for now) I don't think missing packet is the problem. From what I know the RRPC will be send over and over again from server until the client acknowledges he received the RPC.
okay, if its not that then what would be the cause?
I have no clue just started to learn replication 2 days ago really
This is when all actors are spawned in for the client and updated but the red circles show what wasn't updated correctly during startup
send you code, if you won't show how you do it I won't be able to help
no problem Ill send its all in bp, what part would you like to look at the Spawning logic or the material logic?
spawn and replication
Maybe just send a screenshot? I can't see what is an rpc there
This is the actor that spawns all the Hex Actors in a grid
Then choses randomly a Hex to convert into a new Type eg. "plains, mountian, river etc.."
its weird since all the other hex tiles get the material and its the same bp actor as the one that didnt get a updated material
Umm, I'm a little bit baffled by this code, why every function is reliable server RPC?
If the call chain starts on server it won't magically switch to client.
Next do you use listen server or dedicated server?
Another option, are you sure the tiles even spawn on server? You check it when running the game in PIE and in outliner picking the world you're interested to see:
The reason I added all those RPC even though its already running on the server was to see if it made a difference, but it didnt was just doing something I read on a post . besides that
I have it set to dedicated
Yes all hex are spawning on the server
I didnt know you could check server outline thanks for that super helpful
outlines for client shows the same actor spawn numbers and type names as the server outline
What does BPDA hexes do?
I can honestly share screen too if you'd like to get a better look at what it could be.
BPDA Hex is the Hex master actor that the grid spawns
Its is the hex itself that you see with trees and buildings
and this is what the rep notify have in them also
unfortunately I have to get back to work, I can only suggest trying to isolate the hexes that are the issue maybe replicate that on smaller scale(?) or take a look at their details on server and client, see what is different. That may help you solve the problem
Got it thanks for the info though Ill post here if anything changes.
oh wait
stupid of me, I just noticed you've send the blueprint errors.
Could be that the material doesn't replicate with the actor and you skip some initialziation
Find the HexMaterial the errors talk about and start from there
do you change hex material at some point on server to be null?
I dont think so since it just spawns them in, and if it does change it runs the create material function again to make sure its updated properly
maybe its updating but the client doesnt get it even thoght the repnotify sends the updated info?
like the clients creation of the material no longer matches the server material that was recreaded?
but even so the hexs that are missing material is usung the same logic that the other river hexs have and they loaded the material correctly as they where updated
thats why my first conclusion was that the packet loss question.
oh maybe its due to me recreating the material again?, ima try something, will post update soon
update it did not work same issue.
You know what, I have no idea, I suggest nuclear option, instead of replicating the material change the code to replciate a simple enum and once the enum is replicated create material locally, do you really need it to be created on server?
the only reason was that before I was using listen server and it wouldn't show correctly if I didnt have it created on the server. I am using dedicated now.
listen is like Hosting a lobby right?
If thats the case I would like to give my players both options hosting lobbies and dedicated servers
Ill change it again to be created locally rather then server. Ill let you know what happens. But that will be for tomorrow its late right now. Thanks for all the help bro! have fun at work.
Update, same thing happens, some how it just losses the data