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

Difference between revisions of "Biochemistry"

From Creatures Wiki
Jump to navigation Jump to search
Line 48: Line 48:
 
| Output (n) || Output of neuron n-3
 
| Output (n) || Output of neuron n-3
 
|-
 
|-
| rowspan="12" | Creature (1)
+
| rowspan="12" style="white-space: nowrap;" | Creature (1)
 
| Somatic (0) || Muscles (0) || Muscle energy used this tick
 
| Somatic (0) || Muscles (0) || Muscle energy used this tick
 
|-
 
|-
Line 60: Line 60:
 
| Immune (3) || Dead (0) || 255 if dead, else 0
 
| Immune (3) || Dead (0) || 255 if dead, else 0
 
|-
 
|-
| rowspan="6" | Sensorimotor (4)
+
| rowspan="6" style="white-space: nowrap;" | Sensorimotor (4)
 
| Const (0) || Always produces a value of 255
 
| Const (0) || Always produces a value of 255
 
|-
 
|-
Line 71: Line 71:
 
| Light level (4) || A value from 0-255 indicating the light level
 
| Light level (4) || A value from 0-255 indicating the light level
 
|-
 
|-
| Crowdedness (5) || How many and how close others of your kind are
+
| style="white-space: nowrap;" | Crowdedness (5) || How many and how close others of your kind are
 
|-
 
|-
| Drives (5) || Drive (0..17) || The current value of a given drive
+
| Drives (5) || Drive (0..15) || The current value of a given drive
 
|}
 
|}
  
Line 81: Line 81:
  
 
In C3, receptors were updated to bind to the reaction rate locus as well as the organ clockrate locus.
 
In C3, receptors were updated to bind to the reaction rate locus as well as the organ clockrate locus.
 +
 +
=== Creatures 1 receptor loci ===
 +
 +
{| border="1"
 +
! organ !! tissue !! locus !! description
 +
|-
 +
| rowspan="18" | Brain (0)
 +
| rowspan="18" | lobe id
 +
| Threshold (0) ||
 +
|-
 +
| Leakage (1) ||
 +
|-
 +
| Rest state (2) ||
 +
|-
 +
| Type 0 relax susceptibility (3) ||
 +
|-
 +
| Type 0 relax STW (4) ||
 +
|-
 +
| Type 0 relax LTW (5) ||
 +
|-
 +
| Type 0 strength gain rate (6) ||
 +
|-
 +
| Type 0 strength loss rate (7) ||
 +
|-
 +
| Type 1 relax susceptibility (8) ||
 +
|-
 +
| Type 1 relax STW (9) ||
 +
|-
 +
| Type 1 relax LTW (10) ||
 +
|-
 +
| style="white-space: nowrap;" | Type 1 strength gain rate (11) ||
 +
|-
 +
| style="white-space: nowrap;" | Type 1 strength loss rate (12) ||
 +
|-
 +
| Brain chemical 0 (13) ||
 +
|-
 +
| Brain chemical 1 (14) ||
 +
|-
 +
| Brain chemical 2 (15) ||
 +
|-
 +
| Brain chemical 3 (16) ||
 +
|-
 +
| Neuron state (n) || State of neuron n-17
 +
|-
 +
| rowspan="30" style="white-space: nowrap;" | Creature (0)
 +
| rowspan="7" | Somatic (1)
 +
| Become child (0) ||
 +
|-
 +
| Become adolescent (1) ||
 +
|-
 +
| Become youth (2) ||
 +
|-
 +
| Become adult (3) ||
 +
|-
 +
| Become old (4) ||
 +
|-
 +
| Become senile (5) ||
 +
|-
 +
| Die of old age (6) ||
 +
|-
 +
| Circulatory (2) || Floating (0..7) || A floating recip-emit is a place that a receptor can use for storing a data value from 0-255 which an emitter can then use for any purpose. It's a means of linking a receptor directly to an emitter without going through a brain lobe. There are up to eight of these numbered from 0-7. The life kit norns use this for the hunger/glycogen equation.
 +
|-
 +
| rowspan="2" | Reproductive (2)
 +
| Become fertile (0) || If low, remove any egg/sperm from the gamete; if high, add one. In the C1 genome this tracks the Oestrogen or Testosterone (Females and Males respectively) chemical exactly.
 +
|-
 +
| Receptive (1) || If greater than zero then the norn is receptive to sperm. In the C1 genome it is linked to sex drive for females.
 +
|-
 +
| Immune (3) || Die (0) || If the value of this is ever non-zero the norn will die. In the various life kit genomes it is linked to the aging chemical. When the chemical is lower than a certain value the norn will die.
 +
|-
 +
| rowspan="2" style="white-space: nowrap;" | Sensorimotor (4)
 +
| Involuntary action (0..7) || Activates an involuntary action
 +
|-
 +
| Gain (8..15) || Activates gait n-8 (where gait 0 is the normal walk gait)
 +
|-
 +
| Drive (5) || Drive (0..15) || Set the current value of a given drive
 +
|}
  
 
==See also==
 
==See also==

Revision as of 01:05, 20 September 2021

Pippinchemist.png

A creature's biochemistry is the collection (sum total) of its chemical reactions. A realistic biochemistry with analagous chemicals, emitters and receptors to the real world is a big part of making creatures act realistically, because when their brains are linked up to monitor chemicals they can decide things like "maybe it would be a good idea to eat some food when my glycogen level is low".

This is also a good place to look when creatures are behaving oddly, as a mutation may have caused a positive reinforcement loop in their brain regarding ideas like walking into walls.

In Creatures 2 and Creatures 3, some of the genes involved in biochemistry depend on the organ that contains those genes being alive: so heavy metal poisoning or other diseases can cause a creature to lose some important biochemical reactions.

