Diversity in AI species
Moderator: Oberlus
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.
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.
Re: Diversity in AI species
Maybe the reason is to chase the perfect game: You got an excellent galaxy with great starting conditions some specials nearby, everything goes well, till you meet the AI. Than you realized that you have 2x Trith and 2x Eaxaw as AI players what ruins your game due to xenophobic hassardment of captured colonies. That could really be a reason that let you think of restart the game with different species...
Don't take my post to serious
Don't take my post to serious
Want some fresh experience? Try Kosymod
Re: Diversity in AI species
That could be nice but it's not what I wrote about - sorry if I didn't explain myself well enough.Geoff the Medio wrote: ↑Tue May 11, 2021 10:26 amAs far as I understood, the goal is to randomly vary one aspect of universe generation (which species are present) without changing anything else. This seems like a reasonable request for testing purposes, regardless of whether it's practically doable.
The thing is that right now if I start a random game with a fixed seed, some parts of it will not be random at all (Starting Species will always be the same with the same seed, Galaxy Age too, ...).
And if I play with random seed as Oberlus suggested, then I can't go back to the game after I correct a minor (or a major) bug/stringtable - I have to start entirely anew after each correction, which I find a bit frustrating.
I believe that just salting the seed with all the other parameters would solve this problem ?
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13603
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: Diversity in AI species
Not sure what "go back to the game" means, but for some things you could save the game on the first turn, or just flush the stringtable in the UI.
Re: Diversity in AI species
Indeed.
When I tried to do that the saved-and-reloaded game had the FOCS in the state they were at the time of creation of the game, not the new version. I believe that's the same for stringtables.Geoff the Medio wrote: ↑Thu May 13, 2021 9:24 amNot sure what "go back to the game" means, but for some things you could save the game on the first turn, or just flush the stringtable in the UI.
But maybe there's a way to have the new stringtables and FOCS that I'm unaware of ?
So as of now I can't go back to the game that I started (I mean, after correcting a FOCS file) but I can go back to the exact same Galaxy by correcting the FOCS file, closing FreeOrion and restarting it, then restarting a new game with the same seed and settings.
Re: Diversity in AI species
I think you are wrong here, LienRag. I've done many times what Geoff describes and it worked, including mid game. To be specific: change FOCS files (changing values, adding macros, creating new files...), restart FO, load saved game.LienRag wrote: ↑Thu May 13, 2021 3:50 pmWhen I tried to do that the saved-and-reloaded game had the FOCS in the state they were at the time of creation of the game, not the new version. I believe that's the same for stringtables.Geoff the Medio wrote: ↑Thu May 13, 2021 9:24 amfor some things you could save the game on the first turn, or just flush the stringtable in the UI.
Current meter values might be off of what they should be for changed content, but they will start working as intended from that point onwards. And when you do that for a game saved in turn 1, there is hardly any meter off.
Re: Diversity in AI species
Oh ?
I'll have to try it then, thanks for the tip.
I'll have to try it then, thanks for the tip.
Re: Diversity in AI species
Note that few stuff depends on the saved state and will not change on reloading. E.g. monster designs (this can lead to a mismatch with changed monster hulls).
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.
Look, ma... four combat bouts!
Look, ma... four combat bouts!
Re: Diversity in AI species
When I wrote that code years ago, the general consensus was that while the species selection algorithm should take care that a game does not end up with a too monotonous selection of species, it also shouldn't be too restrictive (as in completely prevent having a species more than once if that can be avoided).
Which is why I went with having each species twice in the initial selection pool.
As Oberlus pointed out, that can easily be fixed by removing that `* 2` part (which would be my personal preference too, btw. ).
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13603
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: Diversity in AI species
A rule or galaxy setup option to avoid duplicate species spawns could be added.
Re: Diversity in AI species
Ah, that actually makes sensWhen I wrote that code years ago, the general consensus was that while the species selection algorithm should take care that a game does not end up with a too monotonous selection of species, it also shouldn't be too restrictive (as in completely prevent having a species more than once if that can be avoided).
Don't know if that is necessary. It seems I'm the only one concerning that and with the help of Oberlus I can fix it. So for me it's fine. Somehow to much rules makes it hard to find the important things.A rule or galaxy setup option to avoid duplicate species spawns could be added.
Want some fresh experience? Try Kosymod
Re: Diversity in AI species
No, I complained about that too sometimes ago.
A galaxy rule would be interesting, though obviously it's not high priority.
A galaxy rule would be interesting, though obviously it's not high priority.
Re: Diversity in AI species
It affects only universe generation so I think it should be option or galaxy setting.
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm