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

Issue with Signs Not Displaying Text Properly

Zazeros

Member
Joined
Feb 13, 2012
Messages
82
Reaction score
20
0.4

Hello everyone,


I'm experiencing a really annoying issue with signs in my 0.4 server.


Ingame, if I click on a sign using both mouse buttons, it only displays "You see a sign." and doesn't show the text written on it.


However, if I right-click the sign, it opens a window showing the text, for example:


1741481720870.webp


In RME, when I try to edit a sign, the text box appears normally, but after saving, even if I type just one letter, it immediately gives a warning saying there are too many characters.


1741481759378.webp


What could be causing this?


Note:
LUA:
attribute key="allowDistRead" value="true"
didn't work.


Thanks in advance for any help!
 
I really recommend you to stop using 0.4 which is a very very old source and start using a newer one. You will reach a point where you going to realize what an absurd thing is to work with old sources (fully outdated with lots bugs which we're fixed on newer releases).

For further search I recommend you to open the whole folder on visual studio, use CTRL + shift + f and search for ID 1433. At items.xml there should be the following:
XML:
    <item fromid="1429" toid="1434" article="a" name="sign">
        <attribute key="allowDistRead" value="true" />
    </item>
Since the modal window must be triggered by onUse event I think that your ID is related to a script. Probably searching the id on visual studio will send you where the line is. Anyways newer sources handle this kind of events much better as you can see here:


And if you see the sources, i'm not quite sure, but allowDistRead function from newer source should be more optimized than the older engine you use. So in resume, you must change your source for recent one, otherwise, you'll be stuck permanently in errors that have been solved already (making all of us waste our time). Regards!
 
@ralke

First of all, thank you for your response and for taking the time to help. I also appreciate your suggestion about upgrading to a newer engine, it's definitely something worth considering.

However, at this stage, switching to a newer source would be extremely difficult. My server is about 80% complete, and I have been developing it from scratch, including importing new items, adding new sprites in RME, and implementing many custom mechanics. Rebuilding everything from the ground up is simply not an option at this point.

Regarding the issue, as I mentioned earlier, allowDistRead does not exist or does not work in TFS 0.4. This has been suggested in a few places before, but from what I’ve seen, it doesn’t seem to work in this version.

Do you have any alternative solutions that might work within TFS 0.4?

Again, I really appreciate your help!
 
@ralke

First of all, thank you for your response and for taking the time to help. I also appreciate your suggestion about upgrading to a newer engine, it's definitely something worth considering.

However, at this stage, switching to a newer source would be extremely difficult. My server is about 80% complete, and I have been developing it from scratch, including importing new items, adding new sprites in RME, and implementing many custom mechanics. Rebuilding everything from the ground up is simply not an option at this point.
Glad it helped. Got to be honest, I have heard this so many times, your server won't ever be ready for production if the sources aren't working properly/outdated. Creatures has delayed behaviour, and there's a huge log of fixes that we're done from 0.4 to 1.5 (just see github bouties, updates, etc.).

Just see one of the nekiro downgrade first commits, that handles 8.6 support https://github.com/nekiro/TFS-1.5-D...5f3bc4a9d0844cff966ef6fa5785d258b3aa47b370a2c

As you see, the whole src folder changed in order to have this compatibility, with sources that we're downgraded directly from main branch. And this is 4-5~ years old, just imagine how old 0.4 is. If there's a repository which has 0.4 with some of the current features I don't know actually, but it's nonsense.

Regarding the issue, as I mentioned earlier, allowDistRead does not exist or does not work in TFS 0.4. This has been suggested in a few places before, but from what I’ve seen, it doesn’t seem to work in this version.

Do you have any alternative solutions that might work within TFS 0.4?

Again, I really appreciate your help!

This is exactly what I said earlier, you won't find updated methods at old source. Things requiere updated sources in order to work nowdays. I insist that you wouldn't be able to open a server with old source. Using custom mechanics, newer sprites, etc. won't help at all if you dont have the basic and structural stuff working.

And with structural stuff I say memory optimization, correct creature behaviour, memory leaks, otclient and revscripsys compatibility (among others, the list is huge). Also consider that 1.X has backward compatibility (excepting of "mods" format which was used on 0.4), but even considering that, scripting mods for 0.4 isn't good anymore (in terms of optimization).
 

Similar threads

Back
Top