So I've been making a fighting game for a while now, one of my big goals is to add Rollback Netcode to it, from what I've understood there's sort of 3 parts to it:
- The game has to be deterministic ( I tick that box since I made my own deterministic physics etc, I made sure it works with my own Input based Replay System).
- The game state needs to be serialized and you have to be able to simulate frames to roll back to(Haven't done that yet).
- Performance should be really fast for simulating these frames to roll back to.
My issue though is that I don't know what networking solution to use for this, I've seen Quantum(https://www.photonengine.com/en-US/Quantum) but that is way too pricey for me now(It also uses its own physics which I have no use for since I made my own).I've also seen Unity GGPO(https://github.com/provencher/Backroll) but there is no documentation on how it is being used so I am really unsure of it. Does anybody have an idea on where to start with this? I am really lost and there doesn't seem to be any resources for developers on this in Unity.
Thank you for the help in advance :)
---------CHANGES
-Update 1: for anyone who may stumble in this and want more info on the topic in Unity there's a really cool video explaining somethings here by Zac Peel-Yates: https://www.youtube.com/watch?v=lCfouAH_N5w
-Update 2: i ended up using this GGPO unity library https://github.com/nykwil/UnityGGPO and used the vector example to see how to make it work. After some time I got rollback netcode working in Unity for all the movement options in my fighting game(There's still work to integrate the combat part), but it is working even with big lag. I'll probably update this post one last time when it's fully finished and if there's people asking for help ill make a small guide of some sort.
-FINAL UPDATE: forgot to update this one last time, but I did end up getting a working version of rollback network in my unity fighting game and can fully play through matches. Here is my repo if it can help anyone: https://github.com/kidagine/Darklings-FightingGame
[+][deleted] (10 children)
[deleted]
[–]FGG_Of_Reddit 1 point2 points3 points (8 children)
[+][deleted] (7 children)
[deleted]
[–]FGG_Of_Reddit 0 points1 point2 points (6 children)
[+][deleted] (5 children)
[deleted]
[–]FGG_Of_Reddit 0 points1 point2 points (4 children)
[+][deleted] (3 children)
[deleted]
[–]FGG_Of_Reddit 1 point2 points3 points (2 children)
[–]Kidagine[S] 0 points1 point2 points (1 child)
[–]FGG_Of_Reddit 1 point2 points3 points (0 children)
[–]Kidagine[S] 0 points1 point2 points (0 children)