iOS I/O difficulties

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
Atikin
Newbie
Posts: 3
Joined: Thu Jan 05, 2017 11:41 pm
Contact:

iOS I/O difficulties

#1 Post by Atikin » Wed Nov 29, 2017 4:33 pm

Hello. I'm trying to port Doki Doki Literature Club on iOS now, but I hit one problem.

Program can't write files in their own .app and I decided to change all paths to their Documents folder.

Code: Select all

renpy.file(config.savedir + "/characters/sayori.char")
But this string cannot find this file

I tried this:

Code: Select all

$ savedir = config.savedir.replace("\\", "/")
...
renpy.file(savedir + "/characters/sayori.char")
No effect

After all I fired up and tried links. I created link in .app folder, pointing inside Documents (".../DDLC.app/base/cache" -> ".../Documents/cache")
No effect

What can I do?
Attachments
image.jpg
../Documents/characters/ folder
image.jpg
Exception pt.2
image.jpg
Exception

Post Reply

Who is online

Users browsing this forum: No registered users