Author Topic: The Robot Plasment control , more code  (Read 2674 times)

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
The Robot Plasment control , more code
« on: February 21, 2005, 04:16:15 PM »
[you]"Ideas' Programming Status" does not talk about the code I gave Num for Robot Plasment[/you]; I have been thinking about the robot plassment itself for an oval Generating a random X and a random Y and then [you]making sure they are inside the oval not outside it [/you]is a difficult code to write.

Instead for the oval code you can generate a random "angel" and a number between 0 - 1 for the distance (lets call this n) , after the (sin, cos) from the angle is gatherd multiply sin * n * abs(x1 - x2) and cos* n * abs(y1 - y2)

 B)

That should give you locations to place robots themselfs
« Last Edit: February 21, 2005, 04:18:25 PM by Botsareus »

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7713
    • View Profile
The Robot Plasment control , more code
« Reply #1 on: February 21, 2005, 06:14:04 PM »
Yeah, I forgot to add it to the Ideas status, I"ll do that now.  It's hard to remember ones that don't have their own topic, ya know?

I almost started it several times, but then found a bug that needed to be worked out first.  You should see it by the next public release.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
The Robot Plasment control , more code
« Reply #2 on: February 21, 2005, 06:18:12 PM »
ok thanks , btw from now on I start my own topic

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
The Robot Plasment control , more code
« Reply #3 on: March 29, 2005, 04:54:09 PM »
Here it is , the actual plasment part of the oval part of my robot plasment control.

Num , download Now.....

Currently it plases a lot of dots instead of robots , but you get the idea....

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7713
    • View Profile
The Robot Plasment control , more code
« Reply #4 on: March 29, 2005, 05:05:17 PM »
Good stuff.  Are you going to try to add it to the actual options.frm?  The more work you can do yourself the easier it is for me and PY to include it.  My own coding process is at a huge slump, I don't think I've added anything in over a week.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
The Robot Plasment control , more code
« Reply #5 on: March 29, 2005, 05:12:14 PM »
( I dont know were the other part of the code I sent you is [you]1[/you])

([you]2[/you] , The robots themselfs are part of another code incoded deep inside the system, so is the settings file code, thats why I am not messing with the chart codes at all..)

3. I hope you have not lost the other part of the code , is it someware in suggestions?
« Last Edit: March 29, 2005, 05:12:56 PM by Botsareus »

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
The Robot Plasment control , more code
« Reply #6 on: March 29, 2005, 05:14:15 PM »
I am having a really bad feeling its on the old board someware, not sure...
« Last Edit: March 29, 2005, 05:39:46 PM by Botsareus »

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
The Robot Plasment control , more code
« Reply #7 on: March 29, 2005, 05:29:17 PM »
I cant find the other code , Num you have it?

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7713
    • View Profile
The Robot Plasment control , more code
« Reply #8 on: March 29, 2005, 05:30:13 PM »
Here it is..

Post #11.  I'd link to post #11 directly, but I'm not sure how to do it on the old board.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
The Robot Plasment control , more code
« Reply #9 on: March 29, 2005, 05:36:49 PM »
I beat I was not feeling to well when I wrote that one , Ill post a better virsion of that in a sec.
« Last Edit: March 29, 2005, 06:04:03 PM by Botsareus »

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
The Robot Plasment control , more code
« Reply #10 on: March 29, 2005, 07:42:05 PM »
[you]Here, this is a more complete virsion of the first code[/you], All you need to do now is put the first code , the other code posted in this tread, and DarwinBots Together.

***
Num , I know you want me to actualy start adding things myself to the DB source code , but I am worring about other things right now , And the hard parts of the DB source code are not that simple; Maybe someday I will learn it though, someday.
« Last Edit: March 29, 2005, 07:44:20 PM by Botsareus »