• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Item Gossip

Status
Not open for further replies.

woweee

Enthusiast
http://emudevs.com/showthread.php/1518-Item-Gossip/page2
Code:
C:\trinity\src\server\game\Handlers\MiscHandler.cpp(119): error C2664: 'void ScriptMgr::OnGossipSelect(Player *,Item *,uint32,uint32)' : cannot convert parameter 2 from 'uint32' to 'Item *'
11>          Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
11>C:\trinity\src\server\game\Handlers\MiscHandler.cpp(121): error C2664: 'void ScriptMgr::OnGossipSelectCode(Player *,Item *,uint32,uint32,const char *)' : cannot convert parameter 2 from 'uint32' to 'Item *'
11>          Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
I get this error too and I cant solve it. There aren't any replies to the writer of the thread above. What should be edited?
 

woweee

Enthusiast
Code:
else if (IS_PLAYER_GUID(guid))
     {
         if(_player->GetGUID() == guid && _player->PlayerTalkClass->GetGossipMenu().GetMenuId() == menuId)
         {
             if(code.empty())
                (119) [COLOR="#00FF00"]sScriptMgr->OnGossipSelect(_player, menuId, _player->PlayerTalkClass->GetGossipOptionSender(gossipListId), _player->PlayerTalkClass->GetGossipOptionAction(gossipListId));[/COLOR]
             else
                (121) [COLOR="#00FF00"] sScriptMgr->OnGossipSelectCode(_player, menuId, _player->PlayerTalkClass->GetGossipOptionSender(gossipListId), _player->PlayerTalkClass->GetGossipOptionAction(gossipListId), code.c_str());[/COLOR]
         }
         return;
     }
 

Tommy

Founder
I believe that is my fault considering I forgot player portion of the Gossip:

In ScriptMgr.h, Add this on line 687 or below:

Code:
    // Called when a player selects an option in a player gossip window
    virtual void OnGossipSelect(Player* /*player*/, uint32 /*menu_id*/, uint32 /*sender*/, uint32 /*action*/) { }

    // Called when a player selects an option in a player gossip window
    virtual void OnGossipSelectCode(Player* /*player*/, uint32 /*menu_id*/, uint32 /*sender*/, uint32 /*action*/, const char* /*code*/) { }

Last one in ScriptMgr.h, on line 1020 or below, add:

Code:
    void OnGossipSelect(Player* player, uint32 menu_id, uint32 sender, uint32 action);
    void OnGossipSelectCode(Player* player, uint32 menu_id, uint32 sender, uint32 action, const char* code);

Add this in ScriptMgr.cpp:

Code:
void ScriptMgr::OnGossipSelect(Player* player, uint32 menu_id, uint32 sender, uint32 action)
{
    ASSERT(player);

	FOREACH_SCRIPT(PlayerScript)->OnGossipSelect(player, menu_id, sender, action);
}

void ScriptMgr::OnGossipSelectCode(Player* player, uint32 menu_id, uint32 sender, uint32 action, const char* code)
{
    ASSERT(player);

    FOREACH_SCRIPT(PlayerScript)->OnGossipSelectCode(player, menu_id, sender, action, code);
}
 

woweee

Enthusiast
Code:
21>game.lib(MiscHandler.obj) : error LNK2019: unresolved external symbol "public: void __thiscall ScriptMgr::OnGossipSelect(class Player *,class Item *,unsigned int,unsigned int)" (?OnGossipSelect@ScriptMgr@@QAEXPAVPlayer@@PAVItem@@II@Z) referenced in function "public: void __thiscall WorldSession::HandleGossipSelectOptionOpcode(class WorldPacket &)" (?HandleGossipSelectOptionOpcode@WorldSession@@QAEXAAVWorldPacket@@@Z)
21>game.lib(MiscHandler.obj) : error LNK2019: unresolved external symbol "public: void __thiscall ScriptMgr::OnGossipSelectCode(class Player *,class Item *,unsigned int,unsigned int,char const *)" (?OnGossipSelectCode@ScriptMgr@@QAEXPAVPlayer@@PAVItem@@IIPBD@Z) referenced in function "public: void __thiscall WorldSession::HandleGossipSelectOptionOpcode(class WorldPacket &)" (?HandleGossipSelectOptionOpcode@WorldSession@@QAEXAAVWorldPacket@@@Z)
21>D:\Build\bin\Release\worldserver.exe : fatal error LNK1120: 2 unresolved externals
21>
21>Build FAILED.
:\
 

