Skilltree.bin struggle

02/14/2017 15:20 smoka95#1
So i have tried to edit this file with structorian, however any edit even if you replace a number with exact same number it results of a problem and makes the file unusable which forces me to ask how to fix this code, since obviously there is either a mistake or its just too outdated
I did try to find solutions, but there was nothing whatsoever

Code:
[filemask="skilltree.bin"]
struct SkillTrees
{
	child SkillTree [count=740];
}

struct SkillTree[preload=1, tableview=1]
{
	i8 dwClass;
	u16 dwSkillIdx;
	u16 dwParentSkillIdx;
	i8 nPoint;
	i8 nReqPoint;
}
02/14/2017 21:15 kthxbai2#2
save yourself the trouble and start using 010 editor, the struct is good i think
02/14/2017 23:23 smoka95#3
Ive tried 010, however i have failing converting the template from structs to 010 one

Quote:
typedef struct{byte dwClass;
short dwSkillIdx;
short dwParentSkillIdx;
byte nPoint;
byte nReqPoint;
} skilltree;
while( !FEof() )
{
skilltree;
}
Would u help me fix it
02/15/2017 00:05 kthxbai2#4
PHP Code:
typedef struct{    
    
byte dwClass;
    
short dwSkillIdx;
    
short dwParentSkillIdx;
    
byte nPoint;
    
byte nReqPoint;
    
skilltree;

while( !
FEof() )
{
    
skilltree _skilltree;

you almost got it right :p
02/15/2017 02:28 smoka95#5
thanks, everything worked fine, thread can be locked