Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Alternative Civs > Freeciv > Weak units defend first?
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
04.Sep: `FC` 2.0.5 COMPLETED AND RELEASED
27.Jul: `FC` 2.0.4 COMPLETED AND RELEASED
16.Jul: `FC` 2.0.3 COMPLETED AND RELEASED

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Gherald is offline Gherald
Settler

Jul 2003
time: 05:29
  Old Post 08-07-2003 17:58
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Weak units defend first? Support Apolyton, buy Galactic Civilizations

Say I have a Phalanx fortified in my city, and a settler outside working.

An enemy chariot approaches.

On my next turn I cancel the settler's work and move him into the city (doh).

The chariot then attacks my city and kills the settler, leaving the phalanx unharmed.

WTF?!?!

That is completely ludicrous.

geeslaka is offline geeslaka
Prince
of the purple hand
Jun 2003
time: 22:29
  Old Post 08-07-2003 19:36
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Suffering from ads?

I have also seen this behavior.
Say I have a Stealth Bomber resting in a newly-captured city with 3 Mech. Infs.
An enemy Armor approaches and attacks the city.
My Stealth Bomber is destroyed.
Maybe the code that chooses the defending unit compares the wrong values.

Thue is offline Thue
Freeciv Developer
Copenhagen, Denmark
Jan 1970
time: 06:29
  Old Post 08-07-2003 23:54 Visit Thue's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Browse Apolyton AD-FREE

The settler has 20 hit point, compared to the the phalanx's 10, so it is quite possible that it had a better chance of winning, which would be the reason that the code choose it. But it would probably have been smarter anyway if it had chosen the phalanx.

The stealth bomber thing sounds like a bug; but how many hit points the the mech inf's have left? If they had very few then the choice of defender would at least have made some sense.

Last edited by Thue on 09-07-2003 at 00:09

Gherald is offline Gherald
Settler

Jul 2003
time: 05:29
  Old Post 09-07-2003 00:14
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton buy from Amazon

Well, coming from a background of Civ 1-3 and all the variants, it would definately have been smarter to choose the Phalanx!

Sheesh, I moved my settler into the city so he would be PROTECTED.

IMO the code should be changed... settlers are definately weaker and more valuable than phalanxes.

Thue is offline Thue
Freeciv Developer
Copenhagen, Denmark
Jan 1970
time: 06:29
  Old Post 09-07-2003 03:17 Visit Thue's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Help yourself to an AD-FREE life

Why do you say a settler is a weaker defender than a phalanx? It doesn't seem obvious to me.

geeslaka is offline geeslaka
Prince
of the purple hand
Jun 2003
time: 22:29
  Old Post 09-07-2003 03:46
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Browse Apolyton AD-FREE

Settler's and phalanxes have the same defending ability.
settler=D:1 HP:20
phalanx=D:2 HP:10
the settler has half the chance of hitting but lasts twice as long.

My mech inf's all had full hp.

Per is offline Per
Freeciv Developer

May 2002
time: 06:29
  Old Post 09-07-2003 13:16
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Suffering from ads?

The Stealth Bomber is actually a very good defender, though a little costly.

The usual way of calculating defense worth is (defense power) * (hit points) * (firepower). The sum total for mech inf is 180, for stealth bomber it is 200. Surprised? The stealth bomber has less defense power and hitpoints, but the extra firepower more than makes up for it!

I remember that once I allowed the AI to build aircraft as city defenders (without regard to build cost), it choose to build stealth bombers. I was like "what the ***", but once I did the numbers, I realized it was not a bug. Later added an adjustment for build cost which made it stop doing that.

As to the settler vs phalanx: They are weighted the same according to the above calculation, but if the phalanx was fortified, it should have been stronger, and it should have been the defender.

(Note that the above calculation is not the one actually used to determine defender, but it is a close approximation.)

geeslaka is offline geeslaka
Prince
of the purple hand
Jun 2003
time: 22:29
  Old Post 09-07-2003 18:47
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Remove this text

