Author Topic: Multibot orientation  (Read 4240 times)

Offline abyaly

  • Bot Destroyer
  • ***
  • Posts: 363
    • View Profile
Multibot orientation
« on: May 19, 2006, 12:02:33 PM »
I've noticed that when a bot is part of a multibot, the directions that .up .dn .sx and .dx accelerate are different from what they usually are. How is this orientation decided and how can I alter it?
« Last Edit: May 19, 2006, 12:03:14 PM by abyaly »
Lancre operated on the feudal system, which was to say, everyone feuded all
the time and handed on the fight to their descendants.
        -- (Terry Pratchett, Carpe Jugulum)

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Multibot orientation
« Reply #1 on: May 19, 2006, 12:46:57 PM »
I'm not aware of this behavior.  In what ways are they different?

Offline abyaly

  • Bot Destroyer
  • ***
  • Posts: 363
    • View Profile
Multibot orientation
« Reply #2 on: May 20, 2006, 10:53:29 AM »
Quote from: Numsgil
I'm not aware of this behavior.  In what ways are they different?
I have a twobot where both bots face away from each other. It contains the following gene:
Where *.tmemloc is .eye5
Code: [Select]
cond
*.eye5 0 >
*.eye5 30 <
*.eye5 *.tmemval >
*.refeye *.myeye !=
*.tieval 0 =
*.mult_i 1 =
start
*.refvelup 10 add 10 ceil .up store
.dn .tieloc store
*.up -1 mult .tieval store
stop
So it looks like this should prevent the bot from going anywhere, since the bot's .up is directly opposed by his partner's .dn
But instead, what happens is that when the younger bot in the pair sees food, the MB moves toward it, but if the older bot in the pair sees food, the MB moves away from it. Do you know why this is happening?  
Lancre operated on the feudal system, which was to say, everyone feuded all
the time and handed on the fight to their descendants.
        -- (Terry Pratchett, Carpe Jugulum)

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Multibot orientation
« Reply #3 on: May 20, 2006, 11:15:53 AM »
Any chance you could post a sim?
Many beers....

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Multibot orientation
« Reply #4 on: May 20, 2006, 11:22:16 AM »
Are the bots different masses?  Maybe it has to do with inertia some how.  Try getting the bots to be the same mass and see if that makes a difference.

Offline abyaly

  • Bot Destroyer
  • ***
  • Posts: 363
    • View Profile
Multibot orientation
« Reply #5 on: May 20, 2006, 11:31:11 AM »
Quote from: Numsgil
Are the bots different masses?  Maybe it has to do with inertia some how.  Try getting the bots to be the same mass and see if that makes a difference.
Does something aside from body, energy or shell have an effect on mass?


*edit - one sec. playing with masses

This behavior seems to continue with matching masses. im going to post a sim in a moment




This is very strange. Before I saved the sim, it continued, but when I loaded it again it stopped Oo
How often does it update mass?
« Last Edit: May 20, 2006, 11:53:17 AM by abyaly »
Lancre operated on the feudal system, which was to say, everyone feuded all
the time and handed on the fight to their descendants.
        -- (Terry Pratchett, Carpe Jugulum)

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Multibot orientation
« Reply #6 on: May 20, 2006, 12:57:10 PM »
Mass should be updated every time a bots mass changes and the simulation needs to new mass.  In practice this might just be once a cycle, I'm not sure.