Page 1 of 1
AI and autohost
Posted: 23 Jun 2009, 14:48
by Noooooo
Hi there,
I've been told that AI-bots won't work in games hosted by autohost's such as springie or SPADS. Is this correct
If yes[1], could you give me some background info on the problem.
Thanks.
Stef
[1] I guess it's yes, I've tried an number of settings, but bot's won't work (even with my own testsetup-autohost)....
Re: AI and autohost
Posted: 24 Jun 2009, 14:20
by Umrug
I've never heard about this problem. But I never autohosted with AIs as well.
- Try the latest (0.79.1.2) Spring as it addressed the AI placement stuff
- Only use RAI 0.601 - its the only one working now
- Try using "fixed" or "random" start positions (no boxes, though if i remember correctly it was supposed to work with boxes once)
Re: AI and autohost
Posted: 24 Jun 2009, 15:59
by Noooooo
Nope - not working.
Joined autohost -> Add RAI bot(client side) -> Start (fixed start)
Game exits with win-notice directly after start.
RAI-Log looks good, no errors.
Re: AI and autohost
Posted: 24 Jun 2009, 18:52
by hoijui
its not true that RAI is the only working AI. i know of KAIK, and am pretty sure that AAI works too.
though there still are some bugs.. and also the placement bug seems to persist.. though not on all maps (did not yet find out what the criteria is).
Re: AI and autohost
Posted: 25 Jun 2009, 11:11
by Noooooo
After some further testing I might have found a reason, why the AI-bot's won't work(and it seems that the AI is not the one causing trouble):
The start-script for spring-dedicated -generated by the autohost- doesn't include the '[AI0]-section' - it seems that the server somehow just ignores the AI-bot completely and starts the server without the bot ==> Only one player in game = game ends with WIN-notice directly after start.
Example:
Start-script from locally hosted game with one human player and one bot:
Code: Select all
[....]
[PLAYER0]
{
Name=ABCXYZ;
countryCode=de;
Rank=3;
Spectator=0;
team=0;
}
[AI0]
{
Name=Bot;
ShortName=RAI;
Team=1;
Host=0;
}
[TEAM0]
{
TeamLeader=0;
AllyTeam=0;
RgbColor=0.352941176470588 0.352941176470588 1 ;
Side=ARM;
Handicap=0;
}
[TEAM1]
{
TeamLeader=0;
AllyTeam=1;
RgbColor=0.784313725490196 0 0 ;
Side=ARM;
Handicap=0;
}
NumTeams=2;
[ALLYTEAM0]
{
NumAllies=0;
}
[ALLYTEAM1]
{
NumAllies=0;
}
[....]
Start-script generated from authost with one human player and one bot:
Code: Select all
[....]
[PLAYER0]
{
Name=AUTOHOST-Test;
Spectator=1;
CountryCode=DE;
Rank=2;
}
[PLAYER1]
{
Name=ABCXYZ;
Spectator=0;
Team=0;
CountryCode=DE;
Rank=3;
}
[TEAM0]
{
RgbColor=0.78431 0.00000 0.00000;
TeamLeader=1;
Side=ARM;
Handicap=0;
AllyTeam=0;
AiDll=RAI;
}
[ALLYTEAM0]
{
NumAllies=0;
}
[....]
The autohost is running SPADS v0.7.4(stable).
It would be nice if anybody could cross-check this behaviour.
Thanks

Re: AI and autohost
Posted: 27 Jun 2009, 15:55
by bibim
SPADS needs to be fixed for new startscript format concerning AIs (should be quite easy). Unfortunately I haven't had much free time lately...
Re: AI and autohost
Posted: 29 Jul 2009, 20:01
by Error323
bibim wrote:SPADS needs to be fixed for new startscript format concerning AIs (should be quite easy). Unfortunately I haven't had much free time lately...
Could you please fix it before the new spring version releases?
Re: AI and autohost
Posted: 01 Sep 2009, 21:01
by bibim
This has been fixed btw (both in Springie and SPADS "testing").
Re: AI and autohost
Posted: 01 Sep 2009, 21:48
by Error323
sweeet
Re: AI and autohost
Posted: 01 Sep 2009, 22:12
by hoijui
yeah.. thanks! :D