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?
-
Peter
- Posts: 1491
- Joined: Thu Jun 04, 2009 3:36 am
Re: another boat bug?
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.
-
Phazorx
- Posts: 26
- Joined: Thu Oct 22, 2009 9:31 am
Re: another boat bug?
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...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.
-
jorb
- Posts: 18715
- Joined: Fri Apr 03, 2009 7:07 am
- Location: Here, there and everywhere.
Re: another boat bug?
The boat uses the same bounding box regardless of how it faces.Phazorx wrote: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...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.
"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
-- Hieromonk Seraphim Rose
-
Potjeh
- Posts: 11825
- Joined: Fri May 29, 2009 4:03 pm
Re: another boat bug?
Which makes it a bitch to put it down and to walk around it. Could you change that, please?
-
Chakravanti
- Posts: 3345
- Joined: Sat Aug 29, 2009 3:38 am
Re: another boat bug?
Yeah, seriously, It has MAJOR bounding box issues.Potjeh wrote:Which makes it a bitch to put it down and to walk around it. Could you change that, please?
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!
With ice cold hands takin' hold of me
Well I am death, none can excel
-Ralph Stanley, O Death!
-
Phazorx
- Posts: 26
- Joined: Thu Oct 22, 2009 9:31 am
Re: another boat bug?
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.jorb wrote:The boat uses the same bounding box regardless of how it faces.Phazorx wrote: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...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.
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.
-
sabinati
- Posts: 15527
- Joined: Mon Jul 13, 2009 4:25 am
- Location: View active topics
Re: another boat bug?
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.
-
Phazorx
- Posts: 26
- Joined: Thu Oct 22, 2009 9:31 am
Re: another boat bug?
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"?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.
-
loftar
- Posts: 9096
- Joined: Fri Apr 03, 2009 7:05 am
- Location: Your character database
Re: another boat bug?
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: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.
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.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.
"Object-oriented design is the roman numerals of computing." -- Rob Pike