Jump to content

[Solved] Sending custom data to and from the scripting layer


Recommended Posts

Hi, I am testing out a C++ library I've written to add extra functionality to an artificial agent. I have so far implemented the C++ end into the CCmpAIManager to transfer data to and from the Petrabot for testing purposes. As such, I was wondering what scripts I would have to modify on the Javascript end to transfer my custom data to and from the bot and if CCmpAIManager would be the best entry point. Further, if the system yields the desired results I would be interested in developing a dedicated version for a fork of the Petrabot (likely fully in javasript) as I think it could be a great addition to the system. I can't say too much until the results are in, however, I will update if anyone's interested.

 

Regards

Jotunson

Edited by Jotunson
  • Like 1
Link to comment
Share on other sites

Thanks for the confirmation, that is much appreciated. I can read the code, I am just not sure what scripts define the data on the JavaScript side to transfer it to and from the agent..

Edited by Jotunson
Link to comment
Share on other sites

There is an old interview with Jonathan Waller (quantumstate) on aigamedev: http://aigamedev.com/open/interview/ai-in-0ad/ . It's almost 4 years old and describes qBot, which is no longer maintained, but Petra (the current 0 A.D. bot) is based on AegisBot which was based on qBot and the general AI architecture should be (mostly?) the same (in particular the AI architecture schema from the article: http://aigamedev.com/wp-content/blogs.dir/5/files/2012/05/Schema.png seems corresponding to what Georg said in the post above).

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...