Hide Script

Viewing 4 reply threads
  • Author
    Posts
    • #18200
      Lingwisyer GC
      Participant

      Hi all,

      According to the user documentation, scripts can be hidden by adding 64 to the section flag.

      <Script_3D SectVersion="20" SectionFlags="0" SubIdent="0">
      to
      <Script_3D SectVersion="20" SectionFlags="64" SubIdent="0">

      Would this be the the required change? My issue is that when I do this, I get an error when I attempt to convert the XML back to GDL saying;

      XML validation failed; invalid byte ‘ȎҪȏ’ at position 1 of 1-byte sequence

      Ling

      AC18-23 AUS 4006
      Self-taught, bend it till it breaks.
      Win7 | E5620 x 2 | 24GB | K2200

    • #18201
      Péter Baksa
      Keymaster

      Hi Ling,

      this should work. Make sure the XML file encoding is UTF-8 with BOM.

      Péter Baksa
      Library Platform, Software Engineer
      GRAPHISOFT SE

    • #18202
      Lingwisyer GC
      Participant

      It is encoded to UTF-8 but how do you tell if it is with BOM?

      Ling.

      AC18-23 AUS 4006
      Self-taught, bend it till it breaks.
      Win7 | E5620 x 2 | 24GB | K2200

    • #18206
      Péter Baksa
      Keymaster

      Programmer’s text editors show it usually somewhere in the status bar (Notepad++, VS Code).
      To be very sure, use a hex editor, the first three bytes should be EF BB BF.

      Péter Baksa
      Library Platform, Software Engineer
      GRAPHISOFT SE

    • #18216
      Lingwisyer GC
      Participant

      Ah, rightio. I have just been using Sublime. Checking it in a hex editor, it would appear that my modification was changing the first three bytes. It works now.

      Thanks,
      Ling.

      AC18-23 AUS 4006
      Self-taught, bend it till it breaks.
      Win7 | E5620 x 2 | 24GB | K2200

Viewing 4 reply threads
  • The forum ‘Library build system’ is closed to new topics and replies.