using multiple hgs behind router !

Discussion about Helbreath Server Files.
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

dumper wrote:

Code: Select all

case DEF_NOTIFY_SERVERCHANGE:
  memcpy(cp, m_pClientList[iToH]->m_cMapName, 10);
  cp += 10; 
  if (m_iGameServerMode == 1) {
  if (memcmp(m_cGameServerAddr, m_cGameServerAddrExternal, 15) == 0); }
  if (m_iGameServerMode == 2) {
  if (memcmp(m_cGameServerAddr, m_cGameServerAddr, 15) == 0); }
  memcpy(cp, m_cLogServerAddr, 15);
  cp += 15;
  ip = (int *)cp;
  *ip = m_iLogServerPort;
  cp += 4;
  iRet = m_pClientList[iToH]->m_pXSock->iSendMsg(cData, 16 +19);
  break;
this one doesnt work at all :(
use mines it works :P i have a router and its works fine with the one i have.

aslo dax wtf is wroung with mines if u look at

Code: Select all

case MSGID_REQUEST_REGISTERGAMESERVER:
  
  wsprintf(cTxt, "(!) Try to register game server(%s) - GateServer", m_cServerName);
  PutLogList(cTxt);
  
  dwp  = (DWORD *)(cData + DEF_INDEX4_MSGID);
  *dwp = MSGID_REQUEST_REGISTERGAMESERVER;
  wp   = (WORD *)(cData + DEF_INDEX2_MSGTYPE);
  *wp  = DEF_MSGTYPE_CONFIRM;
  
  cp = (char *)(cData + DEF_INDEX2_MSGTYPE + 2);

  memcpy(cAccountName, m_cServerName, 10);
  if (m_iGameServerMode == 1)
  {
  	memcpy(cAddress, m_cGameServerAddrInternal, strlen(m_cGameServerAddrInternal));
  }
  if (m_iGameServerMode == 2)
  {
  	memcpy(cAddress, m_cGameServerAddr, strlen(m_cGameServerAddr));
  }

  memcpy(cp, cAccountName, 10);
  cp += 10;

  memcpy(cp, cAddress, 16);
  cp += 16;

  wp  = (WORD *)cp;
  *wp = m_iGameServerPort;
  cp += 2;

  *cp = m_iTotalMaps;
  cp++;

  for (i = 0; i < m_iTotalMaps; i++) {
  	memcpy(cp, m_pMapList[i]->m_cName, 11);
  	cp += 11;
  }
  
  dwp = (DWORD *)cp;
  *dwp = (DWORD)GetCurrentProcessId();	

  cp += 4;
  dwp = (DWORD *)cp;
  *dwp = DEF_BUILDDATE;

  iRet = m_pGateSock->iSendMsg(cData, 43 + m_iTotalMaps*11);
  break;
and the right ones is

Code: Select all

case DEF_NOTIFY_SERVERCHANGE:
  memcpy(cp, m_pClientList[iToH]->m_cMapName, 10);
  cp += 10; 
  if (m_iGameServerMode == 1) {
  if (memcmp(m_cGameServerAddrExternal, m_cGameServerAddrExternal, 15) == 0); }
  if (m_iGameServerMode == 2) {
  if (memcmp(m_cGameServerAddr, m_cGameServerAddr, 15) == 0); }
  memcpy(cp, m_cLogServerAddr, 15);
  cp += 15;
  ip = (int *)cp;
  *ip = m_iLogServerPort;
  cp += 4;
  iRet = m_pClientList[iToH]->m_pXSock->iSendMsg(cData, 16 +19);
  break;
so if mines is coded wroung then theres is 2 lol hahahahah noob make sure u know wtf u talkin about when u post :P
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

juggalo2 wrote:
bone-you wrote:
It's all a joke. His English sucks.
mines sucks better lol ahahha
You definitely win that award. xD
<img src='http://www.helbreathx.net/sig/sig.jpeg' border='0' alt='user posted image' /><br><a href='http://mafia.cheats4us.org/index.php?x=231030' target='_blank'>#1 on Mafia :D</a><br><!--QuoteBegin-Slipknight+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Slipknight)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->100mb Internet, burstable too 10GB oc192<br>his speed can go up too 10gbs<br>...<br>Yes my car can have a top speed of 1000mph<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>^^ I wonder where the retard went to.
Dax
&lt;3 bd long time
Posts: 785
Joined: Mon Apr 18, 2005 3:19 pm

Post by Dax »

juggalo2 wrote:so if mines is coded wroung then theres is 2 lol hahahahah noob make sure u know wtf u talkin about when u post :P
WRONG!!!


Ahahahaha noob make sure u know wtf ur coding before you code it.
Reppin' 127.0.0.1!!!<br><br><img src='http://img502.imageshack.us/img502/1348/sig4daxbn2.jpg' border='0' alt='user posted image' /><br><br>I contend that we are both atheists. I just believe in one fewer god than you do. <br>When you understand why you dismiss all the other possible gods, you will <br>understand why I dismiss yours.<br>~ <b>Stephen Roberts</b>
ADDKiD
&lt;3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

juggalo2 wrote:
bone-you wrote:
It's all a joke. His English sucks.
mines sucks better lol ahahha
We all noticed. Least some of us can read what you type.

Orkl: It's somewhat of a joke, I'm the only person who could write a 15 Page English paper, and the only one who got a A on it. The Subject was "War on Terror". So, it was easy enough to write. Zero, just doesn't flat out like me. Who could blame him. I don't care.

Dax: I'm jealous now, you fucker! You quit picking on me, and now on Juggalo2. Where's the love?
Dax
&lt;3 bd long time
Posts: 785
Joined: Mon Apr 18, 2005 3:19 pm

Post by Dax »

ADDKiD wrote: Dax: I'm jealous now, you fucker! You quit picking on me, and now on Juggalo2. Where's the love?
Plenty of insults for everyone. PM me if you require a personalized insult.
Reppin' 127.0.0.1!!!<br><br><img src='http://img502.imageshack.us/img502/1348/sig4daxbn2.jpg' border='0' alt='user posted image' /><br><br>I contend that we are both atheists. I just believe in one fewer god than you do. <br>When you understand why you dismiss all the other possible gods, you will <br>understand why I dismiss yours.<br>~ <b>Stephen Roberts</b>
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

ADDKiD wrote:
juggalo2 wrote:
bone-you wrote:
It's all a joke. His English sucks.
mines sucks better lol ahahha
We all noticed. Least some of us can read what you type.

Orkl: It's somewhat of a joke, I'm the only person who could write a 15 Page English paper, and the only one who got a A on it. The Subject was "War on Terror". So, it was easy enough to write. Zero, just doesn't flat out like me. Who could blame him. I don't care.

Dax: I'm jealous now, you fucker! You quit picking on me, and now on Juggalo2. Where's the love?
Brag brag brag. Who gives a shit about your A in English? Considering a majority of the HB community is spanish and you suck at life, how is English going to help you anywhere? Your English flat out sucks anyway. Remember that msn convo? I caught you on at least 20 mistakes within a few minutes on top of your excessive period usage........................................

You couldn't major in English if you even wanted to. You aren't even in college so how can you major in anything? Reality > dreamworld.

Those with routers trying to host need to stop trying and join a bigger server instead of having 1000 small servers with 5 people on them.
<img src='http://www.helbreathx.net/sig/sig.jpeg' border='0' alt='user posted image' /><br><a href='http://mafia.cheats4us.org/index.php?x=231030' target='_blank'>#1 on Mafia :D</a><br><!--QuoteBegin-Slipknight+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Slipknight)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->100mb Internet, burstable too 10GB oc192<br>his speed can go up too 10gbs<br>...<br>Yes my car can have a top speed of 1000mph<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>^^ I wonder where the retard went to.
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

bone-you wrote:
ADDKiD wrote:
juggalo2 wrote: mines sucks better lol ahahha
We all noticed. Least some of us can read what you type.

Orkl: It's somewhat of a joke, I'm the only person who could write a 15 Page English paper, and the only one who got a A on it. The Subject was "War on Terror". So, it was easy enough to write. Zero, just doesn't flat out like me. Who could blame him. I don't care.

Dax: I'm jealous now, you fucker! You quit picking on me, and now on Juggalo2. Where's the love?
Brag brag brag. Who gives a shit about your A in English? Considering a majority of the HB community is spanish and you suck at life, how is English going to help you anywhere? Your English flat out sucks anyway. Remember that msn convo? I caught you on at least 20 mistakes within a few minutes on top of your excessive period usage........................................

You couldn't major in English if you even wanted to. You aren't even in college so how can you major in anything? Reality > dreamworld.

Those with routers trying to host need to stop trying and join a bigger server instead of having 1000 small servers with 5 people on them.
Routers can serve to be very useful if you know what your doing with one.
bone-you
Spamtastic
Posts: 1310
Joined: Wed Mar 16, 2005 3:12 am

Post by bone-you »

Crossfade wrote:
bone-you wrote:
ADDKiD wrote: We all noticed. Least some of us can read what you type.

Orkl: It's somewhat of a joke, I'm the only person who could write a 15 Page English paper, and the only one who got a A on it. The Subject was "War on Terror". So, it was easy enough to write. Zero, just doesn't flat out like me. Who could blame him. I don't care.

Dax: I'm jealous now, you fucker! You quit picking on me, and now on Juggalo2. Where's the love?
Brag brag brag. Who gives a shit about your A in English? Considering a majority of the HB community is spanish and you suck at life, how is English going to help you anywhere? Your English flat out sucks anyway. Remember that msn convo? I caught you on at least 20 mistakes within a few minutes on top of your excessive period usage........................................

You couldn't major in English if you even wanted to. You aren't even in college so how can you major in anything? Reality > dreamworld.

Those with routers trying to host need to stop trying and join a bigger server instead of having 1000 small servers with 5 people on them.
Routers can serve to be very useful if you know what your doing with one.
Most of these servers with routers only use them because they have to for NAT.. not for what you're thinking of.
<img src='http://www.helbreathx.net/sig/sig.jpeg' border='0' alt='user posted image' /><br><a href='http://mafia.cheats4us.org/index.php?x=231030' target='_blank'>#1 on Mafia :D</a><br><!--QuoteBegin-Slipknight+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Slipknight)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->100mb Internet, burstable too 10GB oc192<br>his speed can go up too 10gbs<br>...<br>Yes my car can have a top speed of 1000mph<!--QuoteEnd--></td></tr></table><div class='signature'><!--QuoteEEnd--><br>^^ I wonder where the retard went to.
dumper
Regular
Posts: 88
Joined: Sat Nov 18, 2006 8:25 pm

Post by dumper »

Code: Select all

case DEF_NOTIFY_SERVERCHANGE:
 memcpy(cp, m_pClientList[iToH]->m_cMapName, 10);
 cp += 10; 
 if (m_iGameServerMode == 1) {
 if (memcmp(m_cGameServerAddr, m_cGameServerAddrExternal, 15) == 0); }
 if (m_iGameServerMode == 2) {
 if (memcmp(m_cGameServerAddr, m_cGameServerAddr, 15) == 0); }
 memcpy(cp, m_cLogServerAddr, 15);
 cp += 15;
 ip = (int *)cp;
 *ip = m_iLogServerPort;
 cp += 4;
 iRet = m_pClientList[iToH]->m_pXSock->iSendMsg(cData, 16 +19);
 break;
this one still doesnt work for me .... if only use external ip in gserver config

Code: Select all

case DEF_NOTIFY_SERVERCHANGE:
 memcpy(cp, m_pClientList[iToH]->m_cMapName, 10);
 cp += 10; 
 if (m_iGameServerMode == 1)
 if (memcmp(m_cLogServerAddr, m_cGameServerAddr, 15) == 0)
 memcpy(cp, m_cGameServerAddrExternal, 15);
 else
 memcpy(cp, m_cLogServerAddr, 15);
 else
 memcpy(cp, m_cLogServerAddr, 15);
 cp += 15;
 ip = (int *)cp;
 *ip = m_iLogServerPort;
 cp += 4;
 iRet = m_pClientList[iToH]->m_pXSock->iSendMsg(cData, 16 +19);
 break;
this one works but causes many bugs :(
any other ways ??
any why does it cause problems when i only change log-server-address in gserver config to external ? -.-
Post Reply