Difference between revisions of "Save file format"
Jump to navigation
Jump to search
old>Realpsojed (Creating for future reference, perhaps modding) |
m (2 revisions imported) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 48: | Line 48: | ||
The last 7 values of an item in inventory are as follows: | The last 7 values of an item in inventory are as follows: | ||
[[File:Inventory_XY_coordinates.png|thumb|alt=Inventory XY coordinates|Image of an in-game inventory with the X,Y coordinates]] | |||
<nowiki> | <nowiki> | ||
X Position:::::: 145 | X Position:::::: 145 | ||
| Line 59: | Line 60: | ||
the X coordinate of an item that is equipped but is not currently in use (ie: the things you have on the swap menu) will ALWAYS be -10000000.</nowiki> | the X coordinate of an item that is equipped but is not currently in use (ie: the things you have on the swap menu) will ALWAYS be -10000000.</nowiki> | ||
[[Category:Stoneshard]] | [[Category:Stoneshard]] | ||
Latest revision as of 21:21, 21 November 2021
This page explores the save file format used in Stoneshard.
Example: Purse with 2000 gold.
[
"o_inv_moneybag",
{
"restoration": [],
"second_damage": [],
"magic_resists": [],
"max_charge": 1,
"nature_resists": [],
"combat": [],
"stealth": [],
"Duration": 0,
"is_cursed": 0,
"MaxDuration": 0,
"i_index": 1,
"Stack": 2000,
"chance_and_resist": [],
"info": [],
"physical_resists": [],
"id": "moneybag",
"identified": 1,
"Name": "Purse",
"charge": 1,
"magic": [],
"lootList": [],
"general_resists": []
},
145,
261,
0,
1,
0,
0,
0,
"o_inv_left_hand"
]
The values inside {} are named and pretty self-explanatory. The exceptions to that are as follows:
"i_index" - determines which item image to display. For items with durability: 0 - undamaged item, 1 - damaged item. For arrows: 0-5 - the more arrows in a stack, the more are shown on the item image. For purse: 0 - empty, 1 - with crowns
The last 7 values of an item in inventory are as follows:
X Position:::::: 145 Y Position:::::: 261 State::::::::::: 0 // 0 === Undamaged or Full // 1 Damaged or Empty Charges Left:::: 1 // -4 (from what I can tell indicates None) Sub-Menu?::::::: 1 // (Things that have a sub-inventory like Moneybags and backpacks) Equipped Now:::: 0 // 0 === No // 1 === left hand // 2 === right hand Equipped Swap::: 0 // 0 === No // 1 === Yes the X coordinate of an item that is equipped but is not currently in use (ie: the things you have on the swap menu) will ALWAYS be -10000000.