Jump to content

The_Game_Master

Members
  • Posts

    330
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by The_Game_Master

  1. I would use this instead for Player.cpp

    --- a/src/game/Player.cpp
    +++ b/src/game/Player.cpp
    @@ -1502,6 +1502,10 @@ bool Player::BuildEnumData( QueryResult * result, WorldPacket * p_data )
        *p_data << uint32(char_flags);                          // character flags
        // character customize flags
        *p_data << uint32(atLoginFlags & AT_LOGIN_CUSTOMIZE ? CHAR_CUSTOMIZE_FLAG_CUSTOMIZE : CHAR_CUSTOMIZE_FLAG_NONE);
    +    // characters faction change flags
    +    *p_data << uint32(atLoginFlags & AT_LOGIN_CHANGE_FACTION ? CHAR_CUSTOMIZE_FLAG_FACTION : CHAR_CUSTOMIZE_FLAG_NONE);
    +    // characters race change flags
    +    *p_data << uint32(atLoginFlags & AT_LOGIN_CHANGE_RACE ? CHAR_CUSTOMIZE_FLAG_RACE : CHAR_CUSTOMIZE_FLAG_NONE);
        // First login
        *p_data << uint8(atLoginFlags & AT_LOGIN_FIRST ? 1 : 0);

  2. Rev: 9900+

    Database: YTDB, rev 547

    Bug description: Npc's spawn only for first difficulty (level 60) when level 80 players enter the battleground even if the npc's have all correct spawnmasks (15).

    This happended after 25 man HC instances were implemented.

    Can anybody confirm this? It dosen't appear to be a database problem.

  3. Starting from patch 3.2.0 the restriction that prevents players from creating both Horde and Alliance characters on a PvP realms has been lifted. It's only fair to change AllowTwoSide.Accounts accordingly since the default realm type is set to 1 (PvP).

    Revision for wich this patch has been made for: 9900+

    Patch author: me

    Source: http://www.wowwiki.com/Talk:Patch_3.2.0_%28undocumented_changes%29 (Can be confirmed you know where)

    diff --git a/src/mangosd/mangosd.conf.dist.in b/src/mangosd/mangosd.conf.dist.in
    index fbf9a21..9ef6bb0 100644
    --- a/src/mangosd/mangosd.conf.dist.in
    +++ b/src/mangosd/mangosd.conf.dist.in
    @@ -772,7 +772,7 @@ Motd = "Welcome to the Massive Network Game Object Server."
    #
    ###################################################################################################################
    
    -AllowTwoSide.Accounts = 0
    +AllowTwoSide.Accounts = 1
    AllowTwoSide.Interaction.Chat = 0
    AllowTwoSide.Interaction.Channel = 0
    AllowTwoSide.Interaction.Group = 0
    

  4. Try this.

    bool Map::loaded(const GridPair &p) const
    {
       // crash guard if x, y coordinates are outside grids
       if ((p.x_coord >= MAX_NUMBER_OF_GRIDS) || (p.y_coord >= MAX_NUMBER_OF_GRIDS))
       {
           return false;    // consider already loaded, skip
       }
       else
       {
           return ( getNGrid(p.x_coord, p.y_coord) && isGridObjectDataLoaded(p.x_coord, p.y_coord) );
       }
    }

  5. I think you applyed the patch in the wrong void. "void Map::MessageDistBroadcast(WorldObject *obj, WorldPacket *msg, float dist)" != "bool Map::loaded(const GridPair &p) const"

    "void Map::MessageBroadcast(WorldObject *obj, WorldPacket *msg)" allready has a grid check.

    Your crash it's at Map.cpp:527 not related to this one in my opinion.

  6. One of your posts helped me yesterday fix a crash, so i'm making you this present. ^_^

    diff --git a/src/game/Map.cpp b/src/game/Map.cpp
    index 0f3c99b..1be6033 100644
    --- a/src/game/Map.cpp
    +++ b/src/game/Map.cpp
    @@ -580,6 +580,10 @@ void Map::MessageDistBroadcast(WorldObject *obj, WorldPacket *msg, float dist)
    
    bool Map::loaded(const GridPair &p) const
    {
    +    // crash guard if x, y coordinates are outside grids
    +    if ( (p.x_coord >= MAX_NUMBER_OF_GRIDS) || (p.y_coord >= MAX_NUMBER_OF_GRIDS) )
    +        return false;    // consider already loaded, skip
    +
        return ( getNGrid(p.x_coord, p.y_coord) && isGridObjectDataLoaded(p.x_coord, p.y_coord) );
    }
    
    

    I know it's not the proper way to fix it. But it should work.

  7. Revision: 9748

    This crash appeared most likely in revision 9736.

    I got this every 10-45 minutes.

    http://pastebin.com/khDXRDLb

    http://pastebin.com/q4DSaQwC

    http://pastebin.com/gmWVwL5P

    http://pastebin.com/TWQAs8g2

    Custom patches, that may influence this:

    diff --git a/src/shared/Errors.h b/src/shared/Errors.h
    index 701bda9..68b1a6a 100644
    --- a/src/shared/Errors.h
    +++ b/src/shared/Errors.h
    @@ -71,7 +71,7 @@ if (!(CONDITION)) \\
    #ifdef MANGOS_DEBUG
    #  define ASSERT WPError
    #else
    -#  define ASSERT WPError // Error even if in release mode.
    +#  define ASSERT(X) do {} while(0) // Error even if in release mode.
    #endif
    
    #endif
    

    I noticed a ASSERT in the map system before applying that patch, so i guess after it jumped the assert the crash occured. The problem is, that this happens over and over again @-), preutty mutch the same thing if the ASSERT was there, only diffrent output.

    After a day of testing looks like i was right, reverting 9736 and 9738 increased stability by more then 500%.

×
×
  • 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