 |
|  |
 |
|  |
 |
|  |
 |
|  |
 |
|  |
 |
|
Locutus
|
|
ACS CTP1/2 Manager & Civ4 Co-Manager
|
 |
Hengelo, The Netherlands
Nov 1999 time: 06:18
|
|
quote: Originally posted by PDA-CIV
There's no need to argue for hours if you can agree that
in real life , reality (a practical approach , right ?) there's
always an element of chance , of things changing in the
last minut or your very presence around it can change it . |
Well, the contents of the goody-huts is set randomly at the start of the game, it will just not be changed after that (except that very early in the game you will not get barbarians and huts right next to a city will never give another city). That's good enough for me, at least.
quote: Does civ.exe and/or civ2.exe somehow use or contain a
random-function for the in-game-play ???
Or is there a use of the PC-clock (in example the seconds)
to randomize the huts contents via some script ??? |
I'm not gonna check for you but it probably does indeed contain a random function, it almost has to be. Note however that there's no such thing as 'random' for computers, that's a concept that such a simple device (conceptually, at least) can't handle. To simulate randomness, most programmers use, like you mentioned, the clock as the seed of the random function (which returns elements of known lists of numbers that are suitable to simulate randomness). Different seeds means different lists so with the clock (which usually counts milliseconds) as seed it's impossible to predict which number will eventually be used (I'm no expert on this sort of low-level stuff but that's roughly how it works). So in reality it's actually a little bit of both.
CtP1/2 probably uses the same technique for goody huts but sets the contents of goody buts at the start of the game and stores it permanently. For battles and other events where randomness plays a role, CtP2 uses a different technique: the same random function is probably used, but the seed is static for specific situations, probably the game turn. E.g. in turn 20 the outcome of the exact same battle is (slightly) different than in turn 21 but whatever you do, you will never get different results as long as you keep fighting that battle in turn 20.
Last edited by Locutus on 11-04-2002 at 04:22
|
|
|  |
 |
|
PDA-CIV
|
 |
Denmark
Jul 2001 time: 06:18
|
|
Though I've gone to bed , my computer is doing maintenance
and sometimes remains logged on ApolytonNet , b4 shutdown .
Anyway I'm actually very well aware of the programming-facts :
quote: Note however that there's no such thing as 'random' for computers, that's a concept that such a simple device (conceptually, at least) can't handle. To simulate randomness, most programmers use, like you mentioned, the clock as the seed of the random function (which returns elements of known lists of numbers that are suitable to simulate randomness). Different seeds means different lists so with the clock (which usually counts milliseconds) as seed it's impossible to predict which number will eventually be used (I'm no expert on this sort of low-level stuff but that's roughly how it works). So in reality it's actually a little bit of both. |
I used a random-loop in a pokerprogram I made in 1976 - back
then we "saw" the results on 9dots Matrix-printer ... and all the
programming was handwritten (pencil and rubber !) before we
programmed the stuff . I know it's not a "genuine" randomizing
function and about seeds and split-seconds for this ... Nothing
new for me , but I hope other newbies benefit from this thread .
quote: I'm not gonna check for you but it probably does indeed contain a random function, it almost has to be. |
SH*T ! I thought I could trick You to slave for me , no , but
seriously , if Your only wish ((((( See Locutus other thread :
Halt! Who goes there? ))))) is the source-code of CTP2 You will
have to handle randomfunctions anyway . And probably all the
CIV/SIM-exes are stripped and cracked by some genius out there ,
but I'm not encouraging illegal ways to get it ! As a matter of fact
I think we should simply ask Activision to donate the source-code
to Apolytons forum since they won't make a CTP3 ... UNLESS we
check it , change it , test it and SEND IT BACK to Activision so they
can develop it further and ultimately announce the sale of :
A low-price Call to Power 3 the FanEdition
In fact I'll start a thread with a petition and poll to influence that
nice company (=Activision) to make more money by not working
very hard and getting a lot of publicity and a Civilized Comeback ...
Maybe CTP3 should be called : The Civilized Call To Power
or it could be called (there's a game called Ancient Civilizations)
so they could get back the sacred magic old civilization-name :
|||||||||||CTP3 : Call To Civilization||||||||||||||
Eventually Sid Meier should have listened more , instead of taking
stuff from CTP1 and CTP2 , he can make it up by helping Activision !
The crazy pDAne goes berserk again #~¤$€>§!!!!!!!!
How about that Locutus (and better random-functions in the game , of course ) a quick revolution ? Contact Mark ,
Phone Ming , Bring in Sting (what's he got to do with it ?!?) but don't call The Police ... (Let him make music for the game ,
I've heard he is a civ- and jazz-player !) or just call the President , I don't care , just rock it ! 
|
|
|  |
 |
|  |
All times are GMT. The time now is 05:18. Apolyton Time is 00:18. |
top of page
|
| archivepost |
|
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
|
|
|
|
|
|