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!
old thread I know but there is an engine plugin for basic file io outside of the save game construct. I think save game is preferred but for simple testing this can be useful. My use case was I had a bunch of game generated data I needed to analyze in a spreadsheet so i needed a simple way to dump floats to a csv.