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 > Civilization II > Civ2-Test of Time > 17 crusaders (MP report)
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
29.Jul: MOVING UP ON REVISED `TOP 100` INDEX
29.May: GAME MECHANICS REFERENCE BOOKLET
06.Mar: DROPPING FROM SECOND TO THIRD

bottom of page
  - CIVILIZATION 2 from $6.95 - CIVILIZATION 2 from $4.25 - CIV2: TEST OF TIME from $2.50 - CIV2: MULTIPLAYER GOLD EDITION from $4.99
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
VetLegion is offline VetLegion
Prince

Sep 1999
time: 06:14
Post  Old Post 14-01-2000 08:06
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
17 crusaders (MP report) Support Apolyton, pre-order Civilization IV

Recently in a MP game of TOT I lost 17 crusaders in a single turn to 2 fortified phalanxes and one fortified legion in a city that had barracks and was on a river. I didnt kill any of them, just managed to get them "red".

This is the calculation:

2*1.5(veteran)*2(fortified+river)=6
my crusaders were all non veteran, but still with a 5:6 ratio I should have kicked them and still have some army left. I tried to repeat that offline later and I had 7 crusaders left after conquering the city.

My questions are:
Anyone else had it happened?
Is there a difference in MP battle calculus?
Which side are the battles calculated on(host or client)?
Could it happen because of lag or connection problems?


I am worried because I noticed this only because it was so obvious. Who knows how many times I didnt notice it? Perhaps some times I lost a unit and thought I lost it to a veteran defender/attacker and but it was a bug?

John Possidente is offline John Possidente
Prince
Hunt Valley, MD USA
Jun 1999
time: 00:14
Post  Old Post 14-01-2000 19:01
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton, buy Civilization 2

Every battle in Civ has a random element. Events like the one you describe are therefore possible, but they are extremely unlikely. Sounds like you ran into the wrong end of the laws of probability. Someone has to; that's how they work.

Hope you're enjoying the game otherwise.

tobyr is offline tobyr
Prince
Princeton, NJ USA
Oct 1999
time: 05:14
Post  Old Post 15-01-2000 10:19
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton buy from Amazon

A simple, possible explanation for what happened to you might be that the game's random number generator (or the programmers' use of the generator) is not really random, that there is a bug causing it to repeat the same value in consecutive calls more often than it should.

For example, the Microprose original release of Magic the Gathering (and first game patch) could not deal randomly from a card deck. In a deck with less than 1/3 land cards, it tended to produce 40%+ land VERY frequently.

Programmers tend to use random number generators thoughtlessly, without:
(1) Testing to see how random they are; some compilers come with poor generators.
(2) Considering whether their conversion of random values to small numbers removes some of the randomness.
(3) Relying on the low order bits of a random value, which tend to be less random than other bits in the value. That may be the case here.

I have experimented a lot with opening huts, saving, restoring, and reopening the same hut. I have not been systematic about this, but it seems to me that I am getting the same result two and three times in a row more often than I should. (But my evidence is very informal, and it is even possible that the game makes this happen intentionally.)

For example, suppose a programmer wants to select, randomly, one of eight possible outcomes from popping a hut. This line of C code will do it:
index = nrand() % 8;
but MUCH safer is this line, which ignores the low order three bits:
index = ( nrand() >> 3) % 8;

I usually ignore the random number generators that come with runtime libararies and use the well-tested Lehmer algorithm instead.

- toby



------------------
toby robison
criticalpaths@mindspring.com

VetLegion is offline VetLegion
Prince

Sep 1999
time: 06:14
Post  Old Post 16-01-2000 02:15
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton, buy Call to Power 2

I won that game so I dont complain too much. I wanted to see if anyone else reported this especially after what people reported in civ2 forums....hehe I like that about civ, the legends built around it.

tobyr
I am not a c programmer, but I think 3 bits are just enough for 8 combinations You think civ2 was written in c? I liked what they did with civ1 animated water. That was probably assembler. What do you think why they didn't animate water in civ2?

Mark von Wagner is offline Mark von Wagner
Prince
Albert in a Can
May 1999
time: 00:14
Exclamation  Old Post 16-01-2000 11:57 Visit Mark von Wagner's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Increase the size of your Attachments

quote:
Every battle in Civ has a random element. Events like the one you describe are therefore possible, but they are extremely unlikely. Sounds like you ran into the wrong end of the laws of probability. Someone has to; that's how they work.


Damned unlikely. My battle-odds calculator gives the 17 attacking crusaders a 99.99999999999998% chance of winning. Even with only 4 attacking crusaders, you have an 82.5% chance of winning.

Mark
[This message has been edited by Mark von Wagner (edited January 16, 2000).]

VetLegion is offline VetLegion
Prince

Sep 1999
time: 06:14
Post  Old Post 17-01-2000 06:05
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Increase the size of your Attachments

Mark I agree with you. I dont know. Tobyr hinted that randomize function might be badly programmed, and since I dont know in which language, I cant check.

Anyway...I have more bugs to report.
I never played MGE online so I dont know are these known to the people.

2. The Repeated Action thing
I noticed that sometimes I get to move my units twice. Just this night I built a road with settler and then moved him!? Sometimes my warriors gets a second move (I play single movement) Fun eh?

3. The Popping Screen
Negotiating screen keeps popping out although no human initiated talks. It pops out a few times in a turn and gets annoying.

I somehow think all these problems are related to move synchronization. That is why I asked who calculates the battles and all. What is the host role?

Oh, and tobyr I think I get your point. it makes sense since rand() probably returns word or byte. What do you think, maybe randomize_timer() function is only used at begining of turn, so the seed is same in all turn? These are just gueses, since I dont know c.

Orz is offline Orz
Chieftain
Tartu, Estonia
Dec 1999
time: 05:14
Post  Old Post 18-01-2000 02:34
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Inflate your Upload Space

Hmm... Actually in Civ2 and in following add-ons/mods the random element is much smaller than in original Civilization.

Civ2 has hitpoints and units make several "rounds". In civ1 they made only one: remember - chariot was pretty good a weapon even in modern time!

So in civ1 I've made great battles with chariots and vice versa - have lost armors due a single chariot attack.

VetLegion is offline VetLegion
Prince

Sep 1999
time: 06:14
Post  Old Post 20-01-2000 05:00
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

Tell me about it All I ever built was chariots and settlers. Some times I even built barracks, but then changed my mind just in time to build a chariot

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:14.
Apolyton Time is 00:14.
    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.0288 seconds (89.63% PHP - 10.37% 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