Welcome to the Creatures Wiki! Log in and join the community.

Difference between revisions of "GEN files"

From Creatures Wiki
Jump to navigation Jump to search
m (Gameware link -> Wayback Machine)
(5 intermediate revisions by 4 users not shown)
Line 3: Line 3:
 
==Format==
 
==Format==
  
Genome files start with the three characters 'd', 'n', and 'a', followed by the (textual) number representing the genome file version - '1' for [[Creatures 1]], '2' for [[Creatures 2]], and '3' for the [[Creatures Evolution Engine]].
+
C2 and newer genome files start with the three characters 'd', 'n', and 'a', followed by the (textual) number representing the genome file version - '2' for [[Creatures 2]], and '3' for the [[Creatures Evolution Engine]].
  
This is then followed by any number of [[gene]]s, which consist of the four characters 'gene', a gene header and gene data, which differs depending on the contents of the header.  There is more information about the differing formats of genes in the [[:Category:Gene types|gene types category]].
+
The main part of the file (which C1-era files start with immediately) consists of any number of [[gene]]s, which consist of the four characters 'gene', a gene header and gene data, which differs depending on the contents of the header.  There is more information about the differing formats of genes in the [[:Category:Gene types|gene types category]].
  
 
When all the genes have occured, there is then a end-of-file marker consisting of the four characters 'gend'.
 
When all the genes have occured, there is then a end-of-file marker consisting of the four characters 'gend'.
Line 17: Line 17:
 
There are then another four 8-bit values, representing the gene identifier (for reference by [[GNO files]]), the generation number of the gene, the age at which the gene should be switched on, and the gene flags.
 
There are then another four 8-bit values, representing the gene identifier (for reference by [[GNO files]]), the generation number of the gene, the age at which the gene should be switched on, and the gene flags.
  
In version 2/3 genomes, there's then an 8-bit mutability weighting value, and in version 3 genomes, an 8-bit variant value, used in [[Creatures Village]] to turn on different genes for different species without needing separate genome files for each species.
+
In version 2/3 genomes, there's then an 8-bit mutability weighting value, and in version 3 genomes, an 8-bit [[variant]] value, used in [[Creatures Village]] to turn on different genes for different species without needing separate genome files for each species.
  
 
==Related links==
 
==Related links==
Line 24: Line 24:
  
 
==External links==
 
==External links==
*[http://www.gamewaredevelopment.co.uk/cdn/cdn_more.php?CDN_article_id=9 Creature Labs' GEN Technical Information] - This is known to be extremely inaccurate.
+
*[https://web.archive.org/web/20170927094028/http://www.gamewareeurope.com/GWDev/cdn/cdn_more.php?CDN_article_id=9 Creature Labs' GEN Technical Information] - This is known to be extremely inaccurate.
  
 
[[Category:File formats]][[Category:Genetics]]
 
[[Category:File formats]][[Category:Genetics]]

Revision as of 16:26, 25 June 2020

.gen files contain the genetic information for new breeds as well as individual creatures, identified by the moniker.

Format

C2 and newer genome files start with the three characters 'd', 'n', and 'a', followed by the (textual) number representing the genome file version - '2' for Creatures 2, and '3' for the Creatures Evolution Engine.

The main part of the file (which C1-era files start with immediately) consists of any number of genes, which consist of the four characters 'gene', a gene header and gene data, which differs depending on the contents of the header. There is more information about the differing formats of genes in the gene types category.

When all the genes have occured, there is then a end-of-file marker consisting of the four characters 'gend'.

All numbers in the file are in little-endian form.

Gene header

A gene header starts with two 8-bit values, representing the gene type and the gene subtype.

There are then another four 8-bit values, representing the gene identifier (for reference by GNO files), the generation number of the gene, the age at which the gene should be switched on, and the gene flags.

In version 2/3 genomes, there's then an 8-bit mutability weighting value, and in version 3 genomes, an 8-bit variant value, used in Creatures Village to turn on different genes for different species without needing separate genome files for each species.

Related links

External links