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.


Topics - havingphun

Pages: [1] 2
1
DNA - General / How can I get this to work?
« on: January 22, 2012, 03:38:50 PM »
This is my bot but how can I get it so there is a head and two body pieces and that the body pieces follow the head. I have tried this but the system to track the type of piece each is isnt working and I know the problem is right there I just can't see it. I want to create more advanced multi-bots if i can get this working.

Code: [Select]
def head 50
def body 51


cond
*.eye5 0 >
*.refeye *.myeye !=
*.head 0 !=
*.multi 1 =
start
*.refveldx .dx store
*.refvelup 30 add .up store
*.refxpos *.refypos angle .setaim store
stop

cond
*.eye5 50 >
*.refeye *.myeye !=
'*.refeye *.myeye !=
*.head 0 !=
*.multi 1 =
start
-1 .shoot store
*.refvelup .up store
*.refxpos *.refypos angle .setaim store
stop

cond
*.multi 1 =
*.head 0 !=
*.eye5 0 =
*.refeye *.myeye = or
start
314 rnd .aimdx store
stop

cond
*.numties 0 =
*.numties 1 = or
*.robage 0 !=
*.head 0 =
*.tienum < 3
start
32 .repro store
.tienum inc
.head inc
stop

cond
*.robage 0 =
*.body 0 =
*.head 0 =
start
.body inc
.tie inc
stop

cond
*.nrg 30000 >
*.body 0 !=
*.head 0 != or
start
.body dec
.head inc
.tienum 0 =
.deltie inc
stop

cond
*.multi 1 =
*.head 1 = and
start
*.eye5 .tout1 store
50 .sharenrg store
3 .fixlen store
100 .stifftie store
628 .fixang store
*.aimright .tout2 store
*.head .tout3 store
*.tienum .tout4 store
stop

cond
*.head 0 =
*.body1 0 = or
start
*.tiepres .readtie store
*.tin1 .eye5 store
*.tin2 .aimright store
*.tin4 .tienum store
stop

cond
*.head 1 =
*.body 1 = or
*.numties 2 >
start
*.tiepres .deltie store
stop

end

2
Darwinbots3 / I would like to help.
« on: January 21, 2012, 01:14:15 PM »
I want to help but i dont know if I will be able to do any programming. Last time my computer broke before I could but its fixed now is there anything I can do to help. If i do any proggraming it will be a while until I can so what else could i do for now?

3
DNA - General / Why doesn't this work?
« on: October 18, 2011, 08:51:11 PM »
Well i made a bot and all i was doing was testing communication between them. But it isn't working the way i want. Could you look at it and see whats wrong. What it does is if the type is 0 it is the cell that sends a message and if it is above 0 then it receives it. Bots can only have one tie at a time for now. I used tout1 and tin1 for the communication could you please see what is wrong with this.

Code: [Select]

def type 0

cond
*.type 0 =
*.nrg 4000 >
start
25 .repro store
.type inc
stop

cond
*.refeye *.myeye =
*.numties 1 <
start
.tie inc
stop

cond
*.numties 1 >
start
*.tiepres .deltie store
stop

cond
*.robage 0 =
*.type 1 <
start
-1 .tout1 store
stop

cond
*.tie 0 >
*.type 0 >
*.body 800 <
start
*.tiepres .readtie store
*.tin1 .shoot store
stop

cond
*.multi 1 = or
start
stop

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

cond
 *.eye5 50 >
 *.refeye *.myeye !=
start
-1 .shoot store
 *.refvelup .up store
stop

cond
 *.eye5 0 =
 *.refeye *.myeye = or
start
 314 rnd .aimdx store
stop


cond
 *.nrg 8000 >
 *.type 20000 =
start
 20 .repro store
.type inc
stop

end




4
Untagged bots / Sporyx V 0.4
« on: October 18, 2011, 04:21:02 PM »
Nothing really just thought that I should post a bot.

Code: [Select]

'Sporyx (F3)(HavingPhun)-10/18/11

cond
*.robage 2 <
start
.tie *.robage 1 add mult inc
.deltie inc
stop

cond
*.robage 3 <
start
60 .up store
stop

cond
*.nrg 8000 >
*.body 1000 <
start
400 *.strbody store
stop

