RELEASED: Player AI
Moderator: Moderator
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.
MADNESS rocks
Re: RELEASED: Player AI
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?jenx wrote:It is also not using runes that do damage.
Currently developing the Player AI addon. You can get it from the T-Engine Addon Hub or Steam
You can also view the source code.
You can also view the source code.
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.
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.
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.
Also, nice tip with the auto-use. I like gathering little things like that which the player can do to help the AI run.
Currently developing the Player AI addon. You can get it from the T-Engine Addon Hub or Steam
You can also view the source code.
You can also view the source code.
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
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.
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.
Currently developing the Player AI addon. You can get it from the T-Engine Addon Hub or Steam
You can also view the source code.
You can also view the source code.
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 ?
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 ?
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:
- Hunting State. Responding to damage from unseen attackers, including blindness.
- Configurations. Ability to set a lot of the constants used like the low health threshold.
- Advanced configurations. Things dealing with specific talents and such.
Currently developing the Player AI addon. You can get it from the T-Engine Addon Hub or Steam
You can also view the source code.
You can also view the source code.
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!
I'll confer with DarkGod and see what I can do.
Nice addon!
Re: RELEASED: Player AI
That change is included in 1.3.2.
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.
Currently developing the Player AI addon. You can get it from the T-Engine Addon Hub or Steam
You can also view the source code.
You can also view the source code.
Re: RELEASED: Player AI
1.3.2 is the upcoming version. Not released yet.
Re: RELEASED: Player AI
Ah, that makes sense then. Carry on.
Currently developing the Player AI addon. You can get it from the T-Engine Addon Hub or Steam
You can also view the source code.
You can also view the source code.
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.
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.