-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
38 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## ATMA Stash (.d2x) File Format | ||
|
||
ATMA is the file format used by the [ATMA](http://atma.incgamers.com/) and [GoMule](http://gomule.sourceforge.net/) muling tools. | ||
|
||
Byte Offset | Size (bytes) | Description | ||
------------|:------------:|------------- | ||
0x00 | 3 | File header. Must be "D2X". | ||
0x03 | 2 | Number of items in the file as a 16 bit unsigned integer. | ||
0x05 | 2 | File version as a 16 bit unsigned integer. Must be 96. | ||
0x07 | 4 | ATMA checksum. See [here](https://github.com/sylecn/gomule/blob/27731580051afc7e171996997231e42a9f17cd6f/src/gomule/d2x/D2Stash.java#L176-L199) for how this is calculated. | ||
0x0B | ... | Beginning of [D2 Item List data](d2.md#item-list-data-format) *without* the 'header' and 'number of items' fields. Instead, use the value at offset 0x03 of the ATMA data as the number of 'root' items in the list, and then read the item list as if you're starting at offset 0x04 of the item list data. | ||
|
||
## Sources / Further Reading | ||
|
||
* [D2Stash.java (GoMule Source Code)](https://github.com/sylecn/gomule/blob/master/src/gomule/d2x/D2Stash.java) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
## Item List Data Format | ||
|
||
Byte Offset | Size (bytes) | Description | ||
------------|:------------:|------------- | ||
0x00 | 2 | Header. Must be `"JM"` (`0x4D4A` when read as a 16 bit unsigned integer). | ||
0x02 | 2 | Number of items in the list as a 16 bit unsigned integer.<br/><br/>**Note:** This number only counts 'root' items, i.e. it *does not include* items that have been inserted into the sockets of the 'root' items. That is, an item list with 1 item that has 2 socketed items inside it will have a value of 1 in this field, even though the full data will have 3 items in it. In other words, the items in the sockets should be considered part of the item that they're contained in. | ||
0x04 | ... | Beginning of contiguous [Item data](#item-data-format) | ||
|
||
## Item Data Format | ||
|
||
TODO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
TODO | ||
|
||
## Sources / Further Reading | ||
|
||
* [d2s Binary layout (nokka/d2s)](https://github.com/nokka/d2s#binary-layout) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters