another boat bug?

The worst monsters in the Hearthlands warp the fabric of space and time..

another boat bug?

Postby pMule » Wed Nov 25, 2009 5:05 pm

I noticed that boats (and possibly other items, like carts) are being reset after server restart to facing south direction regardless from where they were pointed before.
Aside of being minor annoyance, when boat that was possible to embark/disembark before isn't anymore, there are also cases when overlaying sprites matter (for example hiding boat behind something). It is also possible that this can contribute to whole range of crash+unable to log-in bugs where due to running the spawn spot is not whee boat is anymore?
pMule
 
Posts: 1
Joined: Fri Nov 20, 2009 5:13 pm

Re: another boat bug?

Postby Peter » Wed Nov 25, 2009 5:52 pm

That's a good eye, and worth noting, but as far as I know boat direction is purely graphical. I think that what happens in a crash is that people log off, dropping any containers and thus being unable to log in where that was.
Surprise.
User avatar
Peter
 
Posts: 1491
Joined: Thu Jun 04, 2009 3:36 am

Re: another boat bug?

Postby Phazorx » Wed Nov 25, 2009 7:26 pm

Peter wrote:That's a good eye, and worth noting, but as far as I know boat direction is purely graphical. I think that what happens in a crash is that people log off, dropping any containers and thus being unable to log in where that was.


Well, considering that boat has 2x2 tiles hitbox and capable of carrying 2 people rotation can matter, but that of course depends on implementation withing code...
User avatar
Phazorx
 
Posts: 26
Joined: Thu Oct 22, 2009 9:31 am

Re: another boat bug?

Postby jorb » Thu Nov 26, 2009 7:04 am

Phazorx wrote:
Peter wrote:That's a good eye, and worth noting, but as far as I know boat direction is purely graphical. I think that what happens in a crash is that people log off, dropping any containers and thus being unable to log in where that was.


Well, considering that boat has 2x2 tiles hitbox and capable of carrying 2 people rotation can matter, but that of course depends on implementation withing code...


The boat uses the same bounding box regardless of how it faces.
"The psychological trials of dwellers in the last times will be equal to the physical trials of the martyrs. In order to face these trials we must be living in a different world."

-- Hieromonk Seraphim Rose
User avatar
jorb
 
Posts: 18437
Joined: Fri Apr 03, 2009 7:07 am
Location: Here, there and everywhere.

Re: another boat bug?

Postby Potjeh » Thu Nov 26, 2009 11:17 am

Which makes it a bitch to put it down and to walk around it. Could you change that, please?
Image Bottleneck
User avatar
Potjeh
 
Posts: 11812
Joined: Fri May 29, 2009 4:03 pm

Re: another boat bug?

Postby Chakravanti » Thu Nov 26, 2009 11:29 am

Potjeh wrote:Which makes it a bitch to put it down and to walk around it. Could you change that, please?

Yeah, seriously, It has MAJOR bounding box issues.
Well what is this that I can't see
With ice cold hands takin' hold of me
Well I am death, none can excel
-Ralph Stanley, O Death!
User avatar
Chakravanti
 
Posts: 3345
Joined: Sat Aug 29, 2009 3:38 am

Re: another boat bug?

Postby Phazorx » Thu Nov 26, 2009 11:41 am

jorb wrote:
Phazorx wrote:
Peter wrote:That's a good eye, and worth noting, but as far as I know boat direction is purely graphical. I think that what happens in a crash is that people log off, dropping any containers and thus being unable to log in where that was.


Well, considering that boat has 2x2 tiles hitbox and capable of carrying 2 people rotation can matter, but that of course depends on implementation withing code...


The boat uses the same bounding box regardless of how it faces.


Bounding box is th same, i never questioned that, but say there are two players onboard and boat is heading north, how are player coordinates stored? are they relative to the boat, or position in vehicle (to determine who is driver and who is passenger) is stored separately? Does it matter that if boat switches direction to heading south it appears that players exchange their places geometrically-visually.
I doubt that game places boat on all tiles it occupies, it is more logical to use one of tiles as key and calculate occupied space based on rotation, but if rotation property is lost - it could result in boat using different 4 tiles that these which were used before.
User avatar
Phazorx
 
Posts: 26
Joined: Thu Oct 22, 2009 9:31 am

Re: another boat bug?

Postby sabinati » Thu Nov 26, 2009 3:44 pm

there are two spots in a boat. if you're in the 1st spot and the boat rotates, you're still in the first spot.
User avatar
sabinati
 
Posts: 15513
Joined: Mon Jul 13, 2009 4:25 am
Location: View active topics

Re: another boat bug?

Postby Phazorx » Thu Nov 26, 2009 4:32 pm

sabinati wrote:there are two spots in a boat. if you're in the 1st spot and the boat rotates, you're still in the first spot.


that is true in case if rotation comes as an action from a player and server normally handles it by rotating the boat and doing all other necessary calculations about players whereabouts (thus, when player exits or server goes through shutdown - whatever is current stored to be recalled when player comes back online). We all know what happens if a another item is placed at where the player was logged off, boats are an exclusion to that case, but what if player position how it was stored does not match proper boat part when it is recalled due to boat being rotated into "default direction"?
User avatar
Phazorx
 
Posts: 26
Joined: Thu Oct 22, 2009 9:31 am

Re: another boat bug?

Postby loftar » Fri Nov 27, 2009 2:58 am

Phazorx wrote:I doubt that game places boat on all tiles it occupies, it is more logical to use one of tiles as key and calculate occupied space based on rotation, but if rotation property is lost - it could result in boat using different 4 tiles that these which were used before.

The server save no such thing at all "per tile". Rather it saves the boat object and its coordinate; the coordinates of the bounding box is relative to that coordinate and is therefore entirely unaffected by the boat's rotation. The rotation is, indeed, purely visual.

Phazorx wrote:Bounding box is th same, i never questioned that, but say there are two players onboard and boat is heading north, how are player coordinates stored? are they relative to the boat, or position in vehicle (to determine who is driver and who is passenger) is stored separately? Does it matter that if boat switches direction to heading south it appears that players exchange their places geometrically-visually.


While the player coordinates are stored, they are completely ignored when logging in back into a boat. What is saved is the identity of the boat itself, and when logging back into a boat, the boat is simple requested to accept the player. If there is a spot free in the boat, then, the player receives that spot.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9056
Joined: Fri Apr 03, 2009 7:05 am


Return to Bugs

Who is online

Users browsing this forum: Ahrefs [Bot], Claude [Bot] and 1 guest