• 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!

TFS bug

Jgarder

Tprogramming Ex-Adm|n
Premium User
Joined
Jun 7, 2007
Messages
355
Reaction score
3
Location
Michigan
---------Bug#1---------
Title = house Failure!
How often reported = once it happens it loops
Problem with = line 64 of housetiles.cpp
Description = No idea what happens, but the server crashs repeatedly.. only known cure is to reset everyone to home temple.
Other information = all houses have positive exits with no bugs visually seen, perhaps this is a logic error or some weird race condition that sooner or later ends in failure
Suggestions = no idea but maybe make it so the dest tile (if null or negative) goes to the destination of your home temple. thats all i can think of that this moment
----------------------------------------------------------------



PS here is the code snippet from which the error revolves
Code:
Cylinder* HouseTile::__queryDestination(int32_t& index, const Thing* thing, Item** destItem, uint32_t& flags)
{
	if(const Creature* creature = thing->getCreature())
	{
		if(const Player* player = creature->getPlayer())
		{
			if(!house->isInvited(player))
			{
				const Position& EntryPos = house->getEntryPosition();
				Tile* destTile = g_game.getTile(EntryPos.x, EntryPos.y, EntryPos.z);
[color=red]Line 64->[/color]	assert(destTile != NULL);

				index = -1;
				*destItem = NULL;
				return destTile;
			}
		}
	}
	return Tile::__queryDestination(index, thing, destItem, flags);
 
I think this was fixed already in rev 420..
 
Back
Top