Author Topic: BFE - A beginner's guide  (Read 5391 times)

Offline Hoppin

  • I save GTM
  • *
  • Posts: 2018
  • Rep: 10
  • -rep TheRoboteer. "queermint"
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Discord: Hoppin#0013
BFE - A beginner's guide
« on: November 14, 2018, 09:35:33 AM »
BFE - Beginners guide.

BFE (Bot File Editing) is the process of adjusting the parametres of a given component using the .bot file.

To start with I recommend looking at Craig's guide to the bot file, in which he dissects the bot file itself, showing what each part does. https://gametechmods.com/forums/tutorials-and-tips/guide-to-the-bot-file-(re-up)/

Software you'll need.
Notepad++ https://notepad-plus-plus.org/

Changing the chassis height.
Changing the height of the chassis is a rather simple task. It is stored as a decimal point somewhere shortly after "Chassis". (The number of lines depends on the amount of points your chassis has)

To start with you'll want to create a chassis, example below.
 
BFE 1.PNG


Then you'll want to export it, this can be done by selecting the bot in the team HQ, then clicking "EXPORT". Navigate to your "Robot Designs" folder, in which you can open the .bot file using Notepad++.
 
BFE 2.PNG


Once opened, you'll want to find the word "Chassis". Once located, look for a decimal point number. That is the value of your chassis height, highlight this, then press Ctrl+H. This brings up the Replace function. Adjust the "Replace this" to the number you want it to be, then click "Replace All". Then save!
 
BFE 3.PNG

YOU ONLY NEED THE DECIMAL NUMBER ON THE LEFT, IGNORE THE RIGHT HAND NUMBER
 
BFE 6.PNG




Open up your RA2, then import the bot you just saved. Tada!
 
BFE 5.PNG


Position Adjustment
Again, this is a super simple process, even more so than the previous one, specifically in building extenderbots.

To start with place the component (for this example I'm using "Extenderstart" to showcase the process better.). Then export the bot once done so.

I tend to think as bot building as a grid, in which components move on an axis. When opening up the bot without moving the camera, the axis will look like so.
 
BFE 7.png


When opening up the bot file, you should be able to find the components section, located near the end of the file.
 
BFE 8.PNG


We are looking to adjust the X, Y & Z values of the component in question. Each component in the bot has their own set of variables found above the name of the components, highlighted below
 
BFE 9.PNG


We are looking to adjust the line "0 0 0". This is the position of the component. X Y & Z respectively.
 
BFE 10.PNG


Remember that 10cm in the game is 0.1 on the file. Keep this in mind when you're adjusting the value.

Save up, and re-import your bot. If it doesn't move in the direction you intended to, you might have used the wrong column.
 
BFE 10.PNG

Here's the example from earlier, with the motor moved +0.4 (40cm) in the X axis.
 
BFE 11.PNG



Changing the component
For this, you want to change the .txt name in the bot file of the component you have, to the one you want to change.
 
BFE 12.PNG


This can be difficult as you need to know the name of the component in the file name. You can do this easier by attaching the component you want to change it to, to the bot, then copying that .txt name over to the component you need to change.

Hopefully this helps with your BFE. Any questions, just post a reply and I'll certainly try to answer them.
« Last Edit: April 19, 2020, 03:39:06 PM by Hoppin »
Things I did & done

Offline TheRoboteer

  • Mr Big Blue Flipper
  • *
  • Posts: 1594
  • Rep: 9
  • "I HATE SEBASTIAN COE!"
  • Awards Donated money for site hosting 2021
    • View Profile
    • Awards
  • Discord: TheRoboteer#8784
Re: BFE - A beginner's guide
« Reply #1 on: November 14, 2018, 09:39:22 AM »
Good to see more of these guides cropping up. In an ideal world there'd be one for every major aspect of RA2.

Pretty well-written too. Though you could have condensed it down to just the word "Don't" IMO  ;)
Notable Tournament Performances:
The Beginner's Guide to IRL:
https://gametechmods.com/forums/tutorials-and-tips/irl-a-beginner's-guide

Offline Hoppin

  • I save GTM
  • *
  • Posts: 2018
  • Rep: 10
  • -rep TheRoboteer. "queermint"
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Discord: Hoppin#0013
Re: BFE - A beginner's guide
« Reply #2 on: November 14, 2018, 09:40:35 AM »
Pretty well-written too. Though you could have condensed it down to just the word "Don't" IMO  ;)

Beginner's guide to Ra2 right there.
Things I did & done

Offline kix

  • RR2 dev
  • *
  • Posts: 3452
  • Rep: -3
  • H
    • View Profile
    • Awards
Re: BFE - A beginner's guide
« Reply #3 on: November 14, 2018, 09:53:29 AM »
Okay this is epic, but for chassis height or anything related to bfe, you dont really need to export the bot. Go to Test bot section, Alt tab out of the game, locate the bot, and bfe it there, without needing to exit the botlab

It saves you time

Offline Hoppin

  • I save GTM
  • *
  • Posts: 2018
  • Rep: 10
  • -rep TheRoboteer. "queermint"
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Discord: Hoppin#0013
Re: BFE - A beginner's guide
« Reply #4 on: November 14, 2018, 09:54:43 AM »
Okay this is epic, but for chassis height or anything related to bfe, you dont really need to export the bot. Go to Test bot section, Alt tab out of the game, locate the bot, and bfe it there, without needing to exit the botlab

Just the way I learnt it, by all means you can do it that way.
Things I did & done

Offline Redalert

  • The inventor of Wandering Spinners and invincirammers
  • Ultra Heavyweight
  • Posts: 1349
  • Rep: -48
  • Yes, I’m an outsider.
    • View Profile
    • RedStorm's RA2 website
    • Awards
  • Discord: RedStorm
Re: BFE - A beginner's guide
« Reply #5 on: November 14, 2018, 12:01:34 PM »
Okay this is epic, but for chassis height or anything related to bfe, you dont really need to export the bot. Go to Test bot section, Alt tab out of the game, locate the bot, and bfe it there, without needing to exit the botlab

It saves you time

Thanks! I've never BFE'd before, so I just build all in-game. This will help, though.


Offline superbot13

  • Middleweight
  • Posts: 330
  • Rep: -3
    • View Profile
    • Awards
Re: BFE - A beginner's guide
« Reply #6 on: November 14, 2018, 03:54:41 PM »
You should add 180 degree bursts
Guess who's back

Offline Billy5545

  • Best Newcomer 2018
  • Posts: 796
  • Rep: 4
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Discord: Kendor#3191
Re: BFE - A beginner's guide
« Reply #7 on: November 14, 2018, 04:27:17 PM »
Okay this is epic, but for chassis height or anything related to bfe, you dont really need to export the bot. Go to Test bot section, Alt tab out of the game, locate the bot, and bfe it there, without needing to exit the botlab

It saves you time

Thanks! I've never BFE'd before, so I just build all in-game. This will help, though.
BFE can only be legally used for IRL (to help make more realistic bot) or maybe IF-S (I don't know actually, but I think Reier only allowed chassis height BFE for one of his tourneys IIRC). So if you use it in Stock Unrealistic, your bot will get rejected if you enter it to tourneys