Jump to content
TrinityCore

problem implement db2 file last rev core 8.3.7


arcaniafr
 Share

Recommended Posts

Hi,

i want implement lfg list but i want implement GroupFinderActivity.db2, GroupFinderActivityGrp.db2 and GroupFinderCategory.db2.

After add structure, meta, loadinfo, the core start but i ve this error :

thanks for help me :


struct GroupFinderActivityEntry
{
    uint32       ID;
    LocalizedString* FullName;
    LocalizedString* ShortName;
    uint8       GroupFinderCategoryID;
    uint8       OrderIndex;
    uint16        GroupFinderActivityGrpID;
    uint8       MinLevel;
    uint8       MaxLevelSuggestion;
    uint32        Flags;
    uint16      MinGearLevelSuggestion;
    uint16      MapID;
    uint8       DifficultyID;
    uint16      AreaID;
    uint8       MaxPlayers;
    uint8       DisplayType;
};

struct GroupFinderActivityMeta
{
    static DB2Meta const* Instance()
    {
        static DB2MetaField const fields[14] =
        {
            { FT_STRING, 1, true },
            { FT_STRING, 1, true },
            { FT_BYTE, 1, false },
            { FT_BYTE, 1, true },
            { FT_SHORT, 1, false },
            { FT_BYTE, 1, false },
            { FT_BYTE, 1, false },
            { FT_INT, 1, false },
            { FT_SHORT, 1, false },
            { FT_SHORT, 1, false },
            { FT_BYTE, 1, false },
            { FT_SHORT, 1, false },
            { FT_BYTE, 1, false },
            { FT_BYTE, 1, false },
        };
        static DB2Meta instance(974813, -1, 14, 14, 0xB0090189, fields, -1);
        return &instance;
    }
};

struct GroupFinderActivityLoadInfo
{
    static DB2LoadInfo const* Instance()
    {
        static DB2FieldMeta const fields[] =
        {
            { false, FT_INT, "ID" },
            { false, FT_STRING, "FullName" },
            { false, FT_STRING, "ShortName" },
            { false, FT_BYTE, "GroupFinderCategoryID" },
            { true, FT_BYTE, "OrderIndex" },
            { false, FT_SHORT, "GroupFinderActivityGrpID" },
            { false, FT_BYTE, "MinLevel" },
            { false, FT_BYTE, "MaxLevelSuggestion" },
            { false, FT_INT, "Flags" },
            { false, FT_SHORT, "MinGearLevelSuggestion" },
            { false, FT_SHORT, "MapID" },
            { false, FT_BYTE, "DifficultyID" },
            { false, FT_SHORT, "AreaID" },
            { false, FT_BYTE, "MaxPlayers" },
            { false, FT_BYTE, "DisplayType" },
        };
        static DB2LoadInfo const loadInfo(&fields[0], std::extent<decltype(fields)>::value, GroupFinderActivityMeta::Instance(), HOTFIX_SEL_GROUP_FINDER_ACTIVITY);
        return &loadInfo;
    }
};
 

PreparedStatementBase::setBool ASSERTION FAILED: index < statement_data.size()

 

 

Link to comment
Share on other sites

If you are using Visual Studio then recent versions have some sort of bug not properly clearing/recompiling changed files, try fully deleting your build dir and start fresh from cmake

None of DB2 code uses PreparedStatementBase::setBool which is why i think you are running into that bug

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By WalkerSh
      Friends,
      I am going through a big problem.
      all maps in "BFa" are completely empty. (without "mobs", without "Npc's".
      how can I enable world missions and all the content in "BFa".  ??????????????????????
      I looked everywhere on this subject, but I was unsuccessful.
      I apologize, I am a beginner in the projects.

      ====================================================================
      I am currently using this project. 8.3.0 (33369)
      http://www.ac-web.org/forums/showthread.php?237071-World
       
      updated to 8.3.7 (35662)
      https://mega.nz/file/0dpmla4Q#4tKwrc-G9uhyxCkJozNwZp8Pr0ArgZmwO-ay7OCMvGw
      Source project
      https://github.com/TrinityCore/TrinityCore

      ====================================================================
      My WorldServ.conf
      #    Expansion
      #        Description: Allow server to use content from expansions. Checks for expansion-related
      #                     map files, client compatibility and class/race character creation.
      #        Default:     7 - (Expansion 7)
      #                     6 - (Expansion 6)
      #                     5 - (Expansion 5)
      #                     4 - (Expansion 4)
      #                     3 - (Expansion 3)
      #                     2 - (Expansion 2)
      #                     1 - (Expansion 1)
      #                     0 - (Disabled, Ignore and disable expansion content (maps, races, classes)
      Expansion = 8
      #
    • By Sergio
      Hello.
      I pulled the latest update of TC to version 8.2.5.32494
      When I extracted dbc and maps from retail (8.2.5.32494) some of them couldnt be readed or couldnt be opened. I will give you an image of the mapextractor.exe. Also I have different locales on my WoW Client, and some of them can open on different locales, meanwhile not in others. For example, the extractor could read Achievemnt.db2 from esES locale, but not from enUS.
       

    • By Смердокрыл
      Hi!
      How come a whole bunch of spells, for example rogue's Pistol Shot and Saber Slash, while obviously producing some sort of visual effect, are nowhere to be found in SpellXSpellVisual.db2? Is there another table responsible for them?
    • By ChenMin
      how to edit .db2 file ?which tool ? what's the name of the tool?
       
      i have dbc editor ,but it can't open db2 file
       
       
×
×
  • Create New...