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

is this possible?

CrumDubh

New Member
Joined
Feb 10, 2009
Messages
41
Reaction score
0
Since there's a problem with tfs 3.6 and nobody seems to be able to help me, I'd like to know if it's possible to compile the 3.5 sources into a 8.54 server.
If it is, how?

and in case of.. I'll tell u the problem that no1 seems to be able to fix.. In TFS 3.6, in the CreatureScripts (prepareDeath), I can't find any way to heal a player. I actually REALY need this for my server..

Thanks
CrumDubh
 
I'm compiling, I changed every places in sourced where I think I had to (8.5 to 8.54, and 850 to 854)
is that what I had to do?
 
protocolgame.cpp:
Code:
void ProtocolGame::AddCreature(NetworkMessage_ptr msg, const Creature* creature, bool known, uint32_t remove)
{
	if(!known)
	{
		msg->AddU16(0x61);
		msg->AddU32(remove);
		msg->AddU32(creature->getID());
		msg->AddString(creature->getHideName() ? "" : creature->getName());
	}
	else
	{
		msg->AddU16(0x62);
		msg->AddU32(creature->getID());
	}

	if(!creature->getHideHealth())
		msg->AddByte((int32_t)std::ceil(((float)creature->getHealth()) * 100 / std::max(creature->getMaxHealth(), (int32_t)1)));
	else
		msg->AddByte(0x00);

	msg->AddByte((uint8_t)creature->getDirection());
	AddCreatureOutfit(msg, creature, creature->getCurrentOutfit());

	LightInfo lightInfo;
	creature->getCreatureLight(lightInfo);
	msg->AddByte(player->hasCustomFlag(PlayerCustomFlag_HasFullLight) ? 0xFF : lightInfo.level);
	msg->AddByte(lightInfo.color);

	msg->AddU16(creature->getStepSpeed());
	msg->AddByte(player->getSkullClient(creature));
	msg->AddByte(player->getPartyShield(creature));
[B][COLOR="Red"]	if(!known)
		msg->AddByte(0x00); // war emblem

	msg->AddByte(!player->canWalkthrough(creature));[/COLOR][/B]
}
 
finaly got it to work, but now I have a problem with saving characters.

Code:
[27/01/2010 17:36:55] sqlite3_step(): SQLITE ERROR: cannot start a transaction within a transaction
[27/01/2010 17:36:55] sqlite3_step(): SQLITE ERROR: cannot rollback transaction - SQL statements in progress
[27/01/2010 17:36:55] sqlite3_step(): SQLITE ERROR: cannot start a transaction within a transaction
[27/01/2010 17:36:55] sqlite3_step(): SQLITE ERROR: cannot rollback transaction - SQL statements in progress
[27/01/2010 17:36:55] sqlite3_step(): SQLITE ERROR: cannot start a transaction within a transaction
[27/01/2010 17:36:55] sqlite3_step(): SQLITE ERROR: cannot rollback transaction - SQL statements in progress
[27/01/2010 17:36:55] Error while saving player: Testing.

know how to fix it?
 
Back
Top