Worldlserver Source

All Helbreath Server Source Discussion here.
Post Reply
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Weird cause only edits I have made to Worldserver source....were

Changed on NetMessage.h
MSGID_REQUEST_REGISTERGAMESERVER
Also changed in bReadServerConfigFile
    case 4: // world-server-name Changed to be 30
     strncpy(m_cWorldLogName, token, 30);
     wsprintf(G_cTxt, "(*) World-Server-Name : %s", m_cWorldLogName);
     PutLogList(G_cTxt);
     cReadMode = 0;
     break;
Besides changed AscII to XxxII in all results of WorldLog.cpp

Might be caused cause using Snoopy's source client release :unsure:
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Keep getting wierdo messages...
(2006: 5:31: 8:23) - (TestLog) Verify Character Integrity (Character\\XxxII68\\Diablillo.txt)
(2006: 5:31: 8:23) - (TestLog) Verify Guild Integrity (Guild\\XxxII125\\}{ispaniK.txt)
(2006: 5:31: 8:23) - (TestLog) Send character(Diablillo) data...
(2006: 5:31: 8:23) - (X) Recieved Message (0x12A01006)
(2006: 5:31: 8:23) - (TestLog) ERROR! Account(diablillo) Password or level mismatch. Request Game Server to disconnect without data save...
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

loco its sems u musta changed your
#define MSGID_ENTERGAMECONFIRM 0x12A01006
in world server source and tgeh hgserver sending the msg and worls server dont know wtf it is :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>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

juggalo2 wrote: loco its sems u musta changed your
#define MSGID_ENTERGAMECONFIRM 0x12A01006
in world server source and tgeh hgserver sending the msg and worls server dont know wtf it is :P
Erm...I ma check it when get home but doubt so. B)
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Na...it's the same msg number.