Tommy

Founder
Showing errors only helps so far. Did you do everything correctly? Show me the changes you made in all the files.
 

woweee

Enthusiast
MiscHandler.cpp line 89 as you said.
Code:
void WorldSession::HandleGossipSelectOptionOpcode(WorldPacket& recvData)
{
    TC_LOG_DEBUG(LOG_FILTER_NETWORKIO, "WORLD: CMSG_GOSSIP_SELECT_OPTION");

    uint32 gossipListId;
    uint32 menuId;
    uint64 guid;
    std::string code = "";

    recvData >> guid >> menuId >> gossipListId;

    if (_player->PlayerTalkClass->IsGossipOptionCoded(gossipListId))
        recvData >> code;

    Creature* unit = NULL;
    GameObject* go = NULL;
    if (IS_CRE_OR_VEH_GUID(guid))
    {
        unit = GetPlayer()->GetNPCIfCanInteractWith(guid, UNIT_NPC_FLAG_NONE);
        if (!unit)
        {
            TC_LOG_DEBUG(LOG_FILTER_NETWORKIO, "WORLD: HandleGossipSelectOptionOpcode - Unit (GUID: %u) not found or you can't interact with him.", uint32(GUID_LOPART(guid)));
            return;
        }
    }
	else if (IS_PLAYER_GUID(guid))
     {
         if(_player->GetGUID() == guid && _player->PlayerTalkClass->GetGossipMenu().GetMenuId() == menuId)
         {
             if(code.empty())
                 sScriptMgr->OnGossipSelect(_player, menuId, _player->PlayerTalkClass->GetGossipOptionSender(gossipListId), _player->PlayerTalkClass->GetGossipOptionAction(gossipListId));
             else
                 sScriptMgr->OnGossipSelectCode(_player, menuId, _player->PlayerTalkClass->GetGossipOptionSender(gossipListId), _player->PlayerTalkClass->GetGossipOptionAction(gossipListId), code.c_str());
         }
         return;
     }
     else if(IS_ITEM_GUID(guid))
     {
         if(Item* item = _player->GetItemByGuid(guid))
         {
             if(code.empty())
                 sScriptMgr->OnGossipSelect(_player, item, _player->PlayerTalkClass->GetGossipOptionSender(gossipListId), _player->PlayerTalkClass->GetGossipOptionAction(gossipListId));
             else
                 sScriptMgr->OnGossipSelectCode(_player, item, _player->PlayerTalkClass->GetGossipOptionSender(gossipListId), _player->PlayerTalkClass->GetGossipOptionAction(gossipListId), code.c_str());
         }
         return;
     }
    else if (IS_GAMEOBJECT_GUID(guid))
    {
        go = _player->GetMap()->GetGameObject(guid);
        if (!go)
        {
            TC_LOG_DEBUG(LOG_FILTER_NETWORKIO, "WORLD: HandleGossipSelectOptionOpcode - GameObject (GUID: %u) not found.", uint32(GUID_LOPART(guid)));
            return;
        }
    }
    else
    {
        TC_LOG_DEBUG(LOG_FILTER_NETWORKIO, "WORLD: HandleGossipSelectOptionOpcode - unsupported GUID type for highguid %u. lowpart %u.", uint32(GUID_HIPART(guid)), uint32(GUID_LOPART(guid)));
        return;
    }

    // remove fake death
    if (GetPlayer()->HasUnitState(UNIT_STATE_DIED))
        GetPlayer()->RemoveAurasByType(SPELL_AURA_FEIGN_DEATH);

    if ((unit && unit->GetCreatureTemplate()->ScriptID != unit->LastUsedScriptID) || (go && go->GetGOInfo()->ScriptId != go->LastUsedScriptID))
    {
        TC_LOG_DEBUG(LOG_FILTER_NETWORKIO, "WORLD: HandleGossipSelectOptionOpcode - Script reloaded while in use, ignoring and set new scipt id");
        if (unit)
            unit->LastUsedScriptID = unit->GetCreatureTemplate()->ScriptID;
        if (go)
            go->LastUsedScriptID = go->GetGOInfo()->ScriptId;
        _player->PlayerTalkClass->SendCloseGossip();
        return;
    }
    if (!code.empty())
    {
        if (unit)
        {
            unit->AI()->sGossipSelectCode(_player, menuId, gossipListId, code.c_str());
            if (!sScriptMgr->OnGossipSelectCode(_player, unit, _player->PlayerTalkClass->GetGossipOptionSender(gossipListId), _player->PlayerTalkClass->GetGossipOptionAction(gossipListId), code.c_str()))
                _player->OnGossipSelect(unit, gossipListId, menuId);
        }
        else
        {
            go->AI()->GossipSelectCode(_player, menuId, gossipListId, code.c_str());
            sScriptMgr->OnGossipSelectCode(_player, go, _player->PlayerTalkClass->GetGossipOptionSender(gossipListId), _player->PlayerTalkClass->GetGossipOptionAction(gossipListId), code.c_str());
        }
    }
    else
    {
        if (unit)
        {
            unit->AI()->sGossipSelect(_player, menuId, gossipListId);
            if (!sScriptMgr->OnGossipSelect(_player, unit, _player->PlayerTalkClass->GetGossipOptionSender(gossipListId), _player->PlayerTalkClass->GetGossipOptionAction(gossipListId)))
                _player->OnGossipSelect(unit, gossipListId, menuId);
        }
        else
        {
            go->AI()->GossipSelect(_player, menuId, gossipListId);
            if (!sScriptMgr->OnGossipSelect(_player, go, _player->PlayerTalkClass->GetGossipOptionSender(gossipListId), _player->PlayerTalkClass->GetGossipOptionAction(gossipListId)))
                _player->OnGossipSelect(go, gossipListId, menuId);
        }
    }
}
In ScriptMgr.h on line (369 - LatestTC -- is ItemScript that holds virtual functions). Under line 389 (Latest TC), add: (as u said)

