Botsareus's Vision

From WikiManual
Jump to: navigation, search

The purpose of this system is to evolve robots for formula 1 mode.

New for 2014:

My next (non beta) drop will have this whole system simplified and internalized, vb6 no longer required. Also, F1 modes will be redesigned. You will actually be able to quit a tournament and return to it later.

New:

I am in the process of changing my system to support a zerobot!

YOU MUST HAVE VB6 TO SEE MY WORK, GO TO: my post You find it on the second page of the thread. It is posted in three parts, you must extract everything to the desktop.

Here is a list of things worth mentioning that I added to my system:

  • My new evolution system
  • The usage of controllers
  • Dragging an entire organism at once (use caterpillar, click and drag, then click again and drag)
  • A system that saves graph info. You must have a DarwinBotsII\GraphSaves folder to see how this works.
  • And finally, the new robot skin system (although it is not fully integrated)


Please view the "viewme.jpg" file first. If the settings match the setting described in the picture you are good to go, just run "controlrunsim.exe" (note do not run controlrunsim.exe from the folder. Run it from the start menu.)

If you cannot or do not have a way to setup your OS settings to match the "viewme" file picture please read further:

Design:

The system consists of two versions of darwinbots tied together with ‘macros.’ By macro, I mean a program that emulates mouse clicks. You may need to reprogram the macros to reflect your Operating System, and System settings. Below is a description of how the system works.

Description:

note: YOU MAY HAVE TO CHANGE SOME CODE, ALL HINTS ARE IN CAPS

Step1: Controlrunsim.exe

A) The program deletes tfb.txt robot file.

B) This program starts visual basic "C:\Program Files (x86)\Microsoft Visual Studio\VB98\VB6.EXE" (YOUR PATH MAY BE DIFFERENT) passing the command line "C:\Users\Owner\Desktop\window7nd dbvb\DarwinBotsII\Iersera.vbp" (YOUR PATH MAY BE DIFFERENT)

C) It clicks the blue run arrow. (IF YOU MODIFIED THE TOOLBARS THE LOCATION OF THE BLUE ARROW MAY BE DIFFERENT)

D) it clicks ok and then no on the message boxes that pop up (SINCE THE MSGBOXS AND THE SETTINGS FROM POP UP CENTER SCREEN WHICH DIFFERS BASED ON RESOLUTION, MAKE SURE THE MOUSE POSITIONS ARE CORRECT)

E) The new simulation icon is clicked.

F) The generate mfb vs. bfb button is clicked

G) Mfb is selected, mutation rates is clicked, ‘load mutation rates from file’ is clicked. Ok is clicked.

H) Start new is clicked.

I) The disable video icon is clicked (Note that when disable video is clicked the populations chart and the mutations chart are auto displayed. YOU MAY NEED TO GO INTO GRAFICO>FORM_ACTIVATE TO REPOSITION THE CHARTS ACCORDING TO YOUR RESOLUTION, THEY ARE THE LAST LINES IN THE PROCEDURE. But DO NOT place the chart over the center of the simulation, controlrobosave.exe uses the center of the simulation area to save a robot after it zoomed-in on it.

When window7nd dbvb is running the deterministic actions happen in robots.bas just search robots.bas for "log.txt" YOU MUST CHANGE THE "LOG.TXT" FILE PATH TO YOUR DESKTOP. Three things can happen here Step2A, Step2B and Step2C.

Step2A: Controlrobosave.exe (YOU MAY NEED TO SET THE PATH)

A) The first thing control robo save does is makes sure the darwinbots window is selected. It does this by front clicking the icon on the taskbar and clicking the darwinbots window. If you have an older version of windows you must back click on the program( taskbar) then front click next to the menu that pops up.

B) The macro clicks findbest,

C) It clicks and holds the zoom button until the selected robots center is across the whole screen.

D) It then double clicks the selected robot at the center of the simulation screen.

E) It clicks display dna forcing the dna data to be sent to clipboard.

F) It closes the robot info window.

G) It opens the robots mutation rates and clicks "save to file".

H) Then the macro exits out of darwinbtos and visual basic clicking appropriate messages and buttons (YOU MAY NEED TO REPOSITION THIS CLICKS ACCORDING TO YOUR SCREEN RESOLUTION)

I) Then after some background work (see source code in the controllers folder) it calls on Step 3.

Step2B: Controllost.exe (YOU MAY NEED TO SET THE PATH)

A) Controllost exits out of darwinbots and visual basic clicking appropriate messages and buttons

B) calls on controlupdatelost (see source code in the controllers folder) and then goes back to step1 .

Step2C: ControllostB.exe (YOU MAY NEED TO SET THE PATH)

ControllostB works like controllost except that it calls on controlupdatewonnoevo (see source code in the controllers folder) instead of controlupdatelost

Step3: Controlruntest.exe (YOU MAY NEED TO SET THE PATH)

Control run test works like control run sim except that it opens the F1 version of the program. You may need to reset the settings file. Go to C:\Users\Owner\Desktop\Darwinsource2.44.1\settings (YOUR PATH MAY BE DIFFERENT) delete lastexit.set Rerun the program and add the following three robots. (YOUR PATHS MAY BE DIFFERENT) C:\Users\Owner\Desktop\window7nd dbvb\DarwinBotsII\Robots\main evo\bfb.txt C:\Users\Owner\Desktop\window7nd dbvb\DarwinBotsII\Robots\main evo\tfb.txt C:\Users\Owner\Desktop\window7nd dbvb\DarwinBotsII\Robots\Alga_Minimalis.txt

Also once again YOU MAY NEED TO MAKE SEVERAL CLICK MODIFICATIONS FOR THE PROGRAM TO OPEN CORRECTLY However, there are less extra messages that pop up because I allowed it to open settings from file. When Darwinsource2.44.1 dbvb is running the deterministic actions happen in Globals.bas last two procedures. PLEASE RESET THE FILE PATHS AGAIN AS NECESSARY. Controltestdone.exe closes Darwinsource2.44.1 and calls on step1.