copy asset file from .rpa to temp directory (help!)

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
cimokudo
Newbie
Posts: 3
Joined: Tue Jul 24, 2018 1:34 am
Completed: ATM_OS a RenPy based ATM Simulator
Projects: WinFn, GoTran, RenLoop
Organization: Cimosoft Codelicious, Org
Deviantart: cimokudo
Github: cimo95
Discord: arachmadiputra
Contact:

copy asset file from .rpa to temp directory (help!)

#1 Post by cimokudo » Tue Jun 11, 2019 11:37 pm

hi there, im newbie here
i stuck on how to copy my asset file (actually a .png image file) to windows temp directory (%temp%)

step i done :
1. im using copy, copy2, copyfile and other copy method from shutil
2. read the file using renpy.file().read() then write using open().write()

those method keep return 0kb file which is a blank file,
anyone can help?

thanks ☺️🙏
Error : Unable to fetch user signature.

Post Reply

Who is online

Users browsing this forum: Google [Bot], Ocelot