diff --git a/Scripts/010 Editor/FileFormats.1pj b/Scripts/010 Editor/FileFormats.1pj index a482fe8..4dbf2bf 100644 --- a/Scripts/010 Editor/FileFormats.1pj +++ b/Scripts/010 Editor/FileFormats.1pj @@ -3,6 +3,7 @@ false true true + anet.bt ctb.bt ctb_decrypted.bt ctb_encrypted.bt @@ -12,7 +13,6 @@ gr1.bt lgs.bt mdlp.bt - n4.bt osf.bt osla.bt photons.bt diff --git a/Scripts/010 Editor/anet.bt b/Scripts/010 Editor/anet.bt new file mode 100644 index 0000000..d9da2dd --- /dev/null +++ b/Scripts/010 Editor/anet.bt @@ -0,0 +1,57 @@ +//------------------------------------------------ +//--- 010 Editor v8.0.1 Binary Template +// +// File: Anet N4, N7 +// Authors: Tiago Conceição +//------------------------------------------------ + +BigEndian(); + +typedef struct() { + uint WhitePixelsCount ; // White pixels region (border including corner pixels) + uint XMin ; // Bounding rectangle X + uint YMin ; // Bounding rectangle Y + uint XMax ; // Bounding rectangle Right + uint YMax ; // Bounding rectangle Bottom + uint BitsCount ; + ubyte LayerRLE[(BitsCount + 7) >> 3] ; +} layerData; + +struct HEADER { + uint VersionLen ; // 2 + wchar_t Version[VersionLen/2] ; // 3 + int NameLength ; + wchar_t FileName[NameLength/2] ; // File name without extension + int DescriptionLength ; + wchar_t Description[DescriptionLength/2] ; // File name without extension + + double XYPixelSize ; // mm + double LayerHeight ; // mm; from 0.03 to 0.08 + + uint BaseLayersCount ; // Number of extent filled additional first layers; do not use! + uint FilledBaseLayersCount ; // Number of fully filled first layers inside BaseLayersCount; do not use! + + uint ExposureTime ; // from 3 to 25 + uint BottomExposureTime ; // from 60 to 120 + uint BottomLayerCount ; // from 2 to 10 + uint LiftSpeed ; // mm/s, from 1 to 10 + uint LiftHeight ; // mm, from 3 to 10 + + uint PreviewResolutionX ; // 260 + uint PreviewResolutionY ; // 140 + uint PreviewSize ; // 72866 + ubyte PreviewContent[PreviewSize] ; // BMP image, BGR565 + double VolumeMicroL ; // µl + uint EncodedPrintTime ; // s; for unknown reason always broken in original slicer + uint LayerCount ; +} header; + + +struct LAYERS { + local int i; + for( i = 0; i < header.LayerCount; i++ ){ + layerData lD(); + } +} layers; + +uint SupportsCount ; // Supports count, always 0 \ No newline at end of file diff --git a/Scripts/010 Editor/n4.bt b/Scripts/010 Editor/n4.bt deleted file mode 100644 index 6268843..0000000 --- a/Scripts/010 Editor/n4.bt +++ /dev/null @@ -1,57 +0,0 @@ -//------------------------------------------------ -//--- 010 Editor v8.0.1 Binary Template -// -// File: Anet N4 -// Authors: Tiago Conceição -//------------------------------------------------ - -BigEndian(); - -typedef struct() { - uint32 WhitePixelsCount ; // White pixels region (border including corner pixels) - uint32 XMin ; // Bounding rectangle X - uint32 YMin ; // Bounding rectangle Y - uint32 XMax ; // Bounding rectangle Right - uint32 YMax ; // Bounding rectangle Bottom - uint32 BitsCount ; - ubyte LayerRLE[(BitsCount + 7) >> 3] ; -} layerData; - -struct HEADER { - uint32 VersionLen ; // 2 - wchar_t Version[VersionLen/2] ; // 3 - uint32 NameLength ; - wchar_t FileName[NameLength/2] ; // File name without extension - uint32 DescriptionLength ; - wchar_t Description[DescriptionLength/2] ; // File name without extension - - double XYPixelSize ; // mm - double LayerHeight ; // mm; from 0.03 to 0.08 - - uint32 BaseLayersCount ; // Number of extent filled additional first layers; do not use! - uint32 FilledBaseLayersCount ; // Number of fully filled first layers inside BaseLayersCount; do not use! - - uint ExposureTime ; // from 3 to 25 - uint BottomExposureTime ; // from 60 to 120 - uint32 BottomLayerCount ; // from 2 to 10 - uint32 LiftSpeed ; // mm/s, from 1 to 10 - uint32 LiftHeight ; // mm, from 3 to 10 - - uint32 PreviewResolutionX ; // 260 - uint32 PreviewResolutionY ; // 140 - uint32 PreviewSize ; // 72866 - ubyte PreviewContent[PreviewSize] ; // BMP image, BGR565 - double VolumeMicroL ; // µl - uint32 EncodedPrintTime ; // s; for unknown reason always broken in original slicer - uint32 LayerCount ; -} header; - - -struct LAYERS { - local int i; - for( i = 0; i < header.LayerCount; i++ ){ - layerData lD(); - } -} layers; - -uint32 SupportsCount ; // Supports count, always 0 \ No newline at end of file