By default, the dedicated server script logfile is set to the directory where the scripts are located - this doesn't usually work as on Linux/Unix-like systems, the default location of the scripts cannot be written by a normal user. This may cause confusion or temptation to run OLX as root/superuser which is not recommended. But how should this be fixed?
1) Change the default path (in dedicated_config.py) to something like "~/.OpenLieroX/dedicated_control.log". This is simple but it might be annoying for someone who uses different file paths in OLX config.
2) Change the IO script to search for a writable path by using getWriteFullFileName(...). This way it gets written to a path defined in OLX config. But should this be avoided in order to keep the messageLog() function as simple and robust as possible?
By default, the dedicated server script logfile is set to the directory where the scripts are located - this doesn't usually work as on Linux/Unix-like systems, the default location of the scripts cannot be written by a normal user. This may cause confusion or temptation to run OLX as root/superuser which is not recommended. But how should this be fixed?
1) Change the default path (in dedicated_config.py) to something like "~/.OpenLieroX/dedicated_control.log". This is simple but it might be annoying for someone who uses different file paths in OLX config.
2) Change the IO script to search for a writable path by using getWriteFullFileName(...). This way it gets written to a path defined in OLX config. But should this be avoided in order to keep the messageLog() function as simple and robust as possible?