[READ-ME] How to locate the game logs

Having trouble with the game? Report issues and get help here. Read this first!

Moderators: Forum Moderators, Developers

Forum rules
Before reporting issues in this section, you must read the following topic:

[READ-ME] How to locate the game logs

Postby Development Team » May 28th, 2017, 3:35 am

Windows

Wesnoth 1.14/development versions 1.13.2 and later:

Launch Wesnoth and choose the Version Image button on the title screen. From there, you can either choose the Open Log File option to view the current session's log in Notepad, or click on the folder icon next to the User Data box to launch Windows Explorer, and then browse to the logs subfolder. Wesnoth keeps the last 9 log files and automatically deletes older ones on startup.

If you cannot launch Wesnoth for some reason, see the instructions on the wiki for determining the location of your user data folder and the logs subfolder.

Wesnoth 1.12:

The game logs are written to the stderr.txt file found in the installation folder. However, if you installed Wesnoth to its default location or another system folder and are not running Windows XP, the system’s UAC virtualization mechanism will redirect writes to that folder elsewhere in your user profile.

For example, if you installed Wesnoth to C:\Program Files (x86)\Battle for Wesnoth 1.12, there will be a folder C:\Users\<yourname>\AppData\Local\VirtualStore\Program Files (x86)\Battle for Wesnoth 1.12 containing stderr.txt and, if you chose to keep saves and other user data in the game folder during installation, your user data folder as well. You can quickly get to the VirtualStore root folder by typing shell:local appdata into the address bar on Windows Explorer.

Note: The name of the Program Files folder may be translated to your OS language.


macOS

Right-click or Control-click the Wesnoth app, choose Show Package Contents, browse to Contents/MacOS, and open “Wesnoth”. This will start Wesnoth on a terminal emulator without having to type anything into a command line.

Alternatively, open your preferred terminal emulator and type:

Code: Select all
cd /Applications/Wesnoth.app/Contents/MacOS/
./Wesnoth


Then you can use the same output redirection techniques outlined below for Unix-like operating systems.


Linux/other Unix-like OS

In order to obtain the game's log output you will need to launch it from the command line on a terminal emulator (e.g. Terminal, Konsole, xterm), for example, by running wesnoth or wesnoth-1.14 depending on the version and how it was packaged for your platform.

You can optionally redirect it to a text file like this:

Code: Select all
# Replaces an existing file is there is one
wesnoth > your_text_file_here.txt 2>&1

# Appends to an existing file if there is one
wesnoth >> your_text_file_here.txt 2>&1


You can also redirect it to a text file and display it on the terminal emulator at the same time:

Code: Select all
# Replaces an existing file if there is one
wesnoth 2>&1 | tee your_text_file_here.txt

# Appends to an existing file if there is one
wesnoth 2>&1 | tee -a your_text_file_here.txt
User avatar
Development Team
Battle for Wesnoth
 
Location: #wesnoth @ irc.freenode.net

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 4 guests