using multiple hgs behind router !

Discussion about Helbreath Server Files.
Dshaked
<3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

Heh, I just like visit here sometimes, I had long pause, but I watching you guys.
I playing Helbreath nemesis, started some 1 month ago.
Juggalo that dont mean im back. <:
Old Helbreath Nemesis Player<br><img src='http://img232.imageshack.us/img232/9784/dshakedqc5.jpg' border='0' alt='user posted image' /><br><img src='http://img232.imageshack.us/img232/6475 ... barqj0.jpg' border='0' alt='user posted image' /><br><a href='index.php?showtopic=7107&hl=' target='_blank'>MainServer Hexing Tutorial</a><br><a href='index.php?showtopic=7663&hl=x-mas' target='_blank'>My Files</a>
dumper
Regular
Posts: 88
Joined: Sat Nov 18, 2006 8:25 pm

Post by dumper »

hey i need help and no useless comments pls :P
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

ok ok here u go

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;

use it well :P dont ask where ti gose cuz there only 1 spot lol
<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>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dshaked
&lt;3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

Nice juggalo <3
Old Helbreath Nemesis Player<br><img src='http://img232.imageshack.us/img232/9784/dshakedqc5.jpg' border='0' alt='user posted image' /><br><img src='http://img232.imageshack.us/img232/6475 ... barqj0.jpg' border='0' alt='user posted image' /><br><a href='index.php?showtopic=7107&hl=' target='_blank'>MainServer Hexing Tutorial</a><br><a href='index.php?showtopic=7663&hl=x-mas' target='_blank'>My Files</a>
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

Code: Select all

*ip = (int)m_iLogServerPort;
dumper
Regular
Posts: 88
Joined: Sat Nov 18, 2006 8:25 pm

Post by dumper »

Code: Select all

else
 memcpy(cp, m_cLogServerAddr, 15);
 else
 memcpy(cp, m_cLogServerAddr, 15);
:o ?
Dshaked
&lt;3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

What's the problem? Do it!
Old Helbreath Nemesis Player<br><img src='http://img232.imageshack.us/img232/9784/dshakedqc5.jpg' border='0' alt='user posted image' /><br><img src='http://img232.imageshack.us/img232/6475 ... barqj0.jpg' border='0' alt='user posted image' /><br><a href='index.php?showtopic=7107&hl=' target='_blank'>MainServer Hexing Tutorial</a><br><a href='index.php?showtopic=7663&hl=x-mas' target='_blank'>My Files</a>
dumper
Regular
Posts: 88
Joined: Sat Nov 18, 2006 8:25 pm

Post by dumper »

well im not that good in programming but isnt the second else useless ?
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

dumper wrote: well im not that good in programming but isnt the second else useless ?
mr. perfectionist
ADDKiD
&lt;3 bd long time
Posts: 967
Joined: Tue Jul 12, 2005 8:07 pm
Location: Washington, USA
Contact:

Post by ADDKiD »

Normally, You'd change LAN to Internet, with my router it works 100% like this, and personally, I'd trash your router, and stick to Direct Connection, or find a hub...
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

here you go i just recoded this one works like a charm the otehr was from other srces :P

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;
<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>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

ADDKiD wrote: Normally, You'd change LAN to Internet, with my router it works 100% like this, and personally, I'd trash your router, and stick to Direct Connection, or find a hub...
you only change that if you want you to connect, lan is for you and others to connect. but it's better to use internal ip for the hoster behind router to connect to server so it dont use anything.
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

juggalo2 wrote: here you go i just recoded this one works like a charm the otehr was from other srces :P

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;
yep same aspect in the registergameserver notify msg
dumper
Regular
Posts: 88
Joined: Sat Nov 18, 2006 8:25 pm

Post by dumper »

that one gives me 2 warnings :/
Crossfade
Loyal fan
Posts: 354
Joined: Sun Mar 20, 2005 5:55 pm

Post by Crossfade »

dumper wrote: that one gives me 2 warnings :/
i haven't tryed his way but i did my own a bit different from his.
Post Reply