Code center > Bugs and fixes
DarwinBot crash (ver 2.44)
Numsgil:
It's very old. No idea which version is actually in there. Maybe it's 2.37 or an early version of 2.40
Check out this page on the wiki. The newest source it lists is for 2.44.1h. That's the best I can find at the moment.
peterb:
ok I used a source coparissor, and indeed it is an older version.
It handles less DNA commands it seams.. maybe I just keep the this old version for virus related bots.
I got a better idea now to how such errors could exist.
One module dims an array I gues somewhere bot(n) is dimmed.
Another module can be working on the array of bot(n) while another module tries to change bot(n).
The problem with the design seams that various modules handle it; and might not release it before another module starts operating on it. A battle between modules.
For next version, split dependencies; I mean dont come depended on other modules.
if you have something like
Module1************
Tasks..
while bot(x).data.pos(n) < len bot(x).data
if bot(x) data = (call module2) then ...
..
n = n+1
wend
end
module2 *************
Bot(x) data = mid (botx(data) , ..., len(bot(x) -1).... changing the data
return
end
hmm modules or genes..
Devide such tasks in a way that only Module N is allowed to write data in a data object
While other modules for example to graphic output / file handling / internet sharing, syncing / statistics / can only read
Oh and it might also be better to make use of simple database, instead of arrays
(especialy since array's in .net are not the same old data structures)
And.. wondering this virus issue.. have something to not copy a virus if it is allready in there
(I cant think of use of having multiple the same dan codes inside).
Numsgil:
The older version you have might not do viruses like you expect. There's been some work with how viruses work relatively recently.
Griz:
--- Quote from: Numsgil ---The older version you have might not do viruses like you expect. There's been some work with how viruses work relatively recently.
--- End quote ---
isn't the source code for 2.44 here:
http://www.darwinbots.com/FTP/Darwinsource2.44.1.zip
Endy:
Completely off topic
Whoa!!!
Welcome back Griz
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version