- Joined
- Apr 5, 2020
- Messages
- 36
Hey. I am creating a Save / Load system without using these commands (automatic loading of the save). I have a problem.
It so happens that when I make a preload for the players, after decrypting the code, each player gets his own values.
I tested with a friend. In my save the parameter "level" is equal to 123, in his save 55.
When the level is displayed on the screen, I see:
My level: 123
His level: 1
Third player: 1
Fourth: 1
And he has:
My level: 1
His level: 55.
Third player: 1
Fourth: 1
Desired result (for both):
My level: 123
His level: 55.
Third player: 1
Fourth: 1
How can this be fixed? Synchronization? If synchronization, how to do it?
Screenshot 1. Save code. During the download process, we change the name of the 15th player to a code in order to use it in the future.
Screenshot 2. This is what the file looks like inside
Screenshot 3. Preloader and running the function to decrypt the string
Screenshot 4. Here we get the code for further decryption.
Screenshot 5. Player 1
Screenshot 5. Player 2
It so happens that when I make a preload for the players, after decrypting the code, each player gets his own values.
I tested with a friend. In my save the parameter "level" is equal to 123, in his save 55.
When the level is displayed on the screen, I see:
My level: 123
His level: 1
Third player: 1
Fourth: 1
And he has:
My level: 1
His level: 55.
Third player: 1
Fourth: 1
Desired result (for both):
My level: 123
His level: 55.
Third player: 1
Fourth: 1
How can this be fixed? Synchronization? If synchronization, how to do it?
Screenshot 1. Save code. During the download process, we change the name of the 15th player to a code in order to use it in the future.
Screenshot 2. This is what the file looks like inside
Screenshot 3. Preloader and running the function to decrypt the string
Screenshot 4. Here we get the code for further decryption.
Screenshot 5. Player 1
Screenshot 5. Player 2