Posted by: PNill
« on: September 30, 2017, 05:44:32 AM »
Progress is starting to slow down but still making my way through it.
I've managed to fix crashes related to damaging the other player or the other player dying/the other player damaging me.
https://gyazo.com/5f49f51effe24e340895de706c4ec659
https://gyazo.com/ca7195ef6809065998b222acabc617c8
I'm able to make the other player fire/shoot as seen above via code with any weapon this was what a majority of the work today went into as well as finding a way to make the player uncrouch after crouching, and I can successfully make the player respawn.
So we're getting close to having everything we need to start synchronizing the data over the network and doing some testing with people online playing vs just controlling the player via local code.
There are still minor issues I want to fix before getting to that point such as:
- I've noticed slowdown when switching to the rocket launcher while the second player was holding it, like actual frame lag/game freeze for a half a second or so... need to determine if this is related to the second player in any way... it's possible there's some game lag in relation to secondary rendering occurring.
-
Player death messages and other hud elements such as health and ammo for the other player still appear on the first screen, I have an idea of where to look to resolve this but have not done it yet. - Player hud elements such as health, and pickups are still appearing currently but will be fixed.
- Powerups (Damage increase, power boots, speed increase, health regen, etc) is still not something I've been able to synchronize or determine how they work, there will be de-sync issues with this.
-
When the 1st player dies they control every player in the game. I have an idea on why this is happening and just haven't really decided on how to go about fixing it yet.
Example: https://gyazo.com/839ad45aa3a64bd9a922144bcc233f72
If I can think of anything else I need to add to this list before I think this is ready for any kind of testing I'll be sure to do so, these things are not major issues so hopefully I'm able to fix them within a few hours tomorrow and start working on networking side of things.
EDIT:
Discovered a new bug... - When there's more than 2 additional players spawned into the game when a player is re-spawned their 'first person' weapon spawns/is visible for some reason.
Now working towards integrating networking and coming back to the rest of the bugs over time.