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 - Numsgil

Pages: 1 ... 507 508 [509] 510
7621
Off Topic / Bestiary
« on: February 21, 2005, 12:38:43 PM »
I wish I could!  My school library is sooo limited.

7622
F2 bots / Ymir (F2)(Numsgil)-21.02.05
« on: February 21, 2005, 12:01:38 PM »
Code: [Select]
'Ymir, AKA: dogfighter
'Designed for 2.35
'Version 1.1 - New conspec system to stop Umbra Draconis
'Version 1.2 - Added Slime to wallop Deathgrip
'Uses many of the new DNA functions and labels,
'manages to defeat every enemy easily and quickly except:
'1. Icarus, which it beats eventually, but some rounds may take a while (one round took 7 hours)
'2. Helios, which it lost to 25 to 42.

'our defines, so the code is a smidgen more readable
def newvectorx 600
def newvectory 601
def move_coeff 80 'a constant, not a memory variable
def bogey_threshold_distance 50 'point at which we stop chasing and start following
def threshhold 30 'speed threshold at which we chase bogeys
def aimdxbackup 603 'to protect against icrasus's turning shot
def meno_age 500

def IDTHING 604
def isnotconspec 605

cond
*.IDTHING 8741 !=
start
8741 .IDTHING store
stop

cond
*.eye5 0 >
*.memloc .IDTHING !=
start
.IDTHING .memloc store
stop

cond
*.memval 8741 !=
start
.isnotconspec inc
stop

'1=======================================
cond
*.robage 0 =
start
'we're a kid! make a tie
.shoot .vloc store
-2 .venval store
.shoot .ploc store
.tie inc
stop

'2=======================================
'deletes ties to parents and feeding ties (should anyway)
cond
*.numties 0 >
start
*.tiepres .deltie store
stop

'3=======================================

cond
'turn to thing in eyes
*.eye4 *.eye6 !=
*.isnotconspec 0 >
start
*.eye4 *.eye6 sub .aimsx store
stop

'4============================================
'We have a bogey at 12, in the distance
cond
*.eye5 .bogey_threshold_distance <
*.eye5 0 >
*.isnotconspec 0 >
start
'find our new needed vector

*.refveldx
*.refvelup .threshhold add

stop

'5=======================================
'we have the bogey in our sights, open fire and match his vector
cond
*.eye5 .bogey_threshold_distance >=
*.isnotconspec 0 >
*.refage 4 >
*.robage 4 >
*.reffixed 0 =
start
'if you have to ask, you'll never know :D
'*.refeye 1 sub sgn 1 add 2 div -5 mult -1 add .shoot store
-6 .shoot store

*.refveldx
*.refvelup

stop

'6=======================================
'this is to stop 'bumping' of fixed bots (a nasty behavior bug that drained alot of energy 'really fast)
cond
*.eye5 .bogey_threshold_distance >=
*.isnotconspec 0 >
*.refage 4 >
*.robage 4 >
*.reffixed 0 >
start
'if you have to ask, you'll never know :D
*.refeye 1 sub sgn 1 add 2 div -5 mult -1 add .shoot store

*.veldx -1 mult
*.velup -1 mult

stop

'7============================================
cond
'There's nothing here! Let's get sick and throw up, just like the teacups ride at Disneyworld
'add more eye angle conditions so we don't pass up a new meal
*.eye5 0 =
*.eye6 0 = and
*.eye4 0 = and
*.isnotconspec 0 = or
*.robage 20 > and
start

30 .aimsx store

stop

'8======================================

cond
'this gene does the actual movement
*.eye5 0 =
*.eye6 0 = and
*.eye4 0 = and
*.isnotconspec 0 = or not
start
'vectors are already on stack, in y over x form

*.mass 125 mult 100 div mult .up store
*.mass 125 mult 100 div mult .dx store
stop

'9=========================================
'reproduce! Yeah
'Only reproduces when it sees food, then throws the baby at the food
'if its an old bot, it gets menopasal,
cond
*.nrg 2000 >
*.body 100 >
*.eye5 50 <
*.eye5 0 >
*.refeye 0 =
*.robage .meno_age <
start
'100 *.nrg 500 div div .repro store
25 .repro store
stop

