V-Gears 0
Free Final Fantasy VII engine.
SaveMap Struct Reference

The structure of a savemap. More...

#include <SaveMap.h>

Collaboration diagram for SaveMap:

Classes

struct  Character
 Character record. More...
 
struct  FieldPosition
 Information about the player location in a field map. More...
 
struct  Item
 Items, weapons, armors and accessories in inventory. More...
 
struct  Materia
 A materia. More...
 
struct  MemoryBank
 Each of the memory banks dumped to the savemap. More...
 
struct  PhsSelection
 Selections related to the PHS. More...
 
struct  UserSettings
 User defined settings. More...
 
struct  WindowColor
 Contains the window colours, grouped by corner. More...
 

Public Types

enum class  INVENTORY_TYPE { ITEM = 0 , WEAPON , ARMOR , ACCESSORY }
 Type of inventory item record. More...
 

Public Attributes

u32 checksum
 Savemap checksum. More...
 
u8 preview [68]
 Bytes used for the save preview. More...
 
WindowColor window_colour
 Bytes for window color. More...
 
Character characters [9]
 Character records. More...
 
u8 party [3]
 IDs of characters in the party. More...
 
u8 unused_0
 Unused data. More...
 
Item inventory [320]
 Inventory list. More...
 
Materia materia [200]
 Unequipped materia list. More...
 
Materia stolen_materia [48]
 Materia stolen by Yuffie. More...
 
u32 unknown_0
 Unknown data. More...
 
u32 gil
 Current Gil. More...
 
u32 time
 Total played time, in seconds. More...
 
u32 countdown
 Countdown time, in seconds. More...
 
u8 unknown_1 [3]
 Unknown data. More...
 
u32 time_fractions
 Total played time, fractions of seconds. More...
 
u32 countdown_fractions
 Countdown time, fractions of seconds. More...
 
u32 module_redundant
 Current game module, redundant. More...
 
u16 module
 Current game module. More...
 
u16 location
 Saving location. More...
 
u8 unused_1
 Unused data. More...
 
FieldPosition field_position
 Position information on a field map. More...
 
u8 unknown_2 [3]
 Unknown data. More...
 
u8 encounter_step
 Information to seed encounter data. More...
 
u8 encounter_offset
 Information to seed encounter data. More...
 
u8 unused_2
 Unused data. More...
 
MemoryBank bank [5]
 Memory banks dumped in the savemap. More...
 
PhsSelection phs_lock
 Characters locked in the PHS. More...
 
PhsSelection phs_available
 Characters available in the PHS. More...
 
u8 unknown_3 [48]
 Unknown data. More...
 
UserSettings user_settings
 UserSettings. More...
 
u8 unknown_4 [8]
 Unknown data. More...
 

Detailed Description

The structure of a savemap.

Member Enumeration Documentation

◆ INVENTORY_TYPE

enum class SaveMap::INVENTORY_TYPE
strong

Type of inventory item record.

Enumerator
ITEM 

A normal item.

WEAPON 

A weapon.

ARMOR 

An armor.

ACCESSORY 

An accessory.

Member Data Documentation

◆ bank

MemoryBank SaveMap::bank[5]

Memory banks dumped in the savemap.

5 x 256 bytes.

◆ characters

Character SaveMap::characters[9]

Character records.

9 x 132 bytes.

0: Cloud. 1: Barret. 2: Tifa. 3: Aeris. 4: Red XIII. 5: Yuffie. 6: Cait Sith / Young Cloud. 7: Vincent / Sephiroth.

◆ checksum

u32 SaveMap::checksum

Savemap checksum.

4 bytes.

Unused in V-Gears. Never generated.

◆ countdown

u32 SaveMap::countdown

Countdown time, in seconds.

4 bytes.

◆ countdown_fractions

u32 SaveMap::countdown_fractions

Countdown time, fractions of seconds.

4 bytes.

Ignored by V-Gears.

◆ encounter_offset

u8 SaveMap::encounter_offset

Information to seed encounter data.

V-Gears ignores this.

◆ encounter_step

u8 SaveMap::encounter_step

Information to seed encounter data.

V-Gears ignores this.

◆ field_position

FieldPosition SaveMap::field_position

Position information on a field map.

5 bytes.

◆ gil

u32 SaveMap::gil

Current Gil.

4 bytes.

◆ inventory

Item SaveMap::inventory[320]

Inventory list.

320 x 2 bytes,

It includes items, unequipped weapons, unequipped armor and unequipped accessories.

◆ location

u16 SaveMap::location

Saving location.

2 bytes.

Todo:
Does this indicte the current field? The coordinates in a field? If so, 2 nybbles?

◆ materia

Materia SaveMap::materia[200]

Unequipped materia list.

200 x 4 bytes.

◆ module

u16 SaveMap::module

Current game module.

4 bytes.

1: Game saved in a field. 3: Game saved in the world map.

◆ module_redundant

u32 SaveMap::module_redundant

Current game module, redundant.

4 bytes.

Ignored by V-Gears.

◆ party

u8 SaveMap::party[3]

IDs of characters in the party.

3 x 1 byte.

◆ phs_available

PhsSelection SaveMap::phs_available

Characters available in the PHS.

2 bytes.

Available characters appear in the PHS.

◆ phs_lock

PhsSelection SaveMap::phs_lock

Characters locked in the PHS.

2 bytes.

Locked characters can be switched to or from the party.

◆ preview

u8 SaveMap::preview[68]

Bytes used for the save preview.

68 bytes

Unused in V-Gears, can be skipped.

◆ stolen_materia

Materia SaveMap::stolen_materia[48]

Materia stolen by Yuffie.

48 x 4 bytes.

◆ time

u32 SaveMap::time

Total played time, in seconds.

4 bytes.

◆ time_fractions

u32 SaveMap::time_fractions

Total played time, fractions of seconds.

4 bytes.

Ignored by V-Gears.

◆ unknown_0

u32 SaveMap::unknown_0

Unknown data.

Always 0xFFFFFFFF. 4 bytes.

◆ unknown_1

u8 SaveMap::unknown_1[3]

Unknown data.

3 bytes.

◆ unknown_2

u8 SaveMap::unknown_2[3]

Unknown data.

3 bytes.

◆ unknown_3

u8 SaveMap::unknown_3[48]

Unknown data.

48 bytes.

◆ unknown_4

u8 SaveMap::unknown_4[8]

Unknown data.

8 bytes.

◆ unused_0

u8 SaveMap::unused_0

Unused data.

Always 0xFF. 1 byte.

◆ unused_1

u8 SaveMap::unused_1

Unused data.

Always 0xFF. 1 byte.

◆ unused_2

u8 SaveMap::unused_2

Unused data.

Always 0xFF. 1 byte.

◆ user_settings

UserSettings SaveMap::user_settings

UserSettings.

21 bytes.

◆ window_colour

WindowColor SaveMap::window_colour

Bytes for window color.

12 bytes.


The documentation for this struct was generated from the following file: