I have promised it since long time !
But now you have the structure for it
** Player Personal Savefile (.d2x) **
+0000 0x4D545343 "CSTM" Header
+0004 0x3130 "01" File Version
+0006 0x00000000 not used
+000A nbStash
+000E StashList
+..... Custom Mod Data
** Shared Stash Savefile (.sss) **
When Shared Gold = 0
+0000 0x535353 "SSS\0" Header (\0 is the null character)
+0004 0x3130 "01" File Version
+0006 nbStash
+000A StashList
+..... Custom Mod Data
When Shared Gold > 0 (only in version 5.05 and greater)
+0000 0x535353 "SSS\0" Header (\0 is the null character)
+0004 0x3230 "02" File Version
+0006 Shared Gold Amount
+000A nbStash
+000E StashList
+..... Custom mod data
** Stash structure **
save structure for each stash :
+0000 0x5453 "ST" Header
+0002 0x00 It's an empty string, you can insert between "ST" and 0x00 up to 15 char for the Stash name.
+0003 D2 Inventory
Remember : D2 Inventory start like this :
+0000 0x4D4A "JM" Inventory header
+0002 nbItem
+0004 0x4D4A "JM" Item header
+0006 Item data
For more info about item save structure go to Save file structure
** Custom Mod Data **
Any dll loaded by PlugY can export some functions to save data in PlugY savefiles (shared or personnal).
If somebody else are interested, I will explain how export the saving fct.
PlugY save files structures
Moderators: Nefarius, Yohann, SVR
-
- Arch-Angel
- Posts: 1286
- Joined: Tue Sep 23, 2003 10:10 pm
-
- Angel
- Posts: 860
- Joined: Fri Jun 04, 2004 5:04 pm
Some corrections, an add-on and a request :
And at last, I've coded a little StashManager to name pages, and insert/delete/move them. You can try it from here, and let me know if it works well (I mainly think about loading various mod stashes).
But I still hope Yohann wil implement this one day...
Edit : Update of the StashManager (link unchanged).
- Stash personal savefile is *.d2x
- Shared stash header "SSS." ('\0' et not space)
- +0000 "ST" header / +0003 D2 Inventory if name is empty
And at last, I've coded a little StashManager to name pages, and insert/delete/move them. You can try it from here, and let me know if it works well (I mainly think about loading various mod stashes).
But I still hope Yohann wil implement this one day...
Edit : Update of the StashManager (link unchanged).
Last edited by Ulmo on Tue May 31, 2005 10:28 pm, edited 1 time in total.
-
- Angel
- Posts: 860
- Joined: Fri Jun 04, 2004 5:04 pm