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

Offline philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
Pusher AI +Piston
« Reply #20 on: December 10, 2008, 07:21:04 AM »
for thoses who don't know much about AI, here is a simple Pusher AI that allows to have a piston command by a "Fire" command and a custom zone named "Weapon". It may help some of you for the elbite tourney.

https://gametechmods.com/uploads/files/PusherPiston.rar

Offline philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
Omni Multi zone
« Reply #21 on: December 17, 2008, 07:18:05 AM »
Hello there.

here is a simple written AI that allows to have up to 4 multi zone each attached to a specific controler (much like topknot)

https://gametechmods.com/uploads/files/OmniMultiZone.rar

this AI works like Omni except that it allows up to 4 customzone named
weapon1,weapon2,weapon3 and weapon4 that trigger the controlers Fire1, Fire2, Fire3 and Fire4.

use of spin motor is still allowed.
use a normal custom zone named 'weapon' which trigger the controler named 'Fire' is still allowed as much as Srimech.

Extension not much tested yet : you may define your default tactic by specifying
'tactic':"value of tactic" in your bindings.py with
"value of tactic in this set : { "Engage", "Ram", "Charge", "Shove" }

if not specified, the default tactic is like the Omni one : it is "Engage".

Sample in this pack are DSL2.1 SAMPLE. they have no interest by themself except to show the use of the AI

Offline Somebody

  • *
  • Posts: 7200
  • Rep: 13
  • CP: +2
    • SomebodyofGTM
    • View Profile
    • My site
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #22 on: January 04, 2009, 01:02:38 PM »
Would anybody happen to have the "Pillar" AI that is used on Speed KING from the RAW bots pack? It won't work and my game doesn't have it.
I built that big robot on that TV show that time


Offline Naryar

  • Posts: 23283
  • Rep: 21
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
AI-ing (.py files, coding, R+D, and help)
« Reply #23 on: January 04, 2009, 01:14:50 PM »
It's on the BBEANS4 AI pack, i think. Haymaker used it.

Offline Madiaba

AI-ing (.py files, coding, R+D, and help)
« Reply #24 on: January 04, 2009, 01:42:49 PM »
Quote from: Somebody;26146
Would anybody happen to have the "Pillar" AI that is used on Speed KING from the RAW bots pack? It won't work and my game doesn't have it.
SB, you might try the AI.py 'FBS_1' above. I built on 'Pillar' by hacking through the immobilization coding to improve it. This is now more consistent at getting FBS's out of immobilization countdowns, and also has several optional features for custom tweakings.
 
BTW: CB told me that he took some things from 'FBS_1' and improved Pillar into 'Pillar2'. I think he sent me a copy of it, though I haven't had time to look at it yet so I don't know all that he did to it.  But I would see if he's done with it and check it out too, for it may have some things you want.
 
..
Input is appreciated. :)
-Arrogance is a quantity devoid of quality...
-As a client once told me "This is my story, and it's sticking to me!"
-Relationships these days are like the 'Arrival' section of the airport: a lot of baggage is being revealed in one place, and not a lot of it is being correlated to its real owners...

Offline Somebody

  • *
  • Posts: 7200
  • Rep: 13
  • CP: +2
    • SomebodyofGTM
    • View Profile
    • My site
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #25 on: January 04, 2009, 06:10:07 PM »
Can I just have a copy of it please?
I built that big robot on that TV show that time


Offline Sage

  • *
  • Posts: 6182
  • Rep: 11
  • RA2 Wizard & GTM's Favorite Stock Builder 2015
  • Awards Sage's Favorite BOTM Winner
    • View Profile
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #26 on: January 04, 2009, 06:35:08 PM »
You got my vote for RA2 Wizard. Always and forever.

Offline Somebody

  • *
  • Posts: 7200
  • Rep: 13
  • CP: +2
    • SomebodyofGTM
    • View Profile
    • My site
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #27 on: January 10, 2009, 04:12:02 PM »
Thanks, it works now.

Also, I really really really want to learn how to AI, and NO I do not have and can not get any IMing devices. The closest I have is Hamachi. I want to host a tourney in the distant future, and I obviously need the ai skills.
I built that big robot on that TV show that time


Offline System32

  • *
  • Posts: 4663
  • Rep: 4
  • Reality
    • View Profile
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #28 on: January 10, 2009, 09:06:21 PM »
You don't NEED to DL hotmail, y'know.
Put this onto your signature if you were part of this crappy fad in '03.

Offline Somebody

  • *
  • Posts: 7200
  • Rep: 13
  • CP: +2
    • SomebodyofGTM
    • View Profile
    • My site
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #29 on: January 10, 2009, 09:31:19 PM »
Seriously, I can barely d/l ANYTHING without pissing them off. And they absolutely HATE it if I am in any direct chat thing. (Like, as in, ground, not let be on internet, Hatred)
I built that big robot on that TV show that time


Offline Madiaba

AI-ing (.py files, coding, R+D, and help)
« Reply #30 on: January 10, 2009, 10:02:47 PM »
I'll help you, SB.  You choose the medium, and let me know.
Input is appreciated. :)
-Arrogance is a quantity devoid of quality...
-As a client once told me "This is my story, and it's sticking to me!"
-Relationships these days are like the 'Arrival' section of the airport: a lot of baggage is being revealed in one place, and not a lot of it is being correlated to its real owners...