cond
*.nrg 1000 <
*.body 600 >
start
400 *.fdbody store
stop

cond
*.myeye 0 =
start
50 .up store
stop

cond
 *.eye5 0 >
 *.refeye *.myeye !=
start
 *.refveldx .dx store
 *.refvelup 60 add .up store
stop

cond
 *.eye5 50 >
 *.refeye *.myeye !=
start
-1 .shoot store
 *.refvelup .up store
stop

cond
 *.eye5 0 =
 *.refeye *.myeye = or
start
 314 rnd .aimdx store
stop

cond
*.pain 11 >
start
10 .repro store
10 .repro store
10 .repro store
10 .repro store
stop

cond
 *.nrg 3000 >
start
 30 .repro store
stop

cond
*.waste 40 >
start
.backshot inc
-4 .shoot store
*.waste .shootval store
stop

cond
start
 .fixpos *.fixed mult dec
stop

cond
*.shflav 0 !=
*.shflav -2 !=
start
1256 *.shang sub .aimshoot store
8 .shootval store
-6 .shoot store
0 .shflav store
stop

cond
 *.mkvirus 0 !=
start
 *.mkvirus .delgene store
stop

end



This is just the first version and it isnt very good at fighting other bots but if it is getting hurt pretty bad then it will explode into tons of little spores and they will flee away from the enemy. Any comments, suggestions, etc.

5
Darwinbots3 / Helping
« on: October 17, 2011, 04:56:18 PM »
I should be able to start helping on friday.

6
DNA - General / Global Variables?
« on: October 17, 2011, 04:19:41 PM »
Is there a way to make global variables that can be accessed by any bot in that species?

7
Newbie / Hi
« on: October 17, 2011, 04:17:49 PM »
Hi im HavingPhun and im new. Well ive been here for a couple days but i forgot to post here. Well i think darwinbots is pretty cool and fun. I like creating a bot and just seeing what it does. Some of the things that can be created with this program are amazing  :O . I learned c++ and some java so I thought that this would be fun too because of the proggramming aspect of it.

8
DNA - General / Making your own "ref" vars with def
« on: October 15, 2011, 09:50:10 AM »
Is it possible to make your own refvars with def? Ones that actually work?

9
DNA - General / What are conspecs
« on: October 15, 2011, 09:47:25 AM »
I have heard of conspecs but what are they? How do they work? Is there any advantages or disadvantages of them?

10
Suggestions / Air, Water ,and Solid Ties
« on: October 13, 2011, 07:04:44 PM »
Just to have the option of air or water and then the option of solid ties which bots would collide with and if there was air or water then swim or fly, if created right.

11
DNA - General / Some sort of nueral system idea
« on: October 13, 2011, 06:55:38 PM »
Well you know how if you make a bot that just ties to any one of its species it sees. Would if the bots clumped together in big groups and then one or more would be assigned as brain bots. every bot in this clump would constantly be communicating information like what they see there  nrg and other things and then those things would be sent to the brain cells and based on whats happening they would decide what to do.I would do this but im not completly sure how to do the messaging system. also how to know which bot is which in the system so they dont do the wrong thing. So anyone have any ideas?

12
DNA - General / Other ways of identifying freinds and foes
« on: October 13, 2011, 06:24:36 PM »
Is there any other ways to identify if another bot is friend or foe instead of checking there eyes?

13
Off Topic / what does this do?
« on: October 13, 2011, 05:44:51 PM »
I have seen this on several bots, what does it do?



[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']

14
Suggestions / Nested conditions
« on: October 13, 2011, 05:20:51 PM »
just have it so you can nest conditions like:

Code: [Select]
Cond
*.nrg 2000 >
    cond
    *eye5 1 != 
start
 600 .up store
stop

I just think that it would be nice if we could have nested conds.

15
Suggestions / Spore repro
« on: October 13, 2011, 05:17:31 PM »
Sorry if this was already suggested but here it is. So how about having the option of bots reproducing with spores. you could specify the amount of spores and also have a variable called sporedef that would allow you have a specific code for the spore if you wanted to. I dont think this should be added because it is already possible to code spores with db, but i just wanted to throw the idea out there.

Pages: [1] 2