• Dear Cerberus X User!

    As we prepare to transition the forum ownership from Mike to Phil (TripleHead GmbH), we need your explicit consent to transfer your user data in accordance with our amended Terms and Rules in order to be compliant with data protection laws.

    Important: If you accept the amended Terms and Rules, you agree to the transfer of your user data to the future forum owner!

    Please read the new Terms and Rules below, check the box to agree, and click "Accept" to continue enjoying your Cerberus X Forum experience. The deadline for consent is April 5, 2024.

    Do not accept the amended Terms and Rules if you do not wish your personal data to be transferred to the future forum owner!

    Accepting ensures:

    - Continued access to your account with a short break for the actual transfer.

    - Retention of your data under the same terms.

    Without consent:

    - You don't have further access to your forum user account.

    - Your account and personal data will be deleted after April 5, 2024.

    - Public posts remain, but usernames indicating real identity will be anonymized. If you disagree with a fictitious name you have the option to contact us so we can find a name that is acceptable to you.

    We hope to keep you in our community and see you on the forum soon!

    All the best

    Your Cerberus X Team

Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)

aleana

New member
Joined
Sep 7, 2017
Messages
12
Trying to read and write a simple app settings txt file on ios. The above error has popped up no matter what I try. Can anyone help? I'm using Filestream.Open(...) and WriteString(...)

Also, in my code, I've made it WriteString(...) to create a file with default settings if no file is found. The funny thing is: the file exists.
 
You can't write to your data folder. You need to copy the content of your data folder via code to your internal folder. Then read and write from there.
 
Understood. No data folder writing. Would you know the interal folder's path from the scope of an app? I'm literally at a standstill until this is resolved.

BTW, thank you for responding so quickly.
 
Last edited:
I am not at my computer at moment. There are seversl ways to do it. Depending on how you have stores your settings.

Loadstate/Savestate

For other methods read up resource paths inside the docs. Tommorow i will create a tutorial as you are not the first who is asking.
 
Oh my gosh. Thank you. Both of you. I was typing it incorrectly (forgot to specify cerberus:.........)

Finally able to move forward!
 
Ok. So you got it working? Awesome. Would you mine to share your code where you read and write your settings in a litte how to?
 
Absolutely. Just gimme a bit to gather screenshots from both Win10 and macOS
 
helper.png

It turns out that this isn't as brain-racking as I originally thought. Even though there were a lot of examples out there, none of them specified, explicitly, the need to add the "cerberus://" prefix unless the TARGET is "glfw" on windows. (the original documentation does, as pointed out by dawlane) - which is why I couldn't fathom what I was missing :p.

side note: SaveState and LoadState didn't seem to work right on ios/xcode. I can only assume it was due to the same requirement as above.

Thank you MikeHart and dawlane, btw.
 
Last edited:
That you for your explanation. The documentation needs to be updated for sure. I hope to find time soon for it.
Personally I have only used SaveState and LoadState on Android to store settings and scores. And it worked but that was some years ago. Need to check it out again.
 
Back
Top Bottom