Author Topic: AIing trouble  (Read 3397 times)

Offline Natster-104

  • Ultra Heavyweight
  • Posts: 1406
  • Rep: 6
    • http://www.youtube.com/ch
    • View Profile
    • Awards
  • Skype: natster-104
AIing trouble
« on: July 26, 2014, 06:54:43 AM »
When trying to Ai mechadino's bot for the last one standing, I ai'd it, and it works, but it doesn't fire it's weaponry

Bot Shot:



Bindings:

list.append(("Crystal","Poker",{'invertible':True,'radius':0.05,'topspeed':99,'throttle':130,'turn':40,'turnspeed':1.5}))

Any help?

Offline yugitom

  • *
  • Posts: 2378
  • Rep: 17
  • Google Garry's Wars
    • TheYuGiTom
    • View Profile
    • Awards
  • Skype: nanwiththeplan
Re: AIing trouble
« Reply #1 on: July 26, 2014, 06:56:11 AM »
What is the smartzone named?

Offline Philippa

  • The Queen of GTM
  • Giga Heavyweight
  • Posts: 6177
  • Rep: 0
  • ✊ Viva la Standard! ✊
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AIing trouble
« Reply #2 on: July 26, 2014, 06:56:33 AM »
What did you call the Smartzone?

Edit: YOU TIT.

Offline Natster-104

  • Ultra Heavyweight
  • Posts: 1406
  • Rep: 6
    • http://www.youtube.com/ch
    • View Profile
    • Awards
  • Skype: natster-104
Re: AIing trouble
« Reply #3 on: July 26, 2014, 06:58:03 AM »
weapon

Offline RedAce

  • Host of The Award Winning Deathmatch Series
  • *
  • Posts: 3964
  • Rep: 21
  • Yep, I'm that RedAce guy.
  • Awards BOTM Winner
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Skype: redaceofsp4des
  • Discord: ThatRedAceGuy#3618
Re: AIing trouble
« Reply #4 on: July 26, 2014, 07:01:55 AM »
Could you send me the bot so I can see what the problem is?

Offline yugitom

  • *
  • Posts: 2378
  • Rep: 17
  • Google Garry's Wars
    • TheYuGiTom
    • View Profile
    • Awards
  • Skype: nanwiththeplan
Re: AIing trouble
« Reply #5 on: July 26, 2014, 07:04:36 AM »
Is the button actually wired up to fire?

Could you send me the bot so I can see what the problem is?

Offline Natster-104

  • Ultra Heavyweight
  • Posts: 1406
  • Rep: 6
    • http://www.youtube.com/ch
    • View Profile
    • Awards
  • Skype: natster-104