Well, checked the function "EnterGameConfirm" and where the message's stored
at is in this part of the code:
switch(iGetCharacterInformation(cAccountName, cCharNameCheck, &iCheckLevel)) {
case 1:
case 2:
  if ((strcmp(cCharacterName, cCharNameCheck) != FALSE) || (iCheckLevel != iLevel)) {
  wsprintf(G_cTxt, "(TestLog) ERROR! Account(%s) Password or level mismatch. Request Game Server to disconnect without data save...", cAccountName);
  PutLogList(G_cTxt);
  wsprintf(G_cTxt, "(TestLog) %s - %s  %d - %d", cCharacterName, cCharNameCheck, iLevel, iCheckLevel);
  PutLogList(G_cTxt);
  dwp = (DWORD *)(cTemp);
  *dwp = MSGID_REQUEST_FORCEDISCONECTACCOUNT;
  wp  = (WORD *)(cTemp + DEF_INDEX2_MSGTYPE);
  *wp = DEF_MSGTYPE_CONFIRM;
  cp  = (char *)(cTemp + DEF_INDEX2_MSGTYPE + 2);
  memcpy(cp, cAccountName, 10);
  cp += 10;
  iRet = m_pClientList[iClientH]->m_pXSock->iSendMsg(cTemp, 16, DEF_USE_ENCRYPTION);
  switch(iRet) {
  case DEF_XSOCKEVENT_QUENEFULL:
  case DEF_XSOCKEVENT_SOCKETERROR:
  case DEF_XSOCKEVENT_CRITICALERROR:
  case DEF_XSOCKEVENT_SOCKETCLOSED:
    DeleteClient(iClientH);
    delete m_pClientList[iClientH];
    m_pClientList[iClientH] = NULL;
    return;
  }   
  return;
  }
  break;
Anyways checking this part..."iGetCharacterInformation"
int CWorldLog::iGetCharacterInformation(char * cAccountName, char * cCharacterName, int * iLevel)
{
int i;

for (i = 0; i < DEF_MAXPLAYERACCOUNTS; i++) {
  if ((m_pAccountList != NULL) && (strcmp(m_pAccountList->cAccountName, cAccountName) == 0)) {
  memcpy(cCharacterName, m_pAccountList->cPassword, 10);
  *iLevel = m_pAccountList->m_iLevel;
  return m_pAccountList->cAccountType;
  }
}
return 0;
}


Comparing CharacterName with the Password??? :rolleyes:
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
Dax
&lt;3 bd long time
Posts: 785
Joined: Mon Apr 18, 2005 3:19 pm

Post by Dax »

locobans wrote: Na...it's the same msg number.

Well, checked the function "EnterGameConfirm" and where the message's stored
at is in this part of the code:
switch(iGetCharacterInformation(cAccountName, cCharNameCheck, &iCheckLevel)) {
case 1:
case 2:
  if ((strcmp(cCharacterName, cCharNameCheck) != FALSE) || (iCheckLevel != iLevel)) {
   wsprintf(G_cTxt, "(TestLog) ERROR! Account(%s) Password or level mismatch. Request Game Server to disconnect without data save...", cAccountName);
   PutLogList(G_cTxt);
   wsprintf(G_cTxt, "(TestLog) %s - %s  %d - %d", cCharacterName, cCharNameCheck, iLevel, iCheckLevel);
   PutLogList(G_cTxt);
   dwp = (DWORD *)(cTemp);
   *dwp = MSGID_REQUEST_FORCEDISCONECTACCOUNT;
   wp  = (WORD *)(cTemp + DEF_INDEX2_MSGTYPE);
   *wp = DEF_MSGTYPE_CONFIRM;
   cp  = (char *)(cTemp + DEF_INDEX2_MSGTYPE + 2);
   memcpy(cp, cAccountName, 10);
   cp += 10;
   iRet = m_pClientList[iClientH]->m_pXSock->iSendMsg(cTemp, 16, DEF_USE_ENCRYPTION);
   switch(iRet) {
   case DEF_XSOCKEVENT_QUENEFULL:
   case DEF_XSOCKEVENT_SOCKETERROR:
   case DEF_XSOCKEVENT_CRITICALERROR:
   case DEF_XSOCKEVENT_SOCKETCLOSED:
    DeleteClient(iClientH);
    delete m_pClientList[iClientH];
    m_pClientList[iClientH] = NULL;
    return;
   }    
   return;
  }
  break;
Anyways checking this part..."iGetCharacterInformation"
int CWorldLog::iGetCharacterInformation(char * cAccountName, char * cCharacterName, int * iLevel)
{
int i;

for (i = 0; i < DEF_MAXPLAYERACCOUNTS; i++) {
  if ((m_pAccountList != NULL) && (strcmp(m_pAccountList->cAccountName, cAccountName) == 0)) {
   memcpy(cCharacterName, m_pAccountList->cPassword, 10);
   *iLevel = m_pAccountList->m_iLevel;
   return m_pAccountList->cAccountType;
  }
}
return 0;
}


Comparing CharacterName with the Password??? :rolleyes:

Copies m_pAccountList->cPassword to cCharacterName
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>
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Dax wrote:
locobans wrote: Na...it's the same msg number.

Well, checked the function "EnterGameConfirm" and where the message's stored
at is in this part of the code:
switch(iGetCharacterInformation(cAccountName, cCharNameCheck, &iCheckLevel)) {
case 1:
case 2:
  if ((strcmp(cCharacterName, cCharNameCheck) != FALSE) || (iCheckLevel != iLevel)) {
   wsprintf(G_cTxt, "(TestLog) ERROR! Account(%s) Password or level mismatch. Request Game Server to disconnect without data save...", cAccountName);
   PutLogList(G_cTxt);
   wsprintf(G_cTxt, "(TestLog) %s - %s  %d - %d", cCharacterName, cCharNameCheck, iLevel, iCheckLevel);
   PutLogList(G_cTxt);
   dwp = (DWORD *)(cTemp);
   *dwp = MSGID_REQUEST_FORCEDISCONECTACCOUNT;
   wp  = (WORD *)(cTemp + DEF_INDEX2_MSGTYPE);
   *wp = DEF_MSGTYPE_CONFIRM;
   cp  = (char *)(cTemp + DEF_INDEX2_MSGTYPE + 2);
   memcpy(cp, cAccountName, 10);
   cp += 10;
   iRet = m_pClientList[iClientH]->m_pXSock->iSendMsg(cTemp, 16, DEF_USE_ENCRYPTION);
   switch(iRet) {
   case DEF_XSOCKEVENT_QUENEFULL:
   case DEF_XSOCKEVENT_SOCKETERROR:
   case DEF_XSOCKEVENT_CRITICALERROR:
   case DEF_XSOCKEVENT_SOCKETCLOSED:
    DeleteClient(iClientH);
    delete m_pClientList[iClientH];
    m_pClientList[iClientH] = NULL;
    return;
   }    
   return;
  }
  break;
Anyways checking this part..."iGetCharacterInformation"
int CWorldLog::iGetCharacterInformation(char * cAccountName, char * cCharacterName, int * iLevel)
{
int i;

for (i = 0; i < DEF_MAXPLAYERACCOUNTS; i++) {
  if ((m_pAccountList != NULL) && (strcmp(m_pAccountList->cAccountName, cAccountName) == 0)) {
   memcpy(cCharacterName, m_pAccountList->cPassword, 10);
   *iLevel = m_pAccountList->m_iLevel;
   return m_pAccountList->cAccountType;
  }
}
return 0;
}


Comparing CharacterName with the Password??? :rolleyes:

Copies m_pAccountList->cPassword to cCharacterName

Thanks you :)
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
Hypnotoad
Member
Posts: 100
Joined: Wed Apr 28, 2004 8:16 pm

Post by Hypnotoad »

nono the variable is named cCharName but it really is to store the password. If it makes you feel better change it to cPasswordCheck. I was just transcribing it and thought the packet from 16-26 was char name but it was password. So that part is right
<img src='http://www.playah.no-ip.com/images/Hypn ... imated.gif' border='0' alt='user posted image' />
Dax
&lt;3 bd long time
Posts: 785
Joined: Mon Apr 18, 2005 3:19 pm

Post by Dax »

Hypnotoad wrote: nono the variable is named cCharName but it really is to store the password.  If it makes you feel better change it to cPasswordCheck.  I was just transcribing it and thought the packet from 16-26 was char name but it was password.  So that part is right
Copy or store it all ends up in the same place.
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>
marleythe9
Loyal fan
Posts: 391
Joined: Sat Mar 26, 2005 12:41 am

Post by marleythe9 »

warning fixes, since it did say posable loss of data ;) heres warning fixes, u just used DWORD when the veribal was being used for numbers..

in xsocket.h

Code: Select all

m_dwBufferSize to int
and
m_dwReadSize to int
also
xsocket.cpp

Code: Select all

iSendMsg - funciton

parameter typ of dwSize to an int instead of DWORD.
aaa im not sure about this
but is this supos to be == and not !=
never mind, heh item error :(... in my cfg...

err i get a crash when i try to create a character :(... is this why??? this is for skills...

Code: Select all

wsprintf(cTxt, "0 0 0 3 20 24 0 24 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ");
ugg ok never mind that was the bugg i just put it were it wrote the Skill =

now it seams to work :)
<img src='http://freewebs.com/trickro/70s.png' border='0' alt='user posted image' /><img src='http://freewebs.com/trickro/70s2.jpg' border='0' alt='user posted image' />
Audioslave
noob
Posts: 24
Joined: Sat Dec 25, 2004 2:40 pm

Post by Audioslave »

World server send and receive all msgs more slowly than original. How can i fix it?
marleythe9
Loyal fan
Posts: 391
Joined: Sat Mar 26, 2005 12:41 am

Post by marleythe9 »

i can tell u some bugs right now, WLserver crashes when u close the HGserver...

also, theres some wierd bug i had, i'm not sure what it was, becouse my player barly spoke english heh, but he couldnt log on becouse it keep saying his character was in use... iv never had that happen before.

wont work with local ips.
<img src='http://freewebs.com/trickro/70s.png' border='0' alt='user posted image' /><img src='http://freewebs.com/trickro/70s2.jpg' border='0' alt='user posted image' />
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

what u mean more slower

and marley dosnt crash for me when i up and down hg mabby theres somthing wroung hg side or theres a msg changed have u debuged ur errors easy way to do that keep the world server project up and when its crashes hit debug and go throi its will give u the whats ever its is and then keep the worldlog.cpp thing open befor tho and it will bring to to the error :P well at lest it dose when i do that :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>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
snoopy81
Loyal fan
Posts: 338
Joined: Mon Jul 12, 2004 7:13 pm

Post by snoopy81 »

but he couldnt log on becouse it keep saying his character was in use... iv never had that happen before.
Had this nasty bug long ago. took mounths to repair !
The explanation was gserver-sided: When I added a 3rd city , I forgot an unused table, and of course this table overflew with the 3rd city. Fix was finally quite simple: remove this unused Siementec feature...
_\_ _<br> / , \__/ . \ Admin of Equilibrium Project<br> II\ \___ . O<br> III \_/ \ _ / <a href='http://www.equiprojet.com' target='_blank'>http://www.equiprojet.com</a><br> II I¯I
marleythe9
Loyal fan
Posts: 391
Joined: Sat Mar 26, 2005 12:41 am

Post by marleythe9 »

snoopy you lost me :(... and life debug don work... comps useing windows 2003 :(... it may work if i restart the comp lol...
<img src='http://freewebs.com/trickro/70s.png' border='0' alt='user posted image' /><img src='http://freewebs.com/trickro/70s2.jpg' border='0' alt='user posted image' />
Post Reply