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 III > Civ3-Creation > Standard Format for utilities
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
16.Sep: 7 NEW FILES
15.Sep: TRIAL + NO SLEEP = ONE GAME
13.Sep: PATCH THE PREVIOUSLY UNPATCHABLE

bottom of page
   - CIV3 CONQUESTS $29.99 - CIV3 from $9.99
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Gramphos is offline Gramphos
ACS Civ III Files Manager, Prince of Development
Chalmers, Sweden
Apr 2001
time: 06:16
  Old Post 06-11-2001 01:32
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Standard Format for utilities Put an end to popups!

I don't know if there are any other people working with tools to export things from the BICs.

But if there is I think it is important that all developers use the same format to save the extracted files. Therefore have I stared this thread to allow all developer to post the formats they use, and also maybe get help selecting a useful format for a tool.

Why is a standard format important?
The main reason is that these tools are made to make moding easier, and would it be easier if a file created with one tool can't be loaded with another? I don't think so.

Today I added a part to my tool that can save a civ separate from the BIC. I couldn't just save the race structure, as I also needed to know what unit the civ could build. To do so I created a format for my extracted civ file, that can be used to extract other stuff as well.

The format I used, and hope that other developers will use as well, is as follows:

File Header
bytes type value
-------------------------------------------------------------------------------------
7 string "CIV3MOD"
1 byte 1, file format version
1 byte length of name excluding the ending 0x00
1-256 string name terminated by 0x00
1 byte length of creator excluding the ending 0x00
1-256 string creator terminated by 0x00
2 short length of description excluding the ending 0x00
1-65536 string description


The body is built on the same way as the BIC-format.
Some changes has to be made to the different structures to make them "free" form their old BIC.

The following has been done to the RACE structure:

The structure has been increased in length as follows. (The length variable in the beginning updated as well)
After the "plurality" flag the following is added:

4 long Number of units that not are set to all civs
that the civ can build for each of that
4 long Index of unit that shall be set to be available
to that civ
4 long Number of units that not are set to all civs
that the civ can't build for each of that
4 long Index of unit that shall not be set to be
available to that civ


I'm not quite sure how I'll make the units yet.
I believe I will add one long flag that can have different values depending on how it shall be added.

0 would be no changes (load with the available to set as saved in the file.)
1 would be available to all civs
2 would be available to all civs but barbarians
3 would be civspecific unit for added civ(s) corresponding to the available to flags as stored in file

This are the one I've currently defined.


If you have changes to suggest please post here. New formats for the rest things can be added until they are posted once. After that changes to this format should be done in discussion. Also maybe all new formats should be evaluated in this thread before adopted as standard, as something important might be missing, and increasing the version flag for that isn't the best we can do.

Let me know what you think. Adding flags to the unit part could be done a little easier. We must however make sure that the same flag isn't used more then once, and that other developers can add them when added to the format. Therefore we should keep track of them.

Last edited by Gramphos on 06-11-2001 at 02:07

Gramphos is offline Gramphos
ACS Civ III Files Manager, Prince of Development
Chalmers, Sweden
Apr 2001
time: 06:16
  Old Post 07-11-2001 01:58
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Increase Your PM Length

I will add some more unit flags to the format. (this does not mean that I'm going to use all for export, but I'll make sure the import will handle them)

This is how it goes:
If the MSB of the flag is set the rest of the flag is what civ specific bonus(es) that should have acces to that unit.

Gramphos is offline Gramphos
ACS Civ III Files Manager, Prince of Development
Chalmers, Sweden
Apr 2001
time: 06:16
  Old Post 07-11-2001 02:21
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

duouble post (the last post didn't connect to the server when tried to load, and I got a "Page can not be viewed" error) Then it took me 25 minutes to post it once again dyue to the forum busy thing

Last edited by Gramphos on 07-11-2001 at 02:29

Gramphos is offline Gramphos
ACS Civ III Files Manager, Prince of Development
Chalmers, Sweden
Apr 2001
time: 06:16
  Old Post 12-11-2001 00:46
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton or Terrorists Win

The following unitflags will be added:
4 - All Civs+Flags for extracted
5 - All Civs but barbarians+Flags for extracted

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