Saving Variables to a Server

Hey.

I need some help with setting up some online functionality for my game where i can save and load some variables to and from a server.

It is quite simple, i have a few floats, float arrays and string arrays that i want to send and save from a client to a server.
Then I want to be able to recieve these values from the server to the client.

How can i go about doing this, preferably in blueprint?

I’ve googled alot trying to find good tutorials but cannot find anything that goes through everything step by step.

Any help that can lead me to the right direction is appreciated!

Thanks.

This would also help me out. Is anyone able to offer some tips on how to get started?

Amazing, thanks for sharing!

The solution i finally went with was using:

Which is a free highscore site where you can store up to 1000 scores and you add them just entering an adress/add etc.

Then you use the VaRest plugin for your UE4 project that can apply the URL/Send highscore, and Get the data from the server as well.
Suggest you check out some of the VaRest plugin guide videos.

Here is a few pictures of how i use it

  1. Here i use my adress and add and append whatever username the player chose.
  2. Here you can see im using a Json request to apply the URL that i made in 1.
  3. Here you can see when i pull data from the server, i put it in a JSON Array, then from it i can get score and name.
  4. Here you can see how i get the score, name and seconds. Unfortunately the server only supports ints on score, but you could like i do, split it so for example a score of 25.75, 25 would go to the score, 75 to the seconds, then when you pull it you append them together :slight_smile:

Hope this helps!

Look You can do this with httprequest, If you want a self hosted solution you can use nextjs or express to make an api that connects to a mongo db database then with the httprequest module you can connect to this api and send or receive this info, also you can setup an autentication system for this or use something like vercel to host this api if you want