Future Scenario: AI /take
Moderator: Moderators
Future Scenario: AI /take
Possible? Load an AI library midgame and have it take control of a player's units?
Re: Future Scenario: AI /take
currently not possible; probably doable, but would require mod support (mods need to tell the engine which AI to load when somebody drops.)
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: Future Scenario: AI /take
More important is it needs AI support.
Re: Future Scenario: AI /take
AIs already support UnitGiven events, so that's not a problem I guess, only need to fake unit transfer.
Re: Future Scenario: AI /take
yeah, i see no big problem in this.
we already discussed that once.
game would be paused, ai loaded, all units be added to it with UnitGiven, then unpause.
so AI or AI Interface wise, ther would not have to be anything added, i just dont know, how much would have t ochange engine internally, if one team changes from human to AI controll, or i a new team would be created mid-game. but that should be solvable too, if it was a problem.
we could first make the command like this:
shortName nad version(optional) woudl specify the skirmish AI to use
which would not need mod support, and later mod support could be added simply by making the shortName optional, when the mod supplies a default shortName.
we already discussed that once.
game would be paused, ai loaded, all units be added to it with UnitGiven, then unpause.
so AI or AI Interface wise, ther would not have to be anything added, i just dont know, how much would have t ochange engine internally, if one team changes from human to AI controll, or i a new team would be created mid-game. but that should be solvable too, if it was a problem.
we could first make the command like this:
Code: Select all
/aitake [shortName] [version] [teamToTake]
which would not need mod support, and later mod support could be added simply by making the shortName optional, when the mod supplies a default shortName.
Re: Future Scenario: AI /take
I see one problem with anything other than synced LuaAIs - they need to work on only one machine, and when that drops, the whole process has to be repeated. You can't count on the host to load the AI because it can be an autohost.
Re: Future Scenario: AI /take
Totally possible with Lua AIs.REVENGE wrote:Possible? Load an AI library midgame and have it take control of a player's units?
Re: Future Scenario: AI /take
if the AI host drops, the same should happen to that team like when a player drops -> units beeing available for take. then a player could take them or someone else could issue an /aitake. autohosts could have a setting to auto-aitake a dropped team after x seconds.
... hmm, i just repeated what imbaczek wrote, mor ebloated kind of :D
the thing is.. i do not know where you see a problem in this.
... hmm, i just repeated what imbaczek wrote, mor ebloated kind of :D
the thing is.. i do not know where you see a problem in this.
Re: Future Scenario: AI /take
/aitake is a solution, yes. I was thinking about scenarios where /aitake is implicit.
Re: Future Scenario: AI /take
Actually, this brought to mind another idea. Would it be possible to transfer hosting in the scenario that the host loses his connection?
Re: Future Scenario: AI /take
yes, the plan to do this exists for quite some time, but as usual it needs someone to do the typing.