The handy script below (x4-debug.bat) can be used as a shortcut to start x4 in debug mode. You get:
- All debug messages turned on
- All debug logs sent to a timestamped file, so you dont lose anything
Copy paste the code in the file below, then update the value for X4_EXE_PATH
- change it to wherever X4.exe is located.
Your debug logs will be available in the Documents\Egosoft\X4 Foundations\
folder.
Consider using a log analysis tool like glogg which can help you sort, filter, and find data in the logs.
jan12342203
Scriptlogfiles are named and put in a subfolder within the Script. The Command is
<debug_to_file name="'FILENAME'" directory="'DIRECTORYNAME'" text="'Line to be logged'"/>
you can omit the Directory to put it directly in the logs, but its not a single file you can name via startup parameter, its possibly lots of them.