Newbie Spellweaver
- Joined
- Nov 17, 2010
- Messages
- 34
- Reaction score
- 21
This structure should work to open all the sd01 files inside .sdb but as to what each table has is still important and vague what each column is it seems now that i see it that the sdb file is a archive for table files which are ideally from what ive seen just a bunch of tables rows n columns with data populated the header specify's the column count so this structure here allows dynamic reading of all the files with sd01 tag but a tool for this would look good if we populated a property grid in .net with the data from the file
Code:
//------------------------------------------------
//--- 010 Editor v11.0.1 Binary Template
//
// File: SD01 File format Sanrio Digital Binary Table
// Authors: Reza
// Version: 69
// Purpose: IDK
// Category: SUCK ITT
// File Mask: whut?
// ID Bytes: noidea
// History: lets go
//------------------------------------------------
//original concept
/*
byte[4] tag = SD01
int version = 3
int count = 11
int usedcount = elementsize(3*4) * last index used of count
loop count {
int index
int unk0
int value
}
int count
string [count];
*/
typedef struct
{
local string _val <hidden=true>;
_val = ReadLine(FTell(), 2000);
char value[Strlen(_val)+1];
}uString <read=ReadStrang>;
string ReadStrang(uString &in)
{
return in._val;
}
typedef struct ( int columns )
{
int row[columns] ;
} _Row;
//USE THE SHIT
char TAG[4];
int columns;
int count;
int unksize;
_Row Table(columns)[count];
int strcnt;
uString Values[strcnt]<optimize=false>;