[AI] cRoot:Get():ForEachMob
#8
(01-26-2015, 06:47 PM)xoft Wrote: You might want to dial down on the frequency, otherwise you'll overload the server pretty soon. Only set the target once every second or so, that should be sufficient. Even better, distribute the load into multiple passes - for example four passes per second and pass #N processes entities for which (ID % 4) == N.

That's the plan. I store all the entities in a sqlite3 database, and only update those that have not been updated in the last 2 seconds -- for now. The logic will have to change based on their status ... hunting, walking, combat, etc... But this is a just an attempt to get some smarts into the mobs. Wink
Reply
Thanks given by:


Messages In This Thread
[AI] cRoot:Get():ForEachMob - by wudles - 01-26-2015, 04:54 AM
RE: [AI] cRoot:Get():FindAndDoWithMob - by xoft - 01-26-2015, 04:57 AM
RE: [AI] cRoot:Get():FindAndDoWithMob - by wudles - 01-26-2015, 05:01 AM
RE: [AI] cRoot:Get():ForEachMob - by xoft - 01-26-2015, 05:21 AM
RE: [AI] cRoot:Get():ForEachMob - by wudles - 01-26-2015, 01:32 PM
RE: [AI] cRoot:Get():ForEachMob - by wudles - 01-26-2015, 02:42 PM
RE: [AI] cRoot:Get():ForEachMob - by xoft - 01-26-2015, 06:47 PM
RE: [AI] cRoot:Get():ForEachMob - by wudles - 01-27-2015, 01:00 AM
RE: [AI] cRoot:Get():ForEachMob - by xoft - 01-27-2015, 01:39 AM
RE: [AI] cRoot:Get():ForEachMob - by wudles - 01-27-2015, 03:02 AM
RE: [AI] cRoot:Get():ForEachMob - by wudles - 01-27-2015, 12:31 PM
RE: [AI] cRoot:Get():ForEachMob - by xoft - 01-27-2015, 06:21 PM



Users browsing this thread: 1 Guest(s)