'10=========================================
'reproduce only if we have to
cond
*.body 10000 >
*.nrg 2000 > and
*.eye5 50 < and
start
40 .repro store
stop

'11========================================
'we're a baby, do a 180
cond
*.robage 1 =
start
627 .aimsx store
stop

'12=========================================
'get fat

cond
*.nrg 4000 >
*.nrg *.body >
*.robage 20 >
*.nrg 10000 > or
*.body 100 < or
start
100 .strbody store
stop

'13=========================================
cond
*.body 100 >
*.nrg *.body <
*.nrg 3000 <
start
100 .fdbody store
stop

'14=======================================
cond
*.body 100 >
*.nrg 700 <
start
100 .fdbody store
stop

cond
*.slime 200 <
*.robage .meno_age >
start
200 *.slime sub .mkslime store
stop

'15==========================================
'Poison
'============================================
cond
*.poison 1000 <
*.nrg 1000 >
*.robage .meno_age >
start
200 .strpoison store
stop

'============================================
'Venom
'============================================
'Possible venoms:
'Currently using #1
'1. shoot -2 shots
'2. Stop making shell, or make -shell
'3. Fix pos
'4. Turn around alot
'5. mrepro 50 or 99, makes the bot mutate so much it probably can't survive, would also work as a shot

'16=========================================
cond
*.venom 1000 <
*.nrg 3000 >
*.robage .meno_age >
start
200 .strvenom store
stop

'17=========================================
'SHELL
'==============================================
cond
'protects us if we're poisoned for a while
*.poisoned 0 >
*.shell 100 <
*.nrg 2000 >
start
100 *.shell sub .mkshell store
stop

'18==========================================
cond
*.refshell *.shell >
*.refshell 200 <
*.isnotconspec 0 >
start
*.refshell *.shell sub .mkshell store
stop

'19===========================================
cond
*.refshell 200 >
start
200 *.shell sub .mkshell store
stop

'20==========================================
'Maintenance
'============================================
cond
*.waste 100 >
start
-4 .shoot store
*.waste .shootval store
stop

'21=========================================
'DEFENSE
'===========================================
'turn to a bot that shot us and poop out a bullet for the heck of it
cond
*.eye5 50 <
*.shdn -2 != and
*.shdn 0 != and
*.robage 20 >
start
627 .aimsx store
-6 .shoot store
stop

'22=========================================
'They say imitation is the sincerest form of flatery
'later change so that a venom shot that makes bot shoot -2 is stored
cond
*.isnotconspec 0 >
*.shup 0 <
*.shup -2 !=
*.eye5 50 >
*.venom 20 <
*.refmulti 0 =
start
1 rnd .aimdx add .shoot store
313 .shootval store
stop

'23=========================================
cond
*.isnotconspec 0 >
*.shup 0 <
*.shup -2 !=
*.eye5 50 >
*.venom 20 >
start
-3 .shoot store
stop

'24=========================================
'defense against glacies draconis
cond
*.fixed 0 >
start
0 .fixpos store
stop

'25=========================================
'defense against helios
cond
*.shoot -2 =
start
0 .shoot store
stop

'26=========================================
'defense against delgene viral attacks
cond
*.delgene 0 >
start
0 .delgene store
stop

cond
*.isnotconspec 0 >
start
.isnotconspec dec
stop
end

7623
Off Topic / Bestiary
« on: February 21, 2005, 11:36:09 AM »
Aye, not an easy task at all.

A standard nomenclanture will be needed.  Subspecies will need a way to be identified as such.  I'll see if I can't work it all out.

7624
Off Topic / New Forum
« on: February 21, 2005, 11:26:21 AM »
Look near the top right, there's a listing for My Controls.

And annonymous and annoying aren't the same thing.  (Well, unless you find annonymity annoying, but that's another matter entirely).

