Announcement

Collapse
No announcement yet.

Can I write array data in a file with Blueprint?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can I write array data in a file with Blueprint?

    Hi,
    I have been working on a race game, and I'd like to store the course of the player in a file so it can be visualize as a trajectory later on (or in the editor to be able to fine tune the track).
    I thought a good way to achieve that would be to store the position of the player every tick.

    I don't know C++ and I was looking for a way to store this information on a file in the HDD with Blueprint.
    Does anybody know a way to do that?
    Thank you in advance

    #2
    Originally posted by Guedin View Post
    Hi,
    I have been working on a race game, and I'd like to store the course of the player in a file so it can be visualize as a trajectory later on (or in the editor to be able to fine tune the track).
    I thought a good way to achieve that would be to store the position of the player every tick.

    I don't know C++ and I was looking for a way to store this information on a file in the HDD with Blueprint.
    Does anybody know a way to do that?
    Thank you in advance
    I've had a similar issue and what I found to be the best solution blueprint wise is the SaveGame Object. You can create your own custom SaveGame Object and put in a array variable into it that will keep it's state even after closing out of the game.

    So the idea with keeping an ticking array of locations would work, but you'd have to either manually delete that .sav file afterwards, or code in a solution that will overwrite it for you so you don't end up with garbage.

    There are plenty of tutorials on SaveGame Blueprint on youtube, and with a little research I'm sure you can find a way to mold it for your game.

    If you have any other questions, I can try to help, but again I'm just learning about this module, so I may not have all the answers!

    Comment


      #3
      You can use the built in "Save Game" mechanics for this type of thing.

      Comment

      Working...
      X