renpy.log doesn't seem to work on macOS

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
greay
Newbie
Posts: 8
Joined: Sun Dec 29, 2019 1:51 am
Organization: Belief Engine
Location: Pacific NW, USA
Contact:

renpy.log doesn't seem to work on macOS

#1 Post by greay » 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?
Last edited by greay on Tue Dec 31, 2019 5:36 pm, edited 1 time in total.

User avatar
Per K Grok
Miko-Class Veteran
Posts: 882
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
itch: per-k-grok
Location: Sverige
Contact:

Re: how do you use renpy.log?

#2 Post by Per K Grok » Sun Dec 29, 2019 3:33 am

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.

greay
Newbie
Posts: 8
Joined: Sun Dec 29, 2019 1:51 am
Organization: Belief Engine
Location: Pacific NW, USA
Contact:

Re: how do you use renpy.log?

#3 Post by greay » 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.

User avatar
Per K Grok
Miko-Class Veteran
Posts: 882
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
itch: per-k-grok
Location: Sverige
Contact:

Re: how do you use renpy.log?

#4 Post by Per K Grok » Sun Dec 29, 2019 4:47 am

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.

greay
Newbie
Posts: 8
Joined: Sun Dec 29, 2019 1:51 am
Organization: Belief Engine
Location: Pacific NW, USA
Contact:

Re: renpy.log doesn't seem to work on macOS

#5 Post by greay » Tue Dec 31, 2019 5:38 pm

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.

rames44
Veteran
Posts: 232
Joined: Sun May 29, 2016 4:38 pm
Contact:

Re: renpy.log doesn't seem to work on macOS

#6 Post by rames44 » 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.

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: renpy.log doesn't seem to work on macOS

#7 Post by trooper6 » Wed Jan 01, 2020 5:02 pm

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?
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

rames44
Veteran
Posts: 232
Joined: Sun May 29, 2016 4:38 pm
Contact:

Re: renpy.log doesn't seem to work on macOS

#8 Post by rames44 » Thu Jan 02, 2020 7:22 pm

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”

greay
Newbie
Posts: 8
Joined: Sun Dec 29, 2019 1:51 am
Organization: Belief Engine
Location: Pacific NW, USA
Contact:

Re: renpy.log doesn't seem to work on macOS

#9 Post by greay » Sun Jan 05, 2020 6:07 pm

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 :lol:

Absolute paths seem to be the right approach, as a workaround, but that poses another problem – I do need this to work cross-platform.

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: renpy.log doesn't seem to work on macOS

#10 Post by trooper6 » Mon Jan 06, 2020 12:12 pm

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.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

Post Reply

Who is online

Users browsing this forum: Bing [Bot], span4ev