}
else if(command == TOCLIENT_TEXTURES)
{
- infostream<<"Client: Received textures: packet size: "<<datasize
- <<std::endl;
-
io::IFileSystem *irrfs = m_device->getFileSystem();
video::IVideoDriver *vdrv = m_device->getVideoDriver();
if(bunch_i == num_bunches - 1)
m_textures_received = true;
int num_textures = readU32(is);
- infostream<<"Client: Received textures: count: "<<num_textures
- <<std::endl;
+ infostream<<"Client: Received textures: bunch "<<bunch_i<<"/"
+ <<num_bunches<<" textures="<<num_textures
+ <<" size="<<datasize<<std::endl;
for(int i=0; i<num_textures; i++){
std::string name = deSerializeString(is);
std::string data = deSerializeLongString(is);
IToolDefManager *tooldef)
{
DSTACK(__FUNCTION_NAME);
- infostream<<"Server: Sending tool definitions"<<std::endl;
std::ostringstream os(std::ios_base::binary);
/*
// Make data buffer
std::string s = os.str();
- infostream<<"Server: Sending tool definitions: data size: "
+ infostream<<"Server::SendToolDef(): Sending tool definitions: size="
<<s.size()<<std::endl;
SharedBuffer<u8> data((u8*)s.c_str(), s.size());
// Send as reliable
INodeDefManager *nodedef)
{
DSTACK(__FUNCTION_NAME);
- infostream<<"Server: Sending node definitions"<<std::endl;
std::ostringstream os(std::ios_base::binary);
/*
// Make data buffer
std::string s = os.str();
- infostream<<"Server: Sending node definitions: data size: "
+ infostream<<"Server::SendNodeDef(): Sending node definitions: size="
<<s.size()<<std::endl;
SharedBuffer<u8> data((u8*)s.c_str(), s.size());
// Send as reliable
<<tname<<"\""<<std::endl;
continue;
}
- errorstream<<"Server::SendTextures(): Loaded \""
- <<tname<<"\""<<std::endl;
+ /*infostream<<"Server::SendTextures(): Loaded \""
+ <<tname<<"\""<<std::endl;*/
// Put in list
texture_bunches[texture_bunches.size()-1].push_back(
SendableTexture(tname, tpath, tmp_os.str()));
// Make data buffer
std::string s = os.str();
- infostream<<"Server::SendTextures(): number of textures in bunch["
- <<i<<"]: "<<texture_bunches[i].size()
- <<", size: "<<s.size()<<std::endl;
+ infostream<<"Server::SendTextures(): bunch "<<i<<"/"<<num_bunches
+ <<" textures="<<texture_bunches[i].size()
+ <<" size=" <<s.size()<<std::endl;
SharedBuffer<u8> data((u8*)s.c_str(), s.size());
// Send as reliable
m_con.Send(peer_id, 0, data, true);