Jump to content

berylo

Members
  • Posts

    22
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by berylo

  1. http://paste2.org/p/850184

    This is my Unit.cpp. I am now sure that PvP Token does crashes. When I deleted it everything was fine. I think it's at wrong place or maybe something is missing. Could u help me with fixing that, cuz i need that patch?

    An this is PvP token in Unit.cpp which I am talking about:

    // PvP Token
           int8 leveldiff = player_tap->getLevel() - pVictim->getLevel();
    
    if((pVictim->GetTypeId() == TYPEID_PLAYER) && leveldiff < 10)
           player_tap->ReceiveToken();
    
           WorldPacket data(SMSG_PARTYKILLLOG, (8+8)); //send event PARTY_KILL
           data << uint64(player_tap->GetGUID()); //player with killing blow
           data << uint64(pVictim->GetGUID()); //victim
           if (Group *group = player_tap->GetGroup())
               group->BroadcastPacket(&data, group->GetMemberGroup(player_tap->GetGUID
    
    ()));
           else
               player_tap->SendDirectMessage(&data);

  2. Yes i have some custom code and probaly it's the reason but maybe you could help me to notice which one. Last thing in mangosd.exe is something like "Dealdamage: victim just died". I Noticed that Baron Rivendare was the reason. He was fithing with mob and when it had died server crashed. I deleted him cuz its fun server and i dont need him. Server still crash but not as often as before. Again last thing in mangosd.exe is "Dealdamage: victim just died" but i can find which creature do it. Its nonsense to delete all creatures which are doing crashes. Maybe you can help me find what is the true reason.

  3. First Baron RIvendare was doing something what was crashing the server. I deleted him and Mangos crashes less. But crash every 30 min isnt ok:/

    can anyone tell me why?

    Revision: * * 9967 *
    Date 23:5:2010. Time 20:50 
    //=====================================================
    *** Hardware ***
    Processor: Pentium(R) Dual-Core  CPU      E5300  @ 2.60GHz
    Number Of Processors: 2
    Physical Memory: 4194303 KB (Available: 4194303 KB)
    Commit Charge Limit: 4194303 KB
    
    *** Operation System ***
    Windows Vista or Windows Server 2008 Server 4.0 Service Pack 2 (Version 6.0, Build 6002)
    
    //=====================================================
    Exception code: C0000005 ACCESS_VIOLATION
    Fault address:  00402137 01:00001137 D:\\MANGOS332\\source\\mangosd.exe
    
    Registers:
    EAX:00000036
    EBX:F36B8400
    ECX:00000000
    EDX:00000000
    ESI:00000000
    EDI:008EB6B0
    CS:EIP:0023:00402137
    SS:ESP:002B:08B85D74  EBP:08B86D88
    DS:002B  ES:002B  FS:0053  GS:002B
    Flags:00010202
    
    Call stack:
    Address   Frame     Function      SourceFile
    00402137  00000000  Object::GetUInt32Value+27
    00482570  00000000  Unit::DealDamage+D10
    004860B3  00000000  Unit::DealMeleeDamage+4E3
    00488D5A  00000000  Unit::AttackerStateUpdate+1BA
    008DB562  00000000  AggressorAI::UpdateAI+152
    004BE4DA  00000000  Creature::Update+7AA
    004FBE4F  00000000  MaNGOS::ObjectUpdater::Visit+6F
    004FBDD2  00000000  VisitorHelper<MaNGOS::ObjectUpdater,Creature>+12
    004FB5C0  00000000  VisitorHelper<MaNGOS::ObjectUpdater,Creature,TypeList<DynamicObject,TypeList<Corpse,TypeNull> > >+10
    004FB113  00000000  VisitorHelper<MaNGOS::ObjectUpdater,GameObject,TypeList<Creature,TypeList<DynamicObject,TypeList<Corpse,TypeNull> > > >+23
    004FAA90  00000000  VisitorHelper<MaNGOS::ObjectUpdater,TypeList<GameObject,TypeList<Creature,TypeList<DynamicObject,TypeList<Corpse,TypeNull> > > > >+10
    004F6E5F  00000000  Map::Visit<MaNGOS::ObjectUpdater,TypeMapContainer<TypeList<GameObject,TypeList<Creature,TypeList<DynamicObject,TypeList<Corpse,TypeNull> > > > > >+CF
    004F15B7  00000000  Cell::Visit<MaNGOS::ObjectUpdater,TypeMapContainer<TypeList<GameObject,TypeList<Creature,TypeList<DynamicObject,TypeList<Corpse,TypeNull> > > > > >+67
    004D924B  00000000  Map::Update+33B
    004E0BB3  00000000  InstanceMap::Update+13
    0087905E  00000000  MapInstanced::Update+DE
    006B5C38  00000000  MapManager::Update+128
    00640246  00000000  World::Update+7A6
    004565BE  00000000  WorldRunnable::run+8E
    008EB6C9  00000000  ACE_Based::Thread::ThreadTask+19
    73B21B84  00000000  __WSAFDIsSet+FFFFFFFFFFFCCB4C
    74CF3433  00000000  _endthreadex+44
    74CF34C7  00000000  _endthreadex+D8
    7705ECCB  00000000  BaseThreadInitThunk+E
    77E4D24D  00000000  RtlCreateUserProcess+8C
    77E4D45F  00000000  RtlCreateProcessParameters+4E
    ========================
    Local Variables And Parameters
    
    Call stack:
    Address   Frame     Function      SourceFile
    00402137  00000000  Object::GetUInt32Value+27
       Local  <user defined> 'this'
    punting on symbol index
    
    00482570  00000000  Unit::DealDamage+D10
       Local  <user defined> 'data'
       Local  <user defined> 'group_tap'
       Local  <user defined> 'spiritOfRedemtionTalentReady'
       Local  <user defined> 'player_tap'
       Local  <user defined> 'pOwner'
    punting on symbol damageFromSpiritOfRedemtionTalent
    punting on symbol leveldiff
       Local  <user defined> 'this'
       Local  <user defined> 'pVictim'
    punting on symbol damage
       Local  <user defined> 'cleanDamage'
       Local  <user defined> 'damagetype'
       Local  <user defined> 'damageSchoolMask'
       Local  <user defined> 'spellProto'
    punting on symbol durabilityLoss
    punting on symbol duel_hasEnded
    punting on symbol health
    
    004860B3  00000000  Unit::DealMeleeDamage+4E3
       Local  <user defined> 'this'
       Local  <user defined> 'damageInfo'
    punting on symbol durabilityLoss
       Local  <user defined> 'pVictim'
       Local  <user defined> 'cleanDamage'
    
    00488D5A  00000000  Unit::AttackerStateUpdate+1BA
       Local  <user defined> 'this'
       Local  <user defined> 'pVictim'
       Local  <user defined> 'attType'
    punting on symbol extra
       Local  <user defined> 'damageInfo'
    punting on symbol hitInfo
    punting on symbol extraAttacks
    
    008DB562  00000000  AggressorAI::UpdateAI+152
       Local  <user defined> 'this'
       Local  <user defined> '__formal'
    
    004BE4DA  00000000  Creature::Update+7AA
       Local  <user defined> 'this'
    punting on symbol diff
    
    004FBE4F  00000000  MaNGOS::ObjectUpdater::Visit+6F
       Local  <user defined> 'iter'
       Local  <user defined> 'this'
       Local  <user defined> 'm'
    
    004FBDD2  00000000  VisitorHelper<MaNGOS::ObjectUpdater,Creature>+12
       Local  <user defined> 'v'
       Local  <user defined> 'c'
    
    004FB5C0  00000000  VisitorHelper<MaNGOS::ObjectUpdater,Creature,TypeList<DynamicObject,TypeList<Corpse,TypeNull> > >+10
       Local  <user defined> 'v'
       Local  <user defined> 'c'
    
    004FB113  00000000  VisitorHelper<MaNGOS::ObjectUpdater,GameObject,TypeList<Creature,TypeList<DynamicObject,TypeList<Corpse,TypeNull> > > >+23
       Local  <user defined> 'v'
       Local  <user defined> 'c'
    
    004FAA90  00000000  VisitorHelper<MaNGOS::ObjectUpdater,TypeList<GameObject,TypeList<Creature,TypeList<DynamicObject,TypeList<Corpse,TypeNull> > > > >+10
       Local  <user defined> 'v'
       Local  <user defined> 'c'
    
    004F6E5F  00000000  Map::Visit<MaNGOS::ObjectUpdater,TypeMapContainer<TypeList<GameObject,TypeList<Creature,TypeList<DynamicObject,TypeList<Corpse,TypeNull> > > > > >+CF
       Local  <user defined> 'this'
       Local  <user defined> 'cell'
       Local  <user defined> 'visitor'
       Local  <user defined> 'cell_y'
       Local  <user defined> 'x'
       Local  <user defined> 'y'
       Local  <user defined> 'cell_x'
    
    004F15B7  00000000  Cell::Visit<MaNGOS::ObjectUpdater,TypeMapContainer<TypeList<GameObject,TypeList<Creature,TypeList<DynamicObject,TypeList<Corpse,TypeNull> > > > > >+67
       Local  <user defined> 'this'
       Local  <user defined> 'standing_cell'
       Local  <user defined> 'visitor'
       Local  <user defined> 'm'
       Local  <user defined> 'begin_cell'
    punting on symbol district
       Local  <user defined> 'end_cell'
    
    004D924B  00000000  Map::Update+33B
       Local  <user defined> 'cell'
       Local  <user defined> 'pair'
    punting on symbol cell_id
    punting on symbol y
    punting on symbol x
       Local  <user defined> 'plr'
       Local  <user defined> 'area'
       Local  <user defined> 'begin_cell'
       Local  <user defined> 'standing_cell'
       Local  <user defined> 'end_cell'
       Local  <user defined> 'this'
       Local  <user defined> 't_diff'
       Local  <user defined> 'updater'
       Local  <user defined> 'world_object_update'
       Local  <user defined> 'grid_object_update'
    
    004E0BB3  00000000  InstanceMap::Update+13
       Local  <user defined> 'this'
       Local  <user defined> 't_diff'
    
    0087905E  00000000  MapInstanced::Update+DE
       Local  <user defined> 'this'
       Local  <user defined> 't'
       Local  <user defined> 'i'
    
    006B5C38  00000000  MapManager::Update+128
       Local  <user defined> 'iter'
       Local  <user defined> 'this'
    punting on symbol diff
    
    00640246  00000000  World::Update+7A6
    punting on symbol i
       Local  <user defined> 'this'
    punting on symbol diff
    
    004565BE  00000000  WorldRunnable::run+8E
    punting on symbol diff
       Local  <user defined> 'this'
    punting on symbol realCurrTime
    punting on symbol realPrevTime
    punting on symbol prevSleepTime
    
    008EB6C9  00000000  ACE_Based::Thread::ThreadTask+19
    punting on symbol param
       Local  <user defined> '_task'
    
    73B21B84  00000000  __WSAFDIsSet+FFFFFFFFFFFCCB4C
    
    74CF3433  00000000  _endthreadex+44
    
    74CF34C7  00000000  _endthreadex+D8
    
    7705ECCB  00000000  BaseThreadInitThunk+E
    
    77E4D24D  00000000  RtlCreateUserProcess+8C
    
    77E4D45F  00000000  RtlCreateProcessParameters+4E
    
    ========================
    Global Variables
    
    

  4. Didnt you forget about "{" or "}" somewhere in unit.cpp? Could u look for any mistakes there? Maybe PvP Token code is in the wrong place or something?

    Edit: When player is killed by creature server crash. When i removed

    // PvP Token
           int8 leveldiff = player_tap->getLevel() - pVictim->getLevel();
    
    if((pVictim->GetTypeId() == TYPEID_PLAYER) && leveldiff < 10)
           player_tap->ReceiveToken();
    
           WorldPacket data(SMSG_PARTYKILLLOG, (8+8)); //send event PARTY_KILL
           data << uint64(player_tap->GetGUID()); //player with killing blow
           data << uint64(pVictim->GetGUID()); //victim
           if (Group *group = player_tap->GetGroup())
               group->BroadcastPacket(&data, group->GetMemberGroup(player_tap->GetGUID
    
    ()));
           else
               player_tap->SendDirectMessage(&data);

    from Unit.cpp everything was OK. Please fix it.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use