dbcviewer icon indicating copy to clipboard operation
dbcviewer copied to clipboard

DB2 (WDB5) sparse Saving

Open DJScias opened this issue 8 years ago • 3 comments

Hello there,

I've checked out your DBC Viewer and I must say it's done its job quite well by allowing you to manually edit and add rows, if necessary, to the Legion DB2s (WDB5).

However, there's one that has issues while saving happens: item-sparse.db2. This db2 has always been a special one and I noticed in your code you load it differently with:

public bool IsSparseTable { get; private set; }

You can edit it as normal, however as soon as you save it then for some reason it is not saved as a sparse storage DB2 would be. The way I confirmed this was by editing one test row in and then opening up a testing environment where it loads all the db2s and it resulted in me being given the following error:

(metaFlags & 0x1) != 0, "Item-sparse.db2 is not a sparse storage, use DB2Storage!"

Which leads me to believe there's an issue in regards to the metaflags on saving a DB2 as a sparse storage.

I've been looking into means to see if I can fix this, but I frankly can't. Perhaps you can @tomrus88 and if not then the issue's here for everyone to look at it, I suppose.

Thanks in advance.

Kind regards, DJScias

DJScias avatar Jul 30 '16 19:07 DJScias

Saving as sparse table not implemented at this time. When saving sparse table DB2, it's converted to regular table.

tomrus88 avatar Jul 30 '16 20:07 tomrus88

I understand and I will patiently wait for it to be implemented, if ever.

Thanks for the answer, @tomrus88 :)

Kind regards, DJScias

DJScias avatar Jul 30 '16 21:07 DJScias

Hello, thank you for the open source project. I found a problem that could not be saved ItemDisplayInfo.db2 file. What can help me,thank!

sndwow avatar Sep 11 '16 08:09 sndwow