LcfSaveData, or LSD for short, is the file-format for save-slots of games made with RPG Maker 2000/2003. When no big patches are involved, an LSD-file contains everything necessary to continue where the game was previously saved as the engine is able to reconstruct its entire state with it when loading. In case the current map was edited since last time (determinded by different save-counter value in the LcfMapUnit), it will load the changed map-data instead of the backup saved to the LSD-file.
Each savefile starts with a byte that defines how long the format-identifying string next to it will be. Normally, this is always 11 (0x0B), followed by the text "LcfSaveData".
This is the file's core-structure.
Content | Delphi Class | Details | ||
---|---|---|---|---|
100 | 0x64 | Preview Data | TLcfgSaveHeader | TimeStamp, PartyLeader, Faces |
101 | 0x65 | System Data | TLcfgSystem | Scene, FrameCount, Windowskin, Switches, Variables, BGMs, SEs, Transitions, Flags, BattleBackground, SaveCount, LastSlot, ATB-Mode (2003) |
102 | 0x66 | Screen | TLcfgScreen | Tint, Flash, Shake, MapScreen, Animation, Weather |
103 | 0x67 | Pictures | TLcfgPicture TLcfgPictureItem | |
104 | 0x68 | Player | TLcfgParty | All Eventoid Data of the Player (Current Map, Position, etc.) |
105 | 0x69 | Boat | TLcfgShip | All Eventoid Data of the Boat |
106 | 0x6A | Ship | TLcfgShip | All Eventoid Data of the Ship |
107 | 0x6B | Airship | TLcfgShip | All Eventoid Data of the Airship |
108 | 0x6C | Actors | TLcfgPlayer TLcfgPlayerItem | All Actors' Data altered from Database |
109 | 0x6D | Party | TLcfgPartyInfo | PartyActors, Inventory, Money, Timers, Statistics, StepCount |
110 | 0x6E | Teleport List | TLcfgTeleport TLcfgTeleportItem | All saved Locations for Escape and Teleport Skills |
111 | 0x6F | Current Map | TLcfgMap | Backup of entire Map's Data where Game was saved |
112 | 0x70 | Panorama | TLcfgPanorama | Current State of Map's Panorama |
113 | 0x71 | Events | TLcfgScripter | Current State of EventProcessing on current Map |
114 | 0x72 | CommonEvents | TLcfgCommonEvent TLcfgCommonEventItem |
This structure contains data about everything the player will see in the engine's default file-menu.
Content | DataType | Details | ||
---|---|---|---|---|
1 | 0x01 | TimeStamp | Double | Uses Format of Delphi Class TDateTime |
11 | 0x0B | Name | String | The PartyLeader's current Name |
12 | 0x0C | Level | BER | The PartyLeader's current Level |
13 | 0x0D | HP | BER | The PartyLeader's current HP |
21 | 0x15 | FaceSet 1 | String | |
22 | 0x16 | FaceIndex 1 | BER | |
23 | 0x17 | FaceSet 2 | String | |
24 | 0x18 | FaceIndex 2 | BER | |
25 | 0x19 | FaceSet 3 | String | |
26 | 0x1A | FaceIndex 3 | BER | |
27 | 0x1B | FaceSet 4 | String | |
28 | 0x1C | FaceIndex 4 | BER |
This structure contains data about target-locations for escape- and teleport-skills (escape always is at the first index). The following table contains the substructure of how a single entry is built.
Content | DataType | Details | ||
---|---|---|---|---|
1 | 0x01 | MapID | BER | |
2 | 0x02 | X | BER | |
3 | 0x03 | Y | BER | |
4 | 0x04 | SwitchFlag | Boolean | Activate Switch after Teleport? |
5 | 0x05 | SwitchID | BER | ID of Switch to activate if Flag was set |