Code:
class ItemScript : public ScriptObject
{
    protected:

        ItemScript(const char* name);

    public:

        bool IsDatabaseBound() const FINAL { return true; }

        // Called when a dummy spell effect is triggered on the item.
        virtual bool OnDummyEffect(Unit* /*caster*/, uint32 /*spellId*/, SpellEffIndex /*effIndex*/, Item* /*target*/) { return false; }

        // Called when a player accepts a quest from the item.
        virtual bool OnQuestAccept(Player* /*player*/, Item* /*item*/, Quest const* /*quest*/) { return false; }

        // Called when a player uses the item.
        virtual bool OnUse(Player* /*player*/, Item* /*item*/, SpellCastTargets const& /*targets*/) { return false; }

        // Called when the item expires (is destroyed).
        virtual bool OnExpire(Player* /*player*/, ItemTemplate const* /*proto*/) { return false; }
		virtual void OnGossipSelect(Player* /*player*/, Item* /*item*/, uint32 /*sender*/, uint32 /*action*/) { }
        virtual void OnGossipSelectCode(Player* /*player*/, Item* /*item*/, uint32 /*sender*/, uint32 /*action*/, const char* /*code*/) { }
};

After that, we still need to do one more thing in ScriptMgr.h. Go to line 914 (Latest TC) and you should see "public: /* ItemScript */".... :
Code:
   public: /* ItemScript */

        bool OnDummyEffect(Unit* caster, uint32 spellId, SpellEffIndex effIndex, Item* target);
        bool OnQuestAccept(Player* player, Item* item, Quest const* quest);
        bool OnItemUse(Player* player, Item* item, SpellCastTargets const& targets);
        bool OnItemExpire(Player* player, ItemTemplate const* proto);
		void OnGossipSelect(Player* player, Item* item, uint32 sender, uint32 action);
        void OnGossipSelectCode(Player* player, Item* item, uint32 sender, uint32 action, const char* code);
