Posts: 86
Threads: 13
Joined: Mar 2014
Thanks: 0
Given 4 thank(s) in 4 post(s)
Hey all,
I've been looking at the AI in MC Server, and.... and...
Okay, straight to the point. Can we just take algorithms from Bukkit on their AI and script it? I mean the AI ain't real, spawn a witch and it slides sideways to a Cactus. Fail.
Just a suggestion of course, this AI is kind of weird.
Posts: 952
Threads: 16
Joined: May 2013
Thanks: 66
Given 105 thank(s) in 89 post(s)
Body rotations are broken, hence the sliding. For cacti, it's a matter of adding a rule to prevent that location from being chosen.
Posts: 86
Threads: 13
Joined: Mar 2014
Thanks: 0
Given 4 thank(s) in 4 post(s)
lol,
Yeah, this kind of needs to be fixed. I'm not rushing anyone, just letting you know.
For my server, it shouldn't effect it very much, however, I can see this going terribly wrong...
So just a thought that we could steal the algorithms from Bukkit and implement it here.
Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1075 thank(s) in 852 post(s)
We won't steal anything. If they made it open-source, then we may take their source and adapt it, according to their license. But no stealing.
Posts: 1,469
Threads: 57
Joined: Jul 2012
Thanks: 66
Given 127 thank(s) in 108 post(s)
Anyway, Bukkit doesn't have any AI code - that's vanilla and Bukkit just wraps that with a Plugin API.
Posts: 4,628
Threads: 115
Joined: Dec 2011
Thanks: 693
Given 494 thank(s) in 423 post(s)
I do think we should create some kind of LuaMob so mods can use MCServer as well. Maybe something like: cWorld::SpawnCustomMob(a_MobType, a_HandlePhysicsCallback, a_HandleTickCallback, more?)
Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1075 thank(s) in 852 post(s)
Or rather, componentize first and then let Lua replace the components of any mob, not only the custom ones.
Posts: 86
Threads: 13
Joined: Mar 2014
Thanks: 0
Given 4 thank(s) in 4 post(s)
Any plan on body rotations being fixed?
Posts: 1,469
Threads: 57
Joined: Jul 2012
Thanks: 66
Given 127 thank(s) in 108 post(s)
AFAIK a PR was merged a few mins ago that fixed it.
Posts: 254
Threads: 16
Joined: Oct 2013
Thanks: 3
Given 20 thank(s) in 18 post(s)
04-18-2014, 11:46 PM
(This post was last modified: 04-18-2014, 11:47 PM by SamJBarney.)
If I remember correctly, we were going to fix the AI by turning it all into components like xoft said, and making it available to be extended in the plugins. I can get back to doing that, if people are willing to help.