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

Can anyone help me fix this error?

XxDeathAvenger

New Member
Joined
May 5, 2011
Messages
95
Reaction score
2
I can still log in to the server, but i still don't want this error here. any help?
I added a picture to show.

It says this a bunch of times.

[14/04/2014 17:18:54] ERROR: Attempt to set tile on invalid coordinate ( 65535 / 00042 / 007 )!
[14/04/2014 17:18:54] ERROR: Attempt to set tile on invalid coordinate ( 65535 / 00043 / 007 )!

I would appreciate any help.
 

Attachments

The message is clear enough - the game doesn't like tile coordinates at 64K or above.

I doubt RME would let you do this, which leaves a Lua script as the likely culprit.

If you have script(s) that modify tiles:
1. Scan your OT log to see of there's any information about a script error (Lua should log the script name and line at which the bad call to OT occurred)
2. If you have just a few smallish script(s) that modify tiles post them.
 
Lets say it's possible this is due to a mismatch between the map and scripts. It depends a lot on how the server is set up, but I've seen some very fragile terrain-related code in this support forum over the last month or two :)

AFAIK each tile is just an item placed at the specified position. There are examples of them being changed in tiles.lua, snow,lua, decay.lua etc. You can instantiate a Tile object by specifying a location, and then perform various operations on it (check what's stacked on it, ask if it's PZ, etc)

The point is that it's not difficult to interact with the in-game map in Lua. Which means it's technically possible to try Tile operations at an invalid location.I can't know if you have some shaky code on your server, but it's easy to check.

Your error messages are highly suspicious because one of the coordinates is 64K. My guess is that some Lua code is trying to make a new Tile object there, and it's using an invalid x-coordinate. It could be -1, some number much larger than 64K, or exactly 64K (this would depend on how type conversions are handled between Lua and C++, and it probably wouldn't help to know). I have no idea what might generate this kind of error, nor if it might be induced by changing a map, but IMO it's worth checking anyway.

Your best option is probably to look for relevant Lua messages in your OT log and post them here.

If there are no Lua messages, second-best is to search the /data directory for uses of the Tile object (search for "Tile:new(" and "Tile.new(" ), identify any customized scripts that contain either string, and check if they could be using crazy numbers.

To search quickly: download Notepad++ from SourceForge if you don't already have it, and then use Search/Find in Files/ and specify a directory search. It takes about 60 seconds on my PC to search all of TFS 1.0's scripts, and there's a nice panel you can use to check which files contain the search string.
 
Back
Top