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

Map

T

Tinkz

Guest
Hello!

I´m trying to run tfs 0.4 based map on a tfs 1.2. Everytime i load the map on tfs 1.2 server does this.
TFS 0.4
8429ed7f695200e4e3818c03fa0f25ea.png


Same spot but with TFS 1.2
4ed28b0038f29c350d5ee4343dae16bd.png


Do I have to remap and fix all bugs by hand or is there any other solution?
I know that it has to do with item.otbm.
TFS 1.2 isn´t possible to run with older item.otbm
 
Does first screen is from map editor and the second from game? So the items are different in editor and the game. You need to use the same otbm files.

To allow tfs 1.2 load nonstandard otbm file you can edit the sources

iomap.cpp

Delete those ifs
Code:
    if (headerVersion > 2) {
        setLastErrorString("Unknown OTBM version detected.");
        return false;
    }

    if (root_header.majorVersionItems < 3) {
        setLastErrorString("This map need to be upgraded by using the latest map editor version to be able to load correctly.");
        return false;
    }

    if (root_header.majorVersionItems > Item::items.majorVersion) {
        setLastErrorString("The map was saved with a different items.otb version, an upgraded items.otb is required.");
        return false;
    }

    if (root_header.minorVersionItems < CLIENT_VERSION_810) {
        setLastErrorString("This map needs to be updated.");
        return false;
    }
 
The first screen is using a different item.otbm, I dont want to waste time fixing everything with a newer item.otbm so that I can run it on TFS 1.2. So demoving thouse lines in iomap.cpp makes it work? @pasiak12
Guess ill try.

copy data/items/items.otb from 0.4 to 1.2

It dosn´t work like that. TFS 1.2 dosn´t allow older versions of item.otbm
 
Back
Top