if(!isTable())throwELuaNotATable(NLMISC::toString("Trying to set a value '%d"NL_I64"' at key %s on object '%s' of type %s (not a table).",value,key,getId().c_str(),getTypename()));
if(!isTable())throwELuaNotATable(NLMISC::toString("Trying to set a value '%"NL_I64"d' at key %s on object '%s' of type %s (not a table).",value,key,getId().c_str(),getTypename()));
nldebug("CDB: Pushing value %"NL_I64"d (TEXT-32) for index %d prop %s",(sint64)value,index,node->buildTextId().toString().c_str());
nldebug("CDB: Pushing value %"NL_I64"d (TEXT-32) for index %d prop %s",(sint64)value,index,node->buildTextId().toString().c_str());
}
}
else
else
{
{
s.serialAndLog2(value,(uint)node->type());
s.serialAndLog2(value,(uint)node->type());
bitsize+=(uint32)node->type();
bitsize+=(uint32)node->type();
if(VerboseDatabase)
if(VerboseDatabase)
nldebug("CDB: Pushing value %"NL_I64"d (%u bits) for index %d prop %s",(sint64)value,(uint32)node->type(),index,node->buildTextId().toString().c_str());
nldebug("CDB: Pushing value %"NL_I64"d (%u bits) for index %d prop %s",(sint64)value,(uint32)node->type(),index,node->buildTextId().toString().c_str());
nldebug("CDB: Pushing permanent value %"NL_I64"d (TEXT-32) for index %d prop %s",(sint64)value,index,node->buildTextId().toString().c_str());
nldebug("CDB: Pushing permanent value %"NL_I64"d (TEXT-32) for index %d prop %s",(sint64)value,index,node->buildTextId().toString().c_str());
}
}
else
else
{
{
s.serialAndLog2(value,(uint)node->type());
s.serialAndLog2(value,(uint)node->type());
bitsize+=(uint32)node->type();
bitsize+=(uint32)node->type();
if(VerboseDatabase)
if(VerboseDatabase)
nldebug("CDB: Pushing permanent value %"NL_I64"d (%u bits) for index %d prop %s",(sint64)value,(uint32)node->type(),index,node->buildTextId().toString().c_str());
nldebug("CDB: Pushing permanent value %"NL_I64"d (%u bits) for index %d prop %s",(sint64)value,(uint32)node->type(),index,node->buildTextId().toString().c_str());
nlinfo("CDB: Set new value %"NL_I64"d for prop %s in atom %s",value,name.c_str(),groupNodeFinder->getParent()?groupNodeFinder->getName()->c_str():"(root)");
nlinfo("CDB: Set new value %"NL_I64"d for prop %s in atom %s",value,name.c_str(),groupNodeFinder->getParent()?groupNodeFinder->getName()->c_str():"(root)");
nlwarning("INVISIBILITY (teleportCharacter) Player %s already being Tp as _WhoSeesMeBeforeTp is = %"NL_I64"u and WhoSeesMe = %"NL_I64"u",_Id.toString().c_str(),_WhoSeesMeBeforeTP,whoSeesMe.getValue());
nlwarning("INVISIBILITY (teleportCharacter) Player %s already being Tp as _WhoSeesMeBeforeTp is = %"NL_I64"u and WhoSeesMe = %"NL_I64"u",_Id.toString().c_str(),_WhoSeesMeBeforeTP,whoSeesMe.getValue());
BOMB_IF(_WhoSeesMeBeforeTP!=NOT_TELEPORTING_FLAG&&whoSeesMe!=NOT_TELEPORTING_FLAG,NLMISC::toString("Failing to set _WhoSeesMeBeforeTP old value=%"NL_I64"x new value =%"NL_I64"x",_WhoSeesMeBeforeTP,whoSeesMe),return);
BOMB_IF(_WhoSeesMeBeforeTP!=NOT_TELEPORTING_FLAG&&whoSeesMe!=NOT_TELEPORTING_FLAG,NLMISC::toString("Failing to set _WhoSeesMeBeforeTP old value=%"NL_I64"x new value =%"NL_I64"x",_WhoSeesMeBeforeTP,whoSeesMe),return);
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu SHEET at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_SHEET,outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu SHEET at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_SHEET,outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu BEHAVIOUR at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_BEHAVIOUR,outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu BEHAVIOUR at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_BEHAVIOUR,outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu NAME_STRING_ID at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_NAME_STRING_ID,outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu NAME_STRING_ID at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_NAME_STRING_ID,outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu BARS at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_BARS,outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu BARS at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_BARS,outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu %s at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,propIndex,CLFECOMMON::getPropText(propIndex),outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu %s at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,propIndex,CLFECOMMON::getPropText(propIndex),outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu CONTEXTUAL at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_CONTEXTUAL,outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu CONTEXTUAL at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_CONTEXTUAL,outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu VISUAL_FX at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_VISUAL_FX,outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu VISUAL_FX at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_VISUAL_FX,outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu GUILD_NAME_ID at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_GUILD_NAME_ID,outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu GUILD_NAME_ID at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_GUILD_NAME_ID,outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu GUILD_SYMBOL at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_GUILD_SYMBOL,outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu GUILD_SYMBOL at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_GUILD_SYMBOL,outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu EVENT_FACTION_ID at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_EVENT_FACTION_ID,outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu EVENT_FACTION_ID at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_EVENT_FACTION_ID,outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu PVP_MODE at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_PVP_MODE,outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu PVP_MODE at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_PVP_MODE,outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu PVP_CLAN at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_PVP_CLAN,outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu PVP_CLAN at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_PVP_CLAN,outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu OWNER_PEOPLE at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_OWNER_PEOPLE,outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu OWNER_PEOPLE at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_OWNER_PEOPLE,outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu OUTPOST_INFOS at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_OUTPOST_INFOS,outbox.getPosInBit(),ap->getValue());
LOG_WHAT_IS_SENT("%u: Filling buffer for C%hu S%hu P%hu OUTPOST_INFOS at bitpos %d - value %"NL_I64"u",CTickEventHandler::getGameCycle(),TVPNodeServer::PrioContext.ClientId,(uint16)TVPNodeServer::PrioContext.Slot,PROPERTY_OUTPOST_INFOS,outbox.getPosInBit(),ap->getValue());
QMessageBox::StandardButtonres=QMessageBox::warning(this,tr("Error"),tr("Error '%1' occured when trying to check free disk space on %2.").arg(error).arg(m_dstDirectory));
nlwarning("Error '%s' (%d) occured when trying to check free disk space on %s, continue anyway",NLMISC::formatErrorMessage(error).c_str(),error,Q2C(m_dstDirectory));
QMessageBox::StandardButtonres=QMessageBox::warning(this,tr("Not enough free disk space"),tr("You don't have enough free space on this disk, please make more space or choose a directory on another disk."));
QMessageBox::StandardButtonres=QMessageBox::warning(this,tr("Not enough free disk space"),tr("You don't have enough free space on this disk, please make more space or choose a directory on another disk."));
QMessageBox::StandardButtonres=QMessageBox::warning(this,tr("Error"),tr("Error '%1' occured when trying to check free disk space on %2.").arg(error).arg(m_dstDirectory));
nlwarning("Error '%s' (%d) occured when trying to check free disk space on %s, continue anyway",NLMISC::formatErrorMessage(error).c_str(),error,Q2C(m_dstDirectory));
QMessageBox::StandardButtonres=QMessageBox::warning(this,tr("Not enough free disk space"),tr("You don't have enough free space on this disk, please make more space or choose a directory on another disk."));
QMessageBox::StandardButtonres=QMessageBox::warning(this,tr("Not enough free disk space"),tr("You don't have enough free space on this disk, please make more space or choose a directory on another disk."));