Author Topic: AI-ing (.py files, coding, nose-orienting R+D, and help)  (Read 235747 times)

Offline Avalanche

  • Retired.
  • Ultra Heavyweight
  • Posts: 3108
  • Rep: -34
  • Yeah, I don't know why I'm still here either.
    • View Profile
    • Awards
  • Discord: ThePootisPower#8377
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1140 on: April 04, 2015, 06:11:06 PM »
Put range around 500 to ENSURE that it starts right away.
Former DSL HW champion.
Runner-Up in The Cybernetic Colosseum HW division.
Semi-finalist in RNP: Sword of Glory.
Robogames 1 BW Runner-up.
Professional cunt.
Man of a thousand alt accounts.

Offline Naryar

  • Posts: 23278
  • Rep: 20
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1141 on: April 05, 2015, 06:50:45 AM »
99 should work.

Maybe it's how you wired it ?

Offline TheUnknownRobotics

  • UnknownMartin
  • Heavyweight
  • Posts: 577
  • Rep: -4
  • Sm4sh NNID: Nixtram
    • http://www.youtube.com/ch
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1142 on: April 05, 2015, 08:55:35 AM »
99 should work.

Maybe it's how you wired it ?
No, I wired it "Spin" (No quotations), and I put  99. I'll check it again.
Also, some of my robots spin very late anyways, even with 99 range. What should I do?
(By late, I mean as soon as the robots are touching, the motor spins, doing, like, little to no damage.)
Mostly a lurker and Sm4sh Bros. player nowadays. :3

Offline Naryar

  • Posts: 23278
  • Rep: 20
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1143 on: April 05, 2015, 12:22:48 PM »
99 should work.

Maybe it's how you wired it ?
No, I wired it "Spin" (No quotations), and I put  99. I'll check it again.
Also, some of my robots spin very late anyways, even with 99 range. What should I do?
(By late, I mean as soon as the robots are touching, the motor spins, doing, like, little to no damage.)

Are you using an analog or switch instead of a button ?

Offline TheUnknownRobotics

  • UnknownMartin
  • Heavyweight
  • Posts: 577
  • Rep: -4
  • Sm4sh NNID: Nixtram
    • http://www.youtube.com/ch
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1144 on: April 05, 2015, 03:32:20 PM »
99 should work.

Maybe it's how you wired it ?
No, I wired it "Spin" (No quotations), and I put  99. I'll check it again.
Also, some of my robots spin very late anyways, even with 99 range. What should I do?
(By late, I mean as soon as the robots are touching, the motor spins, doing, like, little to no damage.)

Are you using an analog or switch instead of a button ?
I used a button, and I did, in fact, name it Spin. So I have no idea what's wrong.
Mostly a lurker and Sm4sh Bros. player nowadays. :3

Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17536
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1145 on: April 05, 2015, 03:41:22 PM »
Do your robots have "weapon" values in their binding lines? If they don't, their weapons won't spin.

Offline TheUnknownRobotics

  • UnknownMartin
  • Heavyweight
  • Posts: 577
  • Rep: -4
  • Sm4sh NNID: Nixtram
    • http://www.youtube.com/ch
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1146 on: April 05, 2015, 03:46:13 PM »
Do your robots have "weapon" values in their binding lines? If they don't, their weapons won't spin.
... Damn it. I'll be right back. Thx Badnik.
Mostly a lurker and Sm4sh Bros. player nowadays. :3

Offline cephalopod

Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1147 on: April 05, 2015, 06:42:56 PM »
If you don't wanna find the actual component numbers to use in the weapons section, just put 0 - this corresponds to chassis so the bot will always try to spin the weapons as long as the range is triggered (even if the weapons aren't there)
bristol bot builders / two headed death flamingo / snappy robots
//
kindest and friendliest '13, '15, '16, '17 / favourite staff member '14, '15

