Cuberite Forum
AI in Lua - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html)
+--- Thread: AI in Lua (/thread-1751.html)

Pages: 1 2


RE: AI in Lua - DiamondToaster - 02-02-2015

Oh ok, that shouldn't be a terrible way to deal with the mobs. Just make sure you always check for nil entities and avoid copying the actual entity class to another variable.


RE: AI in Lua - jsebean - 06-18-2015

What is the license for this plugin?


RE: AI in Lua - warmist - 06-19-2015

I have a question: is there any way to influence what the mob is doing (other than teleport/kill)?


RE: AI in Lua - worktycho - 06-19-2015

Not at the moment. What do you want to do?


RE: AI in Lua - warmist - 06-19-2015

Everything - from classical vanilla behaviours to more complicated villagers with them building their own villages. Creepers blast mining (implement their life cycle). Skeletons banding with zombies and forming raiding parties against player fort. Players making armies against other players. Endermen forming sculptures out of random blocks (also whitelist/blacklist for blocks?)....

I imagine it would be easiest to have some sort of state machine exposed in lua?

Edit: oh and pets having neural networks for player to be able to teach fetch to his dog?


RE: AI in Lua - worktycho - 06-19-2015

Then we need to actually put some thought into the design, because that's complicated.


RE: AI in Lua - SamJBarney - 06-19-2015

Neural networks are a complicated thing to implement, and implement well. If someone wants to implement them in lua, that's fine, but they would slow down the server if too many of them are going at the same time.


RE: AI in Lua - warmist - 06-19-2015

samjbarney: not as complicated as you think. Also the thinking could be staggered over many ticks.

worktycho: i guessed as much. If it was simple it would have been already implemented.


RE: AI in Lua - SamJBarney - 06-19-2015

warmist: I am familiar with the concept, and also how they are usually implemented. Thinking could be staggered over ticks, but that would slow down reaction time substantially.