How to make a robot drive a car

Use this forum to report bugs or ask for help

Moderator: kilo

Re: How to make a robot drive a car

Postby chad3006 » Mon Nov 18, 2019 2:34 pm

You'll notice in the above code, that there are already 14 cars that simplix can drive. You'll be adding to that. So if you want to add one of the early 70's stock cars, we'll add to these two sections:

First section:
Code: Select all
      <section name="0">
        <attstr name="name" val="Simplix"></attstr>
        <attstr name="short name" val="Simplix"></attstr>
        <attstr name="code name" val="SIM"></attstr>
        <attstr name="desc" val="simplix: car1"></attstr>
        <attstr name="team" val="simplix"></attstr>
        <attstr name="author" val="Wolf-Dieter Beelitz"></attstr>
        <attstr name="car name" val="trb1-cavallo-360rb"></attstr>
        <attnum name="race number" val="1"></attnum>
        <attnum name="red" val="1.0"></attnum>
        <attnum name="green" val="0.3"></attnum>
        <attnum name="blue" val="0.3"></attnum>
      </section>
<!--    START:  Here's what I added to associate David Peterson to the #21 car                      -->     
      <section name="1">
         <attstr name="name" val="David Peterson"></attstr>
         <attstr name="short name" val="D. Peterson"></attstr>
         <attstr name="code name" val="DAV"></attstr>
         <attstr name="desc" val="simplix: car1"></attstr>
         <attstr name="team" val="simplix"></attstr>
         <attstr name="author" val="Wolf-Dieter Beelitz"></attstr>
         <attstr name="car name" val="stock-mercurial-71coldfront"></attstr>
         <attnum name="race number" val="21"></attnum>
         <attnum name="red" val="1.0"></attnum>
         <attnum name="green" val="0.3"></attnum>
         <attnum name="blue" val="0.3"></attnum>
      </section>
<!--    END:  Here's what I added to associate David Peterson to the #21 car                        --> 


Second section:
Code: Select all
        <section name="14">
     <attstr name="car name" val="sc-spirit-300" />
        </section>
<!--    START:  Here's what I added to make the stock-mercurial-71coldfront simplix drivable      -->
       <section name="15"> 
     <attstr name="car name" val="stock-mercurial-71coldfront" />
       </section>
<!--    END:  Here's what I added to make the stock-mercurial-71coldfront simplix drivable      --> 
User avatar
chad3006
 
Posts: 243
Joined: Mon Aug 13, 2012 7:56 pm
Location: USA

Re: How to make a robot drive a car

Postby chad3006 » Mon Nov 18, 2019 2:37 pm

You'll need to keep in mind the consecutive numbers at the beginning of each section: in the above example we went from "0" to "1" in the first section and from "14" to "15" in the second.
User avatar
chad3006
 
Posts: 243
Joined: Mon Aug 13, 2012 7:56 pm
Location: USA

Re: How to make a robot drive a car

Postby chad3006 » Mon Nov 18, 2019 2:43 pm

Now, if you want to add another mercurial-71coldront driver, say for the #90 car you only need to modify the first section. The second section already has the "stock-mercurial-71coldfront in there," so it's not necessary to add it again.
Code: Select all
<!--    START:  Here's what I added to associate Charlie Glossbrooks to the #90 car                    -->     
      <section name="2">
         <attstr name="name" val="Charlie Glossbrooks"></attstr>
         <attstr name="short name" val="C. Glossbrooks"></attstr>
         <attstr name="code name" val="CGL"></attstr>
         <attstr name="desc" val="simplix: car1"></attstr>
         <attstr name="team" val="simplix"></attstr>
         <attstr name="author" val="Wolf-Dieter Beelitz"></attstr>
         <attstr name="car name" val="stock-mercurial-71coldfront"></attstr>
         <attnum name="race number" val="90"></attnum>
         <attnum name="red" val="1.0"></attnum>
         <attnum name="green" val="0.3"></attnum>
         <attnum name="blue" val="0.3"></attnum>
      </section>
<!--    END:  Here's what I added to associate Charlie Glossbrooks to the #90 car                      -->
User avatar
chad3006
 
Posts: 243
Joined: Mon Aug 13, 2012 7:56 pm
Location: USA

