Page 1 of 1
renpy.log doesn't seem to work on macOS
Posted: Sun Dec 29, 2019 2:31 am
by greay
I've defined config.log in my options.rpy file.
But I can't find a file of that name anywhere. I'm on macOS. I've read elsewhere that it's in "the renpy folder" but I don't see anything of the sort in the application's folder, and I can't find anything in ~/Library.
Is there another step I need to take in order for the file to be created?
Re: how do you use renpy.log?
Posted: Sun Dec 29, 2019 3:33 am
by Per K Grok
greay wrote: ↑Sun Dec 29, 2019 2:31 am
I've defined config.log in my options.rpy file.
But I can't find a file of that name anywhere. I'm on macOS. I've read elsewhere that it's in "the renpy folder" but I don't see anything of the sort in the application's folder, and I can't find anything in ~/Library.
Is there another step I need to take in order for the file to be created?
OK. Never done that. Don't know what it is for, but got curious, so I tried it.
So in options.rpy I did
define config.log="pklog.txt"
Started the test game and ran some dialog (in the documentation I read that is one thing that goes into this log)
Then when I did not immediately find the log-file in the games folder I ran a search for the pklog.txt-file and I found it directly under the renpy-7.3.2-sdk-folder.
This is on a windows-machine. Hope this is helpful to you anyway.
Re: how do you use renpy.log?
Posted: Sun Dec 29, 2019 3:50 am
by greay
Per K Grok wrote: ↑Sun Dec 29, 2019 3:33 am
Then when I did not immediately find the log-file in the games folder I ran a search for the pklog.txt-file and I found it directly under the renpy-7.3.2-sdk-folder.
This is on a windows-machine. Hope this is helpful to you anyway.
Unfortunately, no.
The file in question is nowhere to be seen in the renpy-7.3.5-sdk (in my case) folder.
Re: how do you use renpy.log?
Posted: Sun Dec 29, 2019 4:47 am
by Per K Grok
greay wrote: ↑Sun Dec 29, 2019 3:50 am
Per K Grok wrote: ↑Sun Dec 29, 2019 3:33 am
Then when I did not immediately find the log-file in the games folder I ran a search for the pklog.txt-file and I found it directly under the renpy-7.3.2-sdk-folder.
This is on a windows-machine. Hope this is helpful to you anyway.
Unfortunately, no.
The file in question is nowhere to be seen in the renpy-7.3.5-sdk (in my case) folder.
To bad. But at least you now have had it confirmed that that is the place it should pop up in.
Re: renpy.log doesn't seem to work on macOS
Posted: Tue Dec 31, 2019 5:38 pm
by greay
interestingly, if I build a distribution and run the PC build through WINE the logfile appears. But it never shows up running the macOS build.
So it looks like there's a bug with renpy.log on macOS.
Re: renpy.log doesn't seem to work on macOS
Posted: Wed Jan 01, 2020 11:02 am
by rames44
Stupid question, but did you try specifying an absolute path? Something like "/Users/myAccount/Documents/renpy.log"? It's possible the "default location" is one that Ren'py doesn't have permission to write into.
Re: renpy.log doesn't seem to work on macOS
Posted: Wed Jan 01, 2020 5:02 pm
by trooper6
rames44 wrote: ↑Wed Jan 01, 2020 11:02 am
Stupid question, but did you try specifying an absolute path? Something like "/Users/myAccount/Documents/renpy.log"? It's possible the "default location" is one that Ren'py doesn't have permission to write into.
I just tried that...and it worked!
So I wonder how to do this with relative path?
Re: renpy.log doesn't seem to work on macOS
Posted: Thu Jan 02, 2020 7:22 pm
by rames44
This is just a guess, but if the default is to write to the SDK folder, that one is probably blocked from non-administrative writing if you put Ren’py in the Applications folder. If Ren’py is put in another area, relative paths may work. But point it at your Documents folder would probably suffice for most purposes. If you don’t want to use a full absolute path, a “user-relative” one might work. Like “~/Documents”
Re: renpy.log doesn't seem to work on macOS
Posted: Sun Jan 05, 2020 6:07 pm
by greay
moving the SDK folder & application to my home directory doesn't seem to work, unfortunately. I wish there were ... some sort of log I could look at to see what the error precisely is
Absolute paths seem to be the right approach, as a workaround, but that poses another problem – I do need this to work cross-platform.
Re: renpy.log doesn't seem to work on macOS
Posted: Mon Jan 06, 2020 12:12 pm
by trooper6
I’ll note, just in case, that log.txt isn’t where errors are logged. Log.txt is just the log of the dialogue the user saw. Error.txt is the log of errors, and that shows up in your game directory—also on a Mac.