|
|
@ -258,7 +258,7 @@ void printCreature(DFHack::API & DF, const DFHack::t_creature & creature)
|
|
|
|
if(mymat[i].typeD>=0)
|
|
|
|
if(mymat[i].typeD>=0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(mymat[i].typeD<=mat.metalMat.size())
|
|
|
|
if(mymat[i].typeD<=mat.metalMat.size())
|
|
|
|
sprintf(maintype, "%s bar", mat.metalMat[mymat[i].typeD].name);
|
|
|
|
sprintf(maintype, "%s bar", mat.metalMat[mymat[i].typeD].id);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
strcpy(maintype, "invalid metal bar");
|
|
|
|
strcpy(maintype, "invalid metal bar");
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -464,7 +464,11 @@ int main (int numargs, char ** args)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
mem = DF.getMemoryInfo();
|
|
|
|
mem = DF.getMemoryInfo();
|
|
|
|
// get stone matgloss mapping
|
|
|
|
if(!Materials->ReadInorganicMaterials(mat.metalMat))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
cerr << "Can't get the inorganics types." << endl;
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
if(!Materials->ReadCreatureTypesEx(creaturestypes))
|
|
|
|
if(!Materials->ReadCreatureTypesEx(creaturestypes))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
cerr << "Can't get the creature types." << endl;
|
|
|
|
cerr << "Can't get the creature types." << endl;
|
|
|
|