Shop Contents (.ISL) File Format

From Ōkami Speedrun Wiki
Revision as of 14:35, 23 July 2025 by Heinermann (talk | contribs) (→‎Shop Variations: identity an unknown)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Note: This page pertains to Reverse Engineering of Okami File Formats.

This file defines what is found in this map's shop stock.

Note that this is only for regular shops. Demon fang shops are entirely hardcoded and not found in any data files.

File Format

Header

Offset Type Size Description
0x00 char[4] 4 Magic "ISL\0".
0x04 int32_t 4 Number of shop variations (chosen variation depends on specific event flags being set, hardcoded).
0x08 int32_t[2] 8 Unknown.
0x10 ShopInfo[numVariations] variable Description of each shop variation.

Shop Info

Offset (relative) Type Size Description
0x00 int32_t 4 Number of shop items in stock.
0x04 ItemStock[numItems] 12 * numItems Description of each item in stock.
4 + 12 * numItems int32_t[256] 4 * 256 Sell price for each item type, indexed by Item Table. -1 if not sellable.

Item Stock

Offset (relative) Type Size Description
0x00 int32_t 4 Item type.
0x04 int32_t 4 Purchase price.
0x08 int32_t 4 Unknown/unused.

Shop Variations

Shop variations are hardcoded and chosen under the following rules. The events to trigger a variation are found in World State Data.

Second shop variation is used on the following maps when Sasa Sanctuary (10) event 36 is set, in most cases adding a Mermaid Coin to stock:

  1. Moon Cave Interior
  2. City Checkpoint
  3. Kusa Village
  4. Sasa Sanctuary
  5. Kamiki Village - After fighting Tei
  6. Shinshu Field (Healed)
  7. Agata Forest (Healed)
  8. Taka Pass (Healed)


For Seian City (Commoner's Quarters), there are 2 shops. The first (fish shop) has no variations. The second (weapons shop) has 2 variations:

  1. Oni Island (Ninetails Arena) (40) event 1
  2. Wawku Shrine (Lechku and Nechku Arena) (64) event 2