Over-riding file compare using viewer for special type INI

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Aaron
    Team Scooter
    • Oct 2007
    • 16000

    #16
    Hello,

    Thanks for the info. I'll start with how BC2 functioned:

    BC2 shipped with 2 main viewers: Folder Viewer and File Viewer. However, File Viewer only supported text and couldn't open other file types. Once you launched the File Viewer, you could select different Rules (INI, Java, Everything Else). You couldn't pick the Rule ahead of time using the graphical interface, but could use the Rules toolbar button, which looked like a Referee, to switch to a different Rule after the files are opened. The global Options dialog had a Rules section which controlled which Rule was picked by default; the topmost matching extension.

    BC2 also had additional downloads on its download page to install an MP3 Viewer, Picture Viewer, Hex Viewer, Data Viewer, etc.

    BC3 behaves very similarly to this. We renamed Viewer to Compare, and renamed the File Viewer to Text Compare since it only handles text files anyway. Rules became Formats and Session Settings, since we pulled out Importance from the Rule and made it a Session Setting. The basic loading is still very similar: you would open the Text Compare, then use the Format toolbar dropdown to switch the Format. We also included all the plug-ins (MP3, Picture, Hex, etc) by default, instead of making users download them separately.

    All major versions of Beyond Compare can be installed side by side on Windows if you would like to use different versions for different tasks, or use an older version while still learning the in's and out's of a newer version. An older license never expires, and we still host the latest release of each major version on our website.

    Format auto-naming was pretty poor in previous versions, but we've patched that up to have better auto-names in the latest BC4 release; it'll use your extension to help create an auto-name instead of "New Text Format". You can also edit any of these names in the Tools menu -> File Formats list to give them custom, easily identifiable names.
    In the global Tools menu -> File Formats dialog, the extra Everything Else are for each format type. Please note that the Icon is very important to the identification: the White paper is a Text format, the purple graph is a Table format, the 0110 is the Hex format, and the mountains are the Picture format. They are the 4 default formats for these compare types. When you are in a Text Compare session, the Format toolbar button dropdown will *only* show Text formats, so you'll only see one Everything Else at the bottom of that list.

    We don't have a method to pick the format used in a child compare on-the-fly. The quickest method here is to launch the files using the Text Compare, let it pick the default format, and then switch using the Toolbar. However, if you know certain files need certain formats, we do have some customization that can help, such as more complex File Format extension masks, or you can use a Folder Compare's Session menu, Session Settings, Misc tab to limit the formats that this specific folder will use. Unchecked formats here are disabled, and won't be used when you double click a file in this specific Folder Compare session. This session can then be saved for future use.
    Aaron P Scooter Software

    Comment

    • jmthomas
      Enthusiast
      • Feb 2010
      • 47

      #17
      New sorted .ini file (UTF-8) bug

      First, let me say the the viewers have evolved quite nicely over the last year. My complaints which started this forum have been heard!

      Second, I've got a problem report on sorted ini files with UTF-8. Only when sorted, a superfluous hyphen is being inserted. This is perhaps a regression of a problem discussed in the middle above.

      The raw data:


      Notice that the [0] has a leading hyphen and is out of place below.
      Sorted:


      Unsorted:
      Attached Files
      Last edited by jmthomas; 11-Mar-2016, 01:10 AM. Reason: fix links

      Comment

      • Aaron
        Team Scooter
        • Oct 2007
        • 16000

        #18
        Hello,

        Would it be possible to get this example file? That would help us parse and reproduce this issue. You can post, or email us at [email protected] with a link back to this forum thread for our reference.
        Aaron P Scooter Software

        Comment

        • jmthomas
          Enthusiast
          • Feb 2010
          • 47

          #19
          Done.

          Sorry I mixed files in my example. I sent the longer one. Either will fail.

          Comment

          • Aaron
            Team Scooter
            • Oct 2007
            • 16000

            #20
            Hello,

            Thanks. What do you mean by "mixed files in your example"? Did you send in two different emails, with one sample that fails and another that works? I only see one email and the attached ini sorts without the issue in your screenshot.

            In case we've gotten the wrong one, can you send a new email, and also include your current BCSupport.zip (Help menu -> Support; Export) and we should then be able to recreate the sort with your settings. We'll need the BCSupport.zip either way to help recreate the issue, and including a new .ini would ensure we have a good example pair.
            Aaron P Scooter Software

            Comment

            • jmthomas
              Enthusiast
              • Feb 2010
              • 47

              #21
              If you look at the data hex print, it is usrfields.ini and the first/seconds lines are [#0]/name=album...

              Then look at the two screen shots; they are columns.ini and the first/second lines are [#0]/width=46...

              This is why I said example (meaning post) shows mixed (two different) files, usrfields.ini and columns.ini.

              The single e-mail I sent was columns.ini. It has many more lines than usrfields.ini, so I said it was the larger file (than the usrfields.ini file).

              I hoped that a quick inspection of the UTF-8 header shown in the hex data print would be enough for the programmer to see how the "[#0]" characters were being corrupted into "-[#0]".

              To create another file to compare with the columns.ini I sent you, just copy it and swap the [#0] and [#1] section headers (leaving the section's data intact) in the copied file. In other words, on line 1 change [#0] to [#1], then scroll down a few lines and change [#1] to [#0] so the the section headers remain unique.

              I sent you a second e-mail with my BCsupport.zip.

              ... That e-mail also includes a report about another different problem where a folder move also triggered a compare involving the same folder, and since files were being moved underneath the compare, it got un-accessable file messages. (The compare should not have ever been started.)
              Last edited by jmthomas; 18-Mar-2016, 05:06 AM.

              Comment

              • Aaron
                Team Scooter
                • Oct 2007
                • 16000

                #22
                Hello,

                Using your settings and Columns.ini, I am not seeing the distorted - inserted when sorting. If you redownload your columns.ini from your Email's Sent box, and attempt to open it on your Desktop\, switching between Everything Else and INI Sorted, do you see the issue?

                One factor might be, your BCSupport.zip only includes the general INI Sorted format settings but not the conversion program. You would have to use the Tools menu -> Export to send us the INI Sorted format in its entirety. The INI Sorted version I have is the one available on our website, freshly downloaded for testing.

                http://www.scootersoftware.com/downl..._moreformatsv4
                Aaron P Scooter Software

                Comment

                Working...