Follow TV Tropes
Hi! I want to work on creating a habitat simulation program, featuring multiple animals trying to survive and produce offspring. So far I've only gotten a very basic list of things I want to do, and an even smaller list of things written down. My plan is to update the list until I have a basic system of elements to start working on, and then work on creating the actual program itself. As I go, I hope to make improvements and add complexity to the sim. If it works out well, I want to use it as a base for a game.
First bit of code can be found here. I'll be moving it to Github once I have something more substantial.
Planning updates: (.txt/.doc)2/16/11: Finished region generation, elaborated on planning and added an in-file changelog 2/14/11: Started planning, finished very basic descriptors of world and starting animals
edited 16th Feb '11 11:37:02 PM by Funnyguts
Save it as something other than a .txt file. Otherwise, it'll automatically open in Notepad for Windows users, which looks really awkward and :/
Okay. I was using Emacs to type it out, although I've forgotten most of the Emacs commands so I might as well have used Gedit. I figured a .txt would be easy for everyone to read regardless of OS.
Edit: Since I was going to save and upload each update as a separate file, I can just edit the text in Emacs and then open it in Libre Office, and save it as a new file each time.
edited 14th Feb '11 4:14:07 AM by Funnyguts
For people other than Windows users it would. It just auto-opens .txt files in Notepad.
Not that much of a hassle, it'll just stop casual readers from browsing it.
First thing I noticed-
a. 100 tiles per region
Could you explain this?
Yeah. (Don't worry if you feel like you need me to explain everything, I was just writing very basic notes. I'll do my best to expand on them in the planning files, and explain more in this thread.)
The habitat is made up of twenty-five regions, in a 5 by 5 square. Animals can move from one region to any other adjacent region. For example, if this is the square:
12345 67890 abcde fghij klmno
and an animal is in region C, it can move to regions 8, b, d, and h. (Possibly the diagonal ones too.)
Tiles represent the resources available in each region. A tile can have only one resource (water, grass, shrub, tree, or dirt) on it. Each region has 100 of these resource tiles. I'm describing them as tiles as if you were looking at a 2D overhead game like your standard RPG overworld, although I don't think I'll have graphics anytime soon.
Does that make more sense?
Yes, it does. Overall, there would be 2500 resource tiles.
What if you're going for a lake-based environment, or something? Somewhere with a lot more than 60% water?
I haven't gotten that far yet. I want to create multiple places to simulate, but right now I'm working on a forest. Ideally I'd prefer to have a worldgen system that was less random than 'x amount of water goes here' and instead creates a world using actual rules of geography. That will be a while from now though.
I noticed you had monkeys and bears together... -_-
It's a magical forest where monkeys and bears live together. The bears enjoy the monkeys' flattery, but the monkeys only do it to make the bears do what they want.
Edit: I can change it to something else if you want it to make more sense.
edited 14th Feb '11 4:48:19 AM by Funnyguts
It's okay, just, if you're going for realism, maybe you should look up what animals live in which regions and why?
I know, I need to do research on a lot of things as you may have noticed. :P
If you ask, I'm willing to help.
Any help you'd like to give will be much appreciated. That goes for anyone else who reads this thread and wants to help.
Two links first off:
Those are useful, thanks. I could try making all those animals. I'm going to hold off on unique plants for now, but I hope to add those soon.
If you want, I can look up each of the animals for you, so you can get an idea of the traits for each?
Sure. I'll look up the traits for the animals I already listed.
Huh. I knew the two-second memory span of goldfish wasn't true, but I wasn't expecting them to be as smart as Wikipedia claims they are.
This owl has a length of 43 cm (17 inches), a wingspan of 114 cm (45 inches), and a weight of around 600 g (21 ounces). Its eggs are a little over 2 inches (50 millimeters) long, and are white and smooth with a slightly grainy texture. The female sits on the eggs and cares for the young, while the male provides food for them. Juvenile Spotted Owls have an average survival rate of 11%, with an average birth rate of .58 owls per pair.
Spotted owls occur at a range of elevations, with higher elevations occupied at lower latitudes. Northern spotted owls occur at elevations from 70 to 6,600 feet (20–2,010 m), with the majority in the lower portions of this range . In coniferous forests of northwestern California, nest sites ranged from 118 to 4,944 feet (35-1,507 m), with 94% occurring below 4,000 feet (1,218 m) . In mixed evergreen and mixed-conifer forests of northwestern California, roosting northern spotted owls avoided areas above 2,950 feet (900 m) . In coniferous forests of the Klamath, Coast and Cascade regions in Oregon and the Olympic peninsula of Washington, nest locations were significantly lower (P<0.001) in elevation than random sites within northern spotted owl's home ranges . In coniferous forests of southwestern Washington, important owl locations (e.g., nest sites, multiple detection sites) averaged 3,170 feet (966.2 m), which was significantly (P<0.001) lower than the 3,510-foot (1,070.3 m) average elevation at random sites . In coniferous forests of the eastern Cascade Range of Washington, elevation of northern spotted owl nest sites was negatively associated with latitude (P<0.001) , and site occupancy and reproductive rates were inversely associated with elevation .
Several studies indicate that tree cavities are most commonly used for nesting by spotted owls, while the extent of platform use varies. In coniferous forests in Oregon, 60% to 93% of nests were in trees with broken tops. Additionally, broken-topped trees (>21 inches (53.3 cm) DBH with 1 or more secondary crowns) had significantly (P<0.001) higher basal area and density in small plots on and around nest sites than in random plots within spotted owls' home ranges . Platform use may be more common in areas that lack large, old trees and snags and have a greater abundance of witches' brooms. Compared to other habitats within their range, northern spotted owls use platforms more often in mixed-evergreen and mixed-conifer forests . California spotted owls in southern California use platforms more frequently than those in the Sierra Nevada . Platform use also occurred more frequently in oaks than in conifers in the southern Sierra Nevada . The average DBH of California spotted owl platform nest trees was significantly (P<0.01) smaller than that of cavity nest trees in foothill riparian and oak woodlands in the southern Sierra Nevada . In grand fir-dominated stands in eastern Washington, northern spotted owls nested in witches' brooms on trees as small as 12 inches (30 cm) DBH . Mexican spotted owls use cliffs and comparatively open areas as nest sites more frequently than the other subspecies . Fletcher and Hollis (1994, as cited by ) found 9.7% of 248 Mexican spotted owl nests in cliffs, while Steger and others  noted only 1 out of 41 California spotted owl nests in a rock cliff in the southern Sierra Nevada.
Spotted owls typically nest in old trees in mature and old-growth forests. Sixty-five percent of northern spotted owl nests sites in coniferous forests of Oregon were in trees greater than 120 years old . On 2 sites in the Coast and Cascade Ranges in western Oregon, 90% of nest sites were in unmanaged old-growth forests, 4% were in mature forests, and 6% were in late-successional forests (70–80 years) with 5 or fewer residual old-growth trees per hectare . In low- to mid-elevation coniferous forests of northwestern California, the minimum nest tree age averaged 288 years, with a range of 57 to 688 years . In coniferous forests in the Cascade Range of southwestern Washington, northern spotted owl site centers, such as the nest tree or locations of fledged young, did not occur in stands less than 49 years old, and 31% were in stands greater than 180 years old . Most species of nest trees used by nesting California spotted owls in oak woodland and coniferous forests of the southern Sierra Nevada averaged more than 227 years of age .
Responses from a blind goldfish proved that it recognized one particular family member and a friend by voice, or vibration of sound. This behavior was remarkable because it showed that the fish recognized the vocal vibration or sound of two people specifically out of seven in the house.
Goldfish are gregarious, displaying schooling behavior, as well as displaying the same types of feeding behaviors. Goldfish may display similar behaviors when responding to their reflections in a mirror.
Goldfish that have constant visual contact with humans also stop considering them to be a threat. After being kept in a tank for several weeks, sometimes months, it becomes possible to feed a goldfish by hand without it shying away.
Goldfish have learned behaviors, both as groups and as individuals, that stem from native carp behavior. They are a generalist species with varied feeding, breeding, and predator avoidance behaviors that contribute to their success. As fish they can be described as "friendly" towards each other. Very rarely does a goldfish harm another goldfish, nor do the males harm the females during breeding. The only real threat that goldfish present to each other is competing for food. Commons, comets, and other faster varieties can easily eat all the food during a feeding before fancy varieties can reach it. This can lead to stunted growth or possible starvation of fancier varieties when they are kept in a pond with their single-tailed brethren. As a result, care should be taken to combine only breeds with similar body type and swim characteristics.
Vision that is seen in the goldfish may not seem important to many people, but it is actually quite fascinating in that it is much more developed than most people would expect it to be for the size and apparent intelligence of the creature. Overall, goldfish have developed full-spectrum vision so that they will be able to see the micro-flashes of static electrical charge and bio-luminescence that appear when a creature hunting with sonar sends sound waves through waters rich in micro-fauna in order to search for its prey. This full-spectrum vision has also proved to be very effective in sensing many and various tell-tale signs that come from the bow-wave that a rapidly moving predator makes as it cuts through the water.
edited 14th Feb '11 6:19:35 AM by Funnyguts
edited 14th Feb '11 6:03:31 AM by Funnyguts
Most of the first half is relevant.
This site may be useful for some trivia.
oooh, nice find :3
Community Showcase More
How well does it match the trope?