I have been using a logfile system based on a post by Monster (here) I have since updated to 2.58, and made what I believed were the necessary changes to keep it functional. However, it doesn’t seem to be working; there are no errors, but the actual log file is never saved to the computer.
The scripts of interest are logger.py, init.py, and quit,py. These are setup with the appropriate logic blocks using the camera.
You will notice some things I have printing out to the console to assist in debugging – and these are printing as expected.
Can anyone help me figure out why this is not saving the log to the disk? Feel free to ask any questions – I am happy to provide additional details.
The actual .blend file I am using imported the .bge, but the version I uploaded did not (I trimmed down the script to make it much easier to follow, and for some reason removed that portion.) However, in my actual .blend file, it turns out that was out of scope. In addition, it was dropping the .txt file in a different directory that I expected; I expected it to drop in the same directory as the .blend file, but it dropped it at the root of C:. I want to say that is how it used to work in 2.49, but I am not sure… and it works now. Turns out it was working all along :o