PenUltima Online

It is currently Sat Oct 11, 2008 10:19 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Boat movement validation
PostPosted: Fri Aug 04, 2006 5:47 am 
Offline

Joined: Sun Mar 05, 2006 7:25 am
Posts: 118
Location: Italy
I'd like to have an explanation about the movement validation of boats. Reading core script I couldn't find any code block dealing with movement validation, so I think it's managed by the core when one of the boat movements library functions is called. I know the core checks for obstacles in static and dynamic items according to the coordinates of the boat (I think it checks for each item belonging to the boat, or maybe it creates a sort of bounding box which has all the boat items inside and checks its coordinates againt the static and dynamic items), correct me if I'm wrong. I couldn't fin any info regarding how movement validation is done (if any is done) in relation with the map. Does it checks for water tiles in an hardcoded map tile IDs list? If there any config file defining sailable map tiles? What happens when a script tries to move a boat in shallow water? Does it check for map tiles and, finding the brown map tiles of the bottom of sea, it checks it against a map tiles list? Or does it check for static water tiles? Any info is welcome ^_^


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 04, 2006 10:42 am 
Offline
Packet Maintainer

Joined: Thu Feb 02, 2006 8:33 am
Posts: 300
This is a really interesting question. I am interested on the answer too.

My experience so far ist, that the boat movement is stopped by e.g. landtiles like 0066 around a land mass that is lower in z level than the sea level. If i build a static pier i always have to edit the map under the static pier with these tiles. Otherwise the ships will sail through it. Items or Multis on "sea" won't stop boat movement unless you script a "radar" in your boat script, which consumes a lot of performance.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 08, 2006 4:11 pm 
Offline

Joined: Sun Mar 05, 2006 7:25 am
Posts: 118
Location: Italy
Any hint by the devs about how this works? :roll:


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 11, 2006 8:08 pm 
Offline

Joined: Mon Aug 07, 2006 10:05 am
Posts: 5
The core only checks for land edges statics. Anything else is deemed fair game for hte boat to pass through.


A update to the core to add items as blockable (same with multis) should be coded, its very easy to do.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 11, 2006 8:13 pm 
Offline

Joined: Sat Feb 04, 2006 6:26 pm
Posts: 560
Ah, that explains why a boat will sail into a wharf built in statics.
Putting grass underneath on the server map only seems fair enough.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: Majestic-12 [Bot] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl