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

Offline Squirrel_Monkey

  • Squirrel_Monkeyweight
  • *
  • Posts: 7587
  • Rep: 7
  • [Insert clever and witty comment here]
    • 0SquirrelMonkey0
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #900 on: August 27, 2011, 03:11:46 PM »
How is TheTroll5 written in the bot fie?
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #901 on: August 27, 2011, 03:13:37 PM »
Code: [Select]
Name: The Troll5

Offline Squirrel_Monkey

  • Squirrel_Monkeyweight
  • *
  • Posts: 7587
  • Rep: 7
  • [Insert clever and witty comment here]
    • 0SquirrelMonkey0
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #902 on: August 27, 2011, 03:14:45 PM »
OK, there goes my idea. I'm assuming you had the 4 spaces at the beginning of the line right?
When does it crash?
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #903 on: August 27, 2011, 03:17:19 PM »
At the start of the game.

Offline Squirrel_Monkey

  • Squirrel_Monkeyweight
  • *
  • Posts: 7587
  • Rep: 7
  • [Insert clever and witty comment here]
    • 0SquirrelMonkey0
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #904 on: August 27, 2011, 03:19:13 PM »
Shouldn't it be called Bot0.bot?
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #905 on: August 27, 2011, 03:21:03 PM »
Shouldn't it be called Bot0.bot?

Woops, still crashes though.

Offline Squirrel_Monkey

  • Squirrel_Monkeyweight
  • *
  • Posts: 7587
  • Rep: 7
  • [Insert clever and witty comment here]
    • 0SquirrelMonkey0
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #906 on: August 27, 2011, 03:22:10 PM »
OK, that's me out, I'm still trying to fix my problem.
I guess all we can do now is wait.
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #907 on: August 27, 2011, 03:27:37 PM »
Alright, got it fixed.

The problem was that I had installed Pys AI over SC3 AI which has strange effects on the teams.

Offline Squirrel_Monkey

  • Squirrel_Monkeyweight
  • *
  • Posts: 7587
  • Rep: 7
  • [Insert clever and witty comment here]
    • 0SquirrelMonkey0
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #908 on: August 27, 2011, 03:28:33 PM »

Yeah, SC3 and its batch files...
I still can't fix my bot :rage
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline Fracture

  • Super Mega Hyper Giga
  • Ultra Heavyweight
  • Posts: 1505
  • Rep: 11
  • how about i shove my big dog up your hanky panky
  • Awards GTMCS2 Divison Winner BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #909 on: August 27, 2011, 03:37:17 PM »
Is it set to "Spin" with a button and not a switch?

Offline Clickbeetle

  • *
  • Posts: 3375
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #910 on: August 27, 2011, 07:49:36 PM »
No weapons line, would that affect it?

Yes, the AI is told to only spin if it still has weapons.  If there is no 'weapons' line, the AI doesn't know that it has any weapons and it won't spin.  If you don't want to actually have any real weapons set, just use 'weapons':(0,)
 
The reason the AI never stops spinning once they start is because button controls are almost impossible to turn off once activated.
 
Edit:
 
i ai-ed a pushy bot with a snowplow that fails. it's wired correctly, it faces the right way, but this is what it does.

it drives toward me, backs up, then drives staright into a corner. help?

What .py are you using?  Does it eventually drive out of the corner or does it just stay there?  Does the AI ever turn?  It may also help to post the bindings you're using.  Answer those questions and someone may be able to help.

To lack feeling is to be dead, but to act on every feeling is to be a child.
-Brandon Sanderson, The Way of Kings

Offline Squirrel_Monkey

  • Squirrel_Monkeyweight
  • *
  • Posts: 7587
  • Rep: 7
  • [Insert clever and witty comment here]
    • 0SquirrelMonkey0
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #911 on: August 28, 2011, 05:38:07 AM »
No weapons line, would that affect it?

Yes, the AI is told to only spin if it still has weapons.  If there is no 'weapons' line, the AI doesn't know that it has any weapons and it won't spin.  If you don't want to actually have any real weapons set, just use 'weapons':(0,)
 
I had a dream that I got that advice last night, but it was from Sage for some reason.
I'll go check it works now.
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline Sage

  • *
  • Posts: 6179
  • Rep: 11
  • RA2 Wizard & GTM's Favorite Stock Builder 2015
  • Awards Sage's Favorite BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #912 on: August 28, 2011, 12:32:18 PM »
You got my vote for RA2 Wizard. Always and forever.

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 #913 on: August 28, 2011, 03:46:39 PM »
So... I would guess Sage is so incredibly awesome at giving advice that when he sleeps, his mind casts Sending spells on it's own and sends advice subconsciously to less skilled builders ?

Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #914 on: August 29, 2011, 03:06:38 PM »
How can I AI a SnS so that it moves towards the enemy (kinda like pressing forward whenever the front of the SnS is aiming towards the enemy).

Offline Virus Bomb

Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #915 on: August 29, 2011, 03:16:01 PM »
FBS.py

Offline nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #916 on: August 29, 2011, 03:22:39 PM »

Offline Virus Bomb

Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #917 on: August 29, 2011, 04:40:19 PM »
It should be in the BBEANS DSL AI pack.

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 #918 on: August 29, 2011, 05:29:56 PM »
It's in NAR AI as well. And I bet it has moar info to make it work (added by me) that in the BBEANS AI pack :P

Offline Wolfsbane

  • Heavyweight
  • Posts: 583
  • Rep: -5
  • Pokemens.
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Skype: suicideladder
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #919 on: August 29, 2011, 05:50:11 PM »
No weapons line, would that affect it?

Yes, the AI is told to only spin if it still has weapons.  If there is no 'weapons' line, the AI doesn't know that it has any weapons and it won't spin.  If you don't want to actually have any real weapons set, just use 'weapons':(0,)
 
The reason the AI never stops spinning once they start is because button controls are almost impossible to turn off once activated.
 
Edit:
 
i ai-ed a pushy bot with a snowplow that fails. it's wired correctly, it faces the right way, but this is what it does.

it drives toward me, backs up, then drives staright into a corner. help?

What .py are you using?  Does it eventually drive out of the corner or does it just stay there?  Does the AI ever turn?  It may also help to post the bindings you're using.  Answer those questions and someone may be able to help.
"Rammer",{'invertible':True,'radius':2,'topspeed':100,'throttle':120,'turn':60,'turnspeed':4}))
Man this needed an update. Anyways, Your local autistic idiot signing out.