Half-lives

The half-life of any chemical, either in the Creatures series or our own universe, is the time it takes for a given amount of any chemical to decay to half the original value. In Creatures, altering this can have profound effects on biochemistry.

In creatures, the half-life of any chemical is determined by a big gene called, oddly enough, the half-life gene. The half-life gene is the longest gene in a creature, as it contains the decay rates of all the chemicals in a creature's biochemistry. A common mutation of the half-life gene produces a longer half-life for ageing or life, leading to longer-lived creatures.

As of Creatures 2, if you hex edit a gene file, and change the decay rate to values that are not in the included table, you will just get the same behaviour as the nearest lower value in the table. For example, any value from 0 to 7 will behave as 0 does, and any value from 64-71 will behave the same as 64. source

See biological half-life on Wikipedia for more on the real-life topic.

Emitters

An emitter (or chemoemitter) releases chemicals into the "bloodstream" of a creature, affecting its biochemistry. An emitter gene controls what chemical, how much, and under what circumstances.

One common mutation in this gene in C1 was instead of an emitter emitting DecASH all the time, it emitted alcohol instead, leading to a creature that was permanently drunk. Slave suffered from this mutation.

Implementation details

Every processing period (sample rate * bioticks) the specified locus of a given tissue of a given organ is examined to determine if and how much of a chemical should be released.

There are two types of calculations that can be done:

  • Analogue emitters (!(flags & 2)) release a chemical proportional to the signal level received, according to the calculation (signal - threshold) * (gain / 255)
  • Digital emitters (flags & 2) release a chemical entirely when they see a certain signal level, according to the calculation gain if signal > threshold else 0

Additionally, emitters may reset a locus to zero when a signal level above threshold is seen (flags & 1); and may treat a locus signal as its inverted value, e.g. 255 would become 0 (flags & 4).

Chris Double notes that "when a norn is born the emitter is processed at least twice. So even if the sample rate is set to almost never the emitter will be processed." and also "Sometimes the emitter is processed when importing a norn. A norn with an emitter set to almost never had the emitter processed when imported. Could this be related to import deaths in some way?"

Creatures 1 emitter loci

organ tissue locus description
Brain (0) lobe id (n) Activity (0) Lobe activity - # of neurons firing
Numloose0 (1) # Loose dendrites/neurons of type 0
Numloose1 (2) # Loose dendrites/neurons of type 1
Output (n) Output of neuron n-3
Creature (1) Somatic (0) Muscles (0) Muscle energy used this tick
Circulatory (1) Floating (0..7) A floating recip-emit is a place that a receptor can use for storing a data value from 0-255 which an emitter can then use for any purpose. It's a means of linking a receptor directly to an emitter without going through a brain lobe. There are up to eight of these numbered from 0-7. The life kit norns use this for the hunger/glycogen equation.
Reproductive (1) Fertile (0) This will be a value of 0 until the norn becomes fertile in which case it will be 255.
Pregnant (1) This will be a value of 0 until the norn becomes pregnant in which case it will be 255.
Immune (3) Dead (0) 255 if dead, else 0
Sensorimotor (4) Const (0) Always produces a value of 255
Asleep (1) 255 if asleep, else 0
Coldness (2) Not connected in Creatures 1
Hotness (3) Not connected in Creatures 1
Light level (4) A value from 0-255 indicating the light level
Crowdedness (5) How many and how close others of your kind are
Drives (5) Drive (0..15) The current value of a given drive

Receptors

Receptors monitor chemical levels and change the brain's behaviour - for example, shivering to relieve coldness. They are fed by emitters. One of the things that receptors do is monitor the ageing or life chemical and tell the norn when to change life stages. In some instances, receptors may control the reaction rate of a chemical reaction.

In C3, receptors were updated to bind to the reaction rate locus as well as the organ clockrate locus.

Creatures 1 receptor loci

organ tissue locus description
Brain (0) lobe id Threshold (0)
Leakage (1)
Rest state (2)
Type 0 relax susceptibility (3)
Type 0 relax STW (4)
Type 0 relax LTW (5)
Type 0 strength gain rate (6)
Type 0 strength loss rate (7)
Type 1 relax susceptibility (8)
Type 1 relax STW (9)
Type 1 relax LTW (10)
Type 1 strength gain rate (11)
Type 1 strength loss rate (12)
Brain chemical 0 (13)
Brain chemical 1 (14)
Brain chemical 2 (15)
Brain chemical 3 (16)
Neuron state (n) State of neuron n-17
Creature (0) Somatic (1) Become child (0)
Become adolescent (1)
Become youth (2)
Become adult (3)
Become old (4)
Become senile (5)
Die of old age (6)
Circulatory (2) Floating (0..7) A floating recip-emit is a place that a receptor can use for storing a data value from 0-255 which an emitter can then use for any purpose. It's a means of linking a receptor directly to an emitter without going through a brain lobe. There are up to eight of these numbered from 0-7. The life kit norns use this for the hunger/glycogen equation.
Reproductive (2) Become fertile (0) If low, remove any egg/sperm from the gamete; if high, add one. In the C1 genome this tracks the Oestrogen or Testosterone (Females and Males respectively) chemical exactly.
Receptive (1) If greater than zero then the norn is receptive to sperm. In the C1 genome it is linked to sex drive for females.
Immune (3) Die (0) If the value of this is ever non-zero the norn will die. In the various life kit genomes it is linked to the aging chemical. When the chemical is lower than a certain value the norn will die.
Sensorimotor (4) Involuntary action (0..7) Activates an involuntary action
Gain (8..15) Activates gait n-8 (where gait 0 is the normal walk gait)
Drive (5) Drive (0..15) Set the current value of a given drive

See also

External links