• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling [TFS 1.3 - 8.60] Problem to compile TFS [vcpkg x64 - MSVS 2019]

Farrao

New Member
Joined
Jul 3, 2021
Messages
1
Reaction score
0
Hey, Guys,
Yesterday i tried to compile tfs 1.3 downgraded to version 8.60, but visual studio returns this error


1>------ Compilação iniciada: Projeto: theforgottenserver, Configuração: Release x64 ------
1>iologindata.cpp
1>c:\users\pateky\downloads\d\baiakthunder-master\src\iologindata.cpp(664): warning C4456: a declaração de 'it' oculta uma declaração local anterior
1>c:\users\pateky\downloads\d\baiakthunder-master\src\iologindata.cpp(658): note: consulte a declaração de 'it'
1>c:\users\pateky\downloads\d\baiakthunder-master\src\iologindata.cpp(670): error C2065: 'queue': identificador não declarado
1>c:\users\pateky\downloads\d\baiakthunder-master\src\iologindata.cpp(993): error C2660: 'IOLoginData::saveItems': função não recebe 4 argumentos
1>c:\users\pateky\downloads\d\baiakthunder-master\src\iologindata.cpp(647): note: consulte a declaração de 'IOLoginData::saveItems'
1>Projeto de compilação pronto "theforgottenserver.vcxproj" -- FALHA.
========== Compilar: 0 com êxito, 1 com falha, 0 atualizados, 0 ignorados ==========

anyone knows how to fix it?

C++:
line 647 - 670
    
bool IOLoginData::saveItems(const Player* player, const ItemBlockList& itemList, DBInsert& query_insert, PropWriteStream& propWriteStream, std::map<Container*, int>& openContainers)
{
    std::ostringstream ss;

    using ContainerBlock = std::pair<Container*, int32_t>;
    std::vector<ContainerBlock> containers;
    containers.reserve(32);

    int32_t runningId = 100;

    Database& db = Database::getInstance();
    for (const auto& it : itemList) {
        int32_t pid = it.first;
        Item* item = it.second;
        ++runningId;

        if (Container* container = item->getContainer()) {
            auto it = openContainers.find(container);
            if (it == openContainers.end()) {
                container->resetAutoOpen();
            } else {
                container->setAutoOpen(it->second);
            }
            queue.emplace_back(container, runningId);
        }
        
line 993
    if (!saveItems(player, itemList, rewardQuery, propWriteStream)) {
            return false;
 

Attachments

Last edited:
Back
Top