Is there any way I can remove the 'Script shortcut.lua:27:' from the start of that log line?
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
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).
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.