Trinitycore 3.3.5a

Divan

Trial Member
3
2015
1
Hi All,

I recently compiled the trinitycore 3.3.5a from HERE and everything was working fine, I attempted to add the CFBG from this core HERE

I resolved some of the errors but I am not stuck on the one below on the CFBGQueue.cpp.

Error Code:

binary '[': 'BattlegroundQueue::GroupsQueueType' does not define this operator or a conversion to a type acceptable to the predefined operator

The cpp File


#include "CFBGQueue.h"
#include "BattlegroundMgr.h"
#include "Battleground.h"
#include "BattlegroundQueue.h"
#include "World.h"
#include "ScriptMgr.h"

class GroupList : public std::list<GroupQueueInfo*>
{
public:
void AddGroups(std::list<GroupQueueInfo*> list)
{
insert(end(), list.begin(), list.end());
}

void Sort()
{
sort([](GroupQueueInfo* a, GroupQueueInfo* b) { return a->JoinTime < b->JoinTime; });
}
};

bool CFBGQueue::CheckMixedMatch(BattlegroundQueue * queue, Battleground * bg_template, BattlegroundBracketId bracket_id, uint32 minPlayers, uint32 maxPlayers)
{
return CFBGGroupInserter(queue, bg_template, bracket_id, maxPlayers, maxPlayers, minPlayers);
}

bool CFBGQueue::MixPlayersToBG(BattlegroundQueue * queue, Battleground * bg, BattlegroundBracketId bracket_id)
{
return CFBGGroupInserter(queue, bg
 

ExO

Admin
5,177
2014
1,752
The full code is not attached. But honestly I would just use ChatGPT for this syntax error; It should fix it for you if you provide a bit of context to it
 

Actinic Lux

Trial Member
10
2025
0
I have tried ChatGPT lol it's giving me solutions but the solutions are not working unfortunately.
i had this same issue when i was using chatgpt 4o alot of the solutions did not work, these days i pay 20 dollars a month to chatgpt for sub, and use the best model that is available to me in 5o, it has made things so much better,
and p.s if the solutions chatgpt is giving you dont work, just keep at it, chat will eventually solve your problem, if you are persistent.
also may i ask why trinitycore? nostalgia? i have used azerothcore recently and mate it takes advantage of way more cpu threads vs cmangos for example.
 
Top