patchFreeciv - Patches: patch #3770, better defense when GameLoss is a...

Show feedback again

patch #3770: better defense when GameLoss is a military unit

Submitted by:  Not Given <imhotep>
Submitted on:  Mon Mar 4 10:38:17 2013  
Category: aiPriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Planned Release: Contains string changes: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Thu Mar 7 11:02:32 2013, comment #2:

> Is this somehow connected to the primary change in this ticket?

Yes, it is, but only "somehow". When no DefendGood units can be built, AI leaves cities (and thus the Leader within it) unprotected.

So the first part won't have any effect without the second.
(AI still leaves cities alone when they think there would be no danger.)

The deeper problem with the DefendGood thing is that AI relies on the hints given. They should rather analyze the ruleset to establish a "better than" hierarchy once at game start from where they can get the current best available each time. But that sure won't be a one-liner.

Not Given <imhotep>
Thu Mar 7 07:03:20 2013, comment #1:

> Second, if no DefendGood units can be produced, DefendOk will do.

Is this somehow connected to the primary change in this ticket? Otherwise it should be separate ticket, even though it means that both would be one-liners.
As you said, the first change is a bit hackish, so I need to check if there's no better way to implement it. AFAICS latter change could go forward if it was separate ticket.

Marko Lindqvist <cazfi>
Project Administrator
Mon Mar 4 10:38:17 2013, original submission:

I modified Ancients modpack so that the Leader is a weak military unit, to incite human players to take a bit of a risk and make the game more interesting.

Unfortunately, this works for AIs, too. To win, I only have to wait until all AI leaders are killed by barbarians.

Patch (against Freeciv version 2.4.99-dev r22446):
This little hack prevents AIs from using the Leader to defend cities (so other units will be produced to do this).

Second, if no DefendGood units can be produced, DefendOk will do.

Not Given <imhotep>


(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by cazfi (Posted a comment)
  • -unavailable- added by imhotep (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Mar 4 10:38:18 2013imhotepAttached File-=>Added gameloss_defend_22466.patch, #17384
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup