1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Greetings Guest!!

    In order to combat SPAM on the forums, all users are required to have a minimum of 2 posts before they can submit links in any post or thread.

    Dismiss Notice

So how are they doing smooth boat movement exactly?

Discussion in 'UHall' started by Velvathos, Aug 30, 2010.

  1. Velvathos

    Velvathos Lore Keeper
    Stratics Veteran

    Joined:
    May 13, 2008
    Messages:
    783
    Likes Received:
    159
    Current boats as far as I am aware of, are made of tiles and placing a boat on water(which is also made of tiles) is like placing a house, so every time a boat moves on the water, it skips cause it has to replace itself with your character on the boat.

    And with click to move boats to me it sounds like they are basically mounts on water rather than being tile based..

    I remember I once tested it out on a free shard, if you change your character properties so they are "swimmable" they can no longer walk on land, you teleport to the water and you can run right across it, you can do the same with mounts..

    Someone correct me if I am wrong but it sounds like the new boats are working as if they were a mounton water rather than a house on water.. :)
     
  2. Yalp

    Yalp Guest

    yeah. they said the current way boats move is they teleport from tile to tile, hence so choppy. During the new boat demo's there was some kind of (for lack of a better word) melding with the boat wheel, which then acted like a "mount". You couldn't operate the boat from just anywhere, you had to be standing at the wheel. I don't know the ins and out of the code.. but that might give you more info.
     
  3. Krinkle

    Krinkle Journeyman
    Stratics Veteran

    Joined:
    Apr 16, 2010
    Messages:
    278
    Likes Received:
    75
    I do believe a new form of magic was developed to make boats move better. Of course, they are keeping this secret so that the new evil force that is rising does not gain control of it.
     
  4. legendsguy

    legendsguy Sage
    Stratics Veteran

    Joined:
    Jun 7, 2008
    Messages:
    695
    Likes Received:
    138
    okay, but this is crazy. i know nothing at all about UO and coding, but the other night after learning about the boats i envisioned that they probably were just gigantic mounts! whoo for me
     
  5. canary

    canary Guest

    It's MAGIC!

    (at least thats my theory)
     
  6. Crysta

    Crysta Babbling Loonie
    Stratics Veteran Alumni

    Joined:
    May 12, 2008
    Messages:
    2,418
    Likes Received:
    73
    They said the wheel mouse control was optional and that voice commands would still work. I don't think it has anything to do with making it like a mount.. if it were, Mesanna wouldn't have said they got rid of Seahorses because they were impossible to get working properly.
     
  7. JC the Builder

    JC the Builder Crazed Zealot
    Stratics Veteran

    Joined:
    May 12, 2008
    Messages:
    3,154
    Likes Received:
    708
    There was a setting named jerkyBoatMotion = true. They found it and set it to false. If only they found it years ago.
     
  8. Mapper

    Mapper Crazed Zealot
    Stratics Veteran Alumni Stratics Legend

    Joined:
    Oct 24, 2005
    Messages:
    3,528
    Likes Received:
    110
    I agree, I think it's maybe something where they have split each tile into pixels, then move it by pixel. They said it can work anywhere, so perhaps each tile is not just 32,32 but can be 32.1,32.6 for example.
     
  9. Merion

    Merion Lore Master
    Stratics Veteran

    Joined:
    Dec 1, 2009
    Messages:
    1,006
    Likes Received:
    9
    They also said, that in theory, they could make wagons now.

    I hope that will be in the next booster: Wagons for players, NPC merchant wagon trains traveling between cities to be raided bad karma players. Escorts for good karma players. Heck, even the gyspy could finally get their wagons moving, instead of teleporting from spot to spot (in ilsh).

    In general I really like the idea of not adding more land but instead offering more to do in the existing areas.
     
  10. Restroom Cowboy

    Restroom Cowboy Visitor

    Joined:
    Jul 1, 2008
    Messages:
    3,283
    Likes Received:
    0
    I seem to recall some mentioning of multi tile objects being able to be used in game thanks to some new movement coding...guessing this is part of that?
     
  11. Petra Fyde

    Petra Fyde Peerless Chatterbox
    Stratics Veteran Alumni Stratics Legend

    Joined:
    Jan 5, 2001
    Messages:
    30,889
    Likes Received:
    5,175
    I wonder if this new ability has anything to do with the database upgrade they did recently.
     
  12. Lord Chaos

    Lord Chaos Always Present
    Stratics Veteran

    Joined:
    May 12, 2008
    Messages:
    10,075
    Likes Received:
    0
    Not likely, boat movement isn't database related.
     
  13. Taylor

    Taylor Former Stratics CEO (2011-2014)
    Professional VIP Stratics Veteran Supporter Alumni Campaign Benefactor Alumni

    Joined:
    Oct 21, 2008
    Messages:
    8,023
    Likes Received:
    1,714
    lol :lol:
     
  14. Harlequin

    Harlequin Babbling Loonie
    Stratics Veteran

    Joined:
    Jun 11, 2008
    Messages:
    2,716
    Likes Received:
    32
    I mentioned this in another thread, then I thought about it more. My original thought may be only a part of it.

    Boats are/were stored on the same server as the housing server. So every time a boat moves, there will be a series of updates to the housing server as if a house was placed, removed, placed on the next tile, removed again, then placed again on the next tile. that means movement is always done by at least 1 full tile at a time when using slow forward. Normal forward moves it by 2 to 3 full tiles at a time.

    Players are teleported along when the ship moves. Hence the jerkiness and also the rubber band effect when you try to walk on a moving boat.

    I suspect they are revamping this so that the boats no longer need to be stored on the housing database server. Maybe the database admin is finding the constant updates to his shiny new database server just to move a boat is totally unwarranted.

    Being able to group multiple tiles together and move them as one has great potential. It allows other muti part objects to moved too. Wagons are mentioned, ships we know. Other large objects I can think off are moving houses, flying carpets, hotair balloons etc.

    As to the smoothness, if you examine how you walk from 1 tile to another, you will see that there are several frames where you are in between the tiles. (Or rather, the ground below your feet scrolls/slides a couple of pixels at a time) You don't teleport from 1 to the other. The filling in of these in-between tile movement is what makes the animation smoother.
     
  15. Merion

    Merion Lore Master
    Stratics Veteran

    Joined:
    Dec 1, 2009
    Messages:
    1,006
    Likes Received:
    9
    Multitile Dragons! Where you can attack individual parts of the beast. Like, damage the wings enough, and he can't fly anymore. Damage the legs and he slows down, etc.

    Also, good reasoning on the database stuff. Sound logical.
     
  16. Fink

    Fink Guest

    As much as I'm looking forward to the new ships, the possibility of a gypsy caravan seems just as exciting. A reward for GM Camping? :thumbup1:
     
  17. JC the Builder

    JC the Builder Crazed Zealot
    Stratics Veteran

    Joined:
    May 12, 2008
    Messages:
    3,154
    Likes Received:
    708
    I very much doubt this for several reasons.

    1) There is absolutely no reason to have boats managed by the housing server.
    2) It would require additional work to move boat management to the housing server.
    3) You can place boats when the housing server is offline.

    and the biggest....

    4) Boats moved like this before there ever was a housing server.
     
  18. Silverbird

    Silverbird Slightly Crazed
    Stratics Veteran Stratics Legend

    Joined:
    Nov 3, 2001
    Messages:
    1,405
    Likes Received:
    52
    Hmmm ... why not.
    I mean ... this all happened long before my time, but when i think of it, how different were those old tents from ships. (Let aside, that ships are moving.) Both have one chest for storage (400 stones, 125 items for the porch). Putting boats onto the housing server could regulate the boat decay, too. (Thought way faster than a normal house but I dont know how decay worked with/for tents.) The position of a boat doesnt necessaryly need to be stored on the housing server only its existance and the decay status.
     
  19. Harlequin

    Harlequin Babbling Loonie
    Stratics Veteran

    Joined:
    Jun 11, 2008
    Messages:
    2,716
    Likes Received:
    32
    Actually, iirc, a dev stated that a while back. I can't find it though. So now I am not sure either.

    You are right that it is unnecessary, and is extra work. I think they had the same views too and it was one of the things that prevented them from doing a ship expansion. Again, I can't find that post, so I may be mistaken.

    With regards to placing boats when the housing server is offline. Good point. I never tried this. You got me thinking if they can track the position of boats without the housing server, why do they need to put it there in the first place.

    As to the the last point, houses were implemented right from the begining. There may not be a consolidated housing server that checks/limts each player to 1 house, however, that doesn't mean there was no housing server then. iirc, the devs also mentioned that the old housing server was hosted on a pc.

    Anyone else remembers reading these?

    Good points. House placement do resemble boat placement. The single built in container is similar to the tents.

    Decay rate for houses initially was similar to boats as well. Players had to open the doors to keep it refreshed. It is only until later that they changed it to tie in with subscription info.
     
  20. Basara

    Basara UO Forum Moderator
    Moderator Professional Wiki Moderator Stratics Veteran Stratics Legend Campaign Supporter

    Joined:
    Jul 16, 2003
    Messages:
    8,468
    Likes Received:
    592
    It didn't have to be ON the housing server, to use a modified version of the BASE CODE of the housing server, stored somewhere else (since boats are shard specific, unlike house ownership, it would be on the shard's server - possibly in the area used hor housing before the unified housing server that cross-checks all shards for house ownership).
     
  21. Fat Lip

    Fat Lip Guest

    My uneducated theory is...

    They gave the water tiles a special walkmesh specifically designed for boats so that the boats (and not people) could move along them. Then, they gave the boats the ability to 'walk' or move (whatever you wanna call it) on these specific types of tiles.
     
  22. G.v.P

    G.v.P Stratics Legend
    Stratics Veteran Stratics Legend

    Joined:
    Jul 11, 2004
    Messages:
    9,644
    Likes Received:
    831
    I love graphical lies ... I'm going to make some tables in an HTML document right now ;D
     
  23. G.v.P

    G.v.P Stratics Legend
    Stratics Veteran Stratics Legend

    Joined:
    Jul 11, 2004
    Messages:
    9,644
    Likes Received:
    831
    nice :)

    hopefully they'll find 2DHighRez = false as well ;D
     
  24. Dermott of LS

    Dermott of LS UOEC Modder
    Stratics Veteran

    Joined:
    May 12, 2008
    Messages:
    5,320
    Likes Received:
    528
    ...

    hopefully they'll find 2DHighRez = false as well ;D

    They did in the EC... except they changed it TO false.
     
  25. Zooithion

    Zooithion Crazed Zealot
    Stratics Veteran

    Joined:
    Aug 1, 2003
    Messages:
    3,771
    Likes Received:
    0
    A mage did it. (who remembers that?)
     
  26. Dermott of LS

    Dermott of LS UOEC Modder
    Stratics Veteran

    Joined:
    May 12, 2008
    Messages:
    5,320
    Likes Received:
    528
    ...

    "A Wizard did it"... Calyndryll... I think he was the very first community coordinator/community relations manager back before/during UO:R. Many many moons ago.
     
  27. Harlequin

    Harlequin Babbling Loonie
    Stratics Veteran

    Joined:
    Jun 11, 2008
    Messages:
    2,716
    Likes Received:
    32
    That throws out my housing server theory. Good explanation, esp the part about the client was the side actually doing the calculation and animation for an object to travel btwn tiles.

    You should post more :D
    (I know there are things you probably can't reveal, but it's still nice to have someone that knows first hand on how things work point us in the right direction)


    The instant calculation thing also explains the out running fireball myths. Damage is done and calculated instantly, no matter how far a player tries to out run it. That's just the client trying to do the animation.
     
  28. Lady Storm

    Lady Storm Crazed Zealot
    Stratics Veteran Stratics Legend

    Joined:
    Feb 20, 2006
    Messages:
    3,747
    Likes Received:
    1,557
    Yep I use to do it alot back then.... only way to live. hehe
     
  29. Jhym

    Jhym Guest

    Yep, I once ran on the east Britain road, midway to the swamp, all the way back to town with a fireball trailing me. Almost like the fireball/arrows were considered separate objects by the server and tracked as such, which would sorta make sense.

    Funny, though tactically interesting, I wouldn't mind them putting some of it back in again.
     
  30. Jhym

    Jhym Guest

    I was always pretty sure it was possible, since there were a few multi-tile items that were movable (though not mobile.)

    We forgot to suggest to them to show multiple players/npcs moving on the boats though. I want to see the effect if I'm a passenger and as the owner. If it's just as smooth and seamless on both sides I will be more impressed.

    :popcorn:
     
  31. Amren

    Amren Journeyman
    Stratics Veteran

    Joined:
    Jul 24, 2008
    Messages:
    221
    Likes Received:
    0
    LOL , you guys are reading way to far into this. I "seriously" doubt that it requires multiple servers to create 1 UO "shard"

    If you think about it, a single blade server could run all "shards" and still have power left over for some UO and WoW server emulations.
     
  32. lucitus

    lucitus UOEC Modder
    Stratics Veteran

    Joined:
    May 13, 2008
    Messages:
    1,426
    Likes Received:
    45
    Another intersting i want to know here is, movement is serverbased, we all know the Enhanced client is not shown correctly for 2d people.

    Means that the EC is sending other distances to the server? And the server answers yes it is the EC collosion is right distance okay, send it out to all players?

    Which the 2d client cannot display because there are other distances between the animations and maybe this is causing the bunny hopping in the 2d client?
     
  33. R Traveler

    R Traveler Babbling Loonie
    Stratics Veteran Stratics Legend

    Joined:
    Jul 15, 2005
    Messages:
    2,950
    Likes Received:
    231
    So this explain why new ranged weapons (throwing) sucks. They not made instant damage.
     
  34. Babble

    Babble Guest

    The setup is probably still the same, is why we have serverlines in the world.
     
  35. Warpig Inc

    Warpig Inc Babbling Loonie
    Stratics Veteran

    Joined:
    Jul 2, 2008
    Messages:
    2,416
    Likes Received:
    397
    Pixel Grease
     
  36. JC the Builder

    JC the Builder Crazed Zealot
    Stratics Veteran

    Joined:
    May 12, 2008
    Messages:
    3,154
    Likes Received:
    708
    Each shard is made up of about 20 servers called subservers. While it is true today that a shard could possibly run on a single server, 14 years ago this was unthinkable. So the game area was divided up. But each shard is still divided up into multiple servers. This is still good as if one server is overloaded, it won't slow down the entire shard. So big player battles in Felucca won't hinder someone bank sitting in Britain Trammel.

    It is definitely not possible for a single server to run every UO shard though.