Code center > Bugs and fixes
Keeping eye on tied bot RESOLVED 2.43r
Gobo:
I'm trying to make a bot keep an eye on whom it tied to. In most cases, it misses. Does anyone have an idea, what's the matter?
--- Code: ---cond
*.eye5 50 >
*.numties 0 =
start
1 .tie store
1 .tienum store
stop
cond
*.tienum 1 =
start
*.tieang .aimsx store
stop
--- End code ---
EricL:
It's a bug. .tieang isn't getting updated. This is easy to see if you watch the bot's memory in the properties dialog.
The tie routines are still a mess in the code. It would not surprise me if there a bunch of huge problems still but I think I know enough now to finally dig into it, which I will do shortly. Nice find.
Gobo:
Isn't there any workaround?
Peter:
--- Quote from: Gobo ---Isn't there any workaround?
--- End quote ---
--- Quote ---cond
*.eye5 50 >
*.numties 0 =
start
1 .tie store
1 .tienum store
stop
cond
*.tienum 1 =
start
*.eye4 *.eye6 sub .aimsx store
stop
--- End quote ---
Does general desame, folowes the bot that is right bofore it. Could go wrong if there is going a bot between the two(itself and the bot the tie is connected), but this works in most cases. There is posibly a better way but I don't of any.
And you did a good job of finding the problem, kudos to you. Well done, could explain some of the problems I had when using it, in my first attempt to make a multi-bot altrough most promblems had to do with the phycics there I gues, complete flying of bots around the screen then.
The second time I tried to make a multibot, from another setup , The bot is sudenly working, altrough very(very,very,very) basic. So it is still possible to create a multibot.
This could possibly solve problems of some of the multibots.
Numsgil:
Moving this to the bugs forum, since it's not really about evolution or internet sharing.
Navigation
[0] Message Index
[#] Next page
Go to full version