From 2f4bc251af64e53d7d62ebb10eda7b945ae53902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tiago=20Concei=C3=A7=C3=A3o?= Date: Sat, 31 Dec 2022 17:45:47 +0000 Subject: [PATCH] Add n4.bt (010 template) --- Scripts/010 Editor/n4.bt | 57 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Scripts/010 Editor/n4.bt diff --git a/Scripts/010 Editor/n4.bt b/Scripts/010 Editor/n4.bt new file mode 100644 index 0000000..7bc3bbf --- /dev/null +++ b/Scripts/010 Editor/n4.bt @@ -0,0 +1,57 @@ +//------------------------------------------------ +//--- 010 Editor v8.0.1 Binary Template +// +// File: Anet N4 +// Authors: Tiago Conceição +//------------------------------------------------ + +BigEndian(); + +typedef struct() { + uint32 WhitePixelsCount ; // 44944 + uint32 XMin ; + uint32 YMin ; + uint32 XMax ; + uint32 YMax ; + 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