Posts: 86
Threads: 13
Joined: Mar 2014
Thanks: 0
Given 0 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: 21
Given 16 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 0 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,486
Threads: 176
Joined: Jan 2012
Thanks: 40
Given 157 thank(s) in 838 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,468
Threads: 57
Joined: Jul 2012
Thanks: 12
Given 17 thank(s) in 106 post(s)
Anyway, Bukkit doesn't have any AI code - that's vanilla and Bukkit just wraps that with a Plugin API.
Posts: 4,621
Threads: 113
Joined: Dec 2011
Thanks: 51
Given 58 thank(s) in 410 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,486
Threads: 176
Joined: Jan 2012
Thanks: 40
Given 157 thank(s) in 838 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 0 thank(s) in 4 post(s)
Any plan on body rotations being fixed?
Posts: 1,468
Threads: 57
Joined: Jul 2012
Thanks: 12
Given 17 thank(s) in 106 post(s)
AFAIK a PR was merged a few mins ago that fixed it.
Posts: 254
Threads: 16
Joined: Oct 2013
Thanks: 0
Given 2 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.