2.24b source bug

Discussion about Helbreath Server Files.
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

weird bugs lol i think i ve seen some party bugs but not a lot :)
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>
Windy
Member
Posts: 157
Joined: Tue Nov 18, 2003 8:31 am
Location: wishing I was somewhere else

Post by Windy »

oh yea I just rremembered another bug/unadded feature or something but u cant really upgrade with the maj points... even if u set them to + number high enough to upgrade the item it doesnt even work lol and it uses a xel stone for the DK flam and everything, if u fail at +1 u also lose the DK item haha
<span style='color:blue'>Coding with Evil Intentions....Evil at its Best....</span>
Cookies
Regular
Posts: 43
Joined: Tue Jan 04, 2005 1:39 pm

Post by Cookies »

well I've fixed most of the bugs, gunna put some of my shitz0r in now, a better fast cast detect0r, new classes n shit :)
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

paste some bug fixes
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>
Cookies
Regular
Posts: 43
Joined: Tue Jan 04, 2005 1:39 pm

Post by Cookies »

what I get in return? :D
Windy
Member
Posts: 157
Joined: Tue Nov 18, 2003 8:31 am
Location: wishing I was somewhere else

Post by Windy »

the feelin of helpin out ppl that dont know C++? I wouldnt learn it for just the server files...but thats the reason why I asked for it to be posted in "server help" either way...it will be posted sooner or later...
<span style='color:blue'>Coding with Evil Intentions....Evil at its Best....</span>
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

I tested a crusade today and guess what...

if u make around 4+ mana collectors generator will activate every 15secs lol

after the other city endurance is = 0 that map crashes

even if the other city map crash crusade still on and no one lose or win

funny shit uh? :lol:
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>
Windy
Member
Posts: 157
Joined: Tue Nov 18, 2003 8:31 am
Location: wishing I was somewhere else

Post by Windy »

locobans wrote: I tested a crusade today and guess what...

if u make around 4+ mana collectors generator will activate every 15secs lol

after the other city endurance is = 0 that map crashes

even if the other city map crash crusade still on and no one lose or win

funny shit uh? :lol:
so basically we could proabably just replace the crusade code with an older version of the crusade since there are really no updates to a crusade, it was just kinda added in and nothing changed..
<span style='color:blue'>Coding with Evil Intentions....Evil at its Best....</span>
Zabuza
Member
Posts: 160
Joined: Thu Jan 22, 2004 11:05 pm

Post by Zabuza »

With this my middleland hgserver doesn't crash when entering crusade mode, but i can't enter the game to test it yet. Maybe you'd like to test it.

Code: Select all

void CGame::CreateCrusadeStructures()
{
 int i, z, tX, tY, iNamingValue;
 char cName[6], cNpcName[21], cNpcWayPoint[11];

	ZeroMemory(cName, sizeof(cName));
	ZeroMemory(cNpcName, sizeof(cNpcName));
	ZeroMemory(cNpcWayPoint, sizeof(cNpcWayPoint));

	for (i = 0; i < DEF_MAXCRUSADESTRUCTURES; i++) 
	if (m_stCrusadeStructures[i].cType != NULL) {
  for (z = 0; z < DEF_MAXMAPS; z++)
  if ((m_pMapList[z] != NULL) && (strcmp(m_pMapList[z]->m_cName, m_stCrusadeStructures[i].cMapName) == 0)) {
  	// À§Ä¡°¡ ÀÏÄ¡ÇÏ´Â ¸Ê¿¡ °ÇÃ๰À» À§Ä¡½ÃŲ´Ù.
  	iNamingValue = m_pMapList[z]->iGetEmptyNamingValue();
  	if (iNamingValue == -1) {
    // ´õÀÌ»ó ÀÌ ¸Ê¿¡ NPC¸¦ ¸¸µé¼ö ¾ø´Ù. À̸§À» ÇÒ´çÇÒ ¼ö ¾ø±â ¶§¹®.
    // ÀÌ·± ÀÏÀÌ?
  	}
  	else {
    // NPC¸¦ »ý¼ºÇÑ´Ù.
    wsprintf(cName, "XX%d", iNamingValue);
    cName[0] = '_';
    cName[1] = z+65;
    
    switch (m_stCrusadeStructures[i].cType) {
    case 36:
    	if (strcmp(m_pMapList[z]->m_cName, "aresden") == 0)
       strcpy(cNpcName, "AGT-Aresden");
    	else if (strcmp(m_pMapList[z]->m_cName, "elvine") == 0)
      strcpy(cNpcName, "AGT-Elvine");
    	break;

    case 37: 
    	if (strcmp(m_pMapList[z]->m_cName, "aresden") == 0)
       strcpy(cNpcName, "CGT-Aresden");
    	else if (strcmp(m_pMapList[z]->m_cName, "elvine") == 0)
      strcpy(cNpcName, "CGT-Elvine");
    	break;

    case 40:
    	if (strcmp(m_pMapList[z]->m_cName, "aresden") == 0)
       strcpy(cNpcName, "ESG-Aresden");
    	else if (strcmp(m_pMapList[z]->m_cName, "elvine") == 0)
      strcpy(cNpcName, "ESG-Elvine");
    	break;

    case 41:
    	if (strcmp(m_pMapList[z]->m_cName, "aresden") == 0)
       strcpy(cNpcName, "GMG-Aresden");
    	else if (strcmp(m_pMapList[z]->m_cName, "elvine") == 0)
      strcpy(cNpcName, "GMG-Elvine");
    	break;

    default: 
    	for(int AuxCont=0;AuxCont<DEF_MAXNPCTYPES;AuxCont++)
    	{
      if((m_pNpcConfigList[AuxCont]!=NULL)&&(m_pNpcConfigList[AuxCont]->m_sType==m_stCrusadeStructures[i].cType))
      {
      	strcpy(cNpcName, m_pNpcConfigList[AuxCont]->m_cNpcName); 
      	break;
      }
    	}
    	break;
    }

    tX = (int)m_stCrusadeStructures[i].dX;
    tY = (int)m_stCrusadeStructures[i].dY;
    if (bCreateNewNpc(cNpcName, cName, m_pMapList[z]->m_cName, 0, 0, DEF_MOVETYPE_RANDOM, 
                   &tX, &tY, cNpcWayPoint, NULL, NULL, -1, FALSE) == FALSE) 
    {
    	// ½ÇÆÐÇßÀ¸¹Ç·Î ¿¹¾àµÈ NameValue¸¦ ÇØÁ¦½ÃŲ´Ù.
    	//m_pMapList[ m_pClientList[i]->m_cMapIndex ]->SetNamingValueEmpty(iNamingValue);
    	m_pMapList[z]->SetNamingValueEmpty(iNamingValue);
    } 
    else {
    	wsprintf(G_cTxt, "(!) Creating Crusade Structure(%s) at %s(%d, %d)", cNpcName, m_stCrusadeStructures[i].cMapName, tX, tY);
    	PutLogList(G_cTxt);
    }
  	}
  }
	}
}


