Page 1 of 1
log() - possible to remove script name?
Posted: Wed Sep 14, 2016 5:54 pm
by aubergine18
If I log something from a script, it includes the script name and line number, like this:
Code: Select all
1.695 Script shortcut.lua:27: Shortcut "SHIFT + E" triggers "earthquake" (none)*
Is there any way I can remove the 'Script shortcut.lua:27:' from the start of that log line?
Re: log() - possible to remove script name?
Posted: Wed Sep 14, 2016 6:45 pm
by Rseding91
Not currently. Why would you want to?
Re: log() - possible to remove script name?
Posted: Wed Sep 14, 2016 8:09 pm
by aubergine18
It was just to make the log output of script look a little more refined, so nothing vital.
I was going to say it would be useful to serpent dump data.raw to the logs to help with debugging data.lua and data-final-fixes.lua scripts, but for that sort of stuff it might be better having something like a data.write_file() (same as script.write_file() but available when data is being defined).