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 > Miscellaneous > Archive > CtP2-Creation/AI/Mods/Scenarios-Archive > description of the MAP FORMAT
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
MarkG
Guest

Not Yet
time:
Arrow  Old Post 07-12-2000 01:58
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
description of the MAP FORMAT Avatar Enlargement: We've got the solution

just got this from Mr Ogre

quote:


The file is divided into blocks. Each block starts with a four character ID (as defined below) followed by 4 bytes for the size of the rest of the block (not counting the 4 byte header or the 4 bytes for size). All data is stored in Intel byte order. A TERR block, describing the map terrain, is required, but the rest are, at least theoretically, optional. A few of these blocks will still be read if present, but are not generated by the internal save code any more.


#define k_TERRAIN_HEADER 'TERR'
// sint16 width, height
// uint8[width * height]

#define k_TERRAIN_ENV_HEADER 'TENV'
// sint16 width, height
// uint32[width * height]

#define k_CITIES_HEADER 'CITY'
// sint32 numCities
// { numCities instances of:
// sint16 x, y
// sint32 size \
// uint64 improvements >-- MapFileCityData
// uint64 wonders /
// uint8 owner
// }

// Same, but has names too
#define k_NEW_CITIES_HEADER 'NCTY'
// sint32 numCities
// { numCities instances of:
// sint16 x, y
// sint32 size \
// uint64 improvements >-- MapFileCityData
// uint64 wonders /
// uint8 owner
// string name
// }

#define k_UNIT_TYPES_HEADER 'UTYP'
// sint32 numTypes
// { numTypes instances of:
// String db_ID_Name
// }

#define k_UNITS_HEADER 'UNIT'
// sint32 numCellsWithUnits
// { numCellsWithUnits instances of:
// sint16 x, y
// sint32 numUnits
// { numUnits instances of:
// uint8 owner
// sint32 type
// }
// }

#define k_IMPROVEMENT_TYPES_HEADER 'ITYP'
// sint32 numTypes
// { numTypes instances:
// String db_ID_Name
// }

#define k_IMPROVEMENTS_HEADER 'IMPS'
// sint32 numCells
// { numCells instances:
// sint16 x, y
// uint8 numImprovements
// { numImprovements instances:
// sint32 impType
// }
// }

#define k_VISION_HEADER 'VISN'
// uint8 player
// sint16 width, height
// uint16 [width * height]

#define k_ADVANCE_TYPES_HEADER 'ATYP'
// sint32 numTypes
// { numTypes instances:
// String db_ID_Name
// }

#define k_PLAYER_ADVANCES_HEADER 'PADV'
// uint8 player
// sint16 numAdvances
// uint8[numAdvances]


// MDS - 08/2000
#define k_HUTS_HEADER 'HUTS'
// uint32 value
// uint32 typeValue

// MDS - 08/2000
#define k_CIVS_HEADER 'CIVS'
// uint32 civ


[This message has been edited by MarkG (edited December 06, 2000).]

Mr Ogre is offline Mr Ogre
Warlord
Azeroth
Jan 1970
time: 05:14
Post  Old Post 07-12-2000 04:19 Visit Mr Ogre's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Suffering from ads?

I realize this isn't a very thorough description, but it should be accurate. If anyone's planning to work on an exporter to this format, I'll try and answer questions here. Poking around with a hex editor in some maps saved from the game with this document at hand might be helpful as well.

skorpion59 is offline skorpion59
Prince
Tulsa, Oklahoma, USA
May 1999
time: 23:14
Post  Old Post 07-12-2000 07:40 Visit skorpion59's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Inflate your Upload Space

I would like to clarify that this is the BINARY map format used by the 'Save Map' editor option.

While, the BMP2CtP2 program (mentioned in another thread) uses the TEXT map format used by the Chat Window's '/Importmap' option.

Thanks, Mr. Ogre

  < 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:
archivepost
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.0323 seconds (87.70% PHP - 12.30% MySQL) with 31 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