Skip to main content
Since DIRECT 6.1.0.66, you can compile command-line arguments into a launcher. Use this to turn on debug logging all the time, set a log folder, expire old logs or use any other argument in Core command line.

Requirements

  • Deployment scripts version 3.3 or newer.

Add arguments with builder.py

Use --command_line when you run builder.py:
Repeat it for more arguments. This turns on debug logging and writes logs to c:\temp\:
In a JSON configuration file, list the arguments in an array. This turns on debug logging, creates a log per day and deletes logs after 10 days:
build_windows.json

Set a custom log folder

debugdir sets where the launcher writes logs. You can use core expandable strings for user- or machine-specific folders:
If an argument has spaces, wrap it in quotes and escape the quotes with backslashes:
The launcher then runs with --debug --debugdir="{UserAppData}My Product".
Don’t write logs next to the launcher. Players may install it in a protected folder such as c:\Program Files\My Product\. --debugdir is relative to the launcher’s working folder, so --debugdir=log would try to write to c:\Program Files\My Product\log\ and cause a fatal error. Use a macro or full path to a folder that doesn’t need elevated privileges.

Check the compiled arguments

Double-click the launcher, then open the log folder. By default, host.developer.log is written to:
  • Windows: C:\Users\USERNAME\AppData\LocalLow\CompanyName\ProductName (DIRECT 6.1.2 and newer)
  • macOS: /Users/USERNAME/Library/Logs/ProductName/
  • Linux: ~/.local/share/CompanyName/ProductName/
The log has a Command Line line that lists the arguments used: