Page 1 of 1
GetMapInfo(x, y, realm := _DEFAULT_REALM )
Posted: Sun Mar 02, 2008 3:47 pm
by innominabile
I have a problem using GetMapInfo() in sea.
member landtile give always 0
What can be the problem?
Pol is 097 2008.02.26
Posted: Sun Mar 02, 2008 4:07 pm
by OldnGrey
Over deep or shallow sea? Ie static shoreline or deep ocean?
I thought the deep sea would give -5
Posted: Mon Mar 03, 2008 8:51 am
by innominabile
Yes... but GetMapInfo has only x and y... landtile and z is output value...
Anymore i have the same problem on glass and every map point.
Client used is 4.x patched with uorice.
Currently I have the problem to use fishing far from coats...
Posted: Mon Mar 03, 2008 3:03 pm
by OldnGrey
So you are having problems with this sort of thing?
Code: Select all
use uo;
program textcmd_maptile(character)
var the_tile := GetMapInfo(character.x, character.y, character.realm);
SendSysMessage(character, "Maptile: " + the_tile.landtile);
SendSysMessage(character, "Map height: " + the_tile.z);
endprogram
This works for me though. It prints out the numbers to the screen that I'd expect.
Posted: Tue Mar 04, 2008 4:40 am
by innominabile
Yes. exactly. landtile member is 0 and z is also z (while map tile on sea is at z=-5....
What cfg reads to get map tiles? I think it is a problem in uoconvert conversione.
But it seem all ok.
Posted: Wed Mar 05, 2008 8:01 am
by innominabile
Also boat do not move.
Posted: Wed Mar 05, 2008 8:31 am
by ncrsn
I had same problem not so long time ago. Unfortunately, I do not recall what I exactly did that solved this. Have you tried redoing your realm? Maptile is the one I would suspect, but after all, it's been a while, so can't tell for sure.
Do you have all the necessary files in your /realm/[realm] directory? Are any of the files empty (size of or close to 0kb)? Those including at least:
base.dat
maptile.dat
solids.dat
statics.dat
Posted: Wed Mar 05, 2008 10:20 pm
by CWO
try opening those in a HEX editor too... One time UOConvert made it all 00's inside which caused problems. Deleted the files, reran UOConvert and it worked fine after that.
Posted: Thu Mar 06, 2008 4:17 pm
by innominabile
No... none to zero and in hex mode no 00
