URL:
  <http://gna.org/patch/?6593>

                 Summary: Savagame loading fallbacking from threaded to
classic AI when threaded not available
                 Project: Freeciv
            Submitted by: cazfi
            Submitted on: Fri 13 Nov 2015 07:10:15 AM EET
                Category: general
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 2.6.0, 3.0.0

    _______________________________________________________

Details:

If a savegame has AI players with ai_type "threaded", it can't be loaded to a
server lacking threaded AI (by default, it's not compiled in)
In some cases it might makes sense to set AI player type to "threaded" in a
scenario, but also be ready to use "classic" if "threaded" not available.
Attached patch adds scenario -property (-> not property of regular savegame)
"allow_ai_type_fallbacking" that allows savegame loading code to change
ai_type of the loaded players from the (preferred) type specified in the
savegame to best-fit available ai_type.
The only such fallback conversion implemented is threaded -> classic.

This does not try to read savegame entries related to the original ai_type to
the context of the new one even when both are using "default" ai backend and
would have identical entries. i hope to address this in future tickets.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri 13 Nov 2015 07:10:16 AM EET  Name: AiTypeFallbacking-S2_6.patch 
Size: 13kB   By: cazfi

<http://gna.org/patch/download.php?file_id=25735>
-------------------------------------------------------
Date: Fri 13 Nov 2015 07:10:15 AM EET  Name: AiTypeFallbacking.patch  Size:
14kB   By: cazfi

<http://gna.org/patch/download.php?file_id=25734>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?6593>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to