Hello there! I was wondering how does In-Game currency getting stored for the player.
My Situation is a 4 Coop game, P2P Connection, Session based Gameplay ( Deep Rock Galactic as an example)
Now my question is how can i make it that when player 1 has 300 currency after his match, then quits the game, Still have 300 currency when he boots the game back up ?
Is any of this Server stored ? If yes how would that work in a P2P Connection situation, would i have to make this Replicated or no ?
Unreal Engine doesn’t use P2P, they use a server / client model.
If you want to store information there are many, many ways to go about this. If you want it to be securely stored to prevent cheating you would need to have your own server hosting this type of data. You probably don’t want to setup this huge infrastructure when making your first game / a personal project.
Thank you for your Answer! reading those things alone clarified a lot, now what is this connection called where 1 Player is the Server aswell as a Client and the other Player connect to this Player ?
The word you are looking for is Listen Server. It is when the server is also playing as a client. The other word is dedicated host where you don’t play as a client and only host with a form of UI, usually a console window similarly to the Windows Command Prompt.