Offline TheUnknownRobotics

  • UnknownMartin
  • Heavyweight
  • Posts: 577
  • Rep: -4
  • Sm4sh NNID: Nixtram
    • http://www.youtube.com/ch
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1148 on: April 05, 2015, 09:50:19 PM »
If you don't wanna find the actual component numbers to use in the weapons section, just put 0 - this corresponds to chassis so the bot will always try to spin the weapons as long as the range is triggered (even if the weapons aren't there)
Thankfully, it works now. (For some reason, I'm feeling more doubt of starting a tourney, now.)
Hopefully I'll remember this in the future.
Mostly a lurker and Sm4sh Bros. player nowadays. :3

Offline Jaydee99

  • WalterWhiteWeight
  • *
  • Posts: 1941
  • Rep: -23
  • NEVER ASK NARYAR WHO WAS IN PARIS!!!!
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1149 on: April 07, 2015, 05:15:18 PM »
I may have asked this before but is there an AI for a thwacker hammer thing and a spinner?

Offline cephalopod

Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1150 on: April 09, 2015, 05:08:35 PM »
FBSInvertDir will do what I think you're trying to do.
bristol bot builders / two headed death flamingo / snappy robots
//
kindest and friendliest '13, '15, '16, '17 / favourite staff member '14, '15

Offline Jaydee99

  • WalterWhiteWeight
  • *
  • Posts: 1941
  • Rep: -23
  • NEVER ASK NARYAR WHO WAS IN PARIS!!!!
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1151 on: April 09, 2015, 05:22:23 PM »
Thanks

Offline RedAce

  • Host of The Award Winning Deathmatch Series
  • *
  • Posts: 3965
  • 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: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1152 on: July 01, 2015, 02:49:48 PM »
Can someone help me out here? Whenever I start the game with this AI for this bot, the game crashes. What am I doing wrong?

https://gametechmods.com/Robot_Exchange/BW/jaydee99_Kitten.bot

Code: [Select]
    list.append(("Kitten","Omni",{'nose':math.pi,'invertible':True,'range':50,'radius':1,'topspeed':100,'throttle':100,'turn':100,'turnspeed':2.5,'weapons':(0)}))

Offline yugitom

  • *
  • Posts: 2378
  • Rep: 17
  • Google Garry's Wars
    • TheYuGiTom
    • View Profile
    • Awards
  • Skype: nanwiththeplan
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1153 on: July 01, 2015, 02:59:09 PM »
I don't know but this line works:
Code: [Select]
    list.append(("Kitten","Omni",{'nose':math.pi,'invertible':True,'range':99,'radius':1,'topspeed':100,'throttle':100,'turn':100,'turnspeed':1,'weapons':(0,)}))

Offline G.K.

  • *
  • Posts: 12156
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1154 on: July 01, 2015, 03:06:40 PM »
Did you remember teams.txt?
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline yugitom

  • *
  • Posts: 2378
  • Rep: 17
  • Google Garry's Wars
    • TheYuGiTom
    • View Profile
    • Awards
  • Skype: nanwiththeplan
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1155 on: July 01, 2015, 03:12:10 PM »
Did you remember teams.txt?
Doesn't matter. I tried it with teams.txt and it still didn't work. The new AI line works, for some reason, though.

Edit: Just saw what Chris said. Yeah, the comma after the very last 0 needs to be there.

Offline G.K.

  • *
  • Posts: 12156
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1156 on: July 01, 2015, 03:32:23 PM »
Yeah, that comma is prolly it.
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline RedAce

  • Host of The Award Winning Deathmatch Series
  • *
  • Posts: 3965
  • 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: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1157 on: July 01, 2015, 08:48:58 PM »
Not sure why that works, but that doesn't matter. What matters is that it works. Thanks guys!

Offline Naryar

  • Posts: 23278
  • Rep: 20
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1158 on: July 02, 2015, 06:42:21 AM »
there is a comma missing after the 0 of weapons and i am quite sure this is it

edit: 2slow

Offline yugitom

  • *
  • Posts: 2378
  • Rep: 17
  • Google Garry's Wars
    • TheYuGiTom
    • View Profile
    • Awards
  • Skype: nanwiththeplan
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1159 on: July 02, 2015, 06:44:19 AM »
edit: 2slow
Not even. You just didn't read the fact a solution was found.