After you have done that, we need to edit ScriptMgr.cpp (Last one) - Go to line 680 (Latest TC) and at the end of that function put:
Code:
Code:
void ScriptMgr::OnGossipSelect(Player* player, Item* item, uint32 sender, uint32 action)
{
    ASSERT(player);
    ASSERT(item);

    FOREACH_SCRIPT(ItemScript)->OnGossipSelect(player, item, sender, action);
}

void ScriptMgr::OnGossipSelectCode(Player* player, Item* item, uint32 sender, uint32 action, const char* code)
{
    ASSERT(player);
    ASSERT(item);

    FOREACH_SCRIPT(ItemScript)->OnGossipSelectCode(player, item, sender, action, code);
}
Yes, but here i changed with this as you said :
Code:
void ScriptMgr::OnGossipSelect(Player* player, uint32 menu_id, uint32 sender, uint32 action)
{
    ASSERT(player);

	FOREACH_SCRIPT(PlayerScript)->OnGossipSelect(player, menu_id, sender, action);
}

void ScriptMgr::OnGossipSelectCode(Player* player, uint32 menu_id, uint32 sender, uint32 action, const char* code)
{
    ASSERT(player);

    FOREACH_SCRIPT(PlayerScript)->OnGossipSelectCode(player, menu_id, sender, action, code);
}
In ScriptMgr.h, Add this on line 687 or below:
Code:
class PlayerScript : public UnitScript
{
    protected:

        PlayerScript(const char* name);

    public:
		 [COLOR="#00FF00"]// Called when a player selects an option in a player gossip window
		virtual void OnGossipSelect(Player* /*player*/, uint32 /*menu_id*/, uint32 /*sender*/, uint32 /*action*/) { }

		// Called when a player selects an option in a player gossip window
		virtual void OnGossipSelectCode(Player* /*player*/, uint32 /*menu_id*/, uint32 /*sender*/, uint32 /*action*/, const char* /*code*/) { }[/COLOR]

        // Called when a player kills another player
        virtual void OnPVPKill(Player* /*killer*/, Player* /*killed*/) { }

        // Called when a player kills a creature
        virtual void OnCreatureKill(Player* /*killer*/, Creature* /*killed*/) { }

        // Called when a player is killed by a creature
        virtual void OnPlayerKilledByCreature(Creature* /*killer*/, Player* /*killed*/) { }

        // Called when a player's level changes (after the level is applied)
        virtual void OnLevelChanged(Player* /*player*/, uint8 /*oldLevel*/) { }

        // Called when a player's free talent points change (right before the change is applied)
        virtual void OnFreeTalentPointsChanged(Player* /*player*/, uint32 /*points*/) { }

        // Called when a player's talent points are reset (right before the reset is done)
        virtual void OnTalentsReset(Player* /*player*/, bool /*noCost*/) { }

        // Called when a player's money is modified (before the modification is done)
        virtual void OnMoneyChanged(Player* /*player*/, int32& /*amount*/) { }

        // Called when a player gains XP (before anything is given)
        virtual void OnGiveXP(Player* /*player*/, uint32& /*amount*/, Unit* /*victim*/) { }

        // Called when a player's reputation changes (before it is actually changed)
        virtual void OnReputationChange(Player* /*player*/, uint32 /*factionId*/, int32& /*standing*/, bool /*incremental*/) { }

        // Called when a duel is requested
        virtual void OnDuelRequest(Player* /*target*/, Player* /*challenger*/) { }

        // Called when a duel starts (after 3s countdown)
        virtual void OnDuelStart(Player* /*player1*/, Player* /*player2*/) { }

