Archive for September, 2008

Implemented a new expandable xml based loader for behaviors and triggers

Sunday, September 28th, 2008

I just did a major rewrite to the agent builder that I think will dramatically change the way it works in the future. I added the functionality to dynamically generate behaviors and trigger conditions in real time using xml files that we pre-write or produce on the fly using Fi3rst or the agent core. This is in my opinion the first really “intellegent” component of the DASSIE agent builder. Now it can dynamically request information from the other parts of the DASSIE app and provide the user with choices based for example on the free resources of the machine it is running on. It is possible to dynamically enable or disable certain high cost behaviors/percepts to help fufill our super scalable goal in a transparent manor to the user. We can also use this to generate mission specialized sets of percepts and behaviors. Finally I wrote the system to be infinately expandable and totally self contained so that it can grow as we develop new behaviors and agent setup screens/controls.

Of course in some ways this doesn’t provide much immedient help as neither the agent core or the world integrate this yet, so that is where the manual file loading comes into play.

Now time to sling some more code and implement supression of behaviors and maybe some form of output. As an aside I am loving python more and more. The xml implementation in lxml is one of the most painless, transparent, and easy to use I have ever worked with.

Interface pretty much done, implementing behaviors now in an interesting way

Saturday, September 27th, 2008

I am finishing up my form designs now. I was talking to Fritz on how to best implement behaviors and he had a wonderful idea. Rather than coding certain behaviors / triggers into my interface I can design my drop down boxes and interfaces to fill based on a xml file generated by the agent or us. This will save me tones of time later when we have new behaviors to add to the system and gets around the fact I don’t really have a list of things from the engine or the agent core to work with yet. And it won’t take long so I should have it by monday.

Report Sept 17, Interface ready for behaviors, no new participants, Wiring Help system

Wednesday, September 17th, 2008

The interface is pretty much done and ready to be propagated with behaviors.  I thought we would have a few more participants a couple game AI people requested the study link again and I figure demand will grow for the possibility of extra credit once the third homework grades go back.

I am throwing popups into the help system at the moment while waiting for the behaviors.

Ultimate Python Tool?

Thursday, September 11th, 2008

I think I might have found the ultimate python creation tool. Boa constructor has pretty much everything you could want in an ide and the price is definatly right. Available here.

Here is the behavior builder I threw together in a couple hours using it.

The only problem with it I have found so far is that it doesn’t inherently support open graphic library in its form builder.

Update Sept 10 – 10(+2) participants UI work progresses

Wednesday, September 10th, 2008

There has been continuing progress on our study another game AI person took it and we had another random trickle person.  I am also looking into some tools to speed up python UI development for the next several interfaces.  It occurred to me that somebody must have written a visual drag and drop interface auto builder for python(ala fluid, visual studio, netbeans) and it does indeed appear that there are several in various stages of completion which I am examining.

—————-
Now playing: Epica – Blank Infinity
via FoxyTunes

Secrets of wxPython unearthed and Mockups

Monday, September 8th, 2008

Found a couple of interesting things about the wx library over the weekend. First off they use the british english spellings of some words in there method calls which resulted in much pain(colour rather than color, ect). Secondly the top level stand alone class is Frame not Window. I found a pretty good rough guide to using the library buried in the online documentation that helped a lot.

The included shape drawing system in wxpython(ogl python) is document here - such as it is.

Then I found the wxpython recipe cook book which is also a really good resource available here.

Attached are the images and All Graffle Files for the

And the Mock ups:

Agent Properties

Behavior Builder

The Highly tenative block behavior constructor that we won’t need for a while

The go to point and patrol setup form.

Destination and patrol form

And the main interface

wxPython Does infact have an API definition hidden in its Docs

Friday, September 5th, 2008

Spent the last 3 days fighting with wxPython and looking for a good API for it. I finally found one hidden in its online docs. Classes by name and by catagory both point to usuable API’s. Time to start flying on interface design implementation.

Meeting Notes for Sept 3 – 10 participants and readings done

Wednesday, September 3rd, 2008

Study Update: We have 5 new participants this week bringing our total to 8.

The remaining important subsumption papers were read and posted and I reviewed some of my old notes on public ally available AI design tools.

Interface design progressed nicely and the final prototypes are currently being generated in omnigraffle.