I thought the bonus was for units that were in a city xor fortified. Is it actually a non-exlusive or?

Thue is offline Thue
Freeciv Developer
Copenhagen, Denmark
Jan 1970
time: 06:29
  Old Post 09-07-2003 20:44 Visit Thue's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Get a bigger avatar today!

quote:
Originally posted by geeslaka
Settler's and phalanxes have the same defending ability.
settler=D:1 HP:20
phalanx=D:2 HP:10
the settler has half the chance of hitting but lasts twice as long.


I am not sure you can conclude that way. At least it requires more arguments, which I am too lazy to make .

Per is offline Per
Freeciv Developer

May 2002
time: 06:29
  Old Post 10-07-2003 00:11
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Tired of ads?

You don't get any defense bonus just for being in a city, IIRC. But if you are fortified inside a city, you receive normal fortification bonus. (Note that the 'fortifying' status does not count as 'fortified'. It takes one turn to become fully fortified.)

Thue is offline Thue
Freeciv Developer
Copenhagen, Denmark
Jan 1970
time: 06:29
  Old Post 10-07-2003 03:05 Visit Thue's homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Support Apolyton or Terrorists Win

Actually begin in a city is the same as begin fortified which is the same as begin fortified in a city. combat.c:493 :

code:
if ((pcity || fortified) && is_ground_unittype(def_type)) { defensepower = (defensepower * 3) / 2; }

maubp is offline maubp
Chieftain

Oct 2002
time: 05:29
  Old Post 11-07-2003 01:48
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Full PM-box? Change here!

quote:
Originally posted by Thue, (begin -> being)

Actually being in a city is the same as being fortified which is the same as being fortified in a city.

I agree based on the snippet of code, but intuitively being fortified in a city should be better than just being in a city.

Does anyone know how Civ I or II handled this? I would always fortify my defense troops in their cities...

Gherald is offline Gherald
Settler

Jul 2003
time: 05:29
  Old Post 15-07-2003 21:20
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Inflate your Upload Space

I can't believe some of you are arguing that the settler "is as good a defender as the phalanx, so who cares if it defends first".

Perhaps it is as good as a defender. But its more expensive, costs one population point, and I built it to construct roads and irrigation, not to defend my city!!!

That is why the Phalanx (a military unit) was fortified in my city, and the Settler (a group of civilians) was merely seeking cover.

geeslaka is offline geeslaka
Prince
of the purple hand
Jun 2003
time: 22:29
  Old Post 16-07-2003 06:22
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

To me it seems like the best thing to do is to check all units on the space and defend with the one with the lowest cost to defense ratio.
A unit that has a cost of 50 and a defense rating of 80 would be chosen before a unit with a cost of 70 and a defense rating of 80.

Something tells me there is something slightly wrong with this ut I can't figure out what.

Kalius is offline Kalius
Emperor
Kriegsgewitter
Aug 2002
time: 16:29
  Old Post 17-07-2003 10:05
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Tired of ads?

I have noticed this too. I had one phalanx in a city, and I just rush bought another. The phalanx which I rush bough died, and the fortified one remained alive, albeit at half strength.

JJJ is offline JJJ
Settler

May 2003
time: 23:29
  Old Post 06-08-2003 14:24
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Avatar Enlargement: We've got the solution

Seems like the best solution would be, if there's a tie in calculated defense worth, the unit that costs the least defends. Maybe adding something in for Settlers, considering they also cost a population point. if you want to.

Mithrandir is offline Mithrandir
Chieftain
Sassamansville, ,USA
Feb 1999
time: 05:29
  Old Post 07-08-2003 09:31 Visit Mithrandir's homepage!
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

That would (generally) be good in cities and fortresses, but out in the open the best defender should always be chosen, because you'd lose both anyway.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:29.
Apolyton Time is 00:29.
    top of page
Rate This Thread:
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0384 seconds (87.75% PHP - 12.25% MySQL) with 30 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net