Page 1 of 1

Headless for quick AI match

Posted: 24 Apr 2022, 14:15
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.

Re: Headless for quick AI match

Posted: 25 Apr 2022, 17:01
by Beherith
You probably need to use a widget to do this.

Re: Headless for quick AI match

Posted: 25 Apr 2022, 23:54
by prandipadaro
No, just set maxspeed and minspeed both to 100 in startscript.txt
Which ai you are testing?
For which game?

Re: Headless for quick AI match

Posted: 26 Apr 2022, 07:40
by Beherith
Ah yes, pandaro is right, that is the correct way :)

Re: Headless for quick AI match

Posted: 28 Apr 2022, 14:39
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.

Re: Headless for quick AI match

Posted: 29 Apr 2022, 12:31
by prandipadaro
If you are testing on bar maybe is better to move on his discord channel