GetMapInfo(x, y, realm := _DEFAULT_REALM )

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 097.
Note: Core 097 is no longer officially supported.
Post Reply
innominabile
Adept Poster
Posts: 85
Joined: Wed Aug 30, 2006 5:24 pm

GetMapInfo(x, y, realm := _DEFAULT_REALM )

Post 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
User avatar
OldnGrey
POL Expert
Posts: 657
Joined: Sat Feb 04, 2006 6:26 pm

Post by OldnGrey »

Over deep or shallow sea? Ie static shoreline or deep ocean?
I thought the deep sea would give -5
innominabile
Adept Poster
Posts: 85
Joined: Wed Aug 30, 2006 5:24 pm

Post 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...
User avatar
OldnGrey
POL Expert
Posts: 657
Joined: Sat Feb 04, 2006 6:26 pm

Post 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.
innominabile
Adept Poster
Posts: 85
Joined: Wed Aug 30, 2006 5:24 pm

Post 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.
innominabile
Adept Poster
Posts: 85
Joined: Wed Aug 30, 2006 5:24 pm

Post by innominabile »

Also boat do not move.
User avatar
ncrsn
Grandmaster Poster
Posts: 255
Joined: Fri Feb 10, 2006 12:15 am

Post 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
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Post 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.
innominabile
Adept Poster
Posts: 85
Joined: Wed Aug 30, 2006 5:24 pm

Post by innominabile »

No... none to zero and in hex mode no 00 :-(
Post Reply