Home » Stars! Clones, Extensions, Modding » Stars! Extensions » Stars! AI
Stars! AI |
Sat, 06 June 2020 12:31 |
|
ricks03 | | | Messages: 222
Registered: January 2012 Location: NC | |
|
Yup, I thought that might get your attention, even if it's not as interesting as it could be.
I've added a new script that can flip a Stars! player status from Human <> Inactive <> a game AI
(you'll likely want the AI password of "viewai" somewhere in there).
So you can take a AI player, and make them human, or (and more interestingly) change a player over to a Stars! AI (for example, in the case a player drops and you have no replacement).
Early testing shows weird results. Each of the Stars! AIs are for races with custom abilities, so I suspect "best" results will come from changing a player over to a matching PRT (CA, PP, HE, IS, SS, AR).
The script is up on TH github in the usual place ("scripts/starsAI.pl").
I'd be really interested in any results people get with tinkering with this.
[Updated on: Sat, 06 June 2020 12:35]
https://www.irelandbybicycle.com
http://totalhost.sinister.net:999
https://github.com/ricks03/TotalHostReport message to a moderator
|
|
| | |
Re: Stars! AI |
Tue, 23 June 2020 15:09 |
|
platon79 | | Chief Warrant Officer 3 | Messages: 185
Registered: February 2004 Location: Norway | |
|
I have now done some things and testing. First, as I don't have pearl installed, yesterday I tried to convert your pearl-code to Java in the starsapi-project. And I actually think I got it to work. (I have pushed the class now, I could also publish a runnable jar file if anyone is interested). I then tried to just change a player to AI, and encountered what you said: It did nothing. Then I did the following: Started a new game with all human players with a humanoid, a CA, PP, HE, IS, SS and AR.
I then changed the CA, PP, HE, IS, SS and AR to its respective AIs to see what they would do. I then just generated 20 turns in a row, changed the CA, PP, HE, IS, SS and AR back to human, generated a new turn, and opened them:
CA: They have scouted with the starting scout, colonized 3 new planets, built mines and factories
PP: They have a lot of packets flying, have colonized 7 new worlds, and have a lot of santa marias going to new worlds.
HE: Have colonized 26 planets, lots of spore clouds flying around.
IS: Have scouted and built factories and mines but colonized NO new worlds and built no ships yet.
SS: Has no new worlds, have built a lot of shadow transports and loaded them with people and moved them around, but no colonizers
AR: Has 3 pintas at HW, but has not scouted a thing, and i cannot see any scouts or other ships than the 3 pintas.
So it seems the ai works somewhat for most races, but not all when correct ai to prt is given.
[Updated on: Tue, 23 June 2020 15:14] Report message to a moderator
|
|
| | |
Goto Forum:
Current Time: Fri Apr 26 20:48:59 EDT 2024
|