Author Topic: GCB Problem  (Read 1135 times)

kingsamurie

  • Newbie
  • *
  • Posts: 42
  • Karma: +0/-9
    • View Profile
GCB Problem
« on: July 04, 2015, 08:37:26 am »
Some people in garena complain that my room is full although it is not by 1 player. For Example max players is 9 with 3 computers but some  people see it as 1 left but some see my room as full.

uakf.b

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
  • Karma: +86/-12
    • View Profile
Re: GCB Problem
« Reply #1 on: July 04, 2015, 01:36:14 pm »
This is controlled by the host bot, not gcb. Try this for GAMEINFO packet in game_base.cpp:
Code: [Select]
                        uint32_t slotstotal = m_Slots.size( );
                        uint32_t slotsopen = GetSlotsOpen();
                        if (slotsopen<2) slotsopen = 2;
                        if(slotstotal > 12) slotstotal = 12;
// ...
m_GHost->m_UDPSocket->Broadcast( 6112, m_Protocol->SEND_W3GS_GAMEINFO( m_GHost->m_TFT, m_GHost->m_LANWar3Version, UTIL_CreateByteArray( MapGameType, false ), m_Map->GetMapGameFlags( ), m_Map->GetMapWidth( ), m_Map->GetMapHeight( ), m_GameName, "Varlock", GetTime( ) - m_CreationTime, m_Map->GetMapPath( ), m_Map->GetMapCRC( ), slotstotal, slotsopen, m_HostPort, FixedHostCounter, m_EntryKey ) );