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

Difference between revisions of "Room"

From Creatures Wiki
Jump to navigation Jump to search
m
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
[[Image:Mapeditor.jpg|right|thumb|Rooms in the [[Jungle Terrarium]], as shown in [[Map Editor]].]]
 
'''Rooms''' and [[door]]s are the building blocks of [[metaroom]]s and worlds. A room is a quadrilateral space usually taking the form of a rectangle with straight sides, although in C2 they may have floors of varying height and in C3/DS the top and bottom may be raised or lowered independently of one another.
 
'''Rooms''' and [[door]]s are the building blocks of [[metaroom]]s and worlds. A room is a quadrilateral space usually taking the form of a rectangle with straight sides, although in C2 they may have floors of varying height and in C3/DS the top and bottom may be raised or lowered independently of one another.
  
 
Despite the name, areas that correspond to one visually contiguous space in the games after C1 - such as the incubator area in [[C2]], the lower levels of the [[C3]] [[Jungle Terrarium]] or the lower [[Norn Meso]] in DS - are normally composed of multiple rooms linked together. This allows for more natural flow of [[Cellular_Automata|CA]]s and provides much more detail and variability in shape than is possible for a single large room, which can have only four sides. Regions in which neither is a factor, such as the C3 [[Crypt]], are usually composed of a single room.
 
Despite the name, areas that correspond to one visually contiguous space in the games after C1 - such as the incubator area in [[C2]], the lower levels of the [[C3]] [[Jungle Terrarium]] or the lower [[Norn Meso]] in DS - are normally composed of multiple rooms linked together. This allows for more natural flow of [[Cellular_Automata|CA]]s and provides much more detail and variability in shape than is possible for a single large room, which can have only four sides. Regions in which neither is a factor, such as the C3 [[Crypt]], are usually composed of a single room.
  
If rooms in C1/C2 are improperly defined, it can result in [[Black Hole]]s forming.
+
If rooms in C1/C2 are improperly defined, it can result in [[Black Hole]]s forming.
  
A [https://web.archive.org/web/20050312122959/http://www.freewebs.com/alimaggs/creaturesdev/cdn/c3/knowledgebase/c3_errors.html common CAOS error] in Creatures 3 and Docking Station is "invalid map position", this is caused when an agent falls outside of room boundaries when they have their [[ATTR|attributes]] set to notice room boundaries.  Another common errors are "Failed to get room ID" and "Failed to get room property" which happens if an agent is picked up and held outside the room system.  In C3/DS, the [[wasteland glitch]], caused by [[geat]]s looking at each other, can cause room types to change to atmosphere.
+
A [https://web.archive.org/web/20050312122959/http://www.freewebs.com/alimaggs/creaturesdev/cdn/c3/knowledgebase/c3_errors.html common CAOS error] in Creatures 3 and Docking Station is "invalid map position"; this is caused when an agent falls outside of room boundaries when they have their [[ATTR|attributes]] set to notice room boundaries.  Another common errors are "Failed to get room ID" and "Failed to get room property" which happens if an agent is picked up and held outside the room system.  In C3/DS, the [[wasteland glitch]], caused by [[geat]]s looking at each other, can cause room types to change to atmosphere. DS appears to have a limit on how many rooms (around 2000) it can perform operations on, and after exceeding this limit, attempting to inject metarooms will fail due to errors; this limit is only likely to be reached in worlds where extremely large metarooms with many individual rooms, such as [[C12DS]] or [[C2toDS]], have been installed.
 +
 
 +
==C2 rooms==
 +
C2 only has four room types:
 +
*Indoors
 +
*Surface - ground-level rooms outdoors, which are heated by the sun
 +
*Underwater - physics works differently underwater
 +
*Atmosphere - outdoor rooms above ground level
 +
Each room can also have sources for [[Temperature|heat]], [[pressure]], [[light]], and [[radiation]], which affect the flow of [[cellular automata]] through the world.
  
 
==C3/DS room types==
 
==C3/DS room types==
Line 33: Line 42:
 
| 10|| Ettin Home || Loses the smell of machinery.
 
| 10|| Ettin Home || Loses the smell of machinery.
 
|}
 
|}
 +
