Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » Stars! Extensions » Stars! AI
Stars! AI Sat, 06 June 2020 12:31 Go to next message
ricks03 is currently offline ricks03

 
Officer Cadet 1st Year
Creator of TotalHost and Stars! utilities
Created TotalHost and Stars! utilities

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/TotalHost

Report message to a moderator

Re: Stars! AI Mon, 22 June 2020 13:52 Go to previous messageGo to next message
platon79 is currently offline platon79

 
Chief Warrant Officer 3

Messages: 185
Registered: February 2004
Location: Norway
Sounds interesting. Could you elaborate a bit on the "weird results"? Smile

Report message to a moderator

Re: Stars! AI Tue, 23 June 2020 11:21 Go to previous messageGo to next message
ricks03 is currently offline ricks03

 
Officer Cadet 1st Year
Creator of TotalHost and Stars! utilities
Created TotalHost and Stars! utilities

Messages: 222
Registered: January 2012
Location: NC
Not doing anything, esp. not expanding. Ships designed extremely oddly. I created the script as an exercise (and extension of being able to programmatically enable the housekeeping AI), so I didn't really care about what they did beyond some preliminary tinkering.




https://www.irelandbybicycle.com
http://totalhost.sinister.net:999
https://github.com/ricks03/TotalHost

Report message to a moderator

Re: Stars! AI Tue, 23 June 2020 15:09 Go to previous messageGo to next message
platon79 is currently offline 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 Razz
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. Razz
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

Re: Stars! AI Tue, 23 June 2020 15:33 Go to previous messageGo to next message
ricks03 is currently offline ricks03

 
Officer Cadet 1st Year
Creator of TotalHost and Stars! utilities
Created TotalHost and Stars! utilities

Messages: 222
Registered: January 2012
Location: NC
now that you mention it, I also remember colonizers flying about with no people. I also recall the HE working well (they're reportedly the best AI).

It's a shame all the AI's are the "custom" races, with no base Joat.

If it helps, the password to view AI turn files is "viewai"

Perl's like Java, you just install it: https://www.activestate.com/products/perl/


[Updated on: Tue, 23 June 2020 15:34]




https://www.irelandbybicycle.com
http://totalhost.sinister.net:999
https://github.com/ricks03/TotalHost

Report message to a moderator

Re: Stars! AI Tue, 23 June 2020 22:10 Go to previous message
ricks03 is currently offline ricks03

 
Officer Cadet 1st Year
Creator of TotalHost and Stars! utilities
Created TotalHost and Stars! utilities

Messages: 222
Registered: January 2012
Location: NC
The most interesting results will be to have a game well in progress, and then change the player.

My hope was twofold:
First, from a hosting perspective, I could flip a player to "housekeeping" which keeps the size of the .m file down. That does exactly what I wanted.

Second, that you could flip a player who had quit over to one of the game AIs to at least make that neighbor a bit problematic. Even my very preliminary testing showed the results for that are not effective. Oh well.

The tertiary result was more mapping of Stars! blocks for the Stars!4x project (and my own).



https://www.irelandbybicycle.com
http://totalhost.sinister.net:999
https://github.com/ricks03/TotalHost

Report message to a moderator

Previous Topic: Open-source M and H file merger tool available
Next Topic: Is starstat.exe the same as starstat.c
Goto Forum:
  


Current Time: Thu Mar 28 08:38:29 EDT 2024