Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - goffrie

Pages: 1 2 3 [4] 5
46
Internet Mode Commentary / What's going on with the DB server?
« on: May 11, 2008, 10:41:31 AM »
BitTorrent, by itself, is not risky business unless someone tampered with your executable. (Illegally downloaded programs, though, are.) BTDNA is a seperate program installed with BitTorrent - http://www.bittorrent.com/dna/ - and is uninstalled seperately, from what I've heard ( http://forum.bittorrent.com/viewtopic.php?id=663 ). You are right though, it does act as a file server for the BitTorrent network, just not permanently. Nothing is permanent, you know  Anyways, if you don't want to deal with the official client, there are lots of others, like Azureus and uTorrent.

47
Internet Mode Commentary / What's going on with the DB server?
« on: May 10, 2008, 09:12:07 AM »
That's not BitTorrent, then. You probably got that from somewhere else.

48
Internet Mode Commentary / What's going on with the DB server?
« on: May 09, 2008, 10:00:27 PM »
The official BitTorrent client (at http://www.bittorrent.com/) does not have any malware in it. "Bittorrent" is an improper capitalization, by the way

Also, Window's "administrator"/"limited user" split is a joke. You can do tons with a limited user.

49
F2 bots / This'n'That 1.01 (F2) (Peksa) - 12.05.08
« on: May 08, 2008, 06:43:11 PM »
You don't need the "cond" if you have no conditions (in newer versions of DB anyways.)

Also, instead of "1 1 =" you could use "true", or "clearbool". An empty boolean stack will always evaluate to "true".

You did use one trick - birth tie severing  

Code: [Select]
*.in7 *.refage *.dnalen mod add *.dnalen sub abs 10 < dupbool
    1 .friend store dropbool
  
   not
   *.eye5 0 = or
    0 .friend store
could be replaced with
Code: [Select]
*.in7 *.refage *.dnalen mod add *.dnalen sub abs 10 <
    1 .friend store
   not
   *.eye5 0 = or
    0 .friend store
Conditions aren't modified unless explicitly done so by "and", "or", "not", "dropbool" etc.

Anyways, nice bot

50
Quote from: Peksa
Code: [Select]
cond
 *.eyef 50 >
 start
 10 .up store
 stop
 
 A bunch of unrelated DNA here.
 
 cond
 *.up 10 >=
 start
 -1 .shoot store
 stop

Uh, this already works IIRC.
This thread talks about control sysvars which modify other sysvars.

51
Newbie / Overall Concept
« on: May 07, 2008, 09:50:19 PM »
Quote from: Trooper5445
Argh, code is all messed up. The Bots are not firing and Reproduction is messed up with none taking place. I can't seem to locate the problem.

Woah. "*12 .timer 500 >" ? That doesn't do a whole lot (is always false), and your *12 seemingly doesn't do anything.
You're missing a few "store"s, and I don't think your sexual reproduction genes are exactly working. You can't just randomly fire off a -8 shot and also store 50 in .sexrepro, that doesn't do anything but impregnate a bot in front of you. If that bot happens to be you own species, it won't try to reproduce for another 500 cycles and by that time the fertilized-ness will have worn off. Finally, your position-75 storing for eye5 is pretty useless, you could just replace that condition directly with an eye5 condition.

Most of these things fixed, plus spelling errors. (I didn't fix the sexual-reproduction problem, as I can't think of any good way to fix that with your desired 500-cycle reproduction.)
Code: [Select]
' L-Sesilia
 ' A robot that really doesn't want to do anything
 ' With help from the kind community (EricL, Shasta)
 ' Lazy Sessile
 
 ' Gene 11 - Sexual Reproduction if energy is less than 7500
 cond
   *.nrg 7500 <
   *.timer 500 >=
 start
   0 .timer store
   -8 .shoot store
   50 .sexrepro store
 stop
 
 ' Gene 10 - Reproduce asexually if energy is greater than 7500
 cond
   *.nrg 7500 >
   *.timer 500 >=
 start
   25 .repro store
   0 .timer store
 stop
 
 
 ' Gene 6 - Dispose of excess waste
 cond
   *.waste 45 >
 start
   -4 .shoot store
   *.waste .shootval store
 stop
 
 ' Gene 5 - Persue Food by acceleration
 cond
   *.refeye *.myeye !=
 start
   5 .up store
 stop
 
 ' Gene
 cond
   *.eye9 *.eye5 >
  *.eye5 0 =
  *.refeye *.myeye = or
 start
   25 .aimdx store
 stop
 
 ' Gene
 cond
   *.eye1 *.eye5 >
  *.eye5 0 =
  *.refeye *.myeye = or
 start
   25 .aimsx store
 stop
 
 ' Gene 3 - Shoot if something is seen which isn't a conspec
 cond
   *.eye5 0 >
  *.refeye *.myeye !=
 start
   -1 .shoot store
 stop
 
 end

52
Biology / SciAm article about how diversity of animal forms arises
« on: May 06, 2008, 08:02:29 PM »
SciAm looks a lot like "scam"

Anyways, interesting article.

53
I'd add a (configurable) energy cost for multiple .focuseye changes in one cycle, so as not to terribly unbalance things.

It would be a nice addition, though

54
Darwinbots3 / Release date
« on: April 29, 2008, 07:41:08 PM »
Quote from: jknilinux
Also, maybe the best thing about Java is that it can run in your browser. Imagine being able to try-out DB without downloading it, or using an account system to save your sim and look at it and continue running it at the library, just by logging in. You can't do that with c#.

IMHO, Java web applets are infernal.
In C#, you can have a program which can be compiled into a machine code executable. I haven't seen a viable solution for that in Java. I'd rather not have an interpreter for a program like this, even if it's very efficient.

Also, C# is portable with Mono. Please try to make it compatible - a native Linux Darwinbots would be nice

I'd still use C, although I can see some problems arising with complexity and coding time.

55
Newbie / Methinks it is like a weasel
« on: April 29, 2008, 07:25:25 PM »
Code: [Select]
#include <stdio.h>
#include <time.h>
#include <string.h>

char str[1000];
const char ref[1000] = "Methinks it is like a weasel";
int main() {
    int I, len;
    srand(time(NULL));
    len = strlen(ref);
    while (strcmp(str, ref) != 0) { /* if we're not done */
        for (I = 0; I < len; ++I) { /* iterate through each character */
            if (str[I] != ref[I]) /* only if it isn't correct already */
                str[I] = rand() % 95 + 32; /* set to random character */
                /* 32 = space, 95 printable characters */
                /*  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQR
                    STUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ */
        }
        printf("%s\r", str); /* spit out the current string */
        usleep(5000); /* sleep - without it, the program ends almost immediately */
    }
    printf("\n");
    return 0;
}
Yay C  but probably coded just as easily in any other language.

56
Darwinbots3 / Release date
« on: April 27, 2008, 10:32:30 AM »
The current version of Darwinbots is in VB, Darwinbots 2.5 is in C++, and version 3 is in C#, IIRC. Confusing.

57
Bug reports / missing DLL RESOLVED (POSTPONED)
« on: April 21, 2008, 04:56:46 PM »
I got this bug too, on a fresh install of Windows (in VirtualBox, I run Linux as the host). It isn't included in Windows and the installer doesn't install it. Downloading it from the Internet and putting it in \WINDOWS\system32 fixed it.
(I may or may not have needed to run 'regsvr32 msstdfmt.dll', I don't remember. Anyways, it definitely doesn't involve 'regedt32'.)

58
DNA Tools / A Program to Make SG Bots
« on: April 03, 2008, 07:25:17 AM »
Quote
on other operating systems you may need to add a line of code to the top, unfortunately, I can never remember what it is...)
Code: [Select]
#!/usr/bin/python