Windy
Member
Posts: 157
Joined: Tue Nov 18, 2003 8:31 am
Location: wishing I was somewhere else

Post by Windy »

hmmm thx for trying to help but my middleland server still crashes after socket 9, without crusade mode on or anything, I dont think Ive tried loading it with crusade mode on, but I wouldnt want to leave ML always crusade...
<span style='color:blue'>Coding with Evil Intentions....Evil at its Best....</span>
Zabuza
Member
Posts: 160
Joined: Thu Jan 22, 2004 11:05 pm

Post by Zabuza »

Run it with your compiler, in vs2003 click Project/HGServer properties... Configuration properties, Debugging, and put the ML folder in "Working directory". Run the server in debug mode and you'll see what fails.
Windy
Member
Posts: 157
Joined: Tue Nov 18, 2003 8:31 am
Location: wishing I was somewhere else

Post by Windy »

gave me some kind of access violation error in NTDLL or something and then put me to this
77F5B2AB  cmp        dword ptr [edx+14h],0
77F5B2AF  jne        77F5B300
77F5B2B1  lock inc    dword ptr [edx+4]
77F5B2B5  jne        77F5B2D0
77F5B2B7  mov        eax,dword ptr [ecx+24h]
77F5B2BA  mov        dword ptr [edx+0Ch],eax
77F5B2BD  mov        dword ptr [edx+8],1
dont know if this helps...but I hope it does, there is obviously more but I didnt want to copy and paste alot of it in incase it cant be used, thx again for your help
<span style='color:blue'>Coding with Evil Intentions....Evil at its Best....</span>
Zabuza
Member
Posts: 160
Joined: Thu Jan 22, 2004 11:05 pm

Post by Zabuza »

Make it crash again, go to threads window (Debug/windows/Threads) and select the upper hgserver function, probably some crusade function. If you see asm code, right click on it and select "Go to source code". You'll see the line where the code is crashing.
Windy
Member
Posts: 157
Joined: Tue Nov 18, 2003 8:31 am
Location: wishing I was somewhere else

Post by Windy »

hmm I got to the threads function and stuff...but all that it says in the threads is
Threads ID    Suspend    Priority  Location
00000518          0              9        fwrite
00000ab4            0              15
00000f68            0              10
doesnt show me anything about a uppger hg server and if I click on the addy in the asm code and select go to source it just beeps
<span style='color:blue'>Coding with Evil Intentions....Evil at its Best....</span>
Zabuza
Member
Posts: 160
Joined: Thu Jan 22, 2004 11:05 pm

Post by Zabuza »

Double click on fwrite line, open call stack window, same as threads one, and look for a known function.
Post Reply