![]() |
V-Gears 0
Free Final Fantasy VII engine.
|
#include <KernelDataInstaller.h>
Classes | |
struct | AccessoryData |
Data for each accessory. More... | |
struct | ArmorData |
Data for each armor. More... | |
struct | AttackData |
Data for each attack. More... | |
struct | CharacterData |
Character data. More... | |
struct | CommandData |
Data for each command. More... | |
struct | GrowthData |
Battle data. More... | |
struct | ItemData |
Data for each items. More... | |
struct | KeyItemData |
Data for each key item. More... | |
struct | MateriaData |
Data for each materia. More... | |
struct | MateriaStatBonus |
Stat bonuses given by equipping materia. More... | |
struct | StatBonus |
Bonus in stat givven by weapons or armor. More... | |
struct | StatCurve |
Stat curve. More... | |
struct | StatusEffect |
struct | SummonNameData |
List of summon names. More... | |
struct | Target |
List of target selection options. More... | |
struct | WeaponData |
Data for each weapon. More... | |
Public Member Functions | |
KernelDataInstaller (std::string path) | |
Constructor. More... | |
~KernelDataInstaller () | |
Destructor. More... | |
void | ReadPrices () |
Reads items and materia prices from the executable. More... | |
int | ReadCommands () |
Reads the command data from the kernel. More... | |
void | WriteCommands (std::string file_name) |
Saves command data to a Lua script. More... | |
int | ReadAttacks () |
Reads the attack data from the kernel. More... | |
void | WriteAttacks (std::string file_name) |
Saves command data to a Lua script. More... | |
int | ReadCharacters () |
Reads character data from the kernel. More... | |
void | WriteCharacters (std::string file_name) |
Saves character data to a Lua script. More... | |
void | ReadGrowth () |
Reads growth data from the kernel. More... | |
void | WriteGrowth (std::string file_name) |
Saves growth data to a Lua script. More... | |
int | ReadItems () |
Reads the items from the kernel. More... | |
void | WriteItems (std::string file_name) |
Saves item data to a Lua script. More... | |
int | ReadWeapons () |
Reads the weapon info from the kernel. More... | |
void | WriteWeapons (std::string file_name) |
Saves weapon data to a Lua script. More... | |
int | ReadArmors () |
Reads the armor info from the kernel. More... | |
void | WriteArmors (std::string file_name) |
Saves armor data to a Lua script. More... | |
int | ReadAccessories () |
Reads the accessory info from the kernel. More... | |
void | WriteAccessories (std::string file_name) |
Saves accessory data to a Lua script. More... | |
int | ReadMateria () |
Reads materia info from the kernel. More... | |
void | WriteMateria (std::string file_name) |
Saves materia data to a Lua script. More... | |
int | ReadKeyItems () |
Reads key item info from the kernel. More... | |
void | WriteKeyItems (std::string file_name) |
Saves key item data to a Lua script. More... | |
int | ReadSummonNames () |
Reads summon name info from the kernel. More... | |
void | WriteSummonNames (std::string file_name) |
Saves summon names data to a Lua script. More... | |
void | ReadInitialSaveMap () |
Reads the initial savemap from the kernel. More... | |
void | WriteInitialSaveMap (std::string file_name) |
Saves the initial savemap to a Lua script. More... | |
Private Member Functions | |
std::string | GetBasicStatName (int id) |
Retrieves the 3-letter name of a basic stat from it's id. More... | |
Private Attributes | |
std::vector< CommandData > | commands_ |
Items read from the kernel. More... | |
std::vector< AttackData > | attacks_ |
Attacks read from the kernel. More... | |
std::vector< CharacterData > | characters_ |
Character info read from the kernel. More... | |
GrowthData | growth_ |
std::vector< ItemData > | items_ |
Items read from the kernel. More... | |
std::vector< WeaponData > | weapons_ |
Weapons read from the kernel. More... | |
std::vector< ArmorData > | armors_ |
Armors read from the kernel. More... | |
std::vector< AccessoryData > | accessories_ |
Accessories read from the kernel. More... | |
std::vector< MateriaData > | materia_ |
Materia read from the kernel. More... | |
std::vector< KeyItemData > | key_items_ |
Key items read from the kernel. More... | |
std::vector< SummonNameData > | summon_names_ |
Summon names read from the kernel. More... | |
SaveMap | savemap_ |
The initial savemap structure. More... | |
BinGZipFile | kernel_ |
The kernel file. More... | |
std::string | exe_path_ |
Path to ff7.exe file. More... | |
u32 | prices_ [416] |
Item and materia shop prices. More... | |
std::string | attack_names_ [128] |
Attack names, required for other sections. More... | |
std::string | command_names_ [128] |
Command names, required for other sections. More... | |
|
private |
Menus that must be shown when selecting a command.
|
private |
|
private |
Enumerator | |
---|---|
KERNEL_COMMAND_DATA | Command data section in KERNEL.BIN. |
KERNEL_ATTACK_DATA | Attack data section in KERNEL.BIN. |
KERNEL_BATTLE_AND_GROWTH_DATA | Battle and growth data section in KERNEL.BIN. |
KERNEL_INITIALIZATION_DATA | Initialization data section in KERNEL.BIN. |
KERNEL_ITEM_DATA | Item data section in KERNEL.BIN. |
KERNEL_WEAPON_DATA | Weapon data section in KERNEL.BIN. |
KERNEL_ARMOR_DATA | Armor data section in KERNEL.BIN. |
KERNEL_ACCESSORY_DATA | Accessory data section in KERNEL.BIN. |
KERNEL_MATERIA_DATA | Materia data section in KERNEL.BIN. |
KERNEL_COMMAND_DESCRIPTIONS | Command descriptions section in KERNEL.BIN. |
KERNEL_ATTACK_DESCRIPTIONS | Attack descriptions section in KERNEL.BIN. |
KERNEL_ITEM_DESCRIPTIONS | Item descriptions section in KERNEL.BIN. |
KERNEL_WEAPON_DESCRIPTIONS | Weapon descriptions section in KERNEL.BIN. |
KERNEL_ARMOR_DESCRIPTIONS | Armor descriptions section in KERNEL.BIN. |
KERNEL_ACCESSORY_DESCRIPTIONS | Accessory descriptions section in KERNEL.BIN. |
KERNEL_MATERIA_DESCRIPTIONS | Materia descriptions section in KERNEL.BIN. |
KERNEL_KEY_ITEM_DESCRIPTIONS | Key Item descriptions section in KERNEL.BIN. |
KERNEL_COMMAND_NAMES | Command Names section in KERNEL.BIN. |
KERNEL_ATTACK_NAMES | Atack Names section in KERNEL.BIN. |
KERNEL_ITEM_NAMES | Item Names section in KERNEL.BIN. |
KERNEL_WEAPON_NAMES | Weapon Names section in KERNEL.BIN. |
KERNEL_ARMOR_NAMES | Armor Names section in KERNEL.BIN. |
KERNEL_ACCESSORY_NAMES | Accessory Names section in KERNEL.BIN. |
KERNEL_MATERIA_NAMES | Materia Names section in KERNEL.BIN. |
KERNEL_KEY_ITEM_NAMES | Key Item Names section in KERNEL.BIN. |
KERNEL_BATTLE_AND_BATTLE_SCREEN_TEXT | Battle and Battle-Screen Text section in KERNEL.BIN. |
KERNEL_SUMMON_ATTACK_NAMES | Summon Attack Names section in KERNEL.BIN. |
|
strongprivate |
|
private |
|
private |
|
private |
Types of stat curves.
Althought any of them can be used for any stat, this is their intended use.
|
private |
List of altered status.
Enumerator | |
---|---|
DEATH | The character is dead. |
NEAR_DEATH | The character has critical HP. |
SLEEP | The character is asleep. |
POISONED | The character is poisoned. |
SADNESS | The character is sad. |
FURY | The character is furious. |
CONFU | The character is confused. |
SILENCE | The character is silenced. |
HASTE | The character is slow. |
SLOW | The character is. |
STOP | The character is stopped. |
FROG | The character is a frog. |
SMALL | The character is small. |
SLOW_NUMB | The character is going to be petrified. |
PETRIFY | The character is petrified. |
REGEN | The character is regenerating health. |
BARRIER | The character has a physical barrier. |
M_BARRIER | The character has a magical barrier. |
REFLECT | The character reflects magical attacks. |
DUAL | The character has dual status.
|
SHIELD | The character has a shield. |
D_SENTENCE | The character has a death sentence. |
MANIPULATE | The character is being manipulated. |
BERSERK | The character is berserk. |
PEERLESS | The character is invincible. |
PARALYSIS | The character is paralyzed. |
DARKNESS | The character is blinded. |
DUAL_DRAIN | The character has dual drain. |
DEATH_FORCE | The character has deathforce. |
RESIST | The character has resist. |
LUCKY_GIRL | Cait' Sith lucky girl mode. |
IMPRISONED | The character is imprisioned. |
|
private |
KernelDataInstaller::KernelDataInstaller | ( | std::string | path | ) |
Constructor.
[in] | path | Path selected in the installation as source directory. |
KernelDataInstaller::~KernelDataInstaller | ( | ) |
Destructor.
|
private |
Retrieves the 3-letter name of a basic stat from it's id.
[in] | id | The stat ID. |
int KernelDataInstaller::ReadAccessories | ( | ) |
Reads the accessory info from the kernel.
int KernelDataInstaller::ReadArmors | ( | ) |
Reads the armor info from the kernel.
int KernelDataInstaller::ReadAttacks | ( | ) |
Reads the attack data from the kernel.
int KernelDataInstaller::ReadCharacters | ( | ) |
Reads character data from the kernel.
int KernelDataInstaller::ReadCommands | ( | ) |
Reads the command data from the kernel.
void KernelDataInstaller::ReadGrowth | ( | ) |
Reads growth data from the kernel.
void KernelDataInstaller::ReadInitialSaveMap | ( | ) |
Reads the initial savemap from the kernel.
int KernelDataInstaller::ReadItems | ( | ) |
Reads the items from the kernel.
int KernelDataInstaller::ReadKeyItems | ( | ) |
Reads key item info from the kernel.
int KernelDataInstaller::ReadMateria | ( | ) |
Reads materia info from the kernel.
void KernelDataInstaller::ReadPrices | ( | ) |
Reads items and materia prices from the executable.
int KernelDataInstaller::ReadSummonNames | ( | ) |
Reads summon name info from the kernel.
int KernelDataInstaller::ReadWeapons | ( | ) |
Reads the weapon info from the kernel.
void KernelDataInstaller::WriteAccessories | ( | std::string | file_name | ) |
Saves accessory data to a Lua script.
[in] | file_name | Absolute path to the target Lua file. |
void KernelDataInstaller::WriteArmors | ( | std::string | file_name | ) |
Saves armor data to a Lua script.
[in] | file_name | Absolute path to the target Lua file. |
void KernelDataInstaller::WriteAttacks | ( | std::string | file_name | ) |
Saves command data to a Lua script.
[in] | file_name | Absolute path to the target Lua file. |
void KernelDataInstaller::WriteCharacters | ( | std::string | file_name | ) |
Saves character data to a Lua script.
[in] | file_name | Absolute path to the target Lua file. |
void KernelDataInstaller::WriteCommands | ( | std::string | file_name | ) |
Saves command data to a Lua script.
[in] | file_name | Absolute path to the target Lua file. |
void KernelDataInstaller::WriteGrowth | ( | std::string | file_name | ) |
Saves growth data to a Lua script.
[in] | file_name | Absolute path to the target Lua file. |
void KernelDataInstaller::WriteInitialSaveMap | ( | std::string | file_name | ) |
Saves the initial savemap to a Lua script.
[in] | file_name | Absolute path to the target Lua file. |
void KernelDataInstaller::WriteItems | ( | std::string | file_name | ) |
Saves item data to a Lua script.
[in] | file_name | Absolute path to the target Lua file. |
void KernelDataInstaller::WriteKeyItems | ( | std::string | file_name | ) |
Saves key item data to a Lua script.
[in] | file_name | Absolute path to the target Lua file. |
void KernelDataInstaller::WriteMateria | ( | std::string | file_name | ) |
Saves materia data to a Lua script.
[in] | file_name | Absolute path to the target Lua file. |
void KernelDataInstaller::WriteSummonNames | ( | std::string | file_name | ) |
Saves summon names data to a Lua script.
[in] | file_name | Absolute path to the target Lua file. |
void KernelDataInstaller::WriteWeapons | ( | std::string | file_name | ) |
Saves weapon data to a Lua script.
[in] | file_name | Absolute path to the target Lua file. |
|
private |
Accessories read from the kernel.
|
private |
Armors read from the kernel.
|
private |
Attack names, required for other sections.
|
private |
Attacks read from the kernel.
|
private |
Character info read from the kernel.
|
private |
Command names, required for other sections.
|
private |
Items read from the kernel.
|
private |
Path to ff7.exe file.
|
private |
|
private |
Items read from the kernel.
|
private |
The kernel file.
|
private |
Key items read from the kernel.
|
private |
Materia read from the kernel.
|
private |
Item and materia shop prices.
Indexes 0 - 127: Items. Indexes 128 - 255: Weapons. Indexes 256 - 287: Armors. Indexes 288 - 319: Accessories Indxes 320 - 415: Materia.
|
private |
The initial savemap structure.
|
private |
Summon names read from the kernel.
|
private |
Weapons read from the kernel.