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

Solved Signs duplicate look

LeOnArd0

Member
Joined
Jan 24, 2010
Messages
76
Reaction score
14
Hey guys! Does anyone know what could be going on?

When I look at any sign, the duplicate message appears.

When I'm away, it displays a message along with a sentence of: "You are too far away to read it."

0293c55ec09625bfe4234997feee45de.png

Duplicate message

d106d20ecde62d633572d96ef5825692.png

It doesn't duplicate, but it show the message + sentence "You are too far away to read it".

I found this message in Item.cpp, but I didn't notice anything wrong.

C++:
            if (lookDistance <= 4) {
                    if (item) {
                        text = &item->getText();
                        if (!text->empty()) {
                            const std::string& writer = item->getWriter();
                            if (!writer.empty()) {
                                s << writer << " wrote";
                                time_t date = item->getDate();
                                if (date != 0) {
                                    s << " on " << formatDateShort(date);
                                }
                                s << ": ";
                            } else {
                                s << "You read: ";
                            }
                            s << *text;
                        } else {
                            s << "Nothing is written on it";
                        }
                    } else {
                        s << "Nothing is written on it";
                    }
                } else {
                    s << "You are too far away to read it";
                }

Can anyone help me?

Tks.
Leo
 
Are you sure it uses this code? Check luaItemDesc in config.lua
BTW. Which distro it's?

Try switching that to false to use C++ code or check lua code:
data/lib/core/item.lua
 
Last edited:
Are you sure it uses this code? Check luaItemDesc in config.lua
BTW. Which distro it's?

Try switching that to false to use C++ code or check lua code:
data/lib/core/item.lua
It worked. I changed it to false and now it's ok.

I didn't think this option was for that.

Thank you for your help!!
 
Back
Top