Author Topic: Orc's Simple(ish) Guide to Wiring Up DSL Bots  (Read 1634 times)

Offline TheOrcCorp

  • I push buttons and hope GTM doesn't explode.
  • *
  • Posts: 853
  • Rep: 20
  • A mean, green, small brained machine!
    • View Profile
    • Awards
Orc's Simple(ish) Guide to Wiring Up DSL Bots
« on: August 17, 2020, 01:15:24 PM »
Right, ol Orc has heard enough bitching about AI that he's decided to make a tutorial series so that NONE of you have an excuse. Grab a snack/drink and read thoroughly!

Wiring involves naming your controls and adding smartzones so that the AI knows what kind of robot it is as well as when to fire it's weapons. We need to check our controller and make sure everything is named/wired correctly. You MUST name your controls precisely or they will not work. Button and smartzone names are in bold.

DRIVE
Forward - This makes the robot drive forward and backwards. For drive on the left side of your robot, the positive axis is Counter-Clockwise while the negative axis is Clockwise. For drive on the right side of your robot, it's the opposite: the positive axis is Clockwise while the negative axis is Counter-Clockwise.
 
AI Tutorial 1.png

LeftRight - This makes the robot turn to the side. No matter what side of drive you're wiring up, positive axis is Clockwise and negative axis is Counter-Clockwise.
 
AI Tutorial 2.png

Apparently, if you attach a wheel with the attachment point on the other side then you'll need to reverse your Clockwise/Counter-Clockwise settings (so Clockwise becomes Counter-Clockwise and vice versa). That's the drive done! Now we'll look at a few different bot types and what buttons/extras they need. I'm going to use a few examples of my own robots here.
FLIPPERS
Vivacious C is a flipper (a terrible one but he'll do for this tutorial). He needs a button as well as a smartzone to function properly.
Flip - this enables the flipper to fire up AS WELL as function as a srimech. Wire this button up to your flipping motors and make sure they have "Fire" selected so that they work.
 
AI Tutorial 5.png

Smartzones are found at the end of the Power section in Bot Construction. If you hit F12, you'll be able to see your selected smartzone and place it. You want to pick a smartzone suitable for your flipper's size and place it down accordingly. You'll need to experiment to find the best spot for your smartzone and name it flip . This combined with the button will make the flipper work!
 
AI Tutorial 3.png

 
AI Tutorial 4.png

SPINNERS
It's my boi, Deadgnaws! Spinners are extremely easy, requiring no smartzones: just one button (YES BUTTON, NOT SWITCH) for the spinner to work.
Spin - This enables your spinning motor to work. You'll have to adjust what direction it spins (Counter-Clockwise or Clockwise) to suit your robot.
 
AI Tutorial 6.png

Do NOT wire your spinners to a switch as the AI constantly turns them on and off during the battle. Wire it to a button and you're good to go.
AXES/PISTONS/FLAMETHROWERS ETC
Axes/piston spikes/flamethrowers etc all use the same base controls. I'll use Necky as my example here.
Fire - This enables your weapon to attack when a robot is in your smartzone.
 
AI Tutorial 7.png

You'll need a smartzone for these bots called weapon , again placed appropriately which will take some experimenting. Flamethrowers can also be assigned to your Forward button so that they are on when your robot drives but the choice is up to you.
 
AI Tutorial 9.png

SRIMECHS
Srimechs are easy.
Srimech - This enables your srimech to function when the robot is upside down.
 
AI Tutorial 8.png

BETA/OVERKILL MOTORS
These can be tricky buggers but the base settings are:
Hammer - This enables the motor to swing down. You will have to possibly mess with the axis settings when it comes to AI'ing but we'll come to that in the AI tutorial.
 
AI Tutorial 10.png

You'll need a smartzone named weapon and placed where you want it like the other smartzones
 
AI Tutorial 11.png


Right, think that's everything. Feel free to poke me if I missed anything but as far as I'm aware this has all the most used basic AI wiring needed. I've never done anything like this before so I HOPE it's helpful. Stay tuned for the next part which will focus on AI'ing!
GTM 2017 Awards - Most Unique Bots (shared with DSC) and Most Enthusiastic Member!
GTM 2018 Awards - Friendliest and Kindest/Most Unique Bots/Best Tournament 2018/Best Tournament by Editing/Best Tournament by Matches!
GTM 2019 Awards - Friendliest and Kindest(how)/Favourite Staff Member/Hall of Fame Inductee

Offline Herabitix

  • So i exist or something
  • Antweight
  • Posts: 40
  • Rep: 1
  • What's a DSL
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Discord: Herabitix#2973
Re: Orc's Simple(ish) Guide to Wiring Up DSL Bots
« Reply #1 on: August 17, 2020, 01:21:54 PM »
I'd say it looks good to me chief!
That one guy that builds Stock HS a lot

Offline Hoppin

  • I save GTM
  • *
  • Posts: 2017
  • Rep: 10
  • -rep TheRoboteer. "queermint"
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Discord: Hoppin#0013
Re: Orc's Simple(ish) Guide to Wiring Up DSL Bots
« Reply #2 on: August 17, 2020, 01:32:09 PM »
Alternatively this is also a good guide. It's what I used when starting out. https://gametechmods.com/forums/tutorials-and-tips/how-to-ai-for-newbies-(with-pics!)/

Great job green man. Reminder that Ai fights are 50% design, 50% AI people :))
Things I did & done

Offline TheOrcCorp

  • I push buttons and hope GTM doesn't explode.
  • *
  • Posts: 853
  • Rep: 20
  • A mean, green, small brained machine!
    • View Profile
    • Awards
Re: Orc's Simple(ish) Guide to Wiring Up DSL Bots
« Reply #3 on: August 17, 2020, 01:35:38 PM »
Alternatively this is also a good guide. It's what I used when starting out. https://gametechmods.com/forums/tutorials-and-tips/how-to-ai-for-newbies-(with-pics!)/
It's most likely very similar but figured if I titled this DSL then people would most likely be drawn to it.
GTM 2017 Awards - Most Unique Bots (shared with DSC) and Most Enthusiastic Member!
GTM 2018 Awards - Friendliest and Kindest/Most Unique Bots/Best Tournament 2018/Best Tournament by Editing/Best Tournament by Matches!
GTM 2019 Awards - Friendliest and Kindest(how)/Favourite Staff Member/Hall of Fame Inductee

Offline kix

  • RR2 dev
  • *
  • Posts: 3452
  • Rep: -3
  • H
    • View Profile
    • Awards
Re: Orc's Simple(ish) Guide to Wiring Up DSL Bots
« Reply #4 on: August 17, 2020, 01:40:48 PM »
IIRC, some wheels do the funny when attaching on the opposite ap, by p much reversing the drive. It might be very specific tho. Gj nevertheless