Code center > Darwinbots Program Source Code

Modifying the code

(1/3) > >>

Elite:
I'm thinking of doing some tinkering with the program of my own  

I took the source code of Endy's v2.37.7 and modified the 'shots.bas' using a standard text editor, to comment out the code granting conspecs' immunity to other conspecs' poison. So how do I now wrap that up into a neat executable program?

PurpleYouko:
try this

Visual Basic 6.0

It's the only way to make an executable from the source code. You can also edit the code here and even run it directly from source without compiling it first.  

Elite:
Ok, I've downloaded it, but I can't seem to get it to work      

EDIT: OK, it's working now

PurpleYouko:
Post the code up here. I'm working on other VB applications right now so it is a little inconvenient for me to go looking for it.

Elite:
I've got it to work and managed to figure out how to make it do what I wanted  

Attached is Darwinbots2.37.7c

Changes:
 - Poison affects conspecs
 - When .ploc is set to zero, poison has no effect

My only problem is that when exiting the program it says "Darwinbots has encountered a problem and needs to close", which might be to do with VB itself

And my aim in doing all this was to get this bot to work:

cond
*.robage 0 =
start
.ploc .ploc store
.ploc .memloc store
stop

cond
*.poison 20 <
*.pain 30 >
start
10 .strpoison store
stop

cond
*.eye5 0 >
*.memval .ploc !=
start
*.refveldx .dx store
*.refvelup 30 add .up store
stop

cond
*.eye5 40 >
*.memval .ploc !=
start
-1 .shoot store
*.refvelup .up store
stop

cond
*.eye5 0 =
*.memval .ploc = or
start
314 rnd .aimdx store
stop

cond
*.nrg 6000 >
start
50 .repro store
stop

end

It will attack conspecs that have gone canni, making the practice no longer profitable. I'm really proud of this one  Haven't thought of a name yet though

Navigation

[0] Message Index

[#] Next page

Go to full version