So we are back, i decided not to have a break as i like this project, so i started on bug fixing which we did fix the swapping issue for karting, nascar and F1, only issue is now sometimes F1 and nascar do not boot, they are booting majority of the time now. But today i worked on Networking! so with our setup at Raze the Roof the plan is to have 4 individual PCs connected to a network switch in this fashion:
This would allow all the RIGs to communcate with each other in a LAN (Local Area Network), we have done this so we can use MIRROR a networking plugin for unity to allow us to sync up all the PC's, basically making it so every PC runs the CFG functions correctly making sure all the Assetto clients are synced file wise, this also allows the players menus to also become synced. Here is an example of this working:
While we was add it we also did add in the script for handling timers for the opperator and some little videos and animation to try to polish as we go along as seen in the video.
I do not think i explained how this functions but currently in this solution we are changing PlayerPrefs to have a constant variable stating the timed session then this will inturn change the timer to the right time and the game files as such, for example here is one of the file changers:
Since we are using mirror and our goal is to sync players functions we can use ClientRPC and SyncVar for most of this project quite simply, and thats day 4 for me, can't wait to post again!
References:
Gitbook.io. (2020). Mirror Networking - Mirror. [online] Available at: https://mirror-networking.gitbook.io/docs/.
Comentarios