        // Called when a duel ends
        virtual void OnDuelEnd(Player* /*winner*/, Player* /*loser*/, DuelCompleteType /*type*/) { }

        // The following methods are called when a player sends a chat message.
        virtual void OnChat(Player* /*player*/, uint32 /*type*/, uint32 /*lang*/, std::string& /*msg*/) { }

        virtual void OnChat(Player* /*player*/, uint32 /*type*/, uint32 /*lang*/, std::string& /*msg*/, Player* /*receiver*/) { }

        virtual void OnChat(Player* /*player*/, uint32 /*type*/, uint32 /*lang*/, std::string& /*msg*/, Group* /*group*/) { }

        virtual void OnChat(Player* /*player*/, uint32 /*type*/, uint32 /*lang*/, std::string& /*msg*/, Guild* /*guild*/) { }

        virtual void OnChat(Player* /*player*/, uint32 /*type*/, uint32 /*lang*/, std::string& /*msg*/, Channel* /*channel*/) { }

        // Both of the below are called on emote opcodes.
        virtual void OnEmote(Player* /*player*/, uint32 /*emote*/) { }

        virtual void OnTextEmote(Player* /*player*/, uint32 /*textEmote*/, uint32 /*emoteNum*/, uint64 /*guid*/) { }

        // Called in Spell::Cast.
        virtual void OnSpellCast(Player* /*player*/, Spell* /*spell*/, bool /*skipCheck*/) { }

        // Called when a player logs in.
        virtual void OnLogin(Player* /*player*/) { }

        // Called when a player logs out.
        virtual void OnLogout(Player* /*player*/) { }

        // Called when a player is created.
        virtual void OnCreate(Player* /*player*/) { }

        // Called when a player is deleted.
        virtual void OnDelete(uint64 /*guid*/) { }

        // Called when a player is about to be saved.
        virtual void OnSave(Player* /*player*/) { }

        // Called when a player is bound to an instance
        virtual void OnBindToInstance(Player* /*player*/, Difficulty /*difficulty*/, uint32 /*mapId*/, bool /*permanent*/) { }

        // Called when a player switches to a new zone
        virtual void OnUpdateZone(Player* /*player*/, uint32 /*newZone*/, uint32 /*newArea*/) { }

        // Called when a player changes to a new map (after moving to new map)
        virtual void OnMapChanged(Player* /*player*/) { }
};
This in green is changed by the code you gaved me here, not in the thread i linked.
Last one in ScriptMgr.h, on line 1020 or below, add
Code:
 public: /* PlayerScript */

        void OnPVPKill(Player* killer, Player* killed);
        void OnCreatureKill(Player* killer, Creature* killed);
        void OnPlayerKilledByCreature(Creature* killer, Player* killed);
        void OnPlayerLevelChanged(Player* player, uint8 oldLevel);
        void OnPlayerFreeTalentPointsChanged(Player* player, uint32 newPoints);
        void OnPlayerTalentsReset(Player* player, bool noCost);
        void OnPlayerMoneyChanged(Player* player, int32& amount);
        void OnGivePlayerXP(Player* player, uint32& amount, Unit* victim);
		[COLOR="#00FF00"]void OnGossipSelect(Player* player, uint32 menu_id, uint32 sender, uint32 action);
		void OnGossipSelectCode(Player* player, uint32 menu_id, uint32 sender, uint32 action, const char* code);[/COLOR]
        void OnPlayerReputationChange(Player* player, uint32 factionID, int32& standing, bool incremental);
        void OnPlayerDuelRequest(Player* target, Player* challenger);
        void OnPlayerDuelStart(Player* player1, Player* player2);
        void OnPlayerDuelEnd(Player* winner, Player* loser, DuelCompleteType type);
        void OnPlayerChat(Player* player, uint32 type, uint32 lang, std::string& msg);
        void OnPlayerChat(Player* player, uint32 type, uint32 lang, std::string& msg, Player* receiver);
        void OnPlayerChat(Player* player, uint32 type, uint32 lang, std::string& msg, Group* group);
        void OnPlayerChat(Player* player, uint32 type, uint32 lang, std::string& msg, Guild* guild);
        void OnPlayerChat(Player* player, uint32 type, uint32 lang, std::string& msg, Channel* channel);
        void OnPlayerEmote(Player* player, uint32 emote);
        void OnPlayerTextEmote(Player* player, uint32 textEmote, uint32 emoteNum, uint64 guid);
        void OnPlayerSpellCast(Player* player, Spell* spell, bool skipCheck);
        void OnPlayerLogin(Player* player);
        void OnPlayerLogout(Player* player);
        void OnPlayerCreate(Player* player);
        void OnPlayerDelete(uint64 guid);
        void OnPlayerSave(Player* player);
        void OnPlayerBindToInstance(Player* player, Difficulty difficulty, uint32 mapid, bool permanent);
        void OnPlayerUpdateZone(Player* player, uint32 newZone, uint32 newArea);
 

