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

New item strange behavior and can't use

xixigisi

New Member
Joined
May 11, 2023
Messages
16
Reaction score
2
I have added two new items to my game (server/client) that are not behaving as expected. These were the last two items I added, and I had previously added about 20 or 30 items in the same way, which are used for other things in the same manner.

For these last two items, the problems are as follows:
  • Strange behavior when walking over them
  • I can't add any action to them; when I click, it says I can't use them
  • No server-side errors
  • No errors in the client terminal
Their IDs on my server are 5132 and 5133. I am using version TFS 1.5 downgrade 772. I noticed that some "doors" were configured for these IDs in data\global.lua, even though they don't exist in items.xml.


I have already tried removing and adding them again in both the .dat and .spr files, as well as in the items.otb.

Can anyone help me with this problem? I get confused when nothing is shown in the console or terminal.
 
Solution
I have added two new items to my game (server/client) that are not behaving as expected. These were the last two items I added, and I had previously added about 20 or 30 items in the same way, which are used for other things in the same manner.

For these last two items, the problems are as follows:
  • Strange behavior when walking over them
  • I can't add any action to them; when I click, it says I can't use them
  • No server-side errors
  • No errors in the client terminal
Their IDs on my server are 5132 and 5133. I am using version TFS 1.5 downgrade 772. I noticed that some "doors" were configured for these IDs in data\global.lua, even though they don't exist in items.xml.


I have already tried removing...
I have added two new items to my game (server/client) that are not behaving as expected. These were the last two items I added, and I had previously added about 20 or 30 items in the same way, which are used for other things in the same manner.

For these last two items, the problems are as follows:
  • Strange behavior when walking over them
  • I can't add any action to them; when I click, it says I can't use them
  • No server-side errors
  • No errors in the client terminal
Their IDs on my server are 5132 and 5133. I am using version TFS 1.5 downgrade 772. I noticed that some "doors" were configured for these IDs in data\global.lua, even though they don't exist in items.xml.


I have already tried removing and adding them again in both the .dat and .spr files, as well as in the items.otb.

Can anyone help me with this problem? I get confused when nothing is shown in the console or terminal.
if has a strange behaviour when u walk over, and it was 'doors' ids.. seems like it have some MoveEvent in these ids somewhere..
and, if u cant use them, looks like theres no 'onUse' function for them or the function is returning false
 
Solution
if has a strange behaviour when u walk over, and it was 'doors' ids.. seems like it have some MoveEvent in these ids somewhere..
and, if u cant use them, looks like theres no 'onUse' function for them or the function is returning false

@pips Thank you for your support! You are right about onUse returning false, I corrected it and now it's working.

But the problem about walking over still happening. I didn't find nothing about it. I looked for it on movements and through all files with "fromid/toid". Found it:

movements
fromid="1746" toid="1749"
fromid="6580" toid="6593"
fromid="4620" toid="4625"
fromid="4620" toid="4625"
fromid="4820" toid="4825"
fromid="4820" toid="4825"
fromid="11117" toid="11118"
fromid="11117" toid="11118"
fromid="11355" toid="11356"
fromid="11355" toid="11356"
actions
fromid="1747" toid="1749"
fromid="2666" toid="2691"
fromid="2695" toid="2696"
fromid="2787" toid="2796"
fromid="1728" toid="1731"
fromid="3901" toid="3938"
fromid="5086" toid="5088"
fromid="2070" toid="2085"
fromid="2367" toid="2373"
fromid="3951" toid="3953"
fromid="2376" toid="2404"
fromid="2406" toid="2419"
fromid="2421" toid="2453"
fromid="2005" toid="2009"
fromid="2011" toid="2015"
fromid="2031" toid="2034"
fromid="2574" toid="2577"
fromid="5792" toid="5797"
fromid="5303" toid="5304"
fromid="1816" toid="1817"
fromid="1843" toid="1844"
fromid="1846" toid="1847"
fromid="1849" toid="1850"

There is any other place that I could check for it?
 
@pips Thank you for your support! You are right about onUse returning false, I corrected it and now it's working.

But the problem about walking over still happening. I didn't find nothing about it. I looked for it on movements and through all files with "fromid/toid". Found it:

movements
fromid="1746" toid="1749"
fromid="6580" toid="6593"
fromid="4620" toid="4625"
fromid="4620" toid="4625"
fromid="4820" toid="4825"
fromid="4820" toid="4825"
fromid="11117" toid="11118"
fromid="11117" toid="11118"
fromid="11355" toid="11356"
fromid="11355" toid="11356"
actions
fromid="1747" toid="1749"
fromid="2666" toid="2691"
fromid="2695" toid="2696"
fromid="2787" toid="2796"
fromid="1728" toid="1731"
fromid="3901" toid="3938"
fromid="5086" toid="5088"
fromid="2070" toid="2085"
fromid="2367" toid="2373"
fromid="3951" toid="3953"
fromid="2376" toid="2404"
fromid="2406" toid="2419"
fromid="2421" toid="2453"
fromid="2005" toid="2009"
fromid="2011" toid="2015"
fromid="2031" toid="2034"
fromid="2574" toid="2577"
fromid="5792" toid="5797"
fromid="5303" toid="5304"
fromid="1816" toid="1817"
fromid="1843" toid="1844"
fromid="1846" toid="1847"
fromid="1849" toid="1850"

There is any other place that I could check for it?
 
Thank you again. I owe you a beer.

These ids seem to be from versions higher than the one I'm currently using, I think it wouldn't be a problem if I removed all movements from id 5090 onwards, right?

Thank you for your patience and attention.
 
Thank you again. I owe you a beer.

These ids seem to be from versions higher than the one I'm currently using, I think it wouldn't be a problem if I removed all movements from id 5090 onwards, right?

Thank you for your patience and attention.
no problem at all.. and mark your thread as solved :)
 
Back
Top