Thread Tools
Old July 30, 2002, 01:45   #1
ramses II.
Prince
 
ramses II.'s Avatar
 
Local Time: 06:10
Local Date: November 1, 2010
Join Date: Feb 2002
Location: Essen, Germany
Posts: 331
Nukes and Skulls
I noticed that the number of appearing skulls depends on the city size if a city is nuked. Big cities up to 8 skulls, small cities at least 2 skulls (haven't noticed less skulls yet). And I noticed that the skulls only appear on the 8 surrounding fields of the city - no skulls in a distance of 2 fields.

Has anybody found out the algorithm behind that yet?
__________________
There are no silly questions - only silly answers
<a href="http://www.sethos.gmxhome.de">Strategy Guide</a>
ramses II. is offline  
Old July 30, 2002, 09:45   #2
Marquis de Sodaq
King
 
Marquis de Sodaq's Avatar
 
Local Time: 23:10
Local Date: October 31, 2010
Join Date: Jul 2000
Location: ... no, a Marquis.
Posts: 2,179
As an added query, is that just the chance of them appearing? I think of a city with many ocean squares around it. If the skulls are set to appear over water, they do not appear.
__________________
The first President of the first Apolyton Democracy Game (CivII, that is)

The gift of speech is given to many,
intelligence to few.
Marquis de Sodaq is offline  
Old July 30, 2002, 12:01   #3
Starlifter
Chieftain
 
Starlifter's Avatar
 
Local Time: 06:10
Local Date: November 1, 2010
Join Date: Jun 2002
Location: Europe
Posts: 40
Quote:
As an added query, is that just the chance of them appearing? I think of a city with many ocean squares around it. If the skulls are set to appear over water, they do not appear.
From general testing, and general knowledge of the game algorithms, the method for skull generations is:

1. Calculate relative location & store (as bit-mapped nonsigned integer).

2. Overlay with game situation (likely uses simple bit logic operators for outcome).

3. Store skull outcome, if not superceeded by map constraints (result can be determined by hex view of .SAV).


Note: Here are some things which prevent override the appearance of a skull:

1. Water.
2. Airfield.
3. Another city.
4. Existing skull (e.g, no "double skulls").


These can easily be tested. Here is one way (there are others, too):

1. Create a late game, deity, high-tech (say thru FT100), no Mass Transit (& no pollution control) city.

2. Create several huge cities. Use at least one "mirror" as a control for each variation.

3. Set up skulls, water, airfields, etc. etc.

4. Run the game. Observe the outcome, and compare to the control(s) if you have statistical doubts.



Example: You make 4 identical cities, all with land terrain. Two have all 20 squares clear of skulls, airfields, cities, water, etc. These are the control cities. Two others have, say, 18 of the 20 squares (tiles) with existing skulls. Save.

Now, run. 100% (maybe 99.9) of the time, you will see the control cities producing a skull. 10% of the time, your 2 test cities will produce.


Realated issue: Nukes may be a special case for destroyed improved terrain. I have not tested to see if water in the surrounding 8 tiles is accounted for before or after the determination of which tiles to recieve destruction. Knowing the general programming style of Civ, i suspect the answer is compute the tile to be affected, check the tile for improvements, and pick one to be destroyed. Water will have no improvements, so nothing will be destroyed in a water tile. Airfields are exempt from nuke destruction, because of the way Reynolds, et. al., implemented them (airfields are "cities" without an indexed city parameters... e.g., a city by map storages, but not matrix allocation, and cities are not destroyed by nukes).

Last edited by Starlifter; July 30, 2002 at 12:14.
Starlifter is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 01:10.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team