New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log relocation error #2999
Comments
Does the first location actually exist? That is, is there a |
I don't know that this is necessarily Window-specific - I tried the Steam build for the first time today and had no issues. I was pleasantly surprised that it uses the same paths for preferences, etc, as my normal development builds. |
It is Windows-specific because it's the only platform where log management exists, out of necessity. (Technical explanation for @Wedge009 and other devs follows. The person posting this report may prefer to stop reading after this line.) To elaborate, Wesnoth is a GUI application ( On all other platforms this is a non-issue since stdout and stderr are controlled from outside. |
Got it, thanks. Yes, I remember dealing with Console vs GUI for Win32 development... |
@shikadiqueen the folder exists but it's empty |
Not sure if this helps, but cwesnoth.cmd seems to run just fine |
That's to be expected since it disables log file management. Do you have any issues writing save files and installing add-ons when it's started like that, though? Also, do you have your (For Steam, the way to accomplish this would be to go into the game's properties, and set the Launch Options to |
We got some new information from Ethanil on Discord, who is also affected by this issue:
|
More info from Ethanil:
So, it appears that AVs are one reason why this issue can occur. |
I happened to run across this tidbit of information, related to the OneDrive problems:
https://blogs.msdn.microsoft.com/wsl/2016/06/15/wsl-file-system-support/ |
Probably just being nit-picky but is it |
I think this affects save files too, and not just log files |
Do you have any indication on how this can possibly affect save files? |
It was something I noticed when trying to play on a different computer that I don't currently have access to at the moment, so, no, I can't find the info that I thought indicated this at the moment; sorry... |
Would be good to have a current report on this. Not that I expect it should affect the underlying log location issue, but logs are written by default across platforms now, so this may not be Windows-specific any more. |
It might be best to close this issue and open one specifically for the OneDrive problem? This specific error message doesn't exist anymore since the logging system consolidation and if Wesnoth doesn't have write permission to a folder it needs then that's not really something Wesnoth can solve. |
If the error doesn't exist any more, then it sounds like this issue is resolved, at least for 1.17. |
I'm getting the following error when launching game through steam and after downloading the installer from wesnoth.org. The first path mentioned has no .log file and the second had files such as the one attached.
Battle for Wesnoth
Log relocation failed.
Runtime error: No such file or directory (2)
New log file path: C:\Users<username>\Documents\My Games\Wesnoth1.14/logs/wesnoth-20180502-221248-1412.log
Old log file path: C:\Users<username>\AppData\Local\Temp/wesnoth-20180502-221248-1412.log
This may indicate an issue with your Wesnoth launch configuration. If the problem persists, contact the development team for technical support, including the full contents of this message (copy with CTRL+C).
OK
wesnoth-20180502-221248-1412.log
The text was updated successfully, but these errors were encountered: