Headless for quick AI match

Headless for quick AI match

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

Moderators: hoijui, Moderators

Post Reply
neoe
Posts: 4
Joined: 03 Sep 2018, 14:44

Headless for quick AI match

Post by neoe »

Hi,
I successfully used spring-headless to perform a quick match between 2 AI. then watch the replay. by
spring-headless script1.txt
But I dont know how to set game speed to max, any help? Thanks.
User avatar
Beherith
Moderator
Posts: 5127
Joined: 26 Oct 2007, 16:21

Re: Headless for quick AI match

Post by Beherith »

You probably need to use a widget to do this.
User avatar
prandipadaro
Posts: 97
Joined: 19 Oct 2011, 22:38

Re: Headless for quick AI match

Post by prandipadaro »

No, just set maxspeed and minspeed both to 100 in startscript.txt
Which ai you are testing?
For which game?
User avatar
Beherith
Moderator
Posts: 5127
Joined: 26 Oct 2007, 16:21

Re: Headless for quick AI match

Post by Beherith »

Ah yes, pandaro is right, that is the correct way :)
neoe
Posts: 4
Joined: 03 Sep 2018, 14:44

Re: Headless for quick AI match

Post by neoe »

Thanks, I find out both method.
1. by widgets

Code: Select all

cp  spring-bar105/cont/examples/Widgets/headless_setup.lua   springrts/BAR.sdd/luaui/Widgets/headless_setup.lua
2. by modoption
add to script

Code: Select all

	
	[modoptions]
	{
		MinSpeed = 2000;
		MaxSpeed = 2000;
	}
prandipadaro wrote: 25 Apr 2022, 23:54 Which ai you are testing?
For which game?
I just start so test Barb vs SimpleAI, game is BAR-105

I noticed there is only 1 cpu core busy, so in middle game max speed is about x20 on my PC.
User avatar
prandipadaro
Posts: 97
Joined: 19 Oct 2011, 22:38

Re: Headless for quick AI match

Post by prandipadaro »

If you are testing on bar maybe is better to move on his discord channel
Post Reply

Return to “AI”