Openkore.com

OpenKore Forums
It is currently 18 Jun 2018, 17:22

All times are UTC - 5 hours [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 45 posts ]  Go to page 1, 2, 3, 4, 5  Next
Author Message
 Post subject: New Ai Ideas
PostPosted: 01 Sep 2008, 09:11 
Offline
Kami-Sama Desu~
Kami-Sama Desu~
User avatar

Joined: 04 Apr 2008, 09:24
Posts: 196
Location: 31th Dimension
This should be where we start our new AI disscussion.
as we finialize some stuff this thread should go back to Devs corner.

Some rules we should have in this thread:
- If you don't like someone's idea , don't just say you don't like it, please state how to improve it.
- don't flame... err that's it i think.

We should start by stating the weakness of the current AI
then
How to make it Better
then
Map out the specs for the new AI

also please Read:
http://www.openkore.com/wiki/index.php/ ... k_overview

Documentation available here: http://www.openkore.com/srcdoc/

_________________
Openkore Svn Zips:
Image
Doing Stuff Better At CollectSkin.com


Top
 Profile  
 
 Post subject: Re: New Ai Ideas
PostPosted: 01 Sep 2008, 09:20 
Offline
Kami-Sama Desu~
Kami-Sama Desu~
User avatar

Joined: 04 Apr 2008, 09:24
Posts: 196
Location: 31th Dimension
Klabmouse's idea for new Ai:

Code:
Task usage Map:

Task
|-CharacterAI
| |-Route
| | |-GlobalRoute
| | | |-Skill
| | |-MapRoute
| | | |-Skill
| |-Follow
| | |-Route
| |-Attack
| | |-Equip
| | |-Skill (Self)
| | |-Skill (Combo)
| | |-Skill (Attack Skill)
| | |-ItemUse
| | |-Follow
| | | |-Route
| | |-KeepDistance
| | | |-Route
| |-AutoShop
| | |-Route
| | |-Buy
| | |-Sell
| |-Storage
| | |-Route
| |-Skill (Non Attack mode)
| |-ItemUse (Non Attack Mode).
| |-Idle (Sit, Stand, etc.)
|-HomunculusAI
| |-Route
| | |-GlobalRoute
| | | |-Skill
| | |-MapRoute
| | | |-Skill
| |-Follow
| | |-MapRoute
| |-Attack
| | |-Skill (Self)
| | |-Skill (Combo ??? )
| | |-Skill (Attack Skill)
| | |-ItemUse
| | |-Follow
| | | |-Route
| | |-KeepDistance
| | | |-Route
| |-Skill
| |-Idle (Pseudo state)

Tasks that use AI functions:
GlobalRoute -- uses AI to decide whatever we must use any types of Wing's, or cast Skill like teleport to get to the dest point quicker.
MapRoute -- uses AI to decide whatever we must use any types of Wing's, or cast Skill "Protal" to the dest point quicker.
Attack -- uses AI to decide: What Equip to use; What Skill we must cast now, and on who; What item we must use; Whatever we must follow target; Whatever we must KeepDistance (for "Sages" and "Archers").
KeepDistance -- uses AI to decide the spot where to go, that we don't get hurt by target or multipe Actors.
Follow -- uses AI to decide the spot where to go, that we will keep distance to target and don't get in Target way or attacked by one or multiple Actors.
AutoShop -- uses AI to decide what to sell, what to buy, in what sequence.
Idle -- uses AI to decide whatever we must sit to recover some.

_________________
Openkore Svn Zips:
Image
Doing Stuff Better At CollectSkin.com


Top
 Profile  
 
 Post subject: Re: New Ai Ideas
PostPosted: 01 Sep 2008, 09:56 
Offline
Administrator
Administrator
User avatar

Joined: 24 Apr 2008, 12:02
Posts: 1299
OK. We don't have Task that can work with more then one SubTask at a time.
We need it to make OK to do some things in one time.
Now, it can DO more then one Task. But we have no system to work with multiple SubTasks.

You ask. Why do we need it???

Lets see my favorite example.
"Sage" can do more then one task at a time. Like Keeping Distance from mob, while attacking it with skills.
If we want "Task::Attack" to be real, we need some adjustments to the current "Task framework".
"TaskManager" must control "Tasks" and "SubTasks".
So the "Task" itself won't loose it's time to control it's "SubTasks" and loose performance.

