gametechmods
Robot Arena => General Support => Topic started by: aztwecas on January 17, 2015, 06:09:08 PM
-
I'm new to aiing and am having a fair bit of trouble with one of my robots. The issue is that the robot starts the battle fine but when approaching the other AI robot it turns and uses its back as a ram instead of it's front spinning blade. I've had success in aiing a couple of other robots but this is the first time something like this has happened.
The Bindings line is this ("Morning Star", "DirectionalSpinner", { 'invertible':True,'nose':math.pi,'radius':0.2,'range':500,'topspeed':100,'throttle':110,'turn':60,'turnspeed':2.5,'weapons':(5,6,7,8)}))
note: i have tried editing the line but with little success, since i am new to most of this the line is a recycled one from DLC and has been slightly edited through trial and error.
-
Did you change the direction the bot faces forward in the bot lab? If you didn't, try taking out
'nose':math.pi,
-
Yeah I've tried editing the forward heading and removing that line of code but it has no effect. The problem isn't to do with the way the robot starts but with one of its movements in battle
-
It maybe the line of code saying weapons has incorrect values and it is using something in the back as the weapon. Download notepad ++ and see what the values in weapons are corresponding with your bot.
-
It maybe the line of code saying weapons has incorrect values and it is using something in the back as the weapon. Download notepad ++ and see what the values in weapons are corresponding with your bot.
You need the Bot File Exporter if you want to know what components the weapons numbers correspond to, but Notepad++ is a good idea anyway.
-
Check your controller programming screen - are you absolutely sure that the forward and reverse controls work as they should, and are labelled properly? Humor me and try it right now, even if they did work previously.
-
Cheers guys, i'll download notepad++ to see if there's an error with the weapon. Sonny I've just re-wired the bot in all possible configurations for forward and back there doesn't really seem to be a problem there.
-
Just out of curiosity, what happens if you use spinner or omni.py?
-
It maybe the line of code saying weapons has incorrect values and it is using something in the back as the weapon. Download notepad ++ and see what the values in weapons are corresponding with your bot.
The position of the weapons listed doesn't impact the movement of the bot. The list of weapon IDs is used for switching tactics after running out of weapons. Sadly, we don't use them for much else and many AI.py files have broken implementations (meaning the bot doesn't switch tactics even though there is code for it to do so).
As Lemonism pointed out, Apanx's Bot Exporter is handy for checking component IDs but you could do it manually by counting from top to bottom the components (the IDs go in order). The component ID of the chassis is 0.
It sounds like your LeftRight control is wired backwards.
-
Check your wirings, yeah. And your forward heading.
-
My best guess is your nose pi is wrong. there is many variations on it, try a bunch of them. If you send us the bot, maybe we could help you more?
-
The bot wouldn't turn and attack the other bot with it's back if it was a matter of nose.pi.
-
Plus that was previously mentioned and was not the cause.
With your LeftRight control, did you mess it up to start with and have the A/LeftArrow/whatever wired to the right control (and D/RightArrow to the left)?
-
you know what this sounds like
it sounds just like what my dsl3 ai does
they all kinda futz around aimlessly, only acknowledging you in the sense of them trying to keep their back facing you for most all of the match
does anyone remember how to fix that
(unless that's something completely unique to the copy of dsl3 i have)
-
if its stock, the new wheels broke the ai
-
thanks everyone, I've fixed the bot. It seemed to be a problem with the forward Heading.
-
you know what this sounds like
it sounds just like what my dsl3 ai does
they all kinda futz around aimlessly, only acknowledging you in the sense of them trying to keep their back facing you for most all of the match
does anyone remember how to fix that
(unless that's something completely unique to the copy of dsl3 i have)
The wheel GMF's have all been changed, so now the wheels go the opposite way that they're supposed to. Either put the old wheel GMF's back in, or open each bot up in the Botlab and rewire them individually
-
would that effect anything else i.e. my own already built bots?
-
Yes, you would have to go into the botlab and rewire each one.