From 428e5518966447bd502e3abd4f8288f59dbcc036 Mon Sep 17 00:00:00 2001 From: monkeyman192 Date: Fri, 26 Apr 2024 23:10:45 +1000 Subject: [PATCH] Add some extra manual alignments to fix two test failures --- Tools/auto_extract/extractor.py | 2 ++ .../Source/NMS/GameComponents/GcMultiColouriseComponentData.cs | 2 +- libMBIN/Source/NMS/GameComponents/GcScanEffectComponentData.cs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Tools/auto_extract/extractor.py b/Tools/auto_extract/extractor.py index c65948679..cea8da01b 100644 --- a/Tools/auto_extract/extractor.py +++ b/Tools/auto_extract/extractor.py @@ -134,6 +134,8 @@ EXTRA_ATTRIBUTES = { 'GcPlayerClothComponentData': ', Alignment = 0x10', 'GcClothComponentData': ', Alignment = 0x10', + 'GcMultiColouriseComponentData': ', Alignment = 0x10', + 'GcScanEffectComponentData': ', Alignment = 0x10', } # List of classes to avoid overwriting as the have custom deserialisation # methods. diff --git a/libMBIN/Source/NMS/GameComponents/GcMultiColouriseComponentData.cs b/libMBIN/Source/NMS/GameComponents/GcMultiColouriseComponentData.cs index 8043e2de3..7f335a380 100644 --- a/libMBIN/Source/NMS/GameComponents/GcMultiColouriseComponentData.cs +++ b/libMBIN/Source/NMS/GameComponents/GcMultiColouriseComponentData.cs @@ -3,7 +3,7 @@ namespace libMBIN.NMS.GameComponents { - [NMS(GUID = 0x2CF16B949B560BF, NameHash = 0x9D50983DD366009C)] + [NMS(GUID = 0x2CF16B949B560BF, NameHash = 0x9D50983DD366009C, Alignment = 0x10)] public class GcMultiColouriseComponentData : NMSTemplate { [NMS(Index = 0)] diff --git a/libMBIN/Source/NMS/GameComponents/GcScanEffectComponentData.cs b/libMBIN/Source/NMS/GameComponents/GcScanEffectComponentData.cs index e44142f9d..59d28a39e 100644 --- a/libMBIN/Source/NMS/GameComponents/GcScanEffectComponentData.cs +++ b/libMBIN/Source/NMS/GameComponents/GcScanEffectComponentData.cs @@ -3,7 +3,7 @@ namespace libMBIN.NMS.GameComponents { - [NMS(GUID = 0x7958D3C49BD96694, NameHash = 0x1FE13AB26770D8C5)] + [NMS(GUID = 0x7958D3C49BD96694, NameHash = 0x1FE13AB26770D8C5, Alignment = 0x10)] public class GcScanEffectComponentData : NMSTemplate { [NMS(Index = 0)]