You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I open a file using open_encrypted_with_pass method with READ_WRITE mode, seek_end of the file (but without it, does not work either) and then try to store_string some text I 'm getting an error:
E 0:00:02.128 store_buffer: File has not been opened in write mode.
<C++ Error> Condition "!writing" is true.
<C++ Source> core/io/file_access_encrypted.cpp:241 @ store_buffer()
<Stack Trace> TestScene.gd:24 @ _input()
If I open a file with open method it works as expected.
I experienced this bug when I was trying to troubleshoot someone's problem on Reddit.
Steps to reproduce
Check minimal reproduction project. Just create a scene with Node node and attach this script to it.
I read the documentation more carefully. There is a information, that the open_encrypted_with_pass method "Opens an encrypted file in write or read mode.". So I believe, that opening a file in READ_WRITE mode should not be possible to avoid confusion. Besides, the open method have a similar description: "Opens the file for writing or reading, depending on the flags.". The only difference is the -ing postfix and lack of "mode" word. Maybe the documentation needs an update?
Godot version
v3.5.stable.mono.official [991bb6a]
System information
Windows 11
Issue description
When I open a file using
open_encrypted_with_pass
method withREAD_WRITE
mode,seek_end
of the file (but without it, does not work either) and then try to store_string some text I 'm getting an error:If I open a file with
open
method it works as expected.I experienced this bug when I was trying to troubleshoot someone's problem on Reddit.
Steps to reproduce
Check minimal reproduction project. Just create a scene with Node node and attach this script to it.
Minimal reproduction project
The text was updated successfully, but these errors were encountered: