From: jasona@sco.COM ( Madonna wanna-be )
Subject: Re: CIVedit V0.8 Offset list update wanted...
Organization: The Santa Cruz Operation, Inc.
Date: Mon, 09 Nov 1992 19:11:16 GMT
Summary: CIV *.SVE mapping
Keywords: civ mapping


Oh my God, like ooprb@Msu.oscs.montana.edu totally lost it:
>
>I have written an easy to use editor for the CIVIL#.SVE files
> .
> .
> .
>Now, what I would like to do is add Unit and City editing.
>However, I need more information about the offsets int he
>CIVIL#.SVE file to do so.  I would like to be able to
>edit the cities production, food, resources, buildings, etc.
>I would also like change the information about units; attack,
>defense, movement, etc...
>
>Please, if you have any information on this please send it
>to me...

Here is what I have, it's a conglomeration between Tom Kimball's Version 1.1
and what I've found:

0000-0001 Turn Number
0002-0003 Player's civilization number (0-7)
0004-0005 Movement Mask (????)
0006-0007 ????
0008-0009 year (????)
000a-000b Difficulty Level (1-4)
000c-000f ????

0010-007f rulers names (14 chars, including null terminator)
0080-00df plural race names (12 chars ???)
00e0-0137 singular race names (11 chars ???)

0138-0139 Red Money (player 0)
013a-013b White Money (player 1)
013c-013d Green Money (player 2)
013e-013f Dark Blue Money (player 3)
0140-0141 Yellow Money (player 4)
0142-0143 Lt. Blue Money (player 5)
0144-0145 Pink Money (player 6)
0146-0147 Grey Money (player 7)

0148-0149 Red Bulbs (player 0)
014a-014b White Bulbs (player 1)
014c-014d Green Bulbs (player 2)
014e-014f Dark Blue Bulbs (player 3)
0150-0151 Yellow Bulbs (player 4)
0152-0153 Lt. Blue Bulbs (player 5)
0154-0155 Pink Bulbs (player 6)
0156-0157 Grey Bulbs (player 7)

0158-018f Red (player 0) Unit Count (2/unit * 28 unit types)
0190-01c7 White (player 1) Unit Count (2/unit * 28 unit types)
01c8-01ff Green (player 2) Unit Count (2/unit * 28 unit types)
0200-0237 Dark Blue (player 3) Unit Count (2/unit * 28 unit types)
0238-026f Yellow (player 4) Unit Count (2/unit * 28 unit types)
0270-02a7 Lt. Blue (player 5) Unit Count (2/unit * 28 unit types)
02a8-02df Pink (player 6) Unit Count (2/unit * 28 unit types)
02e0-0317 Grey (player 7) Unit Count (2/unit * 28 unit types)

0318-04d7 ???? ( 8 * 56 bytes )

04d8-04d9 Red (player 0) Technology Count (????)
04da-04db White (player 1) Technology Count (????)
04dc-04dd Green (player 2) Technology Count (????)
04de-04df Dark Blue (player 3) Technology Count (????)
04e0-04e1 Yellow (player 4) Technology Count (????)
04e2-04e3 Lt. Blue (player 5) Technology Count (????)
04e4-04e5 Pink (player 6) Technology Count (????)
04e6-04e7 Grey (player 7) Technology Count (????)

04e8-04f1 Red (player 0) Technology Mask
04f2-04fb White (player 1) Technology Mask
04fc-0505 Green (player 2) Technology Mask
0506-050f Dark Blue (player 3) Technology Mask
0510-0519 Yellow (player 4) Technology Mask
051a-0523 Lt. Blue (player 5) Technology Mask
0524-052d Pink (player 6) Technology Mask
052e-0537 Grey (player 7) Technology Mask

0538-0737 ???? ( 8 x 64 bytes )

0738-0747 (8 x 2 = Tax Rate)

0748-0757 (8 x 2 = Population)

0758-1507 ????

1508-2307 (128 x 28 = City Info)
		/* char  = 1 byte */
		/* short = 2 bytes */
		/* int   = 4 bytes */
                struct {
                        unsigned short possessions; /* ??? */
                        char unknown;
                        char unknown;
                        char latitude;
                        char longitude;
                        char unknown;
                        char population;
                        char unknown;
                        char current_project;
                        char trade;
                        char ownerNumber;
                        char storedFood;
                        char unknown;
                        short current_shields_saved_up;
                        char unknown[12];
                }

2308-26bf Unit definitions
                struct {
                        char name[12];
                        char  unknown; /* 7f, 22, 40, 3a, 30, 3f, 3e */
                        char  travel_mode; /* 0 - land, 2 - sea, 1 - air */
                        char  movement_per_turn;
                        char  turns_of_movement_for_air_travel;
                        char  offense;
                        char  defense;
                        char  cost; /* x10 shields to produce ??? */
                        char  unknown; /* vision distance ??? */
                        char  transport_amount;
                        char  unknown; /* 0 expansion
                                          1 ground offensive
                                          2 ground defensive
                                          3 sea offensive
                                          4 air defensive
                                          5 sea transportation
                                          6 other
                                        */
                        char  tech_level_available_at;
                }

26c0-2cbf Red #0 Unit information (12 x 128 = 1536 bytes)
                struct {
                        char unknown;
                        char latitude;
                        char longitude;
                        char unit_type;
                        char movement_remaining; /* times three */
                        char unknown;
                        char unknown;
                        char unknown;
                        char unknown;
                        char unknown;
                        char unknown; /* pointer to next unit ??? */
                        char unknown;
                }
2cc0-32bf White #1 Unit information (12 x 128 = 1536 bytes)
32c0-38bf Green #2 Unit information (12 x 128 = 1536 bytes)
38c0-3ebf Dark Blue #3 Unit information (12 x 128 = 1536 bytes)
3ec0-44bf Yellow #4 Unit information (12 x 128 = 1536 bytes)
44c0-4abf Light Blue #5 Unit information (12 x 128 = 1536 bytes)
4ac0-50bf Pink #6 Unit information (12 x 128 = 1536 bytes)
50c0-56bf Grey #7 Unit information (12 x 128 = 1536 bytes)

56c0-66df Explore Map Mask

66e0-696f ????

6970-6a3f Roman City Names (char[12])
6a40-6b0f Babalonian CN
6b10-6bdf German CN
6be0-6caf Egyptian CN
6cb0-6d7f American CN
6d80-6e4f Greek CN
6e50-6f1f Indian CN
6f20-6fef Russian CN
6ff0-70bf Zulu CN
70c0-718f French CN
7190-725f Aztec CN
7260-732f Chinese CN
7330-73ff English CN
7400-74cf Mongol CN
74d0-759f        CN (Mecca)
75a0-766f        CN (Salamis)

7670-76c9 ????

76ca-8bb3 ????

8bb4-8bc3 (8 x 2 = Luxury Rate)

8bc4-91b7 ????

91b8-92b7 City Latitudes (1 per city x 256)
92b8-93b7 City Longitudes (1 per city x 256)

93b8-93bb ????

93bc-93bd Total Civilizations

93be-93df ????

Tech Levels (used by unit Definition)

     ffff - settlers   - <no tech>
        7 - Trireme
        8 - Sail
        9 - Catapult   - Mathematics
        e - Frigate
       11 - Phalanx    - Bronze Working
       12 - Legion     - Iron Working
       16 - Diplomat   - Writing
       17 - IronClad
       18 - Caravan    - Trade
       1f - Cavary     - Horsemanship
       20 - Musketeers - Gunpoweder
       21 - Chariot    - Wheel
       23 - Transport
       25 - Cruiser
       26 - Fighter    - Flight
       27 - Bomber     - Advanced Flight
       27 - Carrier
       29 - Submarine
       2e - Nuclear
       30 - Cannon     - Metallurgy
       34 - Battleship
       3a - Armor      - Automobile
       3e - Knights    - Chivalry
       3f - Artillery  - Robotics
       40 - Riflemen   - Conscription
       41 - Mech. Inf  -


6. TECHNOLOGY MASK  (10 bytes/Civilization - Start at 0x4e8)

0100-0000-0000-0000-00	Masonry ? Code of Laws ?
0200-0000-0000-0000-00	Alphabet
0400-0000-0000-0000-00	Horseback Riding ? Currency ?
0000-0100-0000-0000-00  Masonry ? Code of Laws ?
0000-0200-0000-0000-00  Bronze Working
0000-0080-0000-0000-00	Horseback Riding ? Currency ?
0000-0002-0000-0000-00  Ceremonial Burial
0000-0000-0200-0000-00	The Wheel
0000-0000-0004-0000-00	Pottery

5. UNIT/production TYPES

-31 - Great Wall
-30 - Oracle
-29 - Great Library
-27 - Colossus
-26 - Hanging Gardens
-25 - Pyramids
-14 - colosseum
-11 - cathedral
-09 - aquaduct
-08 - city walls
-07 - courthouse
-06 - library
-05 - marketplace
-04 - temple
-03 - granery
-02 - barracks
-01 - palace
 00 - Settler
 01 - Militia
 02 - Phalanx
 03 - Legion
 04 - Muskeeteers
 05 - Rifleman
 06 - Cavalry
 07 - Knights
 08 - Catapolt
 09 - Cannon
 10 - Chariot
 11 - Armor
 12 - Mech Infantry
 13 - Artillery
 14 - Fighter
 15 - Bomber
 16 - Trireme
 17 - Sail
 18 - Clipper Ship
 19 - IronClad
 20 - Cruiser
 21 - Battleship
 22 - Submarine
 23 - Carrier
 24 - Transport
 25 - Nuclear
 26 - Diplomat
 27 - Caravan

2. CIVILIZATIONS INFO

NUMBERS	COLORS		CIVILIZATION	        MASK
0 	RED 		Barbarians		01
1 	WHITE 		Romans/Russians		02
2 	GREEN		Babylonians/Zulus	04
3 	DARK BLUE	Germans/French		08
4 	YELLOW		Aztecs/Egyptians	10
5 	LIGHT BLUE	Americans/Chinese	20
6 	PINK   		English/Greek		40
7 	GREY		Indians/Mongols		80

>P.S.  Has anyone tried to write a MAP editor for civ yet??
>      (Maybe I'll try that next...) 	

Please send me a copy if you succeed.

i,jasona
Newsgroups: comp.sys.ibm.pc.games