Follow-up Comment #2, bug #21294 (project wesnoth):

Yeah so in the time since I posted this bug report, I have learned new
information.

When I wrote this I basically assumed that functionality to derive a new AI
from ai::interface and add it to regsistry was supported, like mentioned
here:

http://wiki.wesnoth.org/WritingYourOwnAI#C.2B.2B

and in comments in registry.cpp, manager.cpp, for instance below line 656 of
manager.cpp:

[code]
ai_ptr manager::create_transient_ai(const std::string &ai_algorithm_type,
const config &cfg, ai_context *ai_context )
{
        assert(ai_context!=NULL);

        //to add your own ai, register it in registry,cpp
        ai_factory::factory_map::iterator aii =
ai_factory::get_list().find(ai_algorithm_type);
        if (aii == ai_factory::get_list().end()){
[/code]

It looks like all of this code has basically been disabled. For one there is
this issue mentioned here about the version which blocks it, and also the
"create_transient_ai" method is unreachable in current wesnoth build, and
probably has been for years.

So this is only actually a bug if it was not intended to disable custom
wesnoth C++ ais. In this case, consider this a feature request to go back to
supporting that again.

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?21294>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to