Author Topic: Exporting stats to HTML and posting to Facebook problems  (Read 137 times)

maneframe150

  • Newbie
  • *
  • Posts: 9
    • View Profile
Exporting stats to HTML and posting to Facebook problems
« on: August 20, 2017, 09:47:29 AM »
Is it only me? I couldn't find anyone else posting on the same issues.

For the past 10 years I've been exporting the stats at the end of a tournament and then posting that file on my poker league's facebook group.

After TD3, it still worked.  After TD3 AND Windows 10, it has never worked the same.

First, when exporting, the windows file viewer is very weird.  You can't see other files in the folders and the folders directory is also weird compared to how it used to be seen. The only reason you see files in the attached picture, is because I manually added the .html to the end of the file name.

Once a file is saved, it saves itself as an html file but without the .html extension on the end of the file.  So, you don't see the little IE symbol next to the file.  I'm mentioning this, but don't know if it's relevant.

I upload these files to facebook without issue.  For 10 years everyone in the league has gotten the file notification, and was able to open the html file on their phones and tablets.  Now they cannot.  They get an "Invalid file format" error.

I place the .html at the end of the file myself, and the IE symbol appears and opens on a computer, however, if I try to upload it to Facebook I get an error saying there was an issuing with whatever it was that I was attempting to do.

Is ANYONE else having these issues?  Posting the stats to facebook is a huge part of my league.

I'm so frustrated with TD3 and Windows 10.  I want to go back to TD2 and Windows 8....

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 5429
    • View Profile
Re: Exporting stats to HTML and posting to Facebook problems
« Reply #1 on: August 22, 2017, 05:11:36 PM »
Quote
First, when exporting, the windows file viewer is very weird.  You can't see other files in the folders and the folders directory is also weird compared to how it used to be seen. The only reason you see files in the attached picture, is because I manually added the .html to the end of the file name.

Thank Microsoft for this.  This is my best effort workaround to the issue of Microsoft disabling the Load/Save file selection dialog, and the main driver (although there are a ton of other reasons) for looking to port the application to a new framework.  If you're seeing the built-in file selection dialog (like you are), it's because the system file selection dialog no longer works on your system (for the TD application).  The TD is using the built-in version as a backup.  If the backup wasn't there, your Load and Save buttons in the TD would appear to be useless.  It sucks (in my opinion), but it's better than losing the functionality entirely.

By the way, you can test this if you want.  Go to the Preferences tab and select the "Loading / Saving" category.  Then change the third option from the top to "Always use system file dialog".  Then go back to the Game tab and press the "Load" button.  I suspect nothing will happen when you press the button.

Quote
Once a file is saved, it saves itself as an html file but without the .html extension on the end of the file.  So, you don't see the little IE symbol next to the file.  I'm mentioning this, but don't know if it's relevant.

This is certainly NOT intended.  I put a lot of effort into that code to make it behave the same way the system file selection dialog works, even in cases where I think the way the system dialog behaves is weird or incorrect.  Even though it and behaves differently, I wanted it to be as similar as I could make it.

I just tried this when saving a tournament, and it works as expected.  I tried it with exporting a tournament to HTML, and it behaves the way you mentioned.  It might be because the file type selection has more than one possible match (*.html and *.htm) whereas when saving a tournament it only has one (*.tdt).  I'll definitely fix this.

Regardless, the contents of the file should be the same.   So if you simply rename the file, adding the .htm or .html extension, it should once again appear with the IE logo.  Also, as you noted, this really isn't relevant.  The file extension simply gives Windows Explorer information on how to deal with it when you view it or double-click it or right-click it, etc.

Quote
I upload these files to facebook without issue.  For 10 years everyone in the league has gotten the file notification, and was able to open the html file on their phones and tablets.  Now they cannot.  They get an "Invalid file format" error.

I place the .html at the end of the file myself, and the IE symbol appears and opens on a computer, however, if I try to upload it to Facebook I get an error saying there was an issuing with whatever it was that I was attempting to do.

Again, the contents should be the same, and while the export template has changed slightly, it's still valid HTML, and it hasn't changed in any significant way.  I can't imagine it not working due to any changes made to the template, given that it worked before.  However, I've never uploaded anything like that to Facebook, so I've got no experience there.

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 5429
    • View Profile
Re: Exporting stats to HTML and posting to Facebook problems
« Reply #2 on: August 22, 2017, 05:45:01 PM »
Thanks for pointing out the HTML extension issue.  This was indeed a bug (I guess I realized that in my previous post).  So this was only happening when saving files as HTML (*.html; *.htm).  Saving as other file types (.csv, .tdt, etc) didn't have the same issue, because the code didn't like adding extensions that were not exactly 3 digits.  Clearly it was being too restrictive with what constitutes a valid file extension.  I can't quite reproduce what the system dialog does, but I loosened it up a bit to fix this issue.  Will be in 3.4 final.  Thanks again.