Jotunson Posted February 2, 2016 Report Share Posted February 2, 2016 (edited) 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 May 25, 2016 by Jotunson 1 Quote Link to comment Share on other sites More sharing options...
leper Posted February 2, 2016 Report Share Posted February 2, 2016 It probably is the best place for that, however note that commenting on code you can't read is akin to soothsaying. Quote Link to comment Share on other sites More sharing options...
Jotunson Posted February 3, 2016 Author Report Share Posted February 3, 2016 (edited) 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 February 3, 2016 by Jotunson Quote Link to comment Share on other sites More sharing options...
leper Posted February 3, 2016 Report Share Posted February 3, 2016 cmpAIInterface (simulation/components/AIInterface.js) (which in turn uses cmpAIProxy), which is then passed as the state to the shared AI components (so ai/common-api/shared.js). 1 Quote Link to comment Share on other sites More sharing options...
fcxSanya Posted February 3, 2016 Report Share Posted February 3, 2016 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). 1 Quote Link to comment Share on other sites More sharing options...
Jotunson Posted February 5, 2016 Author Report Share Posted February 5, 2016 Thank you everyone, this is extremely helpful. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.