Translations for our friends around the world.

LIF:YO & MMO



Author Topic: 25/07/2016 Weekly Dev News Update  (Read 3433 times)

0 Members and 1 Guest are viewing this topic.

Offline Asid

  • HAVOC
  • *
  • Posts: 26443
25/07/2016 Weekly Dev News Update
« on: July 25, 2016, 05:40:20 PM »
25/07/2016 Weekly Dev News Update

Animals and Algorithms

Hey guys,

Welcome to this week’s dev news! There’s lots of reworking some older mechanics on top of everything else so we thought we’d elaborate on some the new mechanics you can look forward to.

After we released LiF:YO, we decided we’d like to completely rework animal behavior mechanics. Our goal was to achieve better code clarity, extensibility, and an easier way to modify parameters in realtime.

The new pathfinding algorithm removes the old manual implementation, and instead takes advantage of the well-known recast/detour library. This allows us to provide walkable surfaces (Navigation Meshes), not only on the ground, but on the stairs, buildings - everything with proper collision geometry. It’s also fully tunable: maximum angle, impassable area size near walls, etc.



After we had taken care of the new pathfinding, new animals (and the native NPCs in the future) would still be lacking good behavior implementation and proper spawn logic. Therefore, after many discussions, we decided to move forward with the ‘behavior tree’ approach. This technique showed great adjustability and was really clear to understand.



This screenshot shows an approximate behaviour tree for predatory animals, such as bears, boars and wolves.

Spawn logic was the last feature to add for our overall animal AI improvements. We originally divided the whole territory into regions.

256 regions in one terrain
256 x 9 regions in one server

However, now civilization rates are taken into account, it reduces the chance for animals to spawn so we’ve made the animals appear more randomly in their respective biomes (wolves on forest soil for example) and the spawning algorithm is more adjustable.

At the moment, these new algorithms are present in Beta Wave #0 of the MMO, and are currently being thoroughly tested and continuously improved.

Thanks for reading this week’s dev news, join us next Friday for more!

-The team

Please note that we are aware of, and hard at work on, issues that may have affected some users since the latest update. The team are diligently working on fixes and apologize if anyone is affected by these changes
funny
0
informative
0
Thanks
0
No reactions
No reactions
No reactions

I stand against Racism, Bigotry and Bullying

Tags:
     

    LIF:MMO (Dev News #87) O is for Optimization

    Started by Asid

    Replies: 0
    Views: 2557
    Last post January 21, 2018, 12:40:48 AM
    by Asid
    LIF:MMO (Dev News #151) Events, Streamers and Steady Progress

    Started by Asid

    Replies: 0
    Views: 2549
    Last post April 12, 2019, 11:45:06 PM
    by Asid
    LIF:MMO (Dev News #120) YO Love, Polls and AMA with Bobik

    Started by Asid

    Replies: 0
    Views: 2447
    Last post September 10, 2018, 12:56:28 PM
    by Asid
    LIF:MMO (Dev News #185) Illa - Newydd fixes

    Started by Asid

    Replies: 0
    Views: 3451
    Last post January 25, 2020, 12:45:26 AM
    by Asid
    (Dev News) 20/01/2017 - ‘They are coming…’

    Started by Asid

    Replies: 0
    Views: 3177
    Last post January 23, 2017, 02:45:48 PM
    by Asid