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

compilation tfs 1.3

Gubailovo

Well-Known Member
Joined
Dec 19, 2013
Messages
407
Solutions
2
Reaction score
62
paid work. it is necessary to compile the server with the addition of Cyrillic.
 
addition of what?
Russian language.
I don't know how to do it. in the client, you could simply replace "verdana-11px-rounded_cp1252" in the folder "\otclient-master\data\fonts"verdana-11px-rounded_cp1252.png
 
I don't think that has anything to do with compiling, you just need the proper encoding on your script/source files...
 
more? where and what do I need to change or add?
for example, src/actions.cpp

if you want to change:

C++:
void Actions::showUseHotkeyMessage(Player* player, const Item* item, uint32_t count)
{
    std::ostringstream ss;

    const ItemType& it = Item::items[item->getID()];
    if (!it.showCount) {
        ss << "Using one of " << item->getName() << "...";
    } else if (count == 1) {
        ss << "Using the last " << item->getName() << "...";
    } else {
        ss << "Using one of " << count << ' ' << item->getPluralName() << "...";
    }
    player->sendTextMessage(MESSAGE_INFO_DESCR, ss.str());
}

to:

C++:
void Actions::showUseHotkeyMessage(Player* player, const Item* item, uint32_t count)
{
    std::ostringstream ss;

    const ItemType& it = Item::items[item->getID()];
    if (!it.showCount) {
        ss << "Используя один из " << item->getName() << "...";
    } else if (count == 1) {
        ss << "Используя последний " << item->getName() << "...";
    } else {
        ss << "Используя один из " << count << ' ' << item->getPluralName() << "...";
    }
    player->sendTextMessage(MESSAGE_INFO_DESCR, ss.str());
}

you would need to open the file on notepad++ or similar, and change the file encoding to the proper one, to handle these characters and save the file:

dsaaasd.png

(sorry it is in Portuguese but I hope you understood it)
 
for example, src/actions.cpp

if you want to change:

C++:
void Actions::showUseHotkeyMessage(Player* player, const Item* item, uint32_t count)
{
    std::ostringstream ss;

    const ItemType& it = Item::items[item->getID()];
    if (!it.showCount) {
        ss << "Using one of " << item->getName() << "...";
    } else if (count == 1) {
        ss << "Using the last " << item->getName() << "...";
    } else {
        ss << "Using one of " << count << ' ' << item->getPluralName() << "...";
    }
    player->sendTextMessage(MESSAGE_INFO_DESCR, ss.str());
}

to:

C++:
void Actions::showUseHotkeyMessage(Player* player, const Item* item, uint32_t count)
{
    std::ostringstream ss;

    const ItemType& it = Item::items[item->getID()];
    if (!it.showCount) {
        ss << "Используя один из " << item->getName() << "...";
    } else if (count == 1) {
        ss << "Используя последний " << item->getName() << "...";
    } else {
        ss << "Используя один из " << count << ' ' << item->getPluralName() << "...";
    }
    player->sendTextMessage(MESSAGE_INFO_DESCR, ss.str());
}

you would need to open the file on notepad++ or similar, and change the file encoding to the proper one, to handle these characters and save the file:

View attachment 55665

(sorry it is in Portuguese but I hope you understood it)
gives out hieroglyphsСкриншот 01-03-2021 193017.jpg
 
Back
Top