7625
Off Topic / Bestiary
« on: February 21, 2005, 09:57:19 AM »
Just to date yourself, that's a poem my dad like to recite since its the only poem he's ever remembered into adulthood. :rolleyes:

7626
Off Topic / Bestiary
« on: February 21, 2005, 09:47:09 AM »
A forum for actual bot postings would be nice.  The database works too, but I think having the bots in several places at once is a good thing :D

As for downloading league files...  that would rock!

7627
Off Topic / Bestiary
« on: February 21, 2005, 09:40:58 AM »
That's odd, I appear to have acquired a new signature.

Funny that it only appears in the forums MightyPenguin Moderates. :blink:

7628
Off Topic / Bestiary
« on: February 21, 2005, 07:48:58 AM »
(There really isn't a place for this.  PY, if you could make an actual 'bot forum' where people can post new bots, this could go there.)

Yes, an ambitious project.  I'd like to catalogue every bot known to exist, and in alphabetical order, listing relative strength, reproduction speed, etc.  I'm not sure of the form it would take, whether in a side document, html cross referenced set, or in this post.

This bestiary could be included in a zip file of all the bots, a more organized version of the bot archives available to download.

7629
Off Topic / Old DB Forum
« on: February 21, 2005, 07:23:25 AM »
Always one to think for the future, this post is to help all the post trawelers out there that like to sort through old posts.  When this board is months or years old, and someone wants to search through the old posts, it's good if they know where it was.

The old, ~year old forum is at Darwinbots

Go trawl through those posts!

7630
Tips and Tricks / Tips
« on: February 21, 2005, 02:26:37 AM »
Good post, but I think, as with all rules of thumb, the exact opposite is true too.

That is, as Ymir demonstrates, (BTW, I uploaded a new Ymir to the database.) if you can defend your resources, never lose a fight, you can reproduce as slowly as you like and you'll eventually win.

If you go that route, though, you must make sure your bots never die.  If you produce lots and lots of baby bots, you can afford to lose a few.

If anyone's played Starcraft, you know that Protoss aren't necessarily stronger than Zerg, or vice versa.  It's all in how the player playing them can handle themselves.

7631
Bugs and fixes / Exploding Babies
« on: February 20, 2005, 11:58:14 PM »
Yay, I figured out the problem.  The function that checked the integrity of the DNA was returning values incorrectly sometimes.  Fixed it, and all is good :D

7632
Bugs and fixes / Exploding Babies
« on: February 20, 2005, 11:42:11 PM »
Found this out when I was helping SyndLig weith his bot.  Occassionaly a bot will produce and baby, and that baby proceeds to die the first cycle its out.

Has anyone else noticed this bug?  I've seen it happen with babies that have > 500 energy, so I doubt it has anything to do with the baby using too much energy from its dna commands.

I'm still trying to trace the problem, unfortunately, it's not as easy as I'd like.  Something is draining massive amounts of energy in new born bots.

I thought it was the shock death function, but I artificially bypassed that and it's still doing it.

7633
Dead-End and Solved Suggestion Requests / Arrays
« on: February 20, 2005, 06:23:29 PM »
The sysvars would need to be rewritten, but once done I don't suppose they should mean anything different to the bot programmers than they did before.

Aye, a crash course in arrays would be needed.  I think basic programming should be a required course in elementary school.

7634
Darwinbots Program Source Code / Help Files
« on: February 20, 2005, 07:06:52 AM »
Awesome idea, it's always good to get help with this stuff.  I'm thinking of creating an automated tutorial (like the one Maya has, for anyone whos ever used that) that steps through how to get started.  I tried showing my sister the program and I had to walk her through it.

I'm still looking for a good application to make the help files that, ahem I can 'borrow' a license for.

7635
Off Topic / Forum Skin
« on: February 20, 2005, 06:00:13 AM »
This forum needs a skin!  I haven't given it a look, but look here for information on it.  I could do it, but my artistic skill is amateur, and I have the impression it isn't the simplest of processes.  If anyone is really good  at this kind of stuff, volunteer!

Pages: 1 ... 507 508 [509] 510