ToME: the Tales of Maj'Eyal

Page 2 of 3

Author:  jenx [ Sun Nov 01, 2015 10:25 pm ]
Post subject:  Re: RELEASED: Player AI

As I suspected, it doesn't work with mindslayers at all. It deactivates and then activates Beyond the Flesh every turn lol.

Author:  Charidan [ Mon Nov 02, 2015 6:41 pm ]
Post subject:  Re: RELEASED: Player AI

jenx wrote:
It is also not using runes that do damage.
Really? I knew it would switch sustained powers as soon as possible, but I thought runes should all work by now. I don't have a good knowledge of damaging runes, can you give some examples?

Author:  Elkan [ Mon Nov 02, 2015 11:09 pm ]
Post subject:  Re: RELEASED: Player AI

I know for a fact that it uses heat beam properly, I think the issue might be with the frozen cone rune not having an explicitly stated range, so the AI dosn't know when to use it, in any case, if you set the talents to use when in X range they will behave properly. as a workaround.
it is also useful to know that any talents you specify as auto use, will always be used when available, before the AI's choice. so you can priortise the most important moves/attacks, to ensure they fire off first.

Author:  Charidan [ Mon Nov 02, 2015 11:15 pm ]
Post subject:  Re: RELEASED: Player AI

Yeah, that's probably it. The AI makes sure it has a legal target before firing a targeted ability, so if the frozen cone doesn't tell it the range it won't know. Odd that it doesn't. I'd rather not add a range workaround just for one rune, as it would probably make the AI stupider as a whole.

Also, nice tip with the auto-use. I like gathering little things like that which the player can do to help the AI run.

Author:  Elkan [ Tue Nov 03, 2015 12:48 pm ]
Post subject:  Re: RELEASED: Player AI

Ahh sorry, I wasn't suggesting you add a workaround, I'm just so used to using the custom auto use addon (which allows you to auto use talents when enemies are within X and y ranges) that I forgot it wasn't part of the default TOME UI

Author:  Charidan [ Wed Nov 04, 2015 6:59 pm ]
Post subject:  Re: RELEASED: Player AI

That's not really my concern. I already have code that finds all enemies in sight and knows the range to them.

The issue is that if I start telling the AI to always cast a talent when an enemy is within range X, I either have to start hard-coding the range of every talent in ToME into my AI, which is A) too much work and B) defeats generality. By generality, I mean that I want this AI to only use what the game provides so that it can fully perform with any other addon or new content that might include new talents, etc. If I don't give the AI all those ranges, that means my range threshold is a guess, and I'm either going to start firing talents off that miss, or running into problems where I try to cast talents and the game tells me no, and then I have to track each talent I've cast and stop casting it or I run into infinite loops.

It makes the AI a little worse as a whole, and it only gets me the ability to cast this strangely specific set of talents. I think that the real answer here might be to look at the runes in question and see why the answers they're giving my AI are confusing it, and maybe then I'll be able to file a bug report with DarkGod that something is wrong with the rune. That's my gut feel right now, but obviously I should actually check it out.

What occurs to me is that talents don't have a "range" per se, they just have a function that checks if it is legal for an entity to cast a talent on a given target. That's basically the only check I'm using for whether I can cast a talent, so it may be upset that I'm trying to target enemies instead of tiles, or something silly like that. Alternately, that might be returning true properly and my force cast isn't working. Neither makes sense, but the "makes sense" answer is that the rune already works right, so something has to be wrong.

Author:  ooli [ Wed Nov 04, 2015 7:19 pm ]
Post subject:  Re: RELEASED: Player AI

It's a nice Addon!

Would you consider letting the player decide some weight/priority of the talent the AI use... A bit like we can do for the AI of the guardian in Chronomancy/Guardian.Unity talent ?

Author:  Charidan [ Wed Nov 04, 2015 7:39 pm ]
Post subject:  Re: RELEASED: Player AI

Sure! I'll try to work that out in probably 3 patches from now. If things go as I expect (which they rarely do in code) that patches will be:
  1. Hunting State. Responding to damage from unseen attackers, including blindness.
  2. Configurations. Ability to set a lot of the constants used like the low health threshold.
  3. Advanced configurations. Things dealing with specific talents and such.
At some point I'm going to make a separate thread for suggestions on how the configuration setup should work, as there are a lot of design-level decisions there I haven't made. The hunting state for the AI is plausibly functional, but I've been having trouble testing it. It's not common to be attacked by unseen sources. However, I'm starting my new job next week, so development will be a bit delayed.

Author:  Nagyhal [ Fri Nov 27, 2015 5:44 pm ]
Post subject:  Re: RELEASED: Player AI

Hey Charidan, I've dealt with that damn Rune: Biting Gale AI before. My spider mount AI wasn't using it and I fixed it, but I don't think my fix found its way into the main game.

I'll confer with DarkGod and see what I can do.

Nice addon!

Author:  Effigy [ Fri Nov 27, 2015 5:47 pm ]
Post subject:  Re: RELEASED: Player AI

That change is included in 1.3.2.

Author:  Charidan [ Sun Nov 29, 2015 12:44 am ]
Post subject:  Re: RELEASED: Player AI

Huh, the steam version of ToME is only v1.3.1. That might be something to talk to DarkGod about too.

Author:  Effigy [ Sun Nov 29, 2015 12:46 am ]
Post subject:  Re: RELEASED: Player AI

1.3.2 is the upcoming version. Not released yet.

Author:  Charidan [ Sun Nov 29, 2015 12:48 am ]
Post subject:  Re: RELEASED: Player AI

Ah, that makes sense then. Carry on.

Author:  ooli [ Thu Jan 28, 2016 5:51 pm ]
Post subject:  Re: RELEASED: Player AI

The new tactictal AI in 1.4 make this addon even better. Now it use Object.
One probleme so far: using object prompting a dialog box (like Command staf) crash the game.
And for some reason (without any other addon, on a windowed game) the AI stop from time to time unless I'm moving my mouse even slightly.

Author:  jenx [ Mon Apr 18, 2016 9:14 am ]
Post subject:  Re: RELEASED: Player AI

This still under development?

Page 2 of 3 All times are UTC
Powered by phpBB® Forum Software © phpBB Group