It seems to enter "^M"'s (carriage returns, but not line feeds) into scripts, always before a "mult".
Also, you don't need the "cond" at the beginning of the script anymore.

Anyways, neat script.

59
DNA Tools / Sanger
« on: March 06, 2008, 05:13:20 PM »
Three things:
First, I can't run it (the script exits with the error 'Can't call method "s" on unblessed reference at sanger.pl line 56.') I'm running Gentoo Linux, perl version 5.8.8-r4 with ithreads enabled. I run the online interpreter instead.

Second, could you modify it so that it uses the new "dropbool" command instead of "true or and"? "dropbool" is much simpler

Third, nested if's don't work:
Code: [Select]
always {
  if ( 1 == 0 ) {
    if ( 1 == 1 ) {
      .aimdx = 100;
    }
    .aimdx = -100;
  }
}
results in (formatting added)
Code: [Select]
start
1 0 =
1 1 =
100 .aimdx store
true or and
-100 .aimdx store
true or and
stop
when it should result in
Code: [Select]
start
1 0 =
1 1 = and
100 .aimdx store
dropbool
1 0 =
-100 .aimdx store
dropbool
stop

60
The Gene depository / True Aiming using only physics
« on: March 02, 2008, 05:24:42 PM »
Quote from: rsucoop
Code: [Select]
*.refxpos *.xpos sub 2 pow *.refypos *.ypos sub 2 pow add sqr
You could just use
Code: [Select]
*.refxpos *.xpos sub *.refypos *.ypos sub pyth

Pages: 1 2 3 [4] 5