PlugY save files structures

Discuss applications of D2Mod (v1.10), NefEx (v1.11+), and PlugY, and post suggestions for future plugins.

Moderators: Nefarius, Yohann, SVR

0
No votes
 
Total votes: 0

User avatar
Yohann
Hosted Forum Moderator
Arch-Angel
Posts: 1286
Joined: Tue Sep 23, 2003 10:10 pm

Hand-picked

PlugY save files structures

Post by Yohann » Sat May 07, 2005 6:07 pm

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.
:)
Last edited by Yohann on Tue May 31, 2005 5:07 pm, edited 5 times in total.
PlugY v10.00 : Download - Forum
Fix TXT Opened Files With MS Excel : v1.11 - v1.10
DualPlayer
: v1.11 - v1.10 - v1.09

User avatar
Ulmo
Forum Regular
Angel
Posts: 860
Joined: Fri Jun 04, 2004 5:04 pm

Post by Ulmo » Tue May 31, 2005 3:46 pm

Some corrections, an add-on and a request :
  • Stash personal savefile is *.d2x
  • Shared stash header "SSS." ('\0' et not space)
  • +0000 "ST" header / +0003 D2 Inventory if name is empty ;)
Request is : do you plan to display this name ?

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.

User avatar
Yohann
Hosted Forum Moderator
Arch-Angel
Posts: 1286
Joined: Tue Sep 23, 2003 10:10 pm

Hand-picked

Post by Yohann » Tue May 31, 2005 5:12 pm

Tankw for the corrections, it's updated :)
Request is : do you plan to display this name ?
Try this command : /rename namepage
But the name isn't saved...
Last edited by Yohann on Tue May 31, 2005 5:21 pm, edited 1 time in total.
PlugY v10.00 : Download - Forum
Fix TXT Opened Files With MS Excel : v1.11 - v1.10
DualPlayer
: v1.11 - v1.10 - v1.09

User avatar
Ulmo
Forum Regular
Angel
Posts: 860
Joined: Fri Jun 04, 2004 5:04 pm

Post by Ulmo » Tue May 31, 2005 10:30 pm

But the name displayed with /rename command is not the one saved in the .sss file.

User avatar
Yohann
Hosted Forum Moderator
Arch-Angel
Posts: 1286
Joined: Tue Sep 23, 2003 10:10 pm

Hand-picked

Post by Yohann » Tue May 31, 2005 10:49 pm

In really it's just a problem of display.
The name is read and saved but not updated on client-side...

And the rename command don't update the server-side...
Last edited by Yohann on Tue May 31, 2005 10:56 pm, edited 1 time in total.
PlugY v10.00 : Download - Forum
Fix TXT Opened Files With MS Excel : v1.11 - v1.10
DualPlayer
: v1.11 - v1.10 - v1.09

Return to “PlugY|NefEx|D2Mod”