PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
GetMapInfo(x, y, realm := _DEFAULT_REALM )

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Development Discussion 097
Display posts from previous:   

Author Message
innominabile



Joined: 30 Aug 2006
Posts: 81
Location: Italy

PostPosted: Sun Mar 02, 2008 7:47 pm    Post subject: GetMapInfo(x, y, realm := _DEFAULT_REALM ) Reply with quote

I have a problem using GetMapInfo() in sea.
member landtile give always 0

What can be the problem?

Pol is 097 2008.02.26

Author Message
OldnGrey



Joined: 04 Feb 2006
Posts: 517

PostPosted: Sun Mar 02, 2008 8:07 pm    Post subject: Reply with quote

Over deep or shallow sea? Ie static shoreline or deep ocean?
I thought the deep sea would give -5

Author Message
innominabile



Joined: 30 Aug 2006
Posts: 81
Location: Italy

PostPosted: Mon Mar 03, 2008 12:51 pm    Post subject: Reply with quote

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...

Author Message
OldnGrey



Joined: 04 Feb 2006
Posts: 517

PostPosted: Mon Mar 03, 2008 7:03 pm    Post subject: Reply with quote

So you are having problems with this sort of thing?

Code:
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.

Author Message
innominabile



Joined: 30 Aug 2006
Posts: 81
Location: Italy

PostPosted: Tue Mar 04, 2008 8:40 am    Post subject: Reply with quote

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.

Author Message
innominabile



Joined: 30 Aug 2006
Posts: 81
Location: Italy

PostPosted: Wed Mar 05, 2008 12:01 pm    Post subject: Reply with quote

Also boat do not move.

Author Message
ncrsn



Joined: 10 Feb 2006
Posts: 165

PostPosted: Wed Mar 05, 2008 12:31 pm    Post subject: Reply with quote

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

Author Message
CWO



Joined: 04 Feb 2006
Posts: 684
Location: Chicago, IL USA

PostPosted: Thu Mar 06, 2008 2:20 am    Post subject: Reply with quote

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.

Author Message
innominabile



Joined: 30 Aug 2006
Posts: 81
Location: Italy

PostPosted: Thu Mar 06, 2008 8:17 pm    Post subject: Reply with quote

No... none to zero and in hex mode no 00 Sad

Post new topic   Reply to topic    PenUltima Online Forum Index -> Development Discussion 097 All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty