From 95020ce2f103b781d65318059adc6768e16e4a6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tiago=20Concei=C3=A7=C3=A3o?= Date: Tue, 17 Aug 2021 20:17:08 +0100 Subject: v2.19.0 - **File formats:** - Add and remove some image types that can be open - (Add) `CanProcess` method to know if a file can be read under a format and to allow diferent formats with same extension - (Fix) `LiftHeightTotal` and `RetractHeight` was rounding to no decimals and returning wrong values - (Improvement) Round all float setters on `Layer` class - (Improvement) Decode/encode RAM usage and performance by processing in batch groups - **Pixel Dimming:** (#262) - (Add) Option "Lightening pixels" to add brightness/lightening instead of dimming/subtract pixels - (Fix) "Dim walls only" would reset body brightness by increase pixel brightness two times it value - **Pixel Arithmetic:** - (Change) Transpose "Pixel Dimming" to "Pixel Arithmetic" - (Improvement) New options and manipulations - **(Fix) Exposure time finder:** - Generate top staircase based on selected measure (px or mm) - Zebra bars when used in mm measures, it was using X density instead Y to calculate the thickness - Move 'Unit of measure' to 'Object configuration' - Custom text with wrong Y position when using out of portion resolutions/LCDs - **CTBv4:** - (Fix) More Unknown fields discovered and implemented - (Fix) Reserved table is 384 bytes instead of 420 - (Fix) When full encoding it was forcing to change to version 3. This also affected convertions. (#263) - (Fix) `BottomRetractHeight2` was being set to `BottomRetractSpeed2` - (Fix) `RetractHeight2` was being set to `RetracSpeed2` - (Fix) The PrintParametersV4 table address - (Fix) Generates invalid files to open with Chitubox and printers (#263) - (Fix) Better progress report - **(Add) PrusaSlicer printer notes variables:** - BottomLiftHeight2 - BottomLiftSpeed2 - LiftHeight2 - LiftSpeed2 - BottomRetractSpeed - BottomRetractSpeed2 - BottomRetractHeight2 - BottomRetractSpeed2 - RetractHeight2 - RetractSpeed2 - **UI:** - (Add) File - Open current file folder (Ctrl+Shift+L): Locate and open the folder that contain the current loaded file - (Improvement) Hide some virtual extensions from file open dialog filters - (Improvement) UI: Refresh active thumbnail when changed - (Change) Icon for File - Open and Open in a new file - (Change) Rename File - Extract to: Extract file contents - (Upgrade) AvaloniaUI from 0.10.6 to 0.10.7 - (Fix) PW0, PWM, PWMX, PWMO, PWMS: Unable to decode some files with AntiAliasing (#143) --- Scripts/010 Editor/ctb.bt | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'Scripts/010 Editor/ctb.bt') diff --git a/Scripts/010 Editor/ctb.bt b/Scripts/010 Editor/ctb.bt index e4be65a..c54041a 100644 --- a/Scripts/010 Editor/ctb.bt +++ b/Scripts/010 Editor/ctb.bt @@ -52,7 +52,7 @@ struct PREVIEW { uint Unknown3 ; uint Unknown4 ; - ubyte Data[ImageLength] ; + ubyte Data[ImageLength] ; }; struct PRINT_PARAMETERS { @@ -92,7 +92,7 @@ struct SLICER_INFO { float RestTimeAfterRetract ; float RestTimeAfterLift2 ; uint TransitionLayerCount ; - uint Padding1 ; + uint PrintParametersV4Address ; uint Padding2 ; uint Padding3 ; @@ -126,9 +126,9 @@ if(header.SlicerOffset > 0){ if(header.Version >= 4) { + FSeek(SlicerInfo.PrintParametersV4Address); struct PRINT_PARAMETERS_V4 { - char Disclaimer[320] ; float BottomRetractSpeed ; float BottomRetractSpeed2 ; uint Padding1 ; @@ -151,9 +151,13 @@ if(header.Version >= 4) uint DisclaimerLength ; // 320 ubyte Reserved[384] ; } printParametersV4; + + FSeek(printParametersV4.DisclaimerAddress); + char DisclaimerText[printParametersV4.DisclaimerLength] ;; + } -typedef struct() { +struct LAYER_DATA { float LayerPositionZ ; float LayerExposure ; float LightOffSeconds ; @@ -163,9 +167,9 @@ typedef struct() { uint Unknown2 ; uint Unknown3 ; uint Unknown4 ; -} LAYER_DATA; +}; -typedef struct() { +struct LAYER_DATAEX { LAYER_DATA LayerData ; uint TotalSize ; float LiftHeight ; @@ -179,7 +183,7 @@ typedef struct() { float RestTimeAfterLift ; float RestTimeAfterRetract ; float LightPWM ; -} LAYER_DATAEX; +}; typedef struct(int size) { -- cgit v1.2.3