Script error log

Feedback on past, current, and future development.
Post Reply
User avatar
KelvinShadewing
Posts: 12
Joined: 12 Mar 2015, 14:24
Contact:

Script error log

Post by KelvinShadewing »

I've noticed there doesn't seem to be any log files anywhere. Is there any chance we could get a log for script errors when loading plugins? It would be nice to know which ones don't work and why (if the cause can be identified) so that I can work on fixing them to run in OpenMW.
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: Script error log

Post by Zini »

Scripts aren't compiled or run on loading by default. Therefore there is nothing to log.

You can force compilation of scripts on startup by using the --script-all switch. Using --script-verbose will provide more detailed reports. See ./openmw --help for more details.
User avatar
KelvinShadewing
Posts: 12
Joined: 12 Mar 2015, 14:24
Contact:

Re: Script error log

Post by KelvinShadewing »

By switches, you mean command line arguments, right?

[EDIT]
OK, the console output shows me what scripts are failing, but I can't copy it for review or anything, so I have to leave OMW running or take a ton of screenshots. Can we at least have the output print to a text file?
User avatar
DestinedToDie
Posts: 1181
Joined: 29 Jun 2015, 09:08

Re: Script error log

Post by DestinedToDie »

Can't you already check if a script fails in Open-CS? It even tells you what line failed.
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: Script error log

Post by Zini »

OK, the console output shows me what scripts are failing, but I can't copy it for review or anything,
Why? I am sure the console on any system would allow that; even the crappy Windows console.

Anyway, you could just redirect output to a file.
maqifrnswa
Posts: 180
Joined: 14 Jan 2013, 03:57

Re: Script error log

Post by maqifrnswa »

Zini wrote:
Anyway, you could just redirect output to a file.
I was going to suggest this
Post Reply