Punchey
06-30-2003, 04:09 AM
I saw it suggested here earlier (I think in reference to Alien Flux) that if your game crashes, you could have a flag set in the registry that would reveal this and then the next time your app starts, you prompt the user to submit an error report (ala WinXP).
So my question is, what's the easiest and/or best way to accomplish this? I have a log file in my case that is a simple text file that I'd like to simply upload to my website.
I thought about just using an HTML input type of "file" and then generating an HTML file and setting the "value" parameter to the path of the log file. But I've read that most browsers ignore the "value" parameter for security reasons. The easiest solution I can come up with in this vein is to put the text of the path to the file in the HTML document and then have the user copy and paste this text into the "file" text box. But even though this is quite simple, it's probably too much to ask of the user as most people would likely "bug out" if it looked like they had to do any "work" to submit the error report.
Ideally, I'd like to be able to simply pop up a MessageBox that says something like, "There was an error last time you ran X, would you like to submit an error report?" [YES][NO]. And if they click "Yes", that's the last thing the user has to do.
Any thoughts?
So my question is, what's the easiest and/or best way to accomplish this? I have a log file in my case that is a simple text file that I'd like to simply upload to my website.
I thought about just using an HTML input type of "file" and then generating an HTML file and setting the "value" parameter to the path of the log file. But I've read that most browsers ignore the "value" parameter for security reasons. The easiest solution I can come up with in this vein is to put the text of the path to the file in the HTML document and then have the user copy and paste this text into the "file" text box. But even though this is quite simple, it's probably too much to ask of the user as most people would likely "bug out" if it looked like they had to do any "work" to submit the error report.
Ideally, I'd like to be able to simply pop up a MessageBox that says something like, "There was an error last time you ran X, would you like to submit an error report?" [YES][NO]. And if they click "Yes", that's the last thing the user has to do.
Any thoughts?