Author Topic: please shot me ^^  (Read 5708 times)

Offline Welwordion

  • Bot Destroyer
  • ***
  • Posts: 325
    • View Profile
please shot me ^^
« on: May 10, 2006, 12:43:19 PM »
I worked 2 days on this bot damn and it still does not even behave the slightest like I wanted to (ok a little).
Well the main point is it does not move even the slightest bit forward and I have no idea why.
That always happens when itry to take some effort in the end it does not work and I feel like a goddamn looser [you]WAAAAAARRRRRRGGGGGHHHHHHH[/you]

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
please shot me ^^
« Reply #1 on: May 10, 2006, 01:20:15 PM »
Have you tried debugging it from the console by stepping through the sim one cycle at a time and looking at the value in each relevent memory location on each cycle?

Which genes are being activated on each cycle?

Are the conditions leading to a value being stored into up, actually being met?
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
please shot me ^^
« Reply #2 on: May 10, 2006, 01:32:22 PM »
I just tried your bot in Eric's new version 2.42.4

It appears to form a 2 bot MB which then spins insanely till one end or the other spots a veggie at which point it "wibbles" about ina rather strange fashion for a while until the smaller of the two bot dies and a new one is born.

After a little over 14,000 cycles I got an overflow. here is the zipped error.sim
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Welwordion

  • Bot Destroyer
  • ***
  • Posts: 325
    • View Profile
please shot me ^^
« Reply #3 on: May 10, 2006, 01:51:10 PM »
Well I yet could not control all things but at least I know that function works.
And yes, he is supposed to form a MB and the rotating is also what he is supposed to do, the wibbling is an unwanted effect probably some aiming genes are disturbing each other.
The small bot, the eye, will focus at the nearest bot, the big bot, the head, will ignore bots of his own kind while searching around. (note that I still did not built in any feeding genes, reproducing genes,waste genes etc)

When for a long time he spots no vegs he is supposed to go into swarming mode, here the head is supposed to face(move) into an direction messaged to him and the eye is supposed to read information from the other bots giving the head a vector in which he has to aim(move).

Offline Griz

  • Bot Overlord
  • ****
  • Posts: 608
    • View Profile
please shot me ^^
« Reply #4 on: May 10, 2006, 02:46:24 PM »
Quote from: PurpleYouko
I just tried your bot in Eric's new version 2.42.4
 here is the zipped error.sim

so 2.42.4 does write an error.sim???
mine didn't on my overflow error.
it should write it to the Saves folder, yes?
不知
~griz~
[/color]
   "The selection of Random Numbers is too important to be left to Chance"
The Mooj  a friend to all humanity
[/color]

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
please shot me ^^
« Reply #5 on: May 10, 2006, 02:56:28 PM »
GUI overflows might not create an error.sim.  (Because GUI errors aren't going to be caught in a simulation save).

Offline Griz

  • Bot Overlord
  • ****
  • Posts: 608
    • View Profile
please shot me ^^
« Reply #6 on: May 10, 2006, 08:09:51 PM »
Quote from: Numsgil
GUI overflows might not create an error.sim.  (Because GUI errors aren't going to be caught in a simulation save).
could be ... I don't know what it was.
so my question was, and STILL  is ...
does this compiled version save the error.sim ...
or is it commented out?
yes?
no?
anyone?
不知
~griz~
[/color]
   "The selection of Random Numbers is too important to be left to Chance"
The Mooj  a friend to all humanity
[/color]

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
please shot me ^^
« Reply #7 on: May 11, 2006, 08:40:48 AM »
I only ran the compiled version and it saved the error.sim just fine.

And yes it does go in the saves folder.

One small issue though is that it overwrites any previous error.sim rather than making error01.sim and error02.sim or something.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Griz

  • Bot Overlord
  • ****
  • Posts: 608
    • View Profile
please shot me ^^
« Reply #8 on: May 11, 2006, 09:28:20 AM »
yes. when I get one, I usually rename it right off.
ok ... good to know it will write ...
so whatever error I got I guess I will have to try to'
duplicate running it thru VB.
as I said elsewhere, I didn't get an error until I enabled
autosave to save 'best bot' every 5 min ...
it wrote two, and then crashed somewhere after that.
不知
~griz~
[/color]
   "The selection of Random Numbers is too important to be left to Chance"
The Mooj  a friend to all humanity
[/color]

Offline Welwordion

  • Bot Destroyer
  • ***
  • Posts: 325
    • View Profile
please shot me ^^
« Reply #9 on: May 12, 2006, 04:06:24 PM »
Ok I redesigned the concept and programmed it new(although I copied many genes) it works better but still has behavioral errors that I will try to eliminate.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
please shot me ^^
« Reply #10 on: May 12, 2006, 04:27:37 PM »
Programming complex bots is always a frustrating task when something doesn't work like it should.

I'm working on debugging controls in the C++ version now.  Any suggestions?

Offline Welwordion

  • Bot Destroyer
  • ***
  • Posts: 325
    • View Profile
please shot me ^^
« Reply #11 on: May 12, 2006, 06:10:29 PM »
Hmm looking at the stack like Yokos programm is supposed to do would be good, maybe it would also be good to highlight memory locations that are activated in a round ,exspecially showing the numbers of times its tried to be activated in the same cycle so you know when genes are interfering each other.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
please shot me ^^
« Reply #12 on: May 12, 2006, 06:18:30 PM »
I'll put it on the list