Corona-cation (Day 2)
Git Commit: None
Today I made a realization; I still don't understand some fundamental ideas of networking in UE4.
I started out the day with little direction as the designers haven't updated any of the design documents or given me a task to work on after our meeting on monday. This turned out to be a blessing in disguise as it meant I found a huge bug with the core of the game. So since I don't necessarily have a deadline to meet I decided I would try to implement the reviving system I thought about yesterday. I started this out by making sure the healing from the cleric worked so that later I could use that as a reliable point of gaining health in case something went wrong with the new system.
But as I tested the heal aura I found it wasn't doing anything. I checked the blueprint and didn't see any logical error so I went to the output log to dig up errors or warnings. And indeed I found some. The first one that directly told me what was happening was: Warning: UNetDriver::ProcessRemoteFunction: No owning connection for actor BP_FPChar_Sharpshooter_C_0. Function ServerHeal will not be processed. Simple enough, I thought. Just do a quick google search to find all the other hundreds of people who have also come across this and job done. But not this time. Every answer seemed to point in a different direction, many telling me do things that I already had done. Things like not replicating the player controller, setting the owner of the character etc. I went back to the project to see if anything else was going wrong and I found another warning hidden at the time when the clients joined the game. Warning: OSS: No game present to join for session (GameSession)
I went through the same routine and nothing that I knew of came up. There was lots of technical jargon I had never heard before like RPCs (although in reality I had been using them without knowing). I tried to do research on all this and implement it into the game but I have have had no luck yet. I will continue on this tomorrow and I hope to have it fixed before Friday. Or maybe it will magically fix itself just like it broke :)
Comments
Post a Comment