Tommy

Founder
Yes, but here i changed with this as you said :

What do you mean by that? If you meant that you replaced the ItemScript gossip code, you aren't suppose to do that. I added everything like I mentioned and it compiles fine. The error is because you're missing the functions inside of ScriptMgr.cpp or ScriptMgr.h.

Here's what it is suppose to look like:

ScriptMgr.cpp:

IRB9dWK.png


ScriptMgr.h:

PlayerScript
TJ75eJM.png


j2XOuq8.png


ItemScript:
3hxwCzx.png


2ZHz28m.png
 

woweee

Enthusiast
Yea I get it now but i think i screwed these files, cuz i replaced them with these that you uploaded on the other thread
https://github.com/TrinityCore/TrinityCore/blob/master/src/server/game/Scripting/ScriptMgr.h#L921 .. ScriptMgr.cpp, MiscHandler.cpp...
I think the files are different because my source is not from here ( https://github.com/TrinityCore/TrinityCore ) , cuz when i tried to clone it , i pulled the higher version than 3.3.5(think its 4.3.4 or smth)... and when i pulled it with master branch(the 3.3.5 version) , i haved problems with compiling ( "Out of date.") so i downloaded a different source...
Code:
11>C:\trinity\src\server\game\Scripting\ScriptMgr.cpp(189): error C2664: 'Log::ShouldLog' : cannot convert parameter 1 from 'const char [15]' to 'LogFilterType'
11>          There is no context in which this conversion is possible
11>C:\trinity\src\server\game\Scripting\ScriptMgr.cpp(189): error C2664: 'Log::outInfo' : cannot convert parameter 1 from 'const char [15]' to 'LogFilterType'
11>          There is no context in which this conversion is possible
11>C:\trinity\src\server\game\Scripting\ScriptMgr.cpp(194): error C2664: 'Log::ShouldLog' : cannot convert parameter 1 from 'const char [15]' to 'LogFilterType'
11>          There is no context in which this conversion is possible
11>C:\trinity\src\server\game\Scripting\ScriptMgr.cpp(194): error C2664: 'Log::outInfo' : cannot convert parameter 1 from 'const char [15]' to 'LogFilterType'
11>          There is no context in which this conversion is possible
11>C:\trinity\src\server\game\Scripting\ScriptMgr.cpp(1452): error C2664: 'Log::ShouldLog' : cannot convert parameter 1 from 'const char [8]' to 'LogFilterType'
11>          There is no context in which this conversion is possible
11>C:\trinity\src\server\game\Scripting\ScriptMgr.cpp(1452): error C2664: 'Log::outError' : cannot convert parameter 1 from 'const char [8]' to 'LogFilterType'
11>          There is no context in which this conversion is possible
11>C:\trinity\src\server\game\Scripting\ScriptMgr.cpp(1461): error C2664: 'Log::ShouldLog' : cannot convert parameter 1 from 'const char [8]' to 'LogFilterType'
11>          There is no context in which this conversion is possible
11>C:\trinity\src\server\game\Scripting\ScriptMgr.cpp(1461): error C2664: 'Log::outError' : cannot convert parameter 1 from 'const char [8]' to 'LogFilterType'
11>          There is no context in which this conversion is possible
11>C:\trinity\src\server\game\Scripting\ScriptMgr.cpp(1470): error C2664: 'Log::ShouldLog' : cannot convert parameter 1 from 'const char [8]' to 'LogFilterType'
11>          There is no context in which this conversion is possible
11>C:\trinity\src\server\game\Scripting\ScriptMgr.cpp(1470): error C2664: 'Log::outError' : cannot convert parameter 1 from 'const char [8]' to 'LogFilterType'
11>          There is no context in which this conversion is possible
 

Tommy

Founder
Yea I get it now but i think i screwed these files, cuz i replaced them with these that you uploaded on the other thread
https://github.com/TrinityCore/TrinityCore/blob/master/src/server/game/Scripting/ScriptMgr.h#L921 .. ScriptMgr.cpp, MiscHandler.cpp...
I think the files are different because my source is not from here ( https://github.com/TrinityCore/TrinityCore ) , cuz when i tried to clone it , i pulled the higher version than 3.3.5(think its 4.3.4 or smth)... and when i pulled it with master branch(the 3.3.5 version) , i haved problems with compiling ( "Out of date.") so i downloaded a different source...
Code:
11>C:\trinity\src\server\game\Scripting\ScriptMgr.cpp(189): error C2664: 'Log::ShouldLog' : cannot convert parameter 1 from 'const char [15]' to 'LogFilterType'
11>          There is no context in which this conversion is possible
11>C:\trinity\src\server\game\Scripting\ScriptMgr.cpp(189): error C2664: 'Log::outInfo' : cannot convert parameter 1 from 'const char [15]' to 'LogFilterType'
11>          There is no context in which this conversion is possible
11>C:\trinity\src\server\game\Scripting\ScriptMgr.cpp(194): error C2664: 'Log::ShouldLog' : cannot convert parameter 1 from 'const char [15]' to 'LogFilterType'
11>          There is no context in which this conversion is possible
11>C:\trinity\src\server\game\Scripting\ScriptMgr.cpp(194): error C2664: 'Log::outInfo' : cannot convert parameter 1 from 'const char [15]' to 'LogFilterType'
11>          There is no context in which this conversion is possible
11>C:\trinity\src\server\game\Scripting\ScriptMgr.cpp(1452): error C2664: 'Log::ShouldLog' : cannot convert parameter 1 from 'const char [8]' to 'LogFilterType'
11>          There is no context in which this conversion is possible
11>C:\trinity\src\server\game\Scripting\ScriptMgr.cpp(1452): error C2664: 'Log::outError' : cannot convert parameter 1 from 'const char [8]' to 'LogFilterType'
11>          There is no context in which this conversion is possible
11>C:\trinity\src\server\game\Scripting\ScriptMgr.cpp(1461): error C2664: 'Log::ShouldLog' : cannot convert parameter 1 from 'const char [8]' to 'LogFilterType'
11>          There is no context in which this conversion is possible
11>C:\trinity\src\server\game\Scripting\ScriptMgr.cpp(1461): error C2664: 'Log::outError' : cannot convert parameter 1 from 'const char [8]' to 'LogFilterType'
11>          There is no context in which this conversion is possible
11>C:\trinity\src\server\game\Scripting\ScriptMgr.cpp(1470): error C2664: 'Log::ShouldLog' : cannot convert parameter 1 from 'const char [8]' to 'LogFilterType'
11>          There is no context in which this conversion is possible
11>C:\trinity\src\server\game\Scripting\ScriptMgr.cpp(1470): error C2664: 'Log::outError' : cannot convert parameter 1 from 'const char [8]' to 'LogFilterType'
11>          There is no context in which this conversion is possible

You shouldn't have done that since it wasn't really necessary to update sources just because of missing template linker error. I'm using the latest source, implemented like I wrote how and everything compiled fine. I think you should just redo the process since your source has unrelated errors.
 
Status
Not open for further replies.
Top