Accessing log files

Post any general comments about GrassGames or about GrassGames' titles in general here.
Post Reply
User avatar
Aidan
Posts: 484
Joined: Jan 17, 2009

Accessing log files

Post by Aidan »

Here's the location of the Log files for games. You may need to access these if you encounter problems.

Log files are also available from the "About" screen in some games.

An alternative way of viewing game logs on Macs is explained in the second post.

Mac OS X 10.7 (Lion):
  • Go to Finder
  • From the main menu select "Go"
  • Hold down the option key first, then select "Library" from the "Go" menu
  • Go to the following folders:
    Application Support, GrassGames, <game name>
  • If you don't find the game there then try these folders instead:
    Preferences, GrassGames, <game name>

Mac OS X 10.6 an earlier:
  • Go to Finder
  • Select "File" then "New Finder Window"
  • Go to the following folders:
    Users, <your user name>, Library, Application Support, GrassGames, <game name>
  • If you don't find the game there then try these folders instead:
    Users, <your user name>, Library, Preferences, GrassGames, <game name>

Windows:
  • Double click the "My Computer" icon on your desktop
  • Press the "Alt" key to show the menu
  • Select "Folder Options" from the "Tools Menu"
  • Select "View" then "Advanced Settings"
  • Check the "Show Hidden Files and Folders" option.
  • Close the settings window
  • Go to the following directories:
    Windows XP:
    Local Disk C, Documents and Settings, <your user name>, Application Data, GrassGames, <game name>
    Windows Vista & 7:
    Local Disk C, Users, <your user name>, AppData, Roaming, GrassGames, <game name>
  • When you are finished with the log file, you can hide hidden files and folders again by repeating the first 5 steps.

Double click the log file you find to open it in a text editor. To send the contents in an e-mail, from the text editor's menu, select "Edit" ->"Select All", then "Edit" -> "Copy". Then, when writing your email message, click the right mouse button and select "Paste".
Aidan
GrassGames.com
User avatar
Aidan
Posts: 484
Joined: Jan 17, 2009

Re: Accessing log files

Post by Aidan »

Viewing logs using the Terminal app on Mac OS X
  • Open the Terminal app from the Utilities folder inside your Applications folder
  • In Terminal type in the letters c and then d and then a Space
  • Find the game in a finder window (usually on your Desktop or in your Downloads folder)
  • Drag the game itself into the terminal window (note: dragging from the Dock will NOT work - you must drag it from either your Desktop or from withing a Finder window)
  • The terminal should now display something like "cd /Users/.../Desktop/Hearts.app" or something similiar
  • Press Enter in the Terminal
  • Type in the following into Terminal: cd Contents
  • Press Enter in Terminal
  • Type in the following into Terminal: cd MacOS
  • Press Enter in Terminal
  • Type in the following into Terminal: ./
    (a dot followed by a backslash - do not add any space)
  • Press Tab then press Enter in Terminal
  • The game should now start and logs from the game will be displayed in the Terminal window.
  • Select the log texts with your mouse and then select "Edit" and "Copy" from the Terminal app menu to copy the logs.
Here's an example of what you might see in the Terminal window:

Code: Select all

$ cd /Users/aidan/Desktop/Hearts.app 
$ cd Contents
$ cd MacOS
$ ./Hearts 
0.0 | ------------------------------------------------------
0.0 | Program:  GrassGames' Hearts
0.0 | Arch:     Mac OSX 0x1095 Intel
...
Aidan
GrassGames.com
Post Reply