• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling Bug on follow - REV 3798

Dankoo

Active Member
Joined
Sep 4, 2010
Messages
1,007
Reaction score
27
I'm using TFS REV 3798, and I'm having some issues with follow system

When you attack a creature with follow activated, or click to use a distant item, the character keeps following/going to object direction even when you walk off

It's like, I'm attacking a creature, then I press left arrow, but the follow mode won't turn off, u know? It should pass to stand mode and stop following the creature, or cancel the action

What could I do to solve this?

Thanks a lot, rep +
 
Yeah, probably, it would be real nice if someone who knows this bug say something like:

Replace X with Y then compile *-*

- edit -

I've compared players.cpp from REV 3798 and 3915 with compare plugin for Notepad++ and found nothing related to this that could cause this bug

Could it be another file?

I have even found some codes that should work, and they are the same as REV 3915:

Lua:
void Player::setNextWalkActionTask(SchedulerTask* task)
{
	if(walkTaskEvent)
	{
		Scheduler::getInstance().stopEvent(walkTaskEvent);
		walkTaskEvent = 0;
	}

	delete walkTask;
	walkTask = task;
	setIdleTime(0);
}

void Player::setNextWalkTask(SchedulerTask* task)
{
	if(nextStepEvent)
	{
		Scheduler::getInstance().stopEvent(nextStepEvent);
		nextStepEvent = 0;
	}

	if(task)
	{
		nextStepEvent = Scheduler::getInstance().addEvent(task);
		setIdleTime(0);
	}
}

void Player::setNextActionTask(SchedulerTask* task)
{
	if(actionTaskEvent)
	{
		Scheduler::getInstance().stopEvent(actionTaskEvent);
		actionTaskEvent = 0;
	}

	if(task)
	{
		actionTaskEvent = Scheduler::getInstance().addEvent(task);
		setIdleTime(0);
	}
}
 
Last edited:
Well, then start messing with it. :p
If you don't come up with anything, then try using files from a working distro (like TFS 0.3.6)?
 
Back
Top