-
Notifications
You must be signed in to change notification settings - Fork 51
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
How to create a log file #25
Comments
On Windows, open a command prompt/shell in the folder with the executable, and run:
where |
Thank you, that worked, then to turn off, is it "0"? What are the different log levels, if you don't mind? |
There is no way I can produce a log file in games that use DSOAL. I'm on Windows 11, I have tried with PowerShell and Command Prompt, I have tried to run both as administrator, I have changed the destination folder of the log file, none of this has helped. I run the game and no files are created (with all the games I have tried). I'm sure it is recognized by the games because I can activate EAX. Maybe in a future version of DSOAL you could have it produce a "minimal" log file automatically (like EAXEFX). |
Set those as environmental variables in the windows system properties. |
Thanks, it works! I hope that in the future you will also implement an eaxefx-style automatic minimal log. |
@Kappa971 Similar to our recent conversation in #34, this issue also seems to be caused by the wrong combination of registry and executable permissions, not sure it has to do with Windows 11 in particular. Like, setting variables normally will just apply to sub-processes called within the same CMD. So if you set variables via the user/system environment, the game should be able to read them without manual declaration via CMD BUT if the executable is in a protected folder (like Program files\*\) and is not run as admin, it will still not be able to create log files. So I upgraded a script I made to easily enable logging, now taking this into account by warning the user to run it as administrator to set variables as system environment variables that point to the script folder. |
It should be redirected to virtualstore AFAIU.
I mean, just about every program is run like so. |
Dang it, I keep forgetting VirtualStore is a thing. Temp also sounds like a good idea, but it's notorious for being a massive dumpster of logs and forgotten files. |
That is, for programs without a modern manifest at least.
I see what you mean, but AFAICT this only happens if you have frequent power outages.
It would be certainly better than nothing, I guess this conditional behaviour is really the best way eventually (even though, I don't know, I still feel like %temp% is more appropriate). |
I saw these instructions in another issue:
"To see if EAX is actually used by a game run it with DSOAL and these environment variables set:
DSOAL_LOGLEVEL=3
DSOAL_LOGFILE=1_dsoal_log.txt"
Sadly I don't get how you're supposed to set those variables as I haven't been able to get it working so far.
Can someone explain in more detail how to get DSOAL to create a log file?
The text was updated successfully, but these errors were encountered: