• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved From tfs 0.3.6 to 0.4 error: items.otb

HappyFeet

New Member
Joined
Nov 8, 2012
Messages
244
Reaction score
3
Location
Netherlands
hello,
I build a complete server with tfs 0.3.6 but now I want to update to 0.4.
I got the sources done but now.. my items will not load
error: unable to load items (otb)!
how do I fix it and there are other things I have to consider?
 
hello,
I build a complete server with tfs 0.3.6 but now I want to update to 0.4.
I got the sources done but now.. my items will not load
error: unable to load items (otb)!
how do I fix it and there are other things I have to consider?
use the items.otb from 0.4
 
hello,
I build a complete server with tfs 0.3.6 but now I want to update to 0.4.
I got the sources done but now.. my items will not load
error: unable to load items (otb)!
how do I fix it and there are other things I have to consider?


Remove check otb in items.cpp
 
Remove check otb in items.cpp
now is the question what do I remove??

Code:
    if(Items::dwMajorVersion == 0xFFFFFFFF)
        std::clog << "[Warning - Items::loadFromOtb] items.otb using generic client version." << std::endl;
    else if(Items::dwMajorVersion < 3)
    {
        std::clog << "[Error - Items::loadFromOtb] Old version detected, a newer version of items.otb is required." << std::endl;
        return ERROR_INVALID_FORMAT;
    }
    else if(Items::dwMajorVersion > 3)
    {
        std::clog << "[Error - Items::loadFromOtb] New version detected, an older version of items.otb is required." << std::endl;
        return ERROR_INVALID_FORMAT;
    }
    else if(Items::dwMinorVersion != CLIENT_VERSION_861)
    {
        std::clog << "[Error - Items::loadFromOtb] Another (client) version of items.otb is required." << std::endl;
        return ERROR_INVALID_FORMAT;
    }

something in this?
 
now is the question what do I remove??

Code:
    if(Items::dwMajorVersion == 0xFFFFFFFF)
        std::clog << "[Warning - Items::loadFromOtb] items.otb using generic client version." << std::endl;
    else if(Items::dwMajorVersion < 3)
    {
        std::clog << "[Error - Items::loadFromOtb] Old version detected, a newer version of items.otb is required." << std::endl;
        return ERROR_INVALID_FORMAT;
    }
    else if(Items::dwMajorVersion > 3)
    {
        std::clog << "[Error - Items::loadFromOtb] New version detected, an older version of items.otb is required." << std::endl;
        return ERROR_INVALID_FORMAT;
    }
    else if(Items::dwMinorVersion != CLIENT_VERSION_861)
    {
        std::clog << "[Error - Items::loadFromOtb] Another (client) version of items.otb is required." << std::endl;
        return ERROR_INVALID_FORMAT;
    }

something in this?


Find it:
if(Items::dwMajorVersion ==0xFFFFFFFF)
std::clog <<"[Warning - Items::loadFromOtb] items.otb using generic client version."<< std::endl;elseif(Items::dwMajorVersion <3){
std::clog <<"[Error - Items::loadFromOtb] Old version detected, a newer version of items.otb is required."<< std::endl;return ERROR_INVALID_FORMAT;}elseif(Items::dwMajorVersion >3){
std::clog <<"[Error - Items::loadFromOtb] New version detected, an older version of items.otb is required."<< std::endl;return ERROR_INVALID_FORMAT;}elseif(!g_config.getBool(ConfigManager::SKIP_ITEMS_VERSION)&&Items::dwMinorVersion != CLIENT_VERSION_920){
std::clog <<"[Error - Items::loadFromOtb] Another (client) version of items.otb is required."<< std::endl;return ERROR_INVALID_FORMAT;}

Just delete!
 
Back
Top