1vALL singleplayer game

Problems and solutions for installing or running FreeOrion, including discussion of bugs if needed before posting a bug report on GitHub. For problems building from source, post in Compile.

Moderator: Oberlus

Post Reply
Message
Author
ThinkSome
Psionic Snowflake
Posts: 460
Joined: Sun Mar 29, 2020 11:13 pm

1vALL singleplayer game

#1 Post by ThinkSome »

I want to get pummeled to death by 6+ AIs in v0.4.10.2. How to do this?

The single-player menu does not offer the possibility to put all AIs into the same team.

I wanted to edit the turn1 save game to put them all into the same team manually, but the save file is some weird horror show of (supposedly) compressed encoded XML inside XML. I can see some empire definition structures like

Code: Select all

        <first>1</first>
        <second class_id="10" tracking_level="0" version="2">
            <m_empire_id>1</m_empire_id>
            <m_empire_name>Terran Imperium</m_empire_name>
            <m_player_name>ThinkSome</m_player_name>
            <m_color>
                <clr.r>153</clr.r>
                <clr.g>0</clr.g>
                <clr.b>117</clr.b>
                <clr.a>255</clr.a>
            </m_color>
            <m_authenticated>0</m_authenticated>
            <m_eliminated>0</m_eliminated>
            <m_won>0</m_won>
        </second>
but no alliance data.

ThinkSome
Psionic Snowflake
Posts: 460
Joined: Sun Mar 29, 2020 11:13 pm

Re: 1vALL singleplayer game

#2 Post by ThinkSome »

ok, I can copy that compressed string, paste it into a new file, then run
base64 -d < fo_tmp | zlib-flate -uncompress
to get the uncompressed version

ThinkSome
Psionic Snowflake
Posts: 460
Joined: Sun Mar 29, 2020 11:13 pm

Re: 1vALL singleplayer game

#3 Post by ThinkSome »

Right, so there is this <m_empire_diplomatic_statuses> tag in the compressed portion, and it has items like the following:

Code: Select all

        <item>
            <first>
                <first>7</first>
                <second>6</second>
            </first>
            <second>0</second>
        </item>
So, I changed that 0 to 1 for any item that did not have 1 in the inner pair (my team ID).

after zlib-flate -compress | base64 -w 0 and putting it in...

terminate called after throwing an instance of 'boost::archive::archive_exception'
what(): input stream error-Resource temporarily unavailable

ThinkSome
Psionic Snowflake
Posts: 460
Joined: Sun Mar 29, 2020 11:13 pm

Re: 1vALL singleplayer game

#4 Post by ThinkSome »

Alright, it seems that I was missing </compressed_str> at end of my string. It now loads normally.
Attachments
alliances.png
alliances.png (65.61 KiB) Viewed 3633 times

Ophiuchus
Programmer
Posts: 3433
Joined: Tue Sep 30, 2014 10:01 am
Location: Wall IV

Re: 1vALL singleplayer game

#5 Post by Ophiuchus »

Make them take risks and let them invade each others homeworld ;)
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!

User avatar
LienRag
Cosmic Dragon
Posts: 2147
Joined: Fri May 17, 2019 5:03 pm

Re: 1vALL singleplayer game

#6 Post by LienRag »

I was told that the AI doesn't know how to play at peace, actually.

User avatar
Oberlus
Cosmic Dragon
Posts: 5714
Joined: Mon Apr 10, 2017 4:25 pm

Re: 1vALL singleplayer game

#7 Post by Oberlus »

But at least they won't attack each other, so they will attack you instead. I hope.

ThinkSome
Psionic Snowflake
Posts: 460
Joined: Sun Mar 29, 2020 11:13 pm

Re: 1vALL singleplayer game

#8 Post by ThinkSome »

I'm 56 turns into a 300 system game and no sign of AIs yet... :/
Ophiuchus wrote: Thu Apr 28, 2022 6:28 pm Make them take risks and let them invade each others homeworld ;)
I want them to take risks and invade MY homeworld, otherwise it's way too easy.

Ophiuchus
Programmer
Posts: 3433
Joined: Tue Sep 30, 2014 10:01 am
Location: Wall IV

Re: 1vALL singleplayer game

#9 Post by Ophiuchus »

ThinkSome wrote: Thu Apr 28, 2022 7:41 pm I'm 56 turns into a 300 system game and no sign of AIs yet... :/
Ophiuchus wrote: Thu Apr 28, 2022 6:28 pm Make them take risks and let them invade each others homeworld ;)
I want them to take risks and invade MY homeworld, otherwise it's way too easy.
they are way stronger if they have two homeworlds
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!

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: 1vALL singleplayer game

#10 Post by Geoff the Medio »

ThinkSome wrote: Thu Apr 28, 2022 5:25 pmthe save file is some weird horror show of (supposedly) compressed encoded XML inside XML.
There is an option to disable XML compression in the options other tab. Change that from the options menu on the spash screen, load your save, resave it, and the result should be all "readable" text. That can be edited and loaded, then resaved with XML compression re-enabled, if you want.

ThinkSome
Psionic Snowflake
Posts: 460
Joined: Sun Mar 29, 2020 11:13 pm

Re: 1vALL singleplayer game

#11 Post by ThinkSome »

Ophiuchus wrote: Fri Apr 29, 2022 5:46 am they are way stronger if they have two homeworlds
Hmm, good idea. How to do this? More editing of save game?

Geoff the Medio wrote: Fri Apr 29, 2022 1:49 pm There is an option to disable XML compression in the options other tab. Change that from the options menu on the spash screen, load your save, resave it, and the result should be all "readable" text. That can be edited and loaded, then resaved with XML compression re-enabled, if you want.
Excellent

Ophiuchus
Programmer
Posts: 3433
Joined: Tue Sep 30, 2014 10:01 am
Location: Wall IV

Re: 1vALL singleplayer game

#12 Post by Ophiuchus »

ThinkSome wrote: Fri Apr 29, 2022 10:03 pm
Ophiuchus wrote: Fri Apr 29, 2022 5:46 am they are way stronger if they have two homeworlds
Hmm, good idea. How to do this? More editing of save game?
probably that will be most efficient.

when AI was more aggressive that happened by itself (dunno 0.4.8 maybe?). you just had to have a lot of ai and some of those made it into conquering a neighbor.

else, multiplayer to set up the game manually and then give the empires to AI.

also maybe there are some development options in game; somebody was working on this i think

else, tweaking the AI to understand alliance better
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!

Daybreak
Vacuum Dragon
Posts: 641
Joined: Mon Aug 13, 2018 10:14 pm

Re: 1vALL singleplayer game

#13 Post by Daybreak »

This would be a great option to have the ability to easily set this up.

User avatar
Oberlus
Cosmic Dragon
Posts: 5714
Joined: Mon Apr 10, 2017 4:25 pm

Re: 1vALL singleplayer game

#14 Post by Oberlus »

Daybreak wrote: Sun May 01, 2022 5:16 am This would be a great option to have the ability to easily set this up.
+1

Being able to set alliances in SP galaxy settings would be just GREAT.

Post Reply