Forums for the FreeOrion project
It is currently Sun Jul 22, 2018 4:39 pm

All times are UTC

Forum rules

Always mention the exact version of FreeOrion you are testing.

When reporting an issue regarding the AI, if possible provide the relevant AI log file and a save game file that demonstrates the issue.

Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Wed Aug 02, 2017 7:23 pm 

Joined: Mon Feb 29, 2016 8:37 pm
Posts: 219
I'll explain the functionality that Dilvish is referring to below. It works correctly for me. It may also work for you.

If it does not work for you, please post config files, log files and a save game to this issue. I posted the issue, but the functionality has always worked for me, so I have no test case.

The command lines are for linux. Translate them to the correct equivalents in windows.

./freeorion --auto-advance-n-turns 10 --auto-quit --quickstart
and the game will quickstart a game based on the game setup in your "config.xml" or "persistent_config.xml", run 10 turns and exit. If you have auto save configured, then you will also have saved game files.
./freeorion --auto-advance-n-turns 10 --auto-quit --load ~/.local/share/freeorion/save/test.sav
and it will load test.sav, assuming test.sav was saved with the same game version, run 10 turns and exit.

Instructions to setup "persistent_config.xml" are here

Here is an example "persistent_config.xml" that will, start a game with 5 AIs, with 5 different aggression settings and produce auto saves of the 20 most recent turns.
<?xml version="1.0"?>
    <empire-name>A1 Test Corp</empire-name>
    <player-name>Test Player</player-name>
    <seed>check 1</seed>

Adjust as you see fit.

The typical problem is that at some point one of the AIs will kill your empire. If you save a game, after you convert your homeworld to SuperTesters then that will buy your completely passive empire some additional time.

Have fun.

PostPosted: Thu Aug 03, 2017 10:27 pm 
Vacuum Dragon
User avatar

Joined: Mon Apr 10, 2017 4:25 pm
Posts: 655
Very nice!
So, LGM-Doyle, it is mandatory to have a human player, right?
If there is no easy way to assign an AI to control the human player or to completely remove the need for the human player (I think that "blank space" in the galaxy could give some advantage to the immediate neighbours over the rest), I'll use an ad-hoc race with absurd planetary stealth.
I will also need to mess with the code to produce the intended log that would feed the fitness function of the evolutionary optimisation algorithm (@Dilvish, that's exactly what I had in mind since it's my area of expertise at my job and I could addapt the sources I already have with little effort).
Well, at least once I get time to mess with this, which doesn't seem to happen any time soon, I have ahead a shitty summer with plenty of delayed work.

PostPosted: Fri Aug 04, 2017 3:59 am 
Creative Contributor
User avatar

Joined: Fri Jun 28, 2013 11:45 pm
Posts: 3310
Multi player can be set so you're an observer and just have the AIs play each other.

Mat Bowles

Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.

PostPosted: Fri Aug 04, 2017 5:54 pm 

Joined: Mon Feb 29, 2016 8:37 pm
Posts: 219
Oberlus, the Super Testers might be the species that you are looking for.

Currently the "--load" option from the command line only works with single player games. However, as MatGB described you could setup a multi-player game as an observer or moderator, save it and then re-load it while forcing the AIs to have different aggressions and let the AIs play against themselves.

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2

All times are UTC

Who is online

Users browsing this forum: Semrush [Bot] and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group