king21
Member
I'm trying to figure out what this error means. " Fatal Error in load_cached_model, file: data/chars/a/a.txt, line 248, message: Invalid animation name!"
I'm using OpenBoR v3.0 Build 6391, Compile Date: Apr 8 2020.This is lines 231-257 .
{
if(acting_entity->position.x > target->position.x)
{
acting_entity->destx = target->position.x + range - 1;
}
else
{
acting_entity->destx = target->position.x - range + 1;
}
dx = diff(acting_entity->position.x, acting_entity->destx);
if(dx > 150 && validanim(acting_entity, ANI_RUN))
{
acting_entity->velocity.x = acting_entity->modeldata.runspeed;
acting_entity->running &= ~RUN_STATE_START_Z;
acting_entity->running |= RUN_STATE_START_X;
}
else
{
acting_entity->velocity.x = acting_entity->modeldata.speed.x;
}
if(acting_entity->destx < acting_entity->position.x)
{
acting_entity->velocity.x = -acting_entity->velocity.x;
}
//...
I'm using OpenBoR v3.0 Build 6391, Compile Date: Apr 8 2020.This is lines 231-257 .
{
if(acting_entity->position.x > target->position.x)
{
acting_entity->destx = target->position.x + range - 1;
}
else
{
acting_entity->destx = target->position.x - range + 1;
}
dx = diff(acting_entity->position.x, acting_entity->destx);
if(dx > 150 && validanim(acting_entity, ANI_RUN))
{
acting_entity->velocity.x = acting_entity->modeldata.runspeed;
acting_entity->running &= ~RUN_STATE_START_Z;
acting_entity->running |= RUN_STATE_START_X;
}
else
{
acting_entity->velocity.x = acting_entity->modeldata.speed.x;
}
if(acting_entity->destx < acting_entity->position.x)
{
acting_entity->velocity.x = -acting_entity->velocity.x;
}
//...