Difference between revisions of "Shop Contents (.ISL) File Format"
Jump to navigation
Jump to search
Heinermann (talk | contribs) (triggers for shop variations) |
Heinermann (talk | contribs) (→Shop Variations: identity an unknown) |
||
Line 56: | Line 56: | ||
For Seian City (Commoner's Quarters), | For Seian City (Commoner's Quarters), there are 2 shops. The first (fish shop) has no variations. The second (weapons shop) has 2 variations: | ||
# Oni Island (Ninetails Arena) (40) event 1 | # Oni Island (Ninetails Arena) (40) event 1 | ||
# Wawku Shrine (Lechku and Nechku Arena) (64) event 2 | # Wawku Shrine (Lechku and Nechku Arena) (64) event 2 |
Latest revision as of 14:35, 23 July 2025
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:
- Moon Cave Interior
- City Checkpoint
- Kusa Village
- Sasa Sanctuary
- Kamiki Village - After fighting Tei
- Shinshu Field (Healed)
- Agata Forest (Healed)
- 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:
- Oni Island (Ninetails Arena) (40) event 1
- Wawku Shrine (Lechku and Nechku Arena) (64) event 2