_________________
Join our Team. Click here.
Image


Image


Top
 Profile  
 
 Post subject: Re: New Ai Ideas
PostPosted: 02 Sep 2008, 12:06 
Offline
Kami-Sama Desu~
Kami-Sama Desu~
User avatar

Joined: 04 Apr 2008, 09:24
Posts: 196
Location: 31th Dimension
i have created a svn branch for this,

please use svn repository: https://openkore.svn.sourceforge.net/sv ... tal-ai2008

this is so everyone can see the code and help out.

_________________
Openkore Svn Zips:
Image
Doing Stuff Better At CollectSkin.com


Top
 Profile  
 
 Post subject: Re: New Ai Ideas
PostPosted: 03 Sep 2008, 02:39 
Offline
Administrator
Administrator
User avatar

Joined: 24 Apr 2008, 12:02
Posts: 1299
isieo wrote:
i have created a svn branch for this,

please use svn repository: https://openkore.svn.sourceforge.net/sv ... tal-ai2008

this is so everyone can see the code and help out.


Thanks. But I think. that this branch will not run until it's get debugged.
Because, first of all, I'll commit drafts there, so everybody can debug it, fix, and add functionality.

P.S. Sorry. I cannot Access OpenKore SVN.

_________________
Join our Team. Click here.
Image


Image


Top
 Profile  
 
 Post subject: Re: New Ai Ideas
PostPosted: 03 Sep 2008, 04:47 
Offline
Kami-Sama Desu~
Kami-Sama Desu~
User avatar

Joined: 04 Apr 2008, 09:24
Posts: 196
Location: 31th Dimension
i reset your svn access, so you should be able to get access now.

also this branch can be left broken since no one will use it other than developers.

_________________
Openkore Svn Zips:
Image
Doing Stuff Better At CollectSkin.com


Top
 Profile  
 
 Post subject: Re: New Ai Ideas
PostPosted: 03 Sep 2008, 04:56 
Offline
Administrator
Administrator
User avatar

Joined: 24 Apr 2008, 12:02
Posts: 1299
isieo wrote:
i reset your svn access, so you should be able to get access now.

also this branch can be left broken since no one will use it other than developers.


OK. Thanks.

Committed Task::WithSubTasks draft.
I've never run it, so it need to be checked and double checked, and even triple checked.

_________________
Join our Team. Click here.
Image


Image


Top
 Profile  
 
 Post subject: Re: New Ai Ideas
PostPosted: 16 Sep 2008, 06:32 
Offline
Administrator
Administrator
User avatar

Joined: 24 Apr 2008, 12:02
Posts: 1299
On the planing work.
I've experienced some Problems with making AI Simple and Task based.
What I suggest:

Quote:
1) AI must be Modular.
1.1) AI must have only basic Features like: Attack, PickUp, Walk, MapRoute
1.2) All other Stuff are Added using "AI Module System". (For Example: AutoSell/AutoBuy is an a custom Module, that will register itself as AI Module and add it's functionality.)
1.3) All AI Modules can be Easly Activated and DeActivated
1.4) Every AI Module have it's own mutex, priority, stop marker (IF Module Spawn a Task, All other [conflicting] modules will be suspended until that Task is done).
2) Homunculus and Mercenary uses and run LUA files from Client (this will reduce CPU load, make Simple AI). And are made using (1).


What Developers will Suggest???
Is it a good thing, to lower AI Code line, add AI Functionality, make AI Scalable.

_________________
Join our Team. Click here.
Image


Image


Top
 Profile  
 
 Post subject: Re: New Ai Ideas
PostPosted: 16 Sep 2008, 06:58 
Offline
Perl Monk
Perl Monk

Joined: 04 Apr 2008, 03:08
Posts: 416
Well we do need simple tasks that are directed by higher tasks...

For example "attack" would have to move towards the target, decide wether or not to use skills and melee (or not) the target..
be aware though that a target does NOT have to be a monster, it can be a monster AND player (but we should not let the AI support PvP by default)
But we have to have the possibility to give a player as target


Top
 Profile  
 
 Post subject: Re: New Ai Ideas
PostPosted: 16 Sep 2008, 09:29 
Offline
Perl Monk
Perl Monk

Joined: 04 Apr 2008, 17:26
Posts: 811
The AI should be written in C.

_________________
cs : ee : realist


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 45 posts ]  Go to page 1, 2, 3, 4, 5  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group