From fa73e7fe3de9a015da6e1ddbb75df91f999686e8 Mon Sep 17 00:00:00 2001 From: Matthew Fioravante Date: Sat, 13 Oct 2018 16:09:30 -0400 Subject: [PATCH] Add Map Chunk 0x5A --- generator/csv/fields.csv | 1 + src/generated/lmu_chunks.h | 2 ++ src/generated/lmu_map.cpp | 1 + src/generated/rpg_map.h | 1 + 4 files changed, 5 insertions(+) diff --git a/generator/csv/fields.csv b/generator/csv/fields.csv index 4db3b2231..4b65fb68c 100644 --- a/generator/csv/fields.csv +++ b/generator/csv/fields.csv @@ -691,6 +691,7 @@ Map,generator_tile_ids,f,Vector,0x3E,,0,Array - Short Map,lower_layer,f,Vector,0x47,,0,Array - Short Map,upper_layer,f,Vector,0x48,,0,Array - Short Map,events,f,Array,0x51,,0,Array - RPG::Event +Map,save_count_2k3e,f,Int32,0x5A,0,1,Integer - Used by steam version of rm2k3 instead of 0x5B. Map,save_count,f,Int32,0x5B,0,0,Integer SaveTitle,timestamp,f,Double,0x01,0.0,0,double - timestamp in Delphi's TDateTime format SaveTitle,hero_name,f,String,0x0B,,0,char[]: hero name diff --git a/src/generated/lmu_chunks.h b/src/generated/lmu_chunks.h index 4cc16c7ce..5bbf5cbb2 100644 --- a/src/generated/lmu_chunks.h +++ b/src/generated/lmu_chunks.h @@ -162,6 +162,8 @@ namespace LMU_Reader { upper_layer = 0x48, /** Array - RPG::Event */ events = 0x51, + /** Integer - Used by steam version of rm2k3 instead of 0x5B. */ + save_count_2k3e = 0x5A, /** Integer */ save_count = 0x5B }; diff --git a/src/generated/lmu_map.cpp b/src/generated/lmu_map.cpp index 63435f11c..e2c442df2 100644 --- a/src/generated/lmu_map.cpp +++ b/src/generated/lmu_map.cpp @@ -50,6 +50,7 @@ LCF_STRUCT_FIELDS_BEGIN() LCF_STRUCT_TYPED_FIELD(std::vector, lower_layer, 0), LCF_STRUCT_TYPED_FIELD(std::vector, upper_layer, 0), LCF_STRUCT_TYPED_FIELD(std::vector, events, 0), + LCF_STRUCT_TYPED_FIELD(int32_t, save_count_2k3e, 1), LCF_STRUCT_TYPED_FIELD(int32_t, save_count, 0), LCF_STRUCT_FIELDS_END() diff --git a/src/generated/rpg_map.h b/src/generated/rpg_map.h index c4c0d2c30..8a285a91e 100644 --- a/src/generated/rpg_map.h +++ b/src/generated/rpg_map.h @@ -88,6 +88,7 @@ namespace RPG { std::vector lower_layer; std::vector upper_layer; std::vector events; + int32_t save_count_2k3e = 0; int32_t save_count = 0; }; }