Anonymous

Changes

From Final Fantasy Inside

FF7/Kernel/Kernel.bin

2,783 bytes removed, 05:19, 23 May 2019
m
49 revisions imported
== Important Files ==
<{| style="border: 1px solid black; border-collapse: collapse; background: rgb(0,255,0)" border="1" cellspacing="1" cellpadding="3" align="center"! align="center" | PSX Version! align="center>[[Image:Gears_img_5" | PC Version|-| /INIT/KERNEL.BIN| /DATA/KERNEL/KERNEL.png]]<BIN|-|| /DATA/KERNEL/center>KERNEL2.BIN|}
== The KERNEL.BIN Archive ==
The file KERNEL.BIN archive is in [[FF7/Kernel/Low_level_libraries#BIN-GZIPGZIP_Type_Archives|BIN-GZIP format]]. It consists of 27 gziped sections concatenated together with a 6 byte header for each. This file is the same both on the PC and PSX versions. This holds all the static data and menu text for the game, with a look up table at the beginning of the section. The first 9 sections of data (i.e. The non-text related items) are in typical BIN file archive format. Sections 10-27 are [[FF7/FF TextFF_Text|FF Text files]]. The text sections have a header of pointers at the beginning of each section and point to a text block below.
The KERNEL.BIN file consists of the following sections.
{| borderclass="0" cellspacing="1" cellpadding="3" style="background: rgb(0,0,0)" align="centerwikitable"! style="background:rgb(204,204,204)" align="center" | File! style="background:rgb(204,204,204)" | Data! style="background:rgb(204,204,204)" | Offset
|-
|style="background:rgb(255,255,255)" align="center" | 1|style="background:rgb(255,255,255)" | [[FF7/Command dataCommand_data|Command data]]|style="background:rgb(255,255,255)" | 0x0006
|-
|style="background:rgb(255,255,255)" align="center" | 2|style="background:rgb(255,255,255)" | [[FF7/Attack dataAttack_data|Attack data]]|style="background:rgb(255,255,255)" | 0x0086
|-
|style="background:rgb(255,255,255)" align="center" | 3|style="background:rgb(255,255,255)" | [[FF7/SavemapBattle_and_growth_data|SavemapBattle and growth data]]|style="background:rgb(255,255,255)" | 0x063A
|-
|style="background:rgb(255,255,255)" align="center" | 4|style="background:rgb(255,255,255)" | [[FF7/Character starting statsCharacter_starting_stats|Character starting statsInitialization data]]|style="background:rgb(255,255,255)" | 0x0F7F
|-
|style="background:rgb(255,255,255)" align="center" | 5|style="background:rgb(255,255,255)" | [[FF7/Item dataItem_data|Item data]]|style="background:rgb(255,255,255)" | 0x111B
|-
|style="background:rgb(255,255,255)" align="center" | 6|style="background:rgb(255,255,255)" | [[FF7/Weapon dataWeapon_data|Weapon data]]|style="background:rgb(255,255,255)" | 0x137A
|-
|style="background:rgb(255,255,255)" align="center" | 7|style="background:rgb(255,255,255)" | [[FF7/Armor dataArmor_data|Armor data]]|style="background:rgb(255,255,255)" | 0x1A30
|-
|style="background:rgb(255,255,255)" align="center" | 8|style="background:rgb(255,255,255)" | [[FF7/Accessory dataAccessory_data|Accessory data]]|style="background:rgb(255,255,255)" | 0x1B73
|-
|style="background:rgb(255,255,255)" align="center" | 9|style="background:rgb(255,255,255)" | [[FF7/Materia dataMateria_data|Materia data]]|style="background:rgb(255,255,255)" | 0x1C11
|-
|style="background:rgb(255,255,255)" align="center" | 10|style="background:rgb(255,255,255)" | Command descriptions|style="background:rgb(255,255,255)" | 0x1F32
|-
|style="background:rgb(255,255,255)" align="center" | 11|style="background:rgb(255,255,255)" | Magic descriptions|style="background:rgb(255,255,255)" | 0x2199
|-
|style="background:rgb(255,255,255)" align="center" | 12|style="background:rgb(255,255,255)" | Item descriptions|style="background:rgb(255,255,255)" | 0x28D4
|-
|style="background:rgb(255,255,255)" align="center" | 13|style="background:rgb(255,255,255)" | Weapon descriptions|style="background:rgb(255,255,255)" | 0x2EE2
|-
|style="background:rgb(255,255,255)" align="center" | 14|style="background:rgb(255,255,255)" | Armor descriptions|style="background:rgb(255,255,255)" | 0x307B
|-
|style="background:rgb(255,255,255)" align="center" | 15|style="background:rgb(255,255,255)" | Accessory descriptions|style="background:rgb(255,255,255)" | 0x315F
|-
|style="background:rgb(255,255,255)" align="center" | 16|style="background:rgb(255,255,255)" | Materia descriptions|style="background:rgb(255,255,255)" | 0x3384
|-
|style="background:rgb(255,255,255)" align="center" | 17|style="background:rgb(255,255,255)" | Key Item descriptions|style="background:rgb(255,255,255)" | 0x3838
|-
|style="background:rgb(255,255,255)" align="center" | 18|style="background:rgb(255,255,255)" | Command Names|style="background:rgb(255,255,255)" | 0x3BE2
|-
|style="background:rgb(255,255,255)" align="center" | 19|style="background:rgb(255,255,255)" | Magic Names|style="background:rgb(255,255,255)" | 0x3CCA
|-
|style="background:rgb(255,255,255)" align="center" | 20|style="background:rgb(255,255,255)" | Item Names|style="background:rgb(255,255,255)" | 0x4293
|-
|style="background:rgb(255,255,255)" align="center" | 21|style="background:rgb(255,255,255)" | Weapon Names|style="background:rgb(255,255,255)" | 0x4651
|-
|style="background:rgb(255,255,255)" align="center" | 22|style="background:rgb(255,255,255)" | Armor Names|style="background:rgb(255,255,255)" | 0x4B02
|-
|style="background:rgb(255,255,255)" align="center" | 23|style="background:rgb(255,255,255)" | Accessory Names|style="background:rgb(255,255,255)" | 0x4C4B
|-
|style="background:rgb(255,255,255)" align="center" | 24|style="background:rgb(255,255,255)" | Materia Names|style="background:rgb(255,255,255)" | 0x4D90
|-
|style="background:rgb(255,255,255)" align="center" | 25|style="background:rgb(255,255,255)" | Key Item Names|style="background:rgb(255,255,255)" | 0x5040
|-
|style="background:rgb(255,255,255)" align="center" | 26|style="background:rgb(255,255,255)" | Battle and Battle-Screen Text|style="background:rgb(255,255,255)" | 0x5217
|-
|style="background:rgb(255,255,255)" align="center" | 27|style="background:rgb(255,255,255)" | Summon Attack Names|style="background:rgb(255,255,255)" | 0x5692
|}
== The KERNEL2.BIN Archive ==
On the PC version there exists a secondary kernel archive called KERNEL2.BIN. This archive contains only sections 10-27 (Text data) of KERNEL.BIN. The data was ungzipped from the original archive, concatenated together, and then LZSed into a single archive with a 4 byte header giving the length of the file.
   == KERNEL.BIN Section formats ==The first 9 sections of maximum allotted storage space on the PC version for all un-LZSed data (i.e. The non-text related items) have a typical BIN file format. The text sections (10-27) do not have in the typical 6 byte headerkernel2. The text sections have a header of pointers to the text block. The text bin is in FF text format. == The KERNEL2.BIN Archive == On the PC version there exists a secondary kernel archive called KERNEL2.BIN. This archive contains only sections 10-27 27KB (Text data27648 bytes) of KERNEL.BIN. The data was ungzipped from the original archive, concatenated together, and then LZSed into a single archive with a 4 byte header giving This means that the length total size of the file. See the section on BIN types extracted files (text and LZS compression later in pointers) must be less than this document for more information.