Page 1 of 1

Add "copy to clipboard" to mod error dialogue.

Posted: Sat Sep 07, 2019 11:30 pm
by eradicator
What?

Add a [Copy] button to the "Notice" message to make useful bug reports much more intuitive.

Why?

I've been into factorio modding for years, and only today someone told me that it's actually possible to *select* the text in a notice box. I've seen hundrets of bugreports where people make screenshots of the error message to upload it to some random image hoster to then post a link to the picture on the forum. This could all be much easier if the Notice provided a simply "[Copy]" button like the one in the blueprint string export window.

Re: Add "copy to clipboard" to mod error dialogue.

Posted: Sun Sep 08, 2019 11:36 am
by Pi-C
+1
eradicator wrote:
Sat Sep 07, 2019 11:30 pm
I've been into factorio modding for years, and only today someone told me that it's actually possible to *select* the text in a notice box. I've seen hundrets of bugreports where people make screenshots of the error message to upload it to some random image hoster to then post a link to the picture on the forum.
Yes, I always wondered why people post the screen shots of error messages instead of just plain text. Reminds me a lot of those who save the screenshot of an error message as PDF, then import the PDF into MS Word and attach the word document to a mail instead of mailing you three lines of plain text. :-)

That being said, I *think* I used "copy text from notice" before, but since doing more with Factorio than just playing, I always start the game from the command line and copy directly from logging output. Perhaps it would help to add a notice to error messages that the text of the message can be copied from $PATH_TO_LOGFILE, or even suggest to send the complete logfile when reporting errors? (The latter may be too much in many cases, just the error message would usually be enough -- in some cases it might be good to have the complete log though to see whether there might be issues with other mods.)

Re: Add "copy to clipboard" to mod error dialogue.

Posted: Mon Sep 09, 2019 10:29 am
by darkfrei
Here must be some easier way to report the mod author about the mod error by data stage and control stage.

The one-click "copy to clipboard" is a small part of solution for it.

Re: Add "copy to clipboard" to mod error dialogue.

Posted: Mon Sep 09, 2019 11:40 am
by Pi-C
darkfrei wrote:
Mon Sep 09, 2019 10:29 am
Here must be some easier way to report the mod author about the mod error by data stage and control stage.
Automatic mails to mod author, perhaps? Obviously, it would be a bad idea if the game would send a mail to that address directly (privacy reasons), so on crash, compressed logfile, unlocalised error message, and mod name should be sent to the mod portal where a script forwards the log file to the email address associated with the mod author.

How about a bug in a popular mod with hundreds or even thousands of users? The modder's mail account could easily be flooded in such a case. -- Well, if the mail forwarder kept count of received and sent mails about a particular error (store unlocalised error message), it could forward only the first log file for a particular error and discard all following! Just send one mail, keep the counter running, and at the end of a day (or a week, or whatever period you like), send a mail like this:
$MOD_NAME:
This error has been reported $X times during the past $PERIOD_OF_TIME:

$ERROR_MESSAGE"
Ideally, the mail would also contain a link that the mod author could use to delete the counter when the bug is fixed. Hmm, sounds almost too easy -- where is my mistake? :-D

Re: Add "copy to clipboard" to mod error dialogue.

Posted: Mon Sep 09, 2019 5:08 pm
by darkfrei
Not the log file, but the error message and game/mod version, you can choose the latest versions only, multiple times of the same error gives bigger number by same bug report, but not more bug reports.

Normally modders need not more than just a message with only screenshot or text of the error:

Re: Add "copy to clipboard" to mod error dialogue.

Posted: Mon Sep 09, 2019 5:44 pm
by Pi-C
darkfrei wrote:
Mon Sep 09, 2019 5:08 pm
Not the log file, but the error message and game/mod version, you can choose the latest versions only, multiple times of the same error gives bigger number by same bug report, but not more bug reports.
That's what I meant: Don't spam the modder with countless bugreports, but send only one + number of times it was reported. First time a bug report is submitted, it could include the logfile. I agree that this would increase the load for the proxy server passing on the bug reports to modders. (Just managed to spam my local logfile by accidentally logging recursively all key/value pairs below data.raw.entity[$relevant-entity] -- in a for-loop with about 80 iterations. When I interrupted the loading process, Factorio had written almost 1 GB to the log. :-D)
Normally modders need not more than just a message with only screenshot or text of the error:
Yes, normally, if only their own mod is concerned. But sometimes there may be errors that only appear if certain other mods are present. Perhaps a list of the installed mods would be better than the complete logfile. :-)

Re: Add "copy to clipboard" to mod error dialogue.

Posted: Mon Sep 09, 2019 6:41 pm
by eradicator
I'd just like an obvious button. Not an overengieered cloud-based automatic logging service that would trigger the whole opt-in/opt-out flameware again (and is unrealistic anyway).

Re: Add "copy to clipboard" to mod error dialogue.

Posted: Tue Dec 15, 2020 11:02 am
by AlveKatt
eradicator wrote:
Sat Sep 07, 2019 11:30 pm
I've been into factorio modding for years, and only today someone told me that it's actually possible to *select* the text in a notice box.
I had no idea until you told me, either...

I fully support this suggestion.

Re: Add "copy to clipboard" to mod error dialogue.

Posted: Tue Dec 15, 2020 11:33 am
by picklock
+1 for this suggestion.

It would be nice to have this.