Code center > Darwinbots Program Source Code

I need some help

(1/2) > >>

Botsareus:
I resolved the first issue myself  
I am running Darwinsource2.43 source code, the newest available...

Is there a point to (or optional need to have):


a.) Decimal or floating point mean (not whole number)

b.) Decimal or floating point standard deviation (not whole number)

c.) Below one or even negative mean

d.) Below one or even negative standard deviation

Thanks for your help

Moonfisher:
I find the source confusing too
I think the mutations settings in a bot are called Mutables.
And I think HDRoutines contains some load functions that should load these settings when loading a sim.
So I would probably take it from there and search for Mutables and such, find out where they load the Mutables in HDRoutines and then track them to see where they get transfered to the GUI.
I think the mutables are initialy fetched from SimOpts wich gets it's value from the gui..
But it can be realy hard to track anything in the code because of the huge amount of global objects that can be accessed from any function in any class.
The Master module contains a function for updating the sim, so if some function just leaves you hanging check to see wich chain of events is triggered next.
Kinda long tedious work... reason why I didn't just find it myself

Botsareus:
Ok, values between 1 and 3000 for both mean and standard deviation works without issues , so that's what I will keep.

Next Project (Numsgil should know this):
This a lot of information at once so be ready:

I am trying to stop robots from two different file names but which carry the same exact DNA
from identifying each other as friendly. To do this I need to know three things:

1.) Where can I find the codes for sysvars like .refeye or .tin etc.

2.) Is it possible to get the file names of robots from inside the codes that was asked in question 1 above? If so, what code should I add?

3.) How does memval work: Does it read the memory values constantly or only on eye5 initial contact? (and where can I find the code) Is there something like a tmemval (and where can I find the code) .

I also need code to give me a warning when the population of one of the "robot files" reaches 0...


Thank You, your help is greatly appropriated.

P.S.
Hopefully it works out as planned.

Shasta:
While they wouldn't have the exact same DNA, a much easier way to do this would be to just use an .in .out pair for recognition if *.refeye *.myeye =
You would just need a recognition system something like this:

--- Code: ---*.refeye *.myeye !=
  'Deal with enemy
*.refeye *.myeye =
*.in1 *.out1 != and
  'Deal with bot that is the same as me, but looks funny
*.refeye *.myeye =
*.in1 *.out1 = and
  'Deal friendly
--- End code ---

Memloc and Memval on the wiki has example code for those two, tmemval and loc work nearly the same, but require the tie number you want to read from in .tienum

Numsgil:
As shasta points out, there are better, DNA driven ways to figure out how to differentiate between bots.  If nothing else, the league rounds code contains some fudge to modify the number of eyes of a bot if it has the same number as its challenger.

Navigation

[0] Message Index

[#] Next page

Go to full version