Offline Somebody

  • *
  • Posts: 7200
  • Rep: 13
  • CP: +2
    • SomebodyofGTM
    • View Profile
    • My site
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #31 on: January 11, 2009, 05:56:31 AM »
I have:
An invertable LW rammer that I want to use Rammer.py for
An invertable MW FS that I want to use the Omni.py for
An invertable HW rammer that I want to use Rammer.py for
A not-invertable (I made a button for the srimech which is just the hammers, and placed the smart zone already) hammer that I want to use the Chopper.py for
And 2 Not Invertable HW HSs that I want to use the Omni.py for.

I also need to AI a bot for Duck's tourney. It is an invertable MW that I want to use the Pusher.py for.
Tell me if you need more info about the bots. I already looked over the AIing guides, and named all of the weapons,srimechs,smartzones,etc.
I built that big robot on that TV show that time


Offline Madiaba

AI-ing (.py files, coding, R+D, and help)
« Reply #32 on: January 11, 2009, 08:58:05 AM »
PM, them over...
Input is appreciated. :)
-Arrogance is a quantity devoid of quality...
-As a client once told me "This is my story, and it's sticking to me!"
-Relationships these days are like the 'Arrival' section of the airport: a lot of baggage is being revealed in one place, and not a lot of it is being correlated to its real owners...

Offline System32

  • *
  • Posts: 4663
  • Rep: 4
  • Reality
    • View Profile
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #33 on: January 13, 2009, 12:41:40 PM »
I have a whole list of bots I'd like to AI, but I'm unsure about them. If I have a Popup with 2 HPZs a black, one DDT and 2 snapper 2's in the same chassis as walrus with a a 40CM extender, 2 20CM externders's and 2 Bear paws and 2 irons, would it need a slow speed or a fast one?

And if I used my wheels in the rear, would it be best to have a slower turnspeed? Does weight need to be considered? and what about bots that use RAD drives?

I think we need an in detail AI tutorial...
Put this onto your signature if you were part of this crappy fad in '03.

Offline Naryar

  • Posts: 23283
  • Rep: 21
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
AI-ing (.py files, coding, R+D, and help)
« Reply #34 on: January 13, 2009, 01:19:08 PM »
How about you guys just experiment... It's pretty easy to do !

Offline Reier

  • Rieir
  • *
  • Posts: 8579
  • Rep: 8
  • I GOT 3RD IN RAW1
    • https://www.youtube.com/c
  • Awards old BOTM Winner
    • View Profile
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #35 on: January 13, 2009, 01:33:57 PM »
Guys, I got a Biii...iiig problem.
Whenever I try to AI anything & try it out in the game, the icon looks just like the bot I was trying to replace.

IE. say I was trying to replace 2nd Sentinel with another bot. I would AI the other one, replace SS AI with it and everything, but when I go into the game, SS's preview is still there! Then I click on it & the game crashes.

Help please? I will do my best to describe the problem further if I haven't been clear enough.
ALERT- Another WS coming up...
voted best bot builder two times and counting babayy. the best ra2 builder who has never won an actual tournament match
ReiAI pack for Ironforge
My drawings, and my webcomics
Why online PVP will save RA2
The problem with competitive IRL in RA2
I'm fine with hugging reier

Offline philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #36 on: January 14, 2009, 03:19:00 AM »
Quote from: Reier;26678
Guys, I got a Biii...iiig problem..


Here are the easy step to replace a bot in a team :

1/ memorize which bot in which team you would like to change :




2/ Create your killer bot. Give it a name, be aware of its nose attitude :


3/ export your bot : For name give it bot0 through bot5 depending of the bot you would like to change in your target team


4/ exit RA2. under your AI directory, select your team and save the bot that you will erase :


5/ move the bot you have create from RA2/Robot designs to AI/target team. The system should ask you if you really want to erase the bot with the same name (you will) :


6/ add your bindings in AI/bindings.py. It is not necessary to delete the previsous line :


7/ launch RA2, enjoy life and drink ... whatever you want :

Offline Madiaba

AI-ing (.py files, coding, R+D, and help)
« Reply #37 on: January 14, 2009, 06:43:10 AM »
Nice, Phil. This sure helps.
Thanks.  
Input is appreciated. :)
-Arrogance is a quantity devoid of quality...
-As a client once told me "This is my story, and it's sticking to me!"
-Relationships these days are like the 'Arrival' section of the airport: a lot of baggage is being revealed in one place, and not a lot of it is being correlated to its real owners...

Offline Scrap Daddy

AI-ing (.py files, coding, R+D, and help)
« Reply #38 on: January 14, 2009, 02:30:39 PM »
how good/bad is directional spinner ai?

Offline philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
AI-ing (.py files, coding, R+D, and help)
« Reply #39 on: January 15, 2009, 03:29:17 AM »
Quote from: Scrap Daddy;26716
how good/bad is directional spinner ai?


That's a great question, looking at the code i do not see much difference between spinner and directionnal spinner.  Is there really a difference ? where is it defined ?
(Mad, ai-Guru, any idea ?)

btw there is a AI called VertSpinner which is quiet good : change the direction of spin when the bot is inverted, support Srimech and other fired weapon.