AI and autohost

AI and autohost

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
User avatar
Noooooo
Posts: 11
Joined: 22 Jan 2009, 16:56

AI and autohost

Post 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)....
User avatar
Umrug
Posts: 141
Joined: 27 Nov 2006, 12:57

Re: AI and autohost

Post 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)
User avatar
Noooooo
Posts: 11
Joined: 22 Jan 2009, 16:56

Re: AI and autohost

Post 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.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: AI and autohost

Post 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).
User avatar
Noooooo
Posts: 11
Joined: 22 Jan 2009, 16:56

Re: AI and autohost

Post 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 :-)
User avatar
bibim
Lobby Developer
Posts: 959
Joined: 06 Dec 2007, 11:12

Re: AI and autohost

Post 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...
User avatar
Error323
AI Developer
Posts: 237
Joined: 28 Nov 2006, 16:46

Re: AI and autohost

Post 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?
User avatar
bibim
Lobby Developer
Posts: 959
Joined: 06 Dec 2007, 11:12

Re: AI and autohost

Post by bibim »

This has been fixed btw (both in Springie and SPADS "testing").
User avatar
Error323
AI Developer
Posts: 237
Joined: 28 Nov 2006, 16:46

Re: AI and autohost

Post by Error323 »

sweeet
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: AI and autohost

Post by hoijui »

yeah.. thanks! :D
Post Reply

Return to “AI”