if(command == TOSERVER_INIT2)
{
verbosestream<<"Server: Got TOSERVER_INIT2 from "
<<peer_id<<std::endl;
getClient(peer_id)->serialization_version
= getClient(peer_id)->pending_serialization_version;
/*
Send some initialization data
*/
infostream<<"Server: Sending content to "
<<getPlayerName(peer_id)<<std::endl;
// Send item definitions
SendItemDef(m_con, peer_id, m_itemdef);
// Send node definitions
SendNodeDef(m_con, peer_id, m_nodedef);
// Send texture announcement
SendTextureAnnouncement(peer_id);
// Send player info to all players
//SendPlayerInfos();
.....etc/etc
RabbiBob wrote:+1
Could this be leveraged at the point of all of the 'joins\joined' messaging that takes place in server.cpp?
LorenzoVulcan wrote:Isn't there "register_new_player" ?
sfan5 wrote:LorenzoVulcan wrote:Isn't there "register_new_player" ?
Yep, but thats called if a new player joins
new = never on the server before
sfan5 wrote:Yep!
LorenzoVulcan wrote:sfan5 wrote:Yep!
Uh,Ok thanks.
So why the "Give Initial Stuff" doesn't give everytime a player re-log on the server those stuff?
Users browsing this forum: No registered users and 4 guests