Re: AIing trouble
« Reply #6 on: July 26, 2014, 07:06:22 AM »
Could you send me the bot so I can see what the problem is?
Yeah sure, as soon as I find my power pack x(
Is the button actually wired up to fire?
Yes

Offline yugitom

  • *
  • Posts: 2378
  • Rep: 17
  • Google Garry's Wars
    • TheYuGiTom
    • View Profile
    • Awards
  • Skype: nanwiththeplan
Re: AIing trouble
« Reply #7 on: July 26, 2014, 07:08:53 AM »
Could you send me the bot too? I am intrigued as to why this isn't working.

Offline Natster-104

  • Ultra Heavyweight
  • Posts: 1406
  • Rep: 6
    • http://www.youtube.com/ch
    • View Profile
    • Awards
  • Skype: natster-104
Re: AIing trouble
« Reply #8 on: July 26, 2014, 07:30:35 AM »
Could you send me the bot too? I am intrigued as to why this isn't working.
Sure

Offline cephalopod

Re: AIing trouble
« Reply #9 on: July 26, 2014, 08:05:22 AM »
You need a 'weapons' thing in bindings for the bot to use a weapon, so just put ,'weapons':(0,) in before the closing wiggly bracket after turnspeed and it'll work.
bristol bot builders / two headed death flamingo / snappy robots
//
kindest and friendliest '13, '15, '16, '17 / favourite staff member '14, '15

Offline Natster-104

  • Ultra Heavyweight
  • Posts: 1406
  • Rep: 6
    • http://www.youtube.com/ch
    • View Profile
    • Awards
  • Skype: natster-104
Re: AIing trouble
« Reply #10 on: July 26, 2014, 08:06:40 AM »
You need a 'weapons' thing in bindings for the bot to use a weapon, so just put ,'weapons':(0,) in before the closing wiggly bracket after turnspeed and it'll work.
Ah, I see, thanks a bunch Craaig

Offline yugitom

  • *
  • Posts: 2378
  • Rep: 17
  • Google Garry's Wars
    • TheYuGiTom
    • View Profile
    • Awards
  • Skype: nanwiththeplan
Re: AIing trouble
« Reply #11 on: July 26, 2014, 08:07:03 AM »
You need a 'weapons' thing in bindings for the bot to use a weapon, so just put ,'weapons':(0,) in before the closing wiggly bracket after turnspeed and it'll work.
Oh yeah, I never noticed that. Yeah, the bot needs to recognize that it has a weapon through the bindings or else it won't bother to fire a weapon it doesn't know it has.

Offline Natster-104

  • Ultra Heavyweight
  • Posts: 1406
  • Rep: 6
    • http://www.youtube.com/ch
    • View Profile
    • Awards
  • Skype: natster-104
Re: AIing trouble
« Reply #12 on: July 26, 2014, 08:15:20 AM »
tried it, and now my game won't even load or boot up

Offline cephalopod

Re: AIing trouble
« Reply #13 on: July 26, 2014, 08:17:59 AM »
Your binding should be

Code: [Select]
    list.append(("Crystal","Poker",{'invertible':True,'radius':0.05,'topspeed':99,'throttle':130,'turn':40,'turnspeed':1.5,'weapons':(0,)}))
bristol bot builders / two headed death flamingo / snappy robots
//
kindest and friendliest '13, '15, '16, '17 / favourite staff member '14, '15

Offline Natster-104

  • Ultra Heavyweight
  • Posts: 1406
  • Rep: 6
    • http://www.youtube.com/ch
    • View Profile
    • Awards
  • Skype: natster-104
Re: AIing trouble
« Reply #14 on: July 26, 2014, 08:19:39 AM »
Nope, the games buggered up, let me restart my computer

Offline yugitom

  • *
  • Posts: 2378
  • Rep: 17
  • Google Garry's Wars
    • TheYuGiTom
    • View Profile
    • Awards
  • Skype: nanwiththeplan
Re: AIing trouble
« Reply #15 on: July 26, 2014, 08:20:09 AM »
list.append(("Crystal","Poker",{'invertible':True,'radius':0.05,'topspeed':99,'throttle':130,'turn':40,'turnspeed':1.5,'weapons':(0,)}))

Does your line of AI look like this? If so (and still doesn't work), try to match the number of weapons Crystal has with the number of weapons listed.

Offline cephalopod

Re: AIing trouble
« Reply #16 on: July 26, 2014, 08:23:39 AM »
Matching the number of weapons will make no difference to the game loading/crashing. In fact, the only difference having the correct numbers there makes is if all the weapon id's listed have been torn off of the bot, the weapon will stop firing.
If that correct binding isn't working and the game is crashing, there's a different issue.
bristol bot builders / two headed death flamingo / snappy robots
//
kindest and friendliest '13, '15, '16, '17 / favourite staff member '14, '15

Offline Natster-104

  • Ultra Heavyweight
  • Posts: 1406
  • Rep: 6
    • http://www.youtube.com/ch
    • View Profile
    • Awards
  • Skype: natster-104
Re: AIing trouble
« Reply #17 on: July 26, 2014, 08:25:23 AM »
No, you don't understand, it's broken, it gets to the infogrames loading screen, and goes:

Quote
Robot arena 2 has stopped working

so somethings busted, probably not the bindings though

Offline cephalopod

Re: AIing trouble
« Reply #18 on: July 26, 2014, 08:26:40 AM »
Did you change anything in the AI Team folders, or any other binding lines? Worth checking.
bristol bot builders / two headed death flamingo / snappy robots
//
kindest and friendliest '13, '15, '16, '17 / favourite staff member '14, '15

Offline yugitom

  • *
  • Posts: 2378
  • Rep: 17
  • Google Garry's Wars
    • TheYuGiTom
    • View Profile
    • Awards
  • Skype: nanwiththeplan
Re: AIing trouble
« Reply #19 on: July 26, 2014, 08:27:12 AM »
What I don't get is, you said that your game crashed shortly after you made the change when it wasn't crashing before... Did you make any other changes, apart from the Crystal bindings? Incorrect bindings doesn't make your RA2 crash immediately.

Did you change anything in the AI Team folders, or any other binding lines? Worth checking.
Basically what he said.