Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Alife - Artificial Life Simulation  (Read 6511 times)

0 Members and 1 Guest are viewing this topic.

lolz123

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
Alife - Artificial Life Simulation
« on: December 31, 2013, 06:59:20 am »
Hello,

I made an artificial life simulation just for fun and I thought I should share it. It is still nowhere near done (I only worked on it for 3 days so far  :P), and still quite buggy, but it is already possible to witness some interesting patterns!  :)

So far I have seen simple gathering, competing for food, predators, baby-eating (nerfed), timed grazing intervals (a swarm of creatures moving on a clock), upgrading agility to eat before the rest of the swarm arrives, and lots of dying.

I aim to make one of the most complex artificial life simulations ever (big ambitions I know, I can dream :)) ).

Here is how it works so far:

Each creature gets a fixed number of points. These points can be allotted to 15 different attributes:

  • Health
  • Armor
  • Main Damage
  • Piercing Damage
  • Speed
  • Agility
  • Energy Consumption
  • Starting Energy
  • Reproduction Rate
  • Reproduction Energy Loss
  • Range
  • Healing
  • Max Life Span
  • Size
  • Attack Rate

The way these points are allotted is evolved over time. Creatures can reproduce either with binary fission or with sex. A creature can lay down pheromones to help remember where things are (stigmergy). Creatures can evolve which pheromone type they lay down as well.

Each creature is controlled by 2 neural networks: A dopamine distributing network that defines the reward that the second actor network receives. The former is evolved, and the later both learns in its lifetime through hedonistic synapse modification and evolution (knowledge is not lost). As inputs, the neural network receives the creature's velocity, the grid around it, the nearest N creatures with information about them (direction, health, size, similarity), and the nearest food source. The creatures then decide how to move, attack, mate, and eat.

For the AI, I used my NNBrain library: http://en.sfml-dev.org/forums/index.php?topic=13449.0

Creatures can evolve to become either carnivores or herbivores. There are no omnivores at the moment.

Right now, there are major balancing issues in the stats. I also want to add construction (block placement), omnivores, and more complex fighting, among other things.

Here is the download link: https://sourceforge.net/projects/alifennplasticity/?source=navbar

Be warned though, it is incredibly processing intensive! I get only like 20 fps on my rig. The reason is that there are simply too many creatures (and I need to add a spatial tree).

There are typically around 1000 creatures at once if I had to guess.

It's not exactly visually stunning, but here is an image of it (each colored square is a creature):

Have you heard about the new Cray super computer?  It’s so fast, it executes an infinite loop in 6 seconds.

Barlog

  • Guest
Re: Alife - Artificial Life Simulation
« Reply #1 on: January 01, 2014, 07:14:05 pm »
Looks very promising. Keep going!

BaneTrapper

  • Full Member
  • ***
  • Posts: 213
  • Do you even see this, i dont need it.
    • View Profile
    • Email
Re: Alife - Artificial Life Simulation
« Reply #2 on: January 02, 2014, 09:38:59 pm »
I tried running to see it for my self, the executable is non compatible with win7 32bit.
Any help? (trying to start as vista, and server 2008 i had from drop menu didn't help)
BaneTrapperDev@hotmail.com Programing, Coding
Projects: Not in development(unfinished/playable):
http://en.sfml-dev.org/forums/index.php?topic=11073.msg76266#msg76266
UP and in Development: The Wanderer - Lost in time
http://en.sfml-dev.org/forums/index.php?topic=14563.0

lolz123

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
Re: Alife - Artificial Life Simulation
« Reply #3 on: January 02, 2014, 10:06:04 pm »
@BaneTrapper: It is indeed a 64 bit application, and is made in VS2013 (so it needs the redistributable for that). I can recompile it in 32 bit though. I'll let you know when it becomes available.

Depending on how interested you are, you can also compile it from source. Then you can mod it as well  ;)

On a different note, here is an image of the latest version. The textures do NOT belong to me. They will be linked when I release the next version.
I added lava pits as well as mouse controls (drag and zoom in on mouse position).

Will upload it to SourceForge soon.




Have you heard about the new Cray super computer?  It’s so fast, it executes an infinite loop in 6 seconds.

BaneTrapper

  • Full Member
  • ***
  • Posts: 213
  • Do you even see this, i dont need it.
    • View Profile
    • Email
Re: Alife - Artificial Life Simulation
« Reply #4 on: January 04, 2014, 12:42:04 am »
Id compile for 32, but i need to make the whole project i don't have day to spare :P.
I am really interested to see what did you make in action.
BaneTrapperDev@hotmail.com Programing, Coding
Projects: Not in development(unfinished/playable):
http://en.sfml-dev.org/forums/index.php?topic=11073.msg76266#msg76266
UP and in Development: The Wanderer - Lost in time
http://en.sfml-dev.org/forums/index.php?topic=14563.0

sknnywhiteman

  • Newbie
  • *
  • Posts: 38
    • View Profile
    • Email
Re: Alife - Artificial Life Simulation
« Reply #5 on: January 06, 2014, 04:41:08 am »
for future reference, make sure you either post where we can find dependencies, or include them in the download file. It's a real turn-off when you find out you need to go out of your way to play something.

BaneTrapper

  • Full Member
  • ***
  • Posts: 213
  • Do you even see this, i dont need it.
    • View Profile
    • Email
Re: Alife - Artificial Life Simulation
« Reply #6 on: January 06, 2014, 04:30:01 pm »
Will upload it to SourceForge soon.
Did i miss the link or is it still not posted?
BaneTrapperDev@hotmail.com Programing, Coding
Projects: Not in development(unfinished/playable):
http://en.sfml-dev.org/forums/index.php?topic=11073.msg76266#msg76266
UP and in Development: The Wanderer - Lost in time
http://en.sfml-dev.org/forums/index.php?topic=14563.0

 

anything