Add new RPG Maker 2003 1.12 SavePicture chunks
MODIFY
.gitignore
.gitignore
@@ -37,10 +37,18 @@ CMakeFiles/
*.cmake
!/builds/cmake/Modules/Find*.cmake
/builds/cmake/lib/
+/builds/cmake/*.in
+
+# IntelliJ / CLion
+.idea/
# doxygen generated files
/doc/
+# Python generated files
+*.pyc
+__pycache__/
+
# other generated files
Makefile
*~

MODIFY
Makefile.am
Makefile.am
@@ -97,6 +97,7 @@ liblcf_la_SOURCES = \
src/generated/lsd_savemapinfo.cpp \
src/generated/lsd_savepartylocation.cpp \
src/generated/lsd_savepicture.cpp \
+ src/generated/lsd_savepicture_flags.cpp \
src/generated/lsd_savescreen.cpp \
src/generated/lsd_savesystem.cpp \
src/generated/lsd_savetarget.cpp \

MODIFY
builds/vs2015/liblcf.vcxproj
builds/vs2015/liblcf.vcxproj
<ClCompile Include="..\..\src\generated\lsd_savemapinfo.cpp" />
<ClCompile Include="..\..\src\generated\lsd_savepartylocation.cpp" />
<ClCompile Include="..\..\src\generated\lsd_savepicture.cpp" />
+ <ClCompile Include="..\..\src\generated\lsd_savepicture_flags.cpp" />
<ClCompile Include="..\..\src\generated\lsd_savescreen.cpp" />
<ClCompile Include="..\..\src\generated\lsd_savesystem.cpp" />
<ClCompile Include="..\..\src\generated\lsd_savetarget.cpp" />

MODIFY
builds/vs2015/liblcf.vcxproj.filters
builds/vs2015/liblcf.vcxproj.filters
<ClCompile Include="..\..\src\generated\lsd_savepicture.cpp">
<Filter>Source Files\LSD</Filter>
</ClCompile>
+ <ClCompile Include="..\..\src\generated\lsd_savepicture_flags.cpp">
+ <Filter>Source Files\LSD</Filter>
+ </ClCompile>
<ClCompile Include="..\..\src\generated\lsd_savescreen.cpp">
<Filter>Source Files\LSD</Filter>
</ClCompile>

MODIFY
generator/csv/enums.csv
generator/csv/enums.csv
@@ -118,6 +118,23 @@ SavePartyLocation,VehicleType,none,0
SavePartyLocation,VehicleType,skiff,1
SavePartyLocation,VehicleType,ship,2
SavePartyLocation,VehicleType,airship,3
+SavePicture,MapLayer,none,0
+SavePicture,MapLayer,parallax,1
+SavePicture,MapLayer,tilemap_below,2
+SavePicture,MapLayer,events_below,3
+SavePicture,MapLayer,events_same_as_player,4
+SavePicture,MapLayer,tilemap_above,5
+SavePicture,MapLayer,events_above,6
+SavePicture,MapLayer,weather,7
+SavePicture,MapLayer,animations,8
+SavePicture,MapLayer,windows,9
+SavePicture,MapLayer,timers,10
+SavePicture,BattleLayer,none,0
+SavePicture,BattleLayer,background,1
+SavePicture,BattleLayer,battlers_and_animations,2
+SavePicture,BattleLayer,weather,3
+SavePicture,BattleLayer,windows_and_status,4
+SavePicture,BattleLayer,timers,5
SaveSystem,AtbMode,atb_active,0
SaveSystem,AtbMode,atb_wait,1
State,Persistence,ends,0

MODIFY
generator/csv/fields.csv
generator/csv/fields.csv
@@ -806,6 +806,15 @@ SavePicture,current_sat,f,Double,0x0E,-1.0,double
SavePicture,effect_mode,f,Integer,0x0F,0,int
SavePicture,current_effect,f,Double,0x10,0.0,double
SavePicture,current_bot_trans,f,Double,0x12,0.0,double
+SavePicture,spritesheet_cols,f,Integer,0x13,1,Spritesheet columns
+SavePicture,spritesheet_rows,f,Integer,0x14,1,Spritesheet rows
+SavePicture,spritesheet_frame,f,Integer,0x15,0,Current spritesheet frame
+SavePicture,spritesheet_speed,f,Integer,0x16,0,Spritesheet speed (X frames per second)
+SavePicture,frames,f,Integer,0x17,0,Frames since ShowPicture
+SavePicture,spritesheet_play_once,f,Boolean,0x18,False,True: Play once and destroy; False: Loop spritesheet
+SavePicture,map_layer,f,Enum<MapLayer>,0x19,7,Layer to show picture on at the map
+SavePicture,battle_layer,f,Enum<BattleLayer>,0x1A,0,Layer to show picture on in battle
+SavePicture,effect_flags,f,SavePicture_Flags,0x1B,97,Bitflag. Persists Map/Battle change/end; Affected by Shake/Flash/Tint
SavePicture,finish_x,f,Double,0x1F,0.0,double
SavePicture,finish_y,f,Double,0x20,0.0,double
SavePicture,finish_magnify,f,Integer,0x21,100,int

MODIFY
generator/csv/flags.csv
generator/csv/flags.csv
@@ -20,3 +20,10 @@ EventPageCondition,item
EventPageCondition,actor
EventPageCondition,timer
EventPageCondition,timer2
+SavePicture,persist_map
+SavePicture,persist_battle
+SavePicture,unused_bit
+SavePicture,unused_bit2
+SavePicture,affect_tint
+SavePicture,affect_flash
+SavePicture,affect_shake

MODIFY
src/generated/lsd_chunks.h
src/generated/lsd_chunks.h
Binary files a/src/generated/lsd_chunks.h and b/src/generated/lsd_chunks.h differ

MODIFY
src/generated/lsd_savepicture.cpp
src/generated/lsd_savepicture.cpp
Binary files a/src/generated/lsd_savepicture.cpp and b/src/generated/lsd_savepicture.cpp differ

ADD
src/generated/lsd_savepicture_flags.cpp
src/generated/lsd_savepicture_flags.cpp
Binary files /dev/null and b/src/generated/lsd_savepicture_flags.cpp differ

MODIFY
src/generated/rpg_savepicture.h
src/generated/rpg_savepicture.h
Binary files a/src/generated/rpg_savepicture.h and b/src/generated/rpg_savepicture.h differ

MODIFY
src/reader_flags.cpp
src/reader_flags.cpp
#include "rpg_trooppagecondition.h"
#include "rpg_eventpagecondition.h"
#include "rpg_terrain.h"
+#include "rpg_savepicture.h"
// Templates
@@ -120,3 +121,4 @@ void Flags<S>::BeginXml(S& obj, XmlReader& stream) {
template class Flags<RPG::TroopPageCondition::Flags>;
template class Flags<RPG::EventPageCondition::Flags>;
template class Flags<RPG::Terrain::Flags>;
+template class Flags<RPG::SavePicture::Flags>;

MODIFY
src/reader_struct.h
src/reader_struct.h
#include "rpg_movecommand.h"
#include "rpg_treemap.h"
#include "rpg_rect.h"
+#include "rpg_savepicture.h"
// Forward declarations
@@ -56,6 +57,7 @@ struct TypeCategory {
template <> struct TypeCategory<RPG::TroopPageCondition::Flags> { static const Category::Index value = Category::Flags; };
template <> struct TypeCategory<RPG::EventPageCondition::Flags> { static const Category::Index value = Category::Flags; };
template <> struct TypeCategory<RPG::Terrain::Flags> { static const Category::Index value = Category::Flags; };
+template <> struct TypeCategory<RPG::SavePicture::Flags> { static const Category::Index value = Category::Flags; };
template <> struct TypeCategory<RPG::Equipment> { static const Category::Index value = Category::RawStruct; };
template <> struct TypeCategory<RPG::EventCommand> { static const Category::Index value = Category::RawStruct; };

Add new RPG Maker 2003 1.12 SavePicture chunks