Via cal3d, but I think the path_resolv should do the trick, right?
Code:
//*** SKELETON ***
if(!strcasecmp(var,"skeleton") && (ret==RAYDIUM_PARSER_TYPE_STRING) )
{
raydium_log("Readed: %s",(char*)val_s);
//raydium_path_ext(raydium_path_package_find(filename) ,"xsf");
//raydium_path_ext(raydium_path_package_find(filename),"csf");
//raydium_path_ext(raydium_path_paths[raydium_path_package_find(newstr)].path,"xsf");
raydium_path_resolv((char*) val_s, newstr,"r");
raydium_log("the resolv is %s " , newstr);
//load the skeleton
if(CalCoreModel_LoadCoreSkeleton(raydium_anim_model[a],(char*)newstr))
{
raydium_log("Correctly Readed: %s",(char*)newstr);
//apply scale
CalCoreSkeleton_Scale(CalCoreModel_GetCoreSkeleton(raydium_anim_model[a]),scale);
raydium_log("Successfully loaded %s",newstr);
}
else
{
raydium_log("ANIM:ERROR: Loading file %s",val_s);
error=1;
}
}
I think the code is right, but the line raydium_log("the resolv is %s " , newstr); returns a wrong path (just the name of the file):
Code:
Readed: model.xsf
Raydium: the resolv is model.xsf
Raydium: ANIM:ERROR: Loading file model.xsf
However the model.cfg is correctly loaded.
Is a problem with the extensions?