|
|
@ -450,7 +450,7 @@ start:
|
|
|
|
uint32_t nickname = mem->getOffset("creature_name") + mem->getOffset("name_nickname");
|
|
|
|
uint32_t nickname = mem->getOffset("creature_name") + mem->getOffset("name_nickname");
|
|
|
|
p->writeSTLString(toChange.origin+nickname,changeString);
|
|
|
|
p->writeSTLString(toChange.origin+nickname,changeString);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (DFHack::Error::MissingMemoryDefinition& e)
|
|
|
|
catch (DFHack::Error::MissingMemoryDefinition&)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
cerr << "Writing creature nicknames unsupported in this version!" << endl;
|
|
|
|
cerr << "Writing creature nicknames unsupported in this version!" << endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -462,7 +462,7 @@ start:
|
|
|
|
uint32_t custom_prof = mem->getOffset("creature_custom_profession");
|
|
|
|
uint32_t custom_prof = mem->getOffset("creature_custom_profession");
|
|
|
|
p->writeSTLString(toChange.origin+custom_prof,changeString);
|
|
|
|
p->writeSTLString(toChange.origin+custom_prof,changeString);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (DFHack::Error::MissingMemoryDefinition& e)
|
|
|
|
catch (DFHack::Error::MissingMemoryDefinition&)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
cerr << "Writing creature custom profession unsupported in this version!" << endl;
|
|
|
|
cerr << "Writing creature custom profession unsupported in this version!" << endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|