Re: How to make a robot drive a car

Postby chad3006 » Mon Nov 18, 2019 2:50 pm

If you want to add other cars, you'll modify these sections, being mindful of the consecutive numbers and only adding to the second section when you're adding a completely new car. (not just a livery.) Each section should begin with "<section ....>" and end with "</section>"

If anyone's interested in the who's who in the early 70's stock cars I made, here it is:
#21 mercurial-71coldfront; David Peterson = Mercury Cyclone; David Pearson (Richard Petty's archrival)
#90 mercurial-71coldfront; Charlie Glossbrooks = Mercury Cyclone; Charlie Glotzbach/Dick Brooks (both drove it sometimes)
#48 mercurial-71coldfront; James Hillson = Mercury Cyclone; James Hylton

#16 patriot-72bullfighter; Mark Donashoe = AMC Matador; Mark Donohue (a legendary driver)
#2 patriot-72bullfighter; Dave Marco = AMC Matador; Dave Marcis

#11 stock-taipan71chaparral Bucky Baker = Dodge Charger; Buddy Baker (hard-luck driver)
#71 stock-taipan71chaparral Bobby Isley = Dodge Charger; Bobby Isaac (another hard-luck driver)
#42 stock-taipan71chaparral Marty Robinson = Dodge Charger; Marty Robbins (country singer)

#27 stock-fmc-71tortilla; Donnie Alexson = Ford Torino; Donnie Allison (brother to Bobby)
#98 stock-fmc-71tortilla; Lee Roy Yardbird = Ford Torino; Lee Roy Yarbrough (no relation to Cale different spelling)
#77 stock-fmc-71tortilla; Charlie Robertson = Ford Torino; Charlie Roberts

#43 plethora-71rumrunner; Richard Pretty = Plymouth Roadrunner; Richard Petty (legendary driver)
#6 plethora-71rumrunner; Pete Hammil = Plymouth Roadrunner; Pete Hamilton
#3 plethora-71rumrunner; Cale Yardbird = Plymouth Roadrunner; Cale Yarborough (legendary driver)

#12 deckard-72montecristo; Bobby Alexson = Chevy Monte Carlo; Bobby Allison (legend and brother to Donnie)
#14 deckard-72montecristo; Choo Choo Marlin = Chevy Monte Carlo; Coo Coo Marlin (That's his name)
#28 deckard-72montecristo; Fred Lorenz = Chevy Monte Carlo; Fred Lorenzen (attempted a come-back in early 70s)
Last edited by chad3006 on Wed Nov 20, 2019 5:19 pm, edited 2 times in total.
User avatar
chad3006
 
Posts: 243
Joined: Mon Aug 13, 2012 7:56 pm
Location: USA

Re: How to make a robot drive a car

Postby leillo1975 » Mon Nov 18, 2019 9:07 pm

Ohhhh... thanks a lot for your great explanation. I will take a look tomorrow. I will inform you of my progress.

EDIT: It works pretty well, I modified and now it works. I will add all the drivers you created without modify then.
I have a suggestion for you. I think you should modify the rotation of the wheel and include this robots in the package. I'm sure the players will thank you. The devs also should be informed of this so that it is also in the official game code.
User avatar
leillo1975
 
Posts: 71
Joined: Tue Jul 11, 2017 8:14 am

Re: How to make a robot drive a car

Postby leillo1975 » Thu Dec 12, 2019 8:25 pm

If someone want download the edited simplix.xml file with all the stock car drivers included, I left you a link:
https://mega.nz/#!odAj2SQK!sbH4kKvItA7Q ... N1kNKdMpLw

I recorded a video "fighting" with this bots. You can see it here:
https://youtu.be/3WATht1p84E
User avatar
leillo1975
 
Posts: 71
Joined: Tue Jul 11, 2017 8:14 am

Re: How to make a robot drive a car

Postby leillo1975 » Sat Dec 14, 2019 10:06 pm

Finally, this simplix bots for Stock Cars were included in the newest code of Speed Dreams. Great!
User avatar
leillo1975
 
Posts: 71
Joined: Tue Jul 11, 2017 8:14 am

Previous

Return to Problems, Fixes & Help

Who is online

Users browsing this forum: No registered users and 4 guests