Difference between revisions of "Botsareus's Vision"

From WikiManual
Jump to: navigation, search
Line 22: Line 22:
 
'''''Step1:''''' Controlrunsim.exe
 
'''''Step1:''''' Controlrunsim.exe
 
''A)'' The program deletes tfb.txt robot file.
 
''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)
 
''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)
 
''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)
 
''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.  
 
''E)'' The new simulation icon is clicked.  
 +
 
''F)'' The generate mfb vs. bfb button 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.
 
''G)'' Mfb is selected, mutation rates is clicked, ‘load mutation rates from file’ is clicked. Ok is clicked.
''H)'' Start new 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.  
 
''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.  
 
 
Line 35: Line 43:
 
'''''Step2A:''''' Controlrobosave.exe (you may need to set the path)
 
'''''Step2A:''''' Controlrobosave.exe (you may need to set the path)
 
''A)'' PLEASE MAKE SURE THE DARWINBOTS PROGRAM IS THE 6TH ICON ON YOUR WINDOWS7 COMPUTER. 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.  
 
''A)'' PLEASE MAKE SURE THE DARWINBOTS PROGRAM IS THE 6TH ICON ON YOUR WINDOWS7 COMPUTER. 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,  
 
''B)'' The macro clicks findbest,  
 +
 
''C)'' It clicks and holds the zoom button until the selected robots center is across the whole screen.
 
''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.
 
''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.  
 
''E)'' It clicks display dna forcing the dna data to be sent to clipboard.  
 +
 
''F)'' It closes the robot info window.
 
''F)'' It closes the robot info window.
 +
 
''G)'' It opens the robots mutation rates and clicks "save to file".
 
''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)  
 
''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.
 
''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)
 
'''''Step2B:''''' Controllost.exe (you may need to set the path)
 +
 
''A)'' Controllost exits out of darwinbots and visual basic clicking appropriate messages and buttons
 
''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 .
 
''B)'' calls on controlupdatelost (see source code in the controllers folder) and then goes back to step1 .
 
 

Revision as of 13:17, 23 November 2011

YOU MUST HAVE SVN AND VB6 TO SEE MY WORK Although all individual components work I need to figure out a better way to tie them. I also need to figure out how to use only one instance of the program, also it must be running compiled. So, I am posting everything "as is."

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: 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) PLEASE MAKE SURE THE DARWINBOTS PROGRAM IS THE 6TH ICON ON YOUR WINDOWS7 COMPUTER. 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 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.