Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsShowcase → My first attempt at recreating basic AI...
My first attempt at recreating basic AI...
2004-08-22, 2:44 PM #1
Red balls are "Predators", and the green balls are "Prey".

The predators have a life span of 5000 steps, and the prey have 12 health points. The predators and prey both move around randomly at various speeds. When a predator touchs a prey and vise-versa, the prey loses 1 health point and the predator gains 1 stomach point. When the prey's health points reach 0, it dies. When the predator reachs its max life span (5000 steps) it dies also.

I'm looking for some suggestions on what other things I can add, fix, or change. This is only a basic test, many more "interactions" will be added soon.

Download here, and rename extention to exe (crappy host).

EDIT: Updated the file to fix a error that would stop the "simulation".

------------------
[="Rememeber that history isn't how the corporate controlled media made it look like. Read between the lines and free your mind. Evolution is the birth of equality and the anti-thesis to opression." - Immortal Technique=]

Massassian since: March 12, 2001

[This message has been edited by Sol (edited August 22, 2004).]

[This message has been edited by Sol (edited August 22, 2004).]
Got a permanent feather in my cap;
Got a stretch to my stride;
a stroll to my step;
2004-08-22, 2:45 PM #2
i havent used it yet, but I suggest some defense mechanism for the prey

------------------
mir·ow ( V ) Pronunciation Key (meer-oh)
Someone or something that possesses unfathomable awesomeness
2004-08-22, 2:48 PM #3
Quote:
<font face="Verdana, Arial" size="2">Originally posted by Overlord:
i havent used it yet, but I suggest some defense mechanism for the prey

</font>


It does, when the prey touches a predator, it will run in a random direction, as does the predator. (Predators will eventually try to follow prey.)



------------------
[="Rememeber that history isn't how the corporate controlled media made it look like. Read between the lines and free your mind. Evolution is the birth of equality and the anti-thesis to opression." - Immortal Technique=]

Massassian since: March 12, 2001
Got a permanent feather in my cap;
Got a stretch to my stride;
a stroll to my step;
2004-08-22, 2:57 PM #4
I see
I noticed your using gamemaker, it seems to be giving me errors. I dont think a variable is set up right.

------------------
mir·ow ( V ) Pronunciation Key (meer-oh)
Someone or something that possesses unfathomable awesomeness
2004-08-22, 3:04 PM #5
Quote:
<font face="Verdana, Arial" size="2">Originally posted by Overlord:
I see
I noticed your using gamemaker, it seems to be giving me errors. I dont think a variable is set up right.

</font>


Yeah, I fixed that. Didn't notice tha I removed the "Prey_Stomach" variable.



------------------
[="Rememeber that history isn't how the corporate controlled media made it look like. Read between the lines and free your mind. Evolution is the birth of equality and the anti-thesis to opression." - Immortal Technique=]

Massassian since: March 12, 2001
Got a permanent feather in my cap;
Got a stretch to my stride;
a stroll to my step;
2004-08-22, 3:22 PM #6
I havent downloaded the new version, but having predators working in groups could be cool.


------------------
mir·ow ( V ) Pronunciation Key (meer-oh)
Someone or something that possesses unfathomable awesomeness
2004-08-22, 3:28 PM #7
I did something very similar to this just recently for a science-fair, except it was programmed in Visual Basic. Prey had a life span, Predators had a life span, and there was a water source in the area. Prey would go to water when they needed it, and move randomly otherwise, while Predators would hunt Prey when they needed food, or when the prey wandered into the Predator's area. Sometimes Predators would seek tall grass and stalk Prey, as well. If a Prey animal doesn't get its needed amount of water each month, either because the water level that month was unusually low because of a drought, or because Predators were gaurding the water and chasing them away, it dies. If a Predator doesn't get it's needed amount of food each month, because the other Predators were killing off all the prey, because the Prey were dying out due to lack of water, or because the Prey were successfully evading the Predator's hunting efforts, then it dies. Birth rates were also included, the more Prey there were in a given month, the more there would be the next month, so the birth rate was dependant on the population. Same for the predators. In the end, this lead to very realistic fluctuating population levels.

Sorry for writing up my program outline here, but your idea was very, very identical to mine. I couldn't resist. I hope it gave you some ideas, though. [http://forums.massassi.net/html/smile.gif]
2004-08-22, 3:43 PM #8
Omicron wins.

------------------
"I'd rather be hated for who I am rather than loved for who I pretend to be." -Janis Joplin
2004-08-22, 6:50 PM #9
Very cool. interesting to watch too!

------------------
*
[01:52] <~Nikumubeki> Because it's MBEGGAR BEGS LIKE A BEGONI.
2004-08-23, 8:04 AM #10
Throw in some more actors. And give the prey something to do. You could also update the predators' life spans when they touch a prey, so that succesful predators will survive and the rest will starve to death.

------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)

↑ Up to the top!