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

OTClient otclientv8 Updater Problem

Itutorial

Legendary OT User
Joined
Dec 23, 2014
Messages
2,412
Solutions
68
Reaction score
1,074
Using windows. Everything works including downloading new files until it tried to install them. I get this error. The weird thing is even if I am not downloading data.zip it still shows this error.

1727649854799.webp

It seems the problem has to do with this:

C++:
if (reMount) {
    unmountMemoryData();
    file = PHYSFS_openRead("data.zip");
    if (!file)
        g_logger.fatal(stdext::format("Can't open new data.zip"));

    int size = PHYSFS_fileLength(file);
    if (size < 1024)
        g_logger.fatal(stdext::format("New data.zip is invalid"));

    auto data = std::make_shared<std::vector<uint8_t>>(size);
    PHYSFS_readBytes(file, data->data(), data->size());
    PHYSFS_close(file);
    if (!mountMemoryData(data)) {
        g_logger.fatal("Error while mounting new data.zip");
    }
}


C++:
bool ResourceManager::mountMemoryData(const std::shared_ptr<std::vector<uint8_t>>& data)
{
    if (!data || data->size() < 1024)
        return false;

    if (PHYSFS_mountMemory(data->data(), data->size(), nullptr,
        "memory_data.zip", "/", 0)) {
        if (PHYSFS_exists(INIT_FILENAME.c_str())) {
            m_loadedFromArchive = true;
            m_memoryData = data;
            return true;
        }
        PHYSFS_unmount("memory_data.zip");
    }
    return false;
}



SOLVED. You MUST have init.lua included in the updater.php file.
 
Last edited:
Back
Top