Author Topic: Ghost ++ For Garena. HostinG  (Read 1289 times)

leozetexs

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-2
    • View Profile
Ghost ++ For Garena. HostinG
« on: July 23, 2015, 02:53:17 pm »
You can make a video on youtube to configure ghost ++ for garena ?

So that everyone understands and can create...


Thanks possible
« Last Edit: July 25, 2015, 07:09:25 pm by leozetexs »

uakf.b

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
  • Karma: +86/-12
    • View Profile
Re: Configuring Ghost to Garena? How to set any map in ghost ++?
« Reply #1 on: July 23, 2015, 05:21:24 pm »
Try something like this for broadcasting 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;

// note: the PrivateGame flag is not set when broadcasting to LAN (as you might expect)
// note: we do not use m_Map->GetMapGameType because none of the filters are set when broadcasting to LAN (also as you might expect)

uint32_t MapGameType = MAPGAMETYPE_UNKNOWN0;
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 ) );