Don't Starve Together

Don't Starve Together

Better Pathfinding
17 Comments
RamRod 29 Dec, 2024 @ 11:20pm 
I added the following lines of code and it looks like it works pretty well for when players exploit AI to block mobs:
or inst.prefab == "berrybush"
or inst.prefab == "cactus"
or inst.prefab == "oasis_cactus"
or inst.prefab == "berrybush2"
川小胖  [author] 15 Feb, 2024 @ 7:16pm 
@RamRod: no, actually it only works for obstacles with more than 0.5 physics radius. It's a tough issue just like circle fill on a grid, the physics radius of berry bush is much smaller than the pathfinding cell gird scale
RamRod 15 Feb, 2024 @ 7:53am 
Will this work with berry bushes or cactus? I know sometimes they can block creatures which can lead to issues.
Your worst night 13 Feb, 2024 @ 10:01am 
天才,过来夸夸你
ib77522231 24 Oct, 2023 @ 3:25am 
蜜蜂穿墙增加难度是吧
亚丹 18 Aug, 2023 @ 11:36pm 
最天才的一集
川小胖  [author] 16 Aug, 2023 @ 6:35pm 
注意:这只是一个整活mod,寻路参数的修改会影响所有生物的寻路结果,我不确定你能否得到更好的游戏体验,也许你的关于寻路卡位的工厂会失效!!!
寻路的修改已经在自动寻路mod上仅客户端方面的应用,也就是只有角色会绕过更多的障碍物,不需要这个mod一起开。而这个mod只是将相似的修改应用于服务端的所有生物,用来还原更真实的寻路。
川小胖  [author] 7 Aug, 2023 @ 4:20am 
@archedmaid: i just upload a fix and now it's compatible with cherry forrest mod
川小胖  [author] 5 Aug, 2023 @ 1:57am 
@archedmaid: i have notice it happens when cursor focus cherry tree, but i have no idea what's wrong with that(the info seems to show a sync issue of actionpicker) . Does it happen to any other item ? I'll check for a period of time and maybe finish to fix it next week
川小胖  [author] 4 Aug, 2023 @ 5:56pm 
@archedmaid: did the game ever show the error info ?
archedmaid 4 Aug, 2023 @ 3:36pm 
pretty sure this is crashing when using the cherry forrest mod, if you could add support that would be nice.
川小胖  [author] 17 Jul, 2023 @ 8:54am 
修复了障碍物重叠时移除导致的卡死闪退问题,过几天把自动寻路mod的那个绕路功能也修一下,这两个的原理基本类似
Fixed a bug which cause crash when remove the overlap obstacles
川小胖  [author] 8 Jun, 2023 @ 11:38pm 
改跨海那些就是改了个接口参数,接口里面有个传pathcap,里面有设置ignorewalls,allowocean这些,我就根据Physics的碰撞组改了下:steammocking:
川小胖  [author] 8 Jun, 2023 @ 11:35pm 
没有没有,寻路肯定还是官方的,毕竟要那么多生物公用。就是改了下寻路那个接口的参数,像Pathfinder:AddWall好像可以注册一个墙体,寻路结果就可以绕道了(但是有些物体的坐标和碰撞体积不像墙那么统一还是很难去模拟真实情况)
Fengying 8 Jun, 2023 @ 11:18pm 
看起来好像不错哦,自己写了寻路算法?
川小胖  [author] 9 May, 2023 @ 1:44am 
Now, the creature which can pass through the wall and ocean can find their correct path, eg: the bees can find a straight path to fly through the wall and ocean.After all, they should do it inherently
川小胖  [author] 9 May, 2023 @ 1:39am 
增加生物的寻路机制修改,那些在物理碰撞上本身可以跨海或者穿墙的生物现在不会傻傻地绕道了