Page 1 of 1

Is there smth like read_file?

Posted: Wed Jul 06, 2016 2:05 pm
by avatarDr
We have write_file method that allows custom data to be stored. Is there corresponding method exists to get that data?
Specifically I'm looking for a way to save/load player's inventory to transfer it from one map to another. Probably, there is another way to do so?

Re: Is there smth like read_file?

Posted: Wed Jul 06, 2016 3:03 pm
by DedlySpyder
No you can't read files. I think the reasoning is for Multiplayer desyncs.

You could try to do something like blueprint string though.

Re: Is there smth like read_file?

Posted: Wed Jul 06, 2016 3:24 pm
by avatarDr
DedlySpyder wrote:No you can't read files. I think the reasoning is for Multiplayer desyncs.
Well, this can be easily avoided by making file saving-loading have player as argument.
I'm new here, is it reasonable to write 'bout this issue in interface request section?

Re: Is there smth like read_file?

Posted: Wed Jul 06, 2016 4:22 pm
by Zeblote
avatarDr wrote:I'm new here, is it reasonable to write 'bout this issue in interface request section?
Yes. Maybe at some point they will realize that a file API is really essential.

Re: Is there smth like read_file?

Posted: Wed Jul 06, 2016 4:35 pm
by DedlySpyder
You can try, but it's been suggested and shot down before IIRC