Difference between revisions of "Save File Format/LINF.BIN"

From Shield Cat Wiki
Jump to navigation Jump to search
m
 
Line 14: Line 14:
 
|SC_OTTSAV_XX header information.
 
|SC_OTTSAV_XX header information.
 
|-
 
|-
!4
+
!13
 
!u32
 
!u32
 
|LINF block header declaration.
 
|LINF block header declaration.
 
|-
 
|-
!13
+
!17
 
!u16
 
!u16
 
|Lance's max health.
 
|Lance's max health.

Latest revision as of 18:51, 9 April 2020

The LINF.BIN file contains info about Lance and the abilities he has, as well as his health and magic, other stats, items that he has, and more.

This file is FILESIZE bytes.

Please note that Lance's health, magic, attack, and defense are computed from his base stats + any upgrades that you may have, and are provided for convenience. If you modify these numbers, and then Lance gets a new upgrade, the numbers will be corrected.

Offset Type Description
0 ASCII u8 SC_OTTSAV_XX header information.
13 u32 LINF block header declaration.
17 u16 Lance's max health.
19 u16 Lance's max magic.
21 u8 Lance's attack.
22 u8 Lance's defense.
23 u16 (packed) Various flags about Lance's state:
  • Bit 0: if Lance is allowed to use his equipment or not. If 0, none of his abilities will show.
  • Bit 1: Lance has his notebook to keep track of story progress.
  • Bit 2-15: Reserved for future use.
24 u8 (packed) Various flags about the game itself:
  • Bit 0: If this is a randomized mode save or not. A Randomized Mode Remap File will be required.
  • Bits 1-3: Game difficulty mode.
    • Mode 0: Chill Mode
    • Mode 1: Regular Mode
    • Mode 2: Cool Mode
    • Mode 3: Fun Mode
    • Mode 4: Custom Mode. A Custom Difficulty Data File will be required.
    • Modes 5-7: Unused.
  • Bit 4: If cheats were enabled on this file or not.
  • Bit 5: If the game has been cleared or not.
  • Bits 6-7: Unused.
25 u32 How many Pretty Petals Lance has in his possession (capped at 999,999,999)
29 u16 Total count of all Fish Scales that Lance has
31 u8 Total count of all LANCE letters that Lance has
32 u8 (*5) Reserved for future use (for more collectables)
37 u16 What save location Lance saved at.
39 u32 (* 2) Lance's [#Key Items]. Lance can have up to 64 key items.
Passive Abilities
The format for Lance's abilities is as follows:
  • Format 1: Bits 0-2 is how many of the first ability shown is owned, and bit 3 shows if Lance has it equipped or not. Bits 4-6 is how many of the second ability shown is owned, and bit 7 shows if Lance has it equipped or not. He can equip 1 of the ability, and own up to 7.
  • Format 2: Bits 0-3 shows how many Lance owns, and bits 4-7 shows how many Lance has equipped. He can own and equip up to 15 of this ability.

Lance's Passive abilities can be viewed here.

41 1 Byte

(Format 1)

  • Bits 0-3: Lantern.
  • Bits 4-7: Survivor.
42 1 Byte

(Format 1)

  • Bits 0-3: Healer.
  • Bits 4-7: Double Magic.
43 1 Byte

(Format 1)

  • Bits 0-3: Triple Magic.
  • Bits 4-7: Distance Traveller.
44 1 Byte

(Format 1)

  • Bits 0-3: Magic Saver.
  • Bits 4-7: Flame Tail.
45 1 Byte

(Format 1)

  • Bits 0-3: Infinite Spin
  • Bits 4-7: Double Ability
46 1 Byte

(Format 2)

Lucky
47 1 Byte

(Format 2)

Magic Master
48 1 Byte

(Format 2)

Attack Up
49 1 Byte

(Format 2)

Defense Up
50 1 Byte

(Format 2)

HP Up
51 1 Byte

(Format 2)

Magic Up
52 u8 (* 20) Reserved for future use.
Upgrades
Lance can have up to 255 of each upgrade, although if the amount of upgrades would exceed the amount possible, then the result will be capped.
72 1 Byte Attack Increase
73 1 Byte Defense Increase
74 1 Byte Magic Meter Increase
75 1 Byte Health Increase
Story Progress (Quests)
Lance keeps track of his progress in a notebook. Each entry supports up to 15 steps in the quest, where a value of 0 means that Lance doesn't know about it (and it won't show up in his notebook) and a value of 15 means the quest is complete. The first 4 bits represent the progress of the first quest, and the last 4 bits represents the progress of the last quest.

Special Note: What each bit will represent will be added in while the game is being developed.

76 1 Byte First 4 bits - Roo Express (Parker)

Last 4 bits - Underground Forest (Suzette)

77 1 Byte First 4 bits - Marine Exhibit (Ruby)

Last 4 bits - Mt. Bophades (Trent)

78 1 Byte First 4 bits - Sky Cat Airship Fleet (Olivia)

Last 4 bits - Cat Castle (Claire)

79 16 Bytes Reserved for up to 32 more quests.
95 u32 OEND footer.