Bots and Simulations > Bot Tavern
Community project (now pretty much defunct)
Griz:
--- Quote ---Got the same problem with wraithbot
I haven't found a way of sensing field size but it would be a good idea. The problem is that the coordinates cannot exceed 32000.
Suggestion - need some new sysvars:
.fieldx
.fieldy
:D
--- End quote ---
that would be slicker.
anyway, altering those values seems to work.
also increased the feeders velocity from 10 to 30 to speed things up
and have to recall how to have a bot turn when it reaches a border
in the non-toridal versions or the feeders just butt their heads.
with just a hint of gravity, and the veggies repopulating only at
the top, they end up as a layer on the bottom with the hives usually
higher and swifter ants cruising down and returning with food.
fun to watch.
PurpleYouko:
--- Quote ---I find this in gene 2 for new queens:
3 .type store
14000 rnd 100 add .queenx store
10000 rnd 100 add .queeny store
which, if this is it, would work in both size 2 and 3.
if I alter this to say ... 9000 and 6500 will that do it?
--- End quote ---
Yup that's the gene. And you are right. they will work in size 2 also. That alteration will make them work fine in size one.
Seriously though, they are way better in bigger sizes.
--- Quote ---Got the same problem with wraithbot
I haven't found a way of sensing field size but it would be a good idea. The problem is that the coordinates cannot exceed 32000.
Suggestion - need some new sysvars:
.fieldx
.fieldy
--- End quote ---
Yes that would be a pretty good idea. Easy to implement and not using up any resources since it can be set as a fixed value at the birth of the robot. This also gives you the option of screwing with a bot by telling it other values than the real ones. Maybe set ranges that way.
As for not exceeding 32000, I am going to make the variables all "double" soon so that will no longer be an issue with the next version. No plans on when yet. Too darn busy lately.
PurpleYouko:
--- Quote ---and have to recall how to have a bot turn when it reaches a border
--- End quote ---
*.edge returns 1 when the robot hits a border. Resets every round so the cycle after it will be 0 again.
Griz:
--- Quote ---
--- Quote ---and have to recall how to have a bot turn when it reaches a border
--- End quote ---
*.edge returns 1 when the robot hits a border. Resets every round so the cycle after it will be 0 again.
--- End quote ---
yup. got it.
added it to the ants ...
otherwise in toridial mode, they just bump into a wall ....
'looking for borders
cond
*.eye5
-1
!=
start
314 rnd 157 sub .aimdx *.edge mult store 'rnd turn left or right 45 degrees
stop
and in 2.4, as the body size gets larger/more massive ...
they go 'outside' the field ... and unless they have some
sort of turning thing, never come back in.
I still haven't fingered out why Num's enabled that to happen.
I prefer the small field of play and not so many bots ...
otherwise those ants certainly do 'crawl' along.
I set them to 30 vel too, instead of 10.
using version 2.4 now, as I like the physics ...
and it seems pretty stable.
couple questions:
what's the difference between a worker and a warrior?
what is the purpose of fixing a feeder's position if it is not feeding a queen?
the queens often don't reproduce if their feeders
happen to 'buy it' and not get back to them.
there is a gene for them to repro if nrg < than 2000 but I don't see it happen.
they just continue to lose energy until <500 and then have 100 added.
and they eventually die too, not sure how.
seeing as I am using non-toridal and a bit of gravity ...
most of my veggies are near the bottom.
so I want to have the newborns tend to head towards
the bottom to search for food, rather than randomly go in
any direction.
assume this would be .setaim:
' worker selects direction to head after birth
cond
*.robage 10 =
start
1256 rnd .setaim store
stop
1256 covering all angles ....
looks like 0/1256 is to the right ...
314 is up, 628 left, and 942 down ...
so to get a range of 90 degress down ...
45 to -45 degrees from straight down I would need:
314 rnd 785 add .setaim store yes?
I tried it and it works ...
but might as wll leave this here for others who may
be lurking and know as little as I. ;)
anyway, watching the project and coders ...
and playing with these ants ... who knows ....
I may finger some of this out yet.
so I hope no one minds my asking questions.
would like to have a wiki page for questions like this as well
thinking it is much easier to talk there and not lose where in
some thread someone said what ...
but I don't think many people visit it. yet. ;)
we will see.
Numsgil:
As to why bots manage to go outa bounds in 2.4:
It's a consequence of how the physics engine works. Hard constraints are difficult.
In the port I've implemented yet another way in which the engine works which allows me to do both 'hard' constraints (bots CANNOT leave the arena) and softer constraints (bots are pushed into the arena if they leave). I'm pleased with the results so far, and I think everyone else will be too.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version