gametechmods

Robot Arena => General Support => Topic started by: Elementos on July 06, 2014, 06:55:42 PM

Title: How to edit a botfile to make it's burst motor have an 180 degree arc?
Post by: Elementos on July 06, 2014, 06:55:42 PM
So I'm making a replica and the judge burst says how the Judge's botfile was edited to make its burst motor have an 180 degree arc. I wanna know how to do this as it will improve my bot a ton.

Anyone help?
Title: Re: How to edit a botfile to make it's burst motor have an 180 degree arc?
Post by: Resetti's Replicas on July 06, 2014, 08:12:27 PM
Go into the bot file and locate the line below the burst motor.  The second number is the swing arc in radians, change that to extend the swing arc.  1.5708 is equal to 90 degrees.  In my experience, you can go as high as +/- 2.9 without havok risks.
(https://gametechmods.com/uploads/images/79204bfe.png)
Title: Re: How to edit a botfile to make it's burst motor have an 180 degree arc?
Post by: Elementos on July 06, 2014, 08:32:53 PM
Thanks for such a simple answer.  :thumbup
Title: Re: How to edit a botfile to make it's burst motor have an 180 degree arc?
Post by: Jaydee99 on July 10, 2014, 06:53:20 AM
Now I know how. Yey!
Title: Re: How to edit a botfile to make it's burst motor have an 180 degree arc?
Post by: Natster-104 on July 10, 2014, 07:00:20 AM
Wow this has helped me quite a bit, anyone know where I can find a DL for notepad++?
Title: Re: How to edit a botfile to make it's burst motor have an 180 degree arc?
Post by: Elementos on July 10, 2014, 12:06:48 PM
Think there's a link on the downloads section of GTM.
Title: Re: How to edit a botfile to make it's burst motor have an 180 degree arc?
Post by: 090901 on July 10, 2014, 12:08:29 PM
Wow this has helped me quite a bit, anyone know where I can find a DL for notepad++?
http://notepad-plus-plus.org/download/v6.6.7.html (http://notepad-plus-plus.org/download/v6.6.7.html)
Title: Re: How to edit a botfile to make it's burst motor have an 180 degree arc?
Post by: Yeastisbeast on December 30, 2014, 12:14:33 PM
I tried this, but when I went into the botlab to see if it workec my game crashed. Help plz
Title: Re: How to edit a botfile to make it's burst motor have an 180 degree arc?
Post by: Badnik96 on December 30, 2014, 07:34:27 PM
Did you edit it in notepad++ and keep everything else the same?

Changing the length of the number probably messed it up I think.
Title: Re: How to edit a botfile to make it's burst motor have an 180 degree arc?
Post by: Yeastisbeast on December 31, 2014, 03:53:09 AM
I did it again, kept the number length the same, edited in notepad, still didn't work. Changed it from 2.26667 to 2.96667.
Title: Re: How to edit a botfile to make it's burst motor have an 180 degree arc?
Post by: Resetti's Replicas on December 31, 2014, 08:49:32 AM
So just regular Notepad, the one that came pre installed with windows?  Tht could be your problem; it doesn't preserve line spacing and special characters.  Get notepad++ and make that your default program for editing text and gmf files.
Title: Re: How to edit a botfile to make it's burst motor have an 180 degree arc?
Post by: Yeastisbeast on December 31, 2014, 09:14:32 AM
Actually I looked and it's wordpad. When I tried to install notepad++ it kept coming up with 'error opening file' you could ignore it, but there were so many I figured it wouldn't work anyway and eventually clicked abort

Title: Re: How to edit a botfile to make it's burst motor have an 180 degree arc?
Post by: Badnik96 on December 31, 2014, 03:34:36 PM
See theres your problem. It's gotta be in notepad++.
Title: Re: How to edit a botfile to make it's burst motor have an 180 degree arc?
Post by: Yeastisbeast on January 05, 2015, 09:58:18 AM
Well, I've AI'd using wordpad, but OK...
Title: Re: How to edit a botfile to make it's burst motor have an 180 degree arc?
Post by: Badnik96 on January 05, 2015, 10:06:11 AM
Py files and Bot files are completely different things. You can edit the bindings file in pretty much any word processor, bot files need notepad++ or they screw up.
Title: Re: How to edit a botfile to make it's burst motor have an 180 degree arc?
Post by: Trovaner on January 06, 2015, 07:46:12 AM
Wordpad is what is known as a word processor. Its good for formatting documents that look good for humans. What you see on screen does not necessarily reflect the contents of the file.

Notepad is a text editor. It doesn't allow for any text formatting but that is exactly what you need when programming because things like italics generally don't mean anything to a compiler or interpreter. When you open a file in a text editor, you are viewing exactly whats in the file.

Neither Notepad nor Wordpad support all of the characters found in a bot file so you'll need to find one that does since the bot file contains TGA data for the skin and preview image. Most of the people here use Notepad++ but there are plenty of other options if you can't get it to work.

That said, you shouldn't get any error if you install Notepad++ by downloading and extracting the ZIP instead of the executable.