Unlike in C2, cellular automata generation is not tied to rooms, but to agents.
  
 
==In CAOS==
 
==In CAOS==
Line 40: Line 50:
  
 
===Example===
 
===Example===
The fungi spore checking that it's not in water before it fruits:
+
The [[fungi]] spore checking that it's not in water before it fruits:
  
 
<pre>doif fall eq 0 and carr eq null
 
<pre>doif fall eq 0 and carr eq null
Line 51: Line 61:
 
*[[DMAP]]
 
*[[DMAP]]
 
*[[RTYP]]
 
*[[RTYP]]
 +
*[[GRID]]
  
 
{{stub}}
 
  
 
[[Category:Internals]]
 
[[Category:Internals]]
 
[[Category:C3 CAOS Commands]]
 
[[Category:C3 CAOS Commands]]

Revision as of 01:29, 16 April 2022

Rooms in the Jungle Terrarium, as shown in Map Editor.

Rooms and doors are the building blocks of metarooms and worlds. A room is a quadrilateral space usually taking the form of a rectangle with straight sides, although in C2 they may have floors of varying height and in C3/DS the top and bottom may be raised or lowered independently of one another.

Despite the name, areas that correspond to one visually contiguous space in the games after C1 - such as the incubator area in C2, the lower levels of the C3 Jungle Terrarium or the lower Norn Meso in DS - are normally composed of multiple rooms linked together. This allows for more natural flow of CAs and provides much more detail and variability in shape than is possible for a single large room, which can have only four sides. Regions in which neither is a factor, such as the C3 Crypt, are usually composed of a single room.

If rooms in C1/C2 are improperly defined, it can result in Black Holes forming.

A common CAOS error in Creatures 3 and Docking Station is "invalid map position"; this is caused when an agent falls outside of room boundaries when they have their attributes set to notice room boundaries. Another common errors are "Failed to get room ID" and "Failed to get room property" which happens if an agent is picked up and held outside the room system. In C3/DS, the wasteland glitch, caused by geats looking at each other, can cause room types to change to atmosphere. DS appears to have a limit on how many rooms (around 2000) it can perform operations on, and after exceeding this limit, attempting to inject metarooms will fail due to errors; this limit is only likely to be reached in worlds where extremely large metarooms with many individual rooms, such as C12DS or C2toDS, have been installed.

C2 rooms

C2 only has four room types:

  • Indoors
  • Surface - ground-level rooms outdoors, which are heated by the sun
  • Underwater - physics works differently underwater
  • Atmosphere - outdoor rooms above ground level

Each room can also have sources for heat, pressure, light, and radiation, which affect the flow of cellular automata through the world.

C3/DS room types

Number Name Description
0 Atmosphere Heat and light travel well, nutrients and water do not.
1 Wooden Walkway Insulates against heat, but permits water to drip through.
2 Concrete Walkway Less permeable to more CA than a wooden walkway.
3 Indoor Concrete
4 Outdoor Concrete
5 Normal Soil Fairly permeable to most CA.
6 Boggy Soil Retains more moisture than normal soil.
7 Drained Soil Loses more moisture than normal soil.
8 Fresh Water Restrictive to heat.
9 Salt Water Restrictive to heat.
10 Ettin Home Loses the smell of machinery.

Unlike in C2, cellular automata generation is not tied to rooms, but to agents.

In CAOS

ROOM (integer) agent (agent)

Returns the id of the room containing the midpoint of the specified agent.

Example

The fungi spore checking that it's not in water before it fruits:

doif fall eq 0 and carr eq null
		doif rtyp room targ eq 8 or rtyp room targ eq 9
			kill ownr
		endi

See also