Bots and Simulations > DNA - General
5 Questions re DB opns
Botsareus:
ofcorse there are some programers that write bits and peaces for the program and they never get added .. uhm .. placment control .. uhm. So thouse programers move on to bigger and better things... like fixing bugs in the program... until it gets ported into c++
Numsgil:
Those progammers tend to dump their code into my lap, and expect me to magically integrate it into several thousand lines of code.
Scripts would probably be alot like the settings files. You edit them in the program, or outside the program with notepad.
They would basically be a set of if-thens that effect the DB universe.
Like:
If robage > 8000 kill robot
etc, etc. Basically anything the user can do to the bots should be able to be scripted. Like:
if total_run_cycles mod 1000000 = 0 then friction = friction + 4
or somethng like that.
PurpleYouko:
We already have a simple script system that I added about 6 months back. At present it works only for stuff that happens during reproduction/mutation.
We can do stuff like...
If bot DNA contains no repro commands then kill bot.
You can find this stuff in the mutations panel in the options. It consists of 3 comboboxes with pulldown menus and a big window at the bottom. You can have up to 9 simultaineous scripts at the moment but they are kind of limited in scope.
I have some plans of my own to implement some way serious scripts as soon as I get the free time to work on the program again.
Numsgil:
Those mutation scripts may or may not work in 2.4. You see, I rewrote the entire mutation/DNA execution code, so random thigns that were specifically added into that code may be, um... not working.
PurpleYouko:
The scripts work on the returned value of the string variable "x" (I think), that lists the mutations. After that it just scans the DNA file.
As long as you haven't changed the text output from the mutations then they should still work.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version