Closed NeatWolf closed 5 months ago
Glad you like the mod. There will be updates on thunderstore, yes. But I haven't fixed any bugs yet. So feel free to submit whatever you find.
I can make the speed proportional to the players speed. But making the duck faster than players won't do a thing because the duck always follows the nearest player.
I will publish an update on thunderstore in the next few days. If the problem still appears, please let me know.
I see - I thought I saw some fixes around so I was waiting for the next update before reporting anything. Thanks for adding the rubberbanding!
the duck always follows the nearest player.
I still haven't tested it in multiplayer so - are you saying there can only be one duck per lobby? :( Aw, I was hoping it was a personal pet (1 per player), each following its owner.
the duck always follows the nearest player.
Since you mentioned this - sorry to overcomplicate things but, is the duck properly replicated between players?
1) ========== I can already see this scenario happening if there's a single duck(or more) and 2 people (or more):
Potential fixes (unless you're okay with the duck getting "confused"):
Just a few ideas. I know it complicates things - please ignore me if it makes the development of the duck "too much", I'd rather have a less smart working duck, that no duck at all ;)
Unfortunately, there can be only one duck per lobby. I've encountered sync issues when there is more than one duck and I don't know how to fix them.
Thanks for your suggestions, I really appreciate it.
The duck should be properly replicated between players. At the moment the ai isn't that smart. Each iteration it looks for the closest player and follows it. In the worst case the duck arrives at the ship when every player is returned.
Since the in- and outdoors maps are distanced from each other, the duck will automatically follow the nearest player in the respective area it's currently in, meaning the duck won't follow a player inside the building if there's at least one other player outside as that player will always be closer to the duck than any players inside the building.
I'm planning a followup mod with more animals. Each animal may have different behavior and I'll take your ideas into account. But I don't know when I'll start this mod.
Aw, I was considering creating something similar myself but since it would be my first LC mod, I guess I'm gonna start with something more basic.
Bit sad hearing there can only be one T_T
Thanks for implementing the rubberbanding, it's -a lot- more useful now!
Sometimes it gets stuck or doesn't follow you outside but I'll open a new issue when I have more data.
Keep up with the great job! :)
Hi there!
I was about to submit a few bugs I think I've found but - apparently you've updated the project recently?
Is there going to be a new version in the thunderstore in the near future?
I surely hope so, that's an adorable addition to LC! I can see my other players wanting one of them for themselves ^^
Bugs apart, One major annoyance is that - all is fine if you're not using other mods. But, as soon as your base speed is not the vanilla one, the duck can't keep up with the player (think about LateGameUpdates speed boost), so it never drops the item when the player arrives on the ship, and is forever stuck in the middle of the map while players are zooming around.
Maybe implement some rubber-banding, so the duck speed is proportional to the distance to its owner? Not sure how easily that is going to sync with other players. Maybe just being slightly faster than the player (periodically checking if the player's speed changes) is simpler?