Jump to content
  • entries
    4
  • comments
    8
  • views
    6,427

AI framework test video


blueapples

2,565 views

 Share

Quick demo video of my Utility and Needs Based UI test framework.

 

blogentry-17500-0-05755500-1469910256_thumb.png

Click to see video on workshop

 

 

This is a quick demo video of my Utility and Needs Based AI test framework.

 

There are several things going on here to cause the AI actors to decide what to do:

 

- A scoring function runs every tick that updates the score for each available action. The top scoring action is marked as the active mode; if the mode changed since the last tick, startup logic runs for the new mode and the new animation loop is activated.

 

- The sleep action takes into account a "need", which is tracked as an increasing number from 0-100. It slowly increases over time, somewhat differently for each actor. Around when the need reaches 100, the score function for sleep does as well, eventually exceeding all other action's scores, activating sleep. When sleeping, scores for all other actions drop since it is difficult to do anything when you're tired. The script then activates the sleep animation.

 

- While performing the sleep action, the actor receives a reward each tick that they are performing this action.

 

- When awake, the actors currently switch between idle and wander actions since there is currently no other input in the environment to change the score of the other actions. These actions have an internal, random time limit which varies slightly for each actor. When the time limit expires, the action is disabled (turning it red). This allows for breaking score ties for time based actions.

 

It's not an ideal framework but it's a start.

  • Upvote 5
 Share

2 Comments


Recommended Comments

Thanks, I'm really happy with how it's turned out so far. We'll see if the model extends to the rest of the more important actions and if I can clean up the code enough to put it in the workshop (one of my goals is to make everything I create reusable for